1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for MPFR 4.0.1. 4# 5# 6# Copyright 1999-2018 Free Software Foundation, Inc. 7# Contributed by the AriC and Caramba projects, INRIA. 8# 9# This file is part of the GNU MPFR Library. 10# 11# The GNU MPFR Library is free software; you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License as published 13# by the Free Software Foundation; either version 3 of the License, or (at 14# your option) any later version. 15# 16# The GNU MPFR Library is distributed in the hope that it will be useful, but 17# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 18# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 19# License for more details. 20# 21# You should have received a copy of the GNU Lesser General Public License 22# along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see 23# http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 24# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 25# 26# 27# 28# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 29# 30# 31# This configure script is free software; the Free Software Foundation 32# gives unlimited permission to copy, distribute and modify it. 33## -------------------- ## 34## M4sh Initialization. ## 35## -------------------- ## 36 37# Be more Bourne compatible 38DUALCASE=1; export DUALCASE # for MKS sh 39if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 40 emulate sh 41 NULLCMD=: 42 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 43 # is contrary to our usage. Disable this feature. 44 alias -g '${1+"$@"}'='"$@"' 45 setopt NO_GLOB_SUBST 46else 47 case `(set -o) 2>/dev/null` in #( 48 *posix*) : 49 set -o posix ;; #( 50 *) : 51 ;; 52esac 53fi 54 55 56as_nl=' 57' 58export as_nl 59# Printing a long string crashes Solaris 7 /usr/bin/printf. 60as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 61as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 62as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 63# Prefer a ksh shell builtin over an external printf program on Solaris, 64# but without wasting forks for bash or zsh. 65if test -z "$BASH_VERSION$ZSH_VERSION" \ 66 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 67 as_echo='print -r --' 68 as_echo_n='print -rn --' 69elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 70 as_echo='printf %s\n' 71 as_echo_n='printf %s' 72else 73 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 74 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 75 as_echo_n='/usr/ucb/echo -n' 76 else 77 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 78 as_echo_n_body='eval 79 arg=$1; 80 case $arg in #( 81 *"$as_nl"*) 82 expr "X$arg" : "X\\(.*\\)$as_nl"; 83 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 84 esac; 85 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 86 ' 87 export as_echo_n_body 88 as_echo_n='sh -c $as_echo_n_body as_echo' 89 fi 90 export as_echo_body 91 as_echo='sh -c $as_echo_body as_echo' 92fi 93 94# The user is always right. 95if test "${PATH_SEPARATOR+set}" != set; then 96 PATH_SEPARATOR=: 97 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 98 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 99 PATH_SEPARATOR=';' 100 } 101fi 102 103 104# IFS 105# We need space, tab and new line, in precisely that order. Quoting is 106# there to prevent editors from complaining about space-tab. 107# (If _AS_PATH_WALK were called with IFS unset, it would disable word 108# splitting by setting IFS to empty value.) 109IFS=" "" $as_nl" 110 111# Find who we are. Look in the path if we contain no directory separator. 112as_myself= 113case $0 in #(( 114 *[\\/]* ) as_myself=$0 ;; 115 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 116for as_dir in $PATH 117do 118 IFS=$as_save_IFS 119 test -z "$as_dir" && as_dir=. 120 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 121 done 122IFS=$as_save_IFS 123 124 ;; 125esac 126# We did not find ourselves, most probably we were run as `sh COMMAND' 127# in which case we are not to be found in the path. 128if test "x$as_myself" = x; then 129 as_myself=$0 130fi 131if test ! -f "$as_myself"; then 132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 133 exit 1 134fi 135 136# Unset variables that we do not need and which cause bugs (e.g. in 137# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 138# suppresses any "Segmentation fault" message there. '((' could 139# trigger a bug in pdksh 5.2.14. 140for as_var in BASH_ENV ENV MAIL MAILPATH 141do eval test x\${$as_var+set} = xset \ 142 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 143done 144PS1='$ ' 145PS2='> ' 146PS4='+ ' 147 148# NLS nuisances. 149LC_ALL=C 150export LC_ALL 151LANGUAGE=C 152export LANGUAGE 153 154# CDPATH. 155(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 156 157# Use a proper internal environment variable to ensure we don't fall 158 # into an infinite loop, continuously re-executing ourselves. 159 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 160 _as_can_reexec=no; export _as_can_reexec; 161 # We cannot yet assume a decent shell, so we have to provide a 162# neutralization value for shells without unset; and this also 163# works around shells that cannot unset nonexistent variables. 164# Preserve -v and -x to the replacement shell. 165BASH_ENV=/dev/null 166ENV=/dev/null 167(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 168case $- in # (((( 169 *v*x* | *x*v* ) as_opts=-vx ;; 170 *v* ) as_opts=-v ;; 171 *x* ) as_opts=-x ;; 172 * ) as_opts= ;; 173esac 174exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 175# Admittedly, this is quite paranoid, since all the known shells bail 176# out after a failed `exec'. 177$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 178as_fn_exit 255 179 fi 180 # We don't want this to propagate to other subprocesses. 181 { _as_can_reexec=; unset _as_can_reexec;} 182if test "x$CONFIG_SHELL" = x; then 183 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 184 emulate sh 185 NULLCMD=: 186 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 187 # is contrary to our usage. Disable this feature. 188 alias -g '\${1+\"\$@\"}'='\"\$@\"' 189 setopt NO_GLOB_SUBST 190else 191 case \`(set -o) 2>/dev/null\` in #( 192 *posix*) : 193 set -o posix ;; #( 194 *) : 195 ;; 196esac 197fi 198" 199 as_required="as_fn_return () { (exit \$1); } 200as_fn_success () { as_fn_return 0; } 201as_fn_failure () { as_fn_return 1; } 202as_fn_ret_success () { return 0; } 203as_fn_ret_failure () { return 1; } 204 205exitcode=0 206as_fn_success || { exitcode=1; echo as_fn_success failed.; } 207as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 208as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 209as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 210if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 211 212else 213 exitcode=1; echo positional parameters were not saved. 214fi 215test x\$exitcode = x0 || exit 1 216test -x / || exit 1" 217 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 218 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 219 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 220 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 221test \$(( 1 + 1 )) = 2 || exit 1 222 223 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 224 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 225 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 226 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 227 PATH=/empty FPATH=/empty; export PATH FPATH 228 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 229 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 230 if (eval "$as_required") 2>/dev/null; then : 231 as_have_required=yes 232else 233 as_have_required=no 234fi 235 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 236 237else 238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 239as_found=false 240for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 241do 242 IFS=$as_save_IFS 243 test -z "$as_dir" && as_dir=. 244 as_found=: 245 case $as_dir in #( 246 /*) 247 for as_base in sh bash ksh sh5; do 248 # Try only shells that exist, to save several forks. 249 as_shell=$as_dir/$as_base 250 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 251 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 252 CONFIG_SHELL=$as_shell as_have_required=yes 253 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 254 break 2 255fi 256fi 257 done;; 258 esac 259 as_found=false 260done 261$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 262 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 263 CONFIG_SHELL=$SHELL as_have_required=yes 264fi; } 265IFS=$as_save_IFS 266 267 268 if test "x$CONFIG_SHELL" != x; then : 269 export CONFIG_SHELL 270 # We cannot yet assume a decent shell, so we have to provide a 271# neutralization value for shells without unset; and this also 272# works around shells that cannot unset nonexistent variables. 273# Preserve -v and -x to the replacement shell. 274BASH_ENV=/dev/null 275ENV=/dev/null 276(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 277case $- in # (((( 278 *v*x* | *x*v* ) as_opts=-vx ;; 279 *v* ) as_opts=-v ;; 280 *x* ) as_opts=-x ;; 281 * ) as_opts= ;; 282esac 283exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 284# Admittedly, this is quite paranoid, since all the known shells bail 285# out after a failed `exec'. 286$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 287exit 255 288fi 289 290 if test x$as_have_required = xno; then : 291 $as_echo "$0: This script requires a shell more modern than all" 292 $as_echo "$0: the shells that I found on your system." 293 if test x${ZSH_VERSION+set} = xset ; then 294 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 295 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 296 else 297 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 298$0: including any error possibly output before this 299$0: message. Then install a modern shell, or manually run 300$0: the script under such a shell if you do have one." 301 fi 302 exit 1 303fi 304fi 305fi 306SHELL=${CONFIG_SHELL-/bin/sh} 307export SHELL 308# Unset more variables known to interfere with behavior of common tools. 309CLICOLOR_FORCE= GREP_OPTIONS= 310unset CLICOLOR_FORCE GREP_OPTIONS 311 312## --------------------- ## 313## M4sh Shell Functions. ## 314## --------------------- ## 315# as_fn_unset VAR 316# --------------- 317# Portably unset VAR. 318as_fn_unset () 319{ 320 { eval $1=; unset $1;} 321} 322as_unset=as_fn_unset 323 324# as_fn_set_status STATUS 325# ----------------------- 326# Set $? to STATUS, without forking. 327as_fn_set_status () 328{ 329 return $1 330} # as_fn_set_status 331 332# as_fn_exit STATUS 333# ----------------- 334# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 335as_fn_exit () 336{ 337 set +e 338 as_fn_set_status $1 339 exit $1 340} # as_fn_exit 341 342# as_fn_mkdir_p 343# ------------- 344# Create "$as_dir" as a directory, including parents if necessary. 345as_fn_mkdir_p () 346{ 347 348 case $as_dir in #( 349 -*) as_dir=./$as_dir;; 350 esac 351 test -d "$as_dir" || eval $as_mkdir_p || { 352 as_dirs= 353 while :; do 354 case $as_dir in #( 355 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 356 *) as_qdir=$as_dir;; 357 esac 358 as_dirs="'$as_qdir' $as_dirs" 359 as_dir=`$as_dirname -- "$as_dir" || 360$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 361 X"$as_dir" : 'X\(//\)[^/]' \| \ 362 X"$as_dir" : 'X\(//\)$' \| \ 363 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 364$as_echo X"$as_dir" | 365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\/\)[^/].*/{ 370 s//\1/ 371 q 372 } 373 /^X\(\/\/\)$/{ 374 s//\1/ 375 q 376 } 377 /^X\(\/\).*/{ 378 s//\1/ 379 q 380 } 381 s/.*/./; q'` 382 test -d "$as_dir" && break 383 done 384 test -z "$as_dirs" || eval "mkdir $as_dirs" 385 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 386 387 388} # as_fn_mkdir_p 389 390# as_fn_executable_p FILE 391# ----------------------- 392# Test if FILE is an executable regular file. 393as_fn_executable_p () 394{ 395 test -f "$1" && test -x "$1" 396} # as_fn_executable_p 397# as_fn_append VAR VALUE 398# ---------------------- 399# Append the text in VALUE to the end of the definition contained in VAR. Take 400# advantage of any shell optimizations that allow amortized linear growth over 401# repeated appends, instead of the typical quadratic growth present in naive 402# implementations. 403if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 404 eval 'as_fn_append () 405 { 406 eval $1+=\$2 407 }' 408else 409 as_fn_append () 410 { 411 eval $1=\$$1\$2 412 } 413fi # as_fn_append 414 415# as_fn_arith ARG... 416# ------------------ 417# Perform arithmetic evaluation on the ARGs, and store the result in the 418# global $as_val. Take advantage of shells that can avoid forks. The arguments 419# must be portable across $(()) and expr. 420if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 421 eval 'as_fn_arith () 422 { 423 as_val=$(( $* )) 424 }' 425else 426 as_fn_arith () 427 { 428 as_val=`expr "$@" || test $? -eq 1` 429 } 430fi # as_fn_arith 431 432 433# as_fn_error STATUS ERROR [LINENO LOG_FD] 434# ---------------------------------------- 435# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 436# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 437# script with STATUS, using 1 if that was 0. 438as_fn_error () 439{ 440 as_status=$1; test $as_status -eq 0 && as_status=1 441 if test "$4"; then 442 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 443 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 444 fi 445 $as_echo "$as_me: error: $2" >&2 446 as_fn_exit $as_status 447} # as_fn_error 448 449if expr a : '\(a\)' >/dev/null 2>&1 && 450 test "X`expr 00001 : '.*\(...\)'`" = X001; then 451 as_expr=expr 452else 453 as_expr=false 454fi 455 456if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 457 as_basename=basename 458else 459 as_basename=false 460fi 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468as_me=`$as_basename -- "$0" || 469$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 470 X"$0" : 'X\(//\)$' \| \ 471 X"$0" : 'X\(/\)' \| . 2>/dev/null || 472$as_echo X/"$0" | 473 sed '/^.*\/\([^/][^/]*\)\/*$/{ 474 s//\1/ 475 q 476 } 477 /^X\/\(\/\/\)$/{ 478 s//\1/ 479 q 480 } 481 /^X\/\(\/\).*/{ 482 s//\1/ 483 q 484 } 485 s/.*/./; q'` 486 487# Avoid depending upon Character Ranges. 488as_cr_letters='abcdefghijklmnopqrstuvwxyz' 489as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 490as_cr_Letters=$as_cr_letters$as_cr_LETTERS 491as_cr_digits='0123456789' 492as_cr_alnum=$as_cr_Letters$as_cr_digits 493 494 495 as_lineno_1=$LINENO as_lineno_1a=$LINENO 496 as_lineno_2=$LINENO as_lineno_2a=$LINENO 497 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 498 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 499 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 500 sed -n ' 501 p 502 /[$]LINENO/= 503 ' <$as_myself | 504 sed ' 505 s/[$]LINENO.*/&-/ 506 t lineno 507 b 508 :lineno 509 N 510 :loop 511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 512 t loop 513 s/-\n.*// 514 ' >$as_me.lineno && 515 chmod +x "$as_me.lineno" || 516 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 517 518 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 519 # already done that, so ensure we don't try to do so again and fall 520 # in an infinite loop. This has already happened in practice. 521 _as_can_reexec=no; export _as_can_reexec 522 # Don't try to exec as it changes $[0], causing all sort of problems 523 # (the dirname of $[0] is not the place where we might find the 524 # original and so on. Autoconf is especially sensitive to this). 525 . "./$as_me.lineno" 526 # Exit status is that of the last command. 527 exit 528} 529 530ECHO_C= ECHO_N= ECHO_T= 531case `echo -n x` in #((((( 532-n*) 533 case `echo 'xy\c'` in 534 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 535 xy) ECHO_C='\c';; 536 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 537 ECHO_T=' ';; 538 esac;; 539*) 540 ECHO_N='-n';; 541esac 542 543rm -f conf$$ conf$$.exe conf$$.file 544if test -d conf$$.dir; then 545 rm -f conf$$.dir/conf$$.file 546else 547 rm -f conf$$.dir 548 mkdir conf$$.dir 2>/dev/null 549fi 550if (echo >conf$$.file) 2>/dev/null; then 551 if ln -s conf$$.file conf$$ 2>/dev/null; then 552 as_ln_s='ln -s' 553 # ... but there are two gotchas: 554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 556 # In both cases, we have to default to `cp -pR'. 557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 558 as_ln_s='cp -pR' 559 elif ln conf$$.file conf$$ 2>/dev/null; then 560 as_ln_s=ln 561 else 562 as_ln_s='cp -pR' 563 fi 564else 565 as_ln_s='cp -pR' 566fi 567rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 568rmdir conf$$.dir 2>/dev/null 569 570if mkdir -p . 2>/dev/null; then 571 as_mkdir_p='mkdir -p "$as_dir"' 572else 573 test -d ./-p && rmdir ./-p 574 as_mkdir_p=false 575fi 576 577as_test_x='test -x' 578as_executable_p=as_fn_executable_p 579 580# Sed expression to map a string onto a valid CPP name. 581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 582 583# Sed expression to map a string onto a valid variable name. 584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 585 586SHELL=${CONFIG_SHELL-/bin/sh} 587 588 589test -n "$DJDIR" || exec 7<&0 </dev/null 590exec 6>&1 591 592# Name of the host. 593# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 594# so uname gets run too. 595ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 596 597# 598# Initializations. 599# 600ac_default_prefix=/usr/local 601ac_clean_files= 602ac_config_libobj_dir=. 603LIBOBJS= 604cross_compiling=no 605subdirs= 606MFLAGS= 607MAKEFLAGS= 608 609# Identity of this package. 610PACKAGE_NAME='MPFR' 611PACKAGE_TARNAME='mpfr' 612PACKAGE_VERSION='4.0.1' 613PACKAGE_STRING='MPFR 4.0.1' 614PACKAGE_BUGREPORT='' 615PACKAGE_URL='' 616 617# Factoring default headers for most tests. 618ac_includes_default="\ 619#include <stdio.h> 620#ifdef HAVE_SYS_TYPES_H 621# include <sys/types.h> 622#endif 623#ifdef HAVE_SYS_STAT_H 624# include <sys/stat.h> 625#endif 626#ifdef STDC_HEADERS 627# include <stdlib.h> 628# include <stddef.h> 629#else 630# ifdef HAVE_STDLIB_H 631# include <stdlib.h> 632# endif 633#endif 634#ifdef HAVE_STRING_H 635# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 636# include <memory.h> 637# endif 638# include <string.h> 639#endif 640#ifdef HAVE_STRINGS_H 641# include <strings.h> 642#endif 643#ifdef HAVE_INTTYPES_H 644# include <inttypes.h> 645#endif 646#ifdef HAVE_STDINT_H 647# include <stdint.h> 648#endif 649#ifdef HAVE_UNISTD_H 650# include <unistd.h> 651#endif" 652 653ac_subst_vars='am__EXEEXT_FALSE 654am__EXEEXT_TRUE 655LTLIBOBJS 656LIBOBJS 657DATAFILES 658LIBMPFR_LDFLAGS 659MPFR_LDFLAGS 660TUNE_LIBS 661PTHREAD_CFLAGS 662PTHREAD_LIBS 663PTHREAD_CC 664ax_pthread_config 665ALLOCA 666MPFR_LIBQUADMATH 667MPFR_LIBM 668LT_SYS_LIBRARY_PATH 669OTOOL64 670OTOOL 671LIPO 672NMEDIT 673DSYMUTIL 674MANIFEST_TOOL 675RANLIB 676LN_S 677NM 678ac_ct_DUMPBIN 679DUMPBIN 680LD 681FGREP 682LIBTOOL 683OBJDUMP 684DLLTOOL 685AS 686ac_ct_AR 687AR 688CPP 689am__fastdepCC_FALSE 690am__fastdepCC_TRUE 691CCDEPMODE 692am__nodep 693AMDEPBACKSLASH 694AMDEP_FALSE 695AMDEP_TRUE 696am__quote 697am__include 698DEPDIR 699OBJEXT 700EXEEXT 701ac_ct_CC 702CPPFLAGS 703LDFLAGS 704CFLAGS 705CC 706SED 707EGREP 708GREP 709host_os 710host_vendor 711host_cpu 712host 713build_os 714build_vendor 715build_cpu 716build 717MAINT 718MAINTAINER_MODE_FALSE 719MAINTAINER_MODE_TRUE 720AM_BACKSLASH 721AM_DEFAULT_VERBOSITY 722AM_DEFAULT_V 723AM_V 724am__untar 725am__tar 726AMTAR 727am__leading_dot 728SET_MAKE 729AWK 730mkdir_p 731MKDIR_P 732INSTALL_STRIP_PROGRAM 733STRIP 734install_sh 735MAKEINFO 736AUTOHEADER 737AUTOMAKE 738AUTOCONF 739ACLOCAL 740VERSION 741PACKAGE 742CYGPATH_W 743am__isrc 744INSTALL_DATA 745INSTALL_SCRIPT 746INSTALL_PROGRAM 747target_alias 748host_alias 749build_alias 750LIBS 751ECHO_T 752ECHO_N 753ECHO_C 754DEFS 755mandir 756localedir 757libdir 758psdir 759pdfdir 760dvidir 761htmldir 762infodir 763docdir 764oldincludedir 765includedir 766runstatedir 767localstatedir 768sharedstatedir 769sysconfdir 770datadir 771datarootdir 772libexecdir 773sbindir 774bindir 775program_transform_name 776prefix 777exec_prefix 778PACKAGE_URL 779PACKAGE_BUGREPORT 780PACKAGE_STRING 781PACKAGE_VERSION 782PACKAGE_TARNAME 783PACKAGE_NAME 784PATH_SEPARATOR 785SHELL' 786ac_subst_files='' 787ac_user_opts=' 788enable_option_checking 789enable_silent_rules 790enable_maintainer_mode 791with_gmp_include 792with_gmp_lib 793with_gmp 794with_gmp_build 795with_mulhigh_size 796enable_gmp_internals 797enable_assert 798enable_logging 799enable_thread_safe 800enable_shared_cache 801enable_warnings 802enable_tests_timeout 803enable_tune_for_coverage 804enable_dependency_tracking 805enable_shared 806enable_static 807with_pic 808enable_fast_install 809with_aix_soname 810with_gnu_ld 811with_sysroot 812enable_libtool_lock 813enable_decimal_float 814enable_float128 815enable_mini_gmp 816enable_debug_prediction 817enable_lto 818' 819 ac_precious_vars='build_alias 820host_alias 821target_alias 822CC 823CFLAGS 824LDFLAGS 825LIBS 826CPPFLAGS 827CPP 828LT_SYS_LIBRARY_PATH' 829 830 831# Initialize some variables set by options. 832ac_init_help= 833ac_init_version=false 834ac_unrecognized_opts= 835ac_unrecognized_sep= 836# The variables have the same names as the options, with 837# dashes changed to underlines. 838cache_file=/dev/null 839exec_prefix=NONE 840no_create= 841no_recursion= 842prefix=NONE 843program_prefix=NONE 844program_suffix=NONE 845program_transform_name=s,x,x, 846silent= 847site= 848srcdir= 849verbose= 850x_includes=NONE 851x_libraries=NONE 852 853# Installation directory options. 854# These are left unexpanded so users can "make install exec_prefix=/foo" 855# and all the variables that are supposed to be based on exec_prefix 856# by default will actually change. 857# Use braces instead of parens because sh, perl, etc. also accept them. 858# (The list follows the same order as the GNU Coding Standards.) 859bindir='${exec_prefix}/bin' 860sbindir='${exec_prefix}/sbin' 861libexecdir='${exec_prefix}/libexec' 862datarootdir='${prefix}/share' 863datadir='${datarootdir}' 864sysconfdir='${prefix}/etc' 865sharedstatedir='${prefix}/com' 866localstatedir='${prefix}/var' 867runstatedir='${localstatedir}/run' 868includedir='${prefix}/include' 869oldincludedir='/usr/include' 870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 871infodir='${datarootdir}/info' 872htmldir='${docdir}' 873dvidir='${docdir}' 874pdfdir='${docdir}' 875psdir='${docdir}' 876libdir='${exec_prefix}/lib' 877localedir='${datarootdir}/locale' 878mandir='${datarootdir}/man' 879 880ac_prev= 881ac_dashdash= 882for ac_option 883do 884 # If the previous option needs an argument, assign it. 885 if test -n "$ac_prev"; then 886 eval $ac_prev=\$ac_option 887 ac_prev= 888 continue 889 fi 890 891 case $ac_option in 892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 893 *=) ac_optarg= ;; 894 *) ac_optarg=yes ;; 895 esac 896 897 # Accept the important Cygnus configure options, so we can diagnose typos. 898 899 case $ac_dashdash$ac_option in 900 --) 901 ac_dashdash=yes ;; 902 903 -bindir | --bindir | --bindi | --bind | --bin | --bi) 904 ac_prev=bindir ;; 905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 906 bindir=$ac_optarg ;; 907 908 -build | --build | --buil | --bui | --bu) 909 ac_prev=build_alias ;; 910 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 911 build_alias=$ac_optarg ;; 912 913 -cache-file | --cache-file | --cache-fil | --cache-fi \ 914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 915 ac_prev=cache_file ;; 916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 918 cache_file=$ac_optarg ;; 919 920 --config-cache | -C) 921 cache_file=config.cache ;; 922 923 -datadir | --datadir | --datadi | --datad) 924 ac_prev=datadir ;; 925 -datadir=* | --datadir=* | --datadi=* | --datad=*) 926 datadir=$ac_optarg ;; 927 928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 929 | --dataroo | --dataro | --datar) 930 ac_prev=datarootdir ;; 931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 933 datarootdir=$ac_optarg ;; 934 935 -disable-* | --disable-*) 936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 937 # Reject names that are not valid shell variable names. 938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 939 as_fn_error $? "invalid feature name: $ac_useropt" 940 ac_useropt_orig=$ac_useropt 941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 942 case $ac_user_opts in 943 *" 944"enable_$ac_useropt" 945"*) ;; 946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 947 ac_unrecognized_sep=', ';; 948 esac 949 eval enable_$ac_useropt=no ;; 950 951 -docdir | --docdir | --docdi | --doc | --do) 952 ac_prev=docdir ;; 953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 954 docdir=$ac_optarg ;; 955 956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 957 ac_prev=dvidir ;; 958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 959 dvidir=$ac_optarg ;; 960 961 -enable-* | --enable-*) 962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 963 # Reject names that are not valid shell variable names. 964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 965 as_fn_error $? "invalid feature name: $ac_useropt" 966 ac_useropt_orig=$ac_useropt 967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 968 case $ac_user_opts in 969 *" 970"enable_$ac_useropt" 971"*) ;; 972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 973 ac_unrecognized_sep=', ';; 974 esac 975 eval enable_$ac_useropt=\$ac_optarg ;; 976 977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 979 | --exec | --exe | --ex) 980 ac_prev=exec_prefix ;; 981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 983 | --exec=* | --exe=* | --ex=*) 984 exec_prefix=$ac_optarg ;; 985 986 -gas | --gas | --ga | --g) 987 # Obsolete; use --with-gas. 988 with_gas=yes ;; 989 990 -help | --help | --hel | --he | -h) 991 ac_init_help=long ;; 992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 993 ac_init_help=recursive ;; 994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 995 ac_init_help=short ;; 996 997 -host | --host | --hos | --ho) 998 ac_prev=host_alias ;; 999 -host=* | --host=* | --hos=* | --ho=*) 1000 host_alias=$ac_optarg ;; 1001 1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1003 ac_prev=htmldir ;; 1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1005 | --ht=*) 1006 htmldir=$ac_optarg ;; 1007 1008 -includedir | --includedir | --includedi | --included | --include \ 1009 | --includ | --inclu | --incl | --inc) 1010 ac_prev=includedir ;; 1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1012 | --includ=* | --inclu=* | --incl=* | --inc=*) 1013 includedir=$ac_optarg ;; 1014 1015 -infodir | --infodir | --infodi | --infod | --info | --inf) 1016 ac_prev=infodir ;; 1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1018 infodir=$ac_optarg ;; 1019 1020 -libdir | --libdir | --libdi | --libd) 1021 ac_prev=libdir ;; 1022 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1023 libdir=$ac_optarg ;; 1024 1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1026 | --libexe | --libex | --libe) 1027 ac_prev=libexecdir ;; 1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1029 | --libexe=* | --libex=* | --libe=*) 1030 libexecdir=$ac_optarg ;; 1031 1032 -localedir | --localedir | --localedi | --localed | --locale) 1033 ac_prev=localedir ;; 1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1035 localedir=$ac_optarg ;; 1036 1037 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1038 | --localstate | --localstat | --localsta | --localst | --locals) 1039 ac_prev=localstatedir ;; 1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1042 localstatedir=$ac_optarg ;; 1043 1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1045 ac_prev=mandir ;; 1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1047 mandir=$ac_optarg ;; 1048 1049 -nfp | --nfp | --nf) 1050 # Obsolete; use --without-fp. 1051 with_fp=no ;; 1052 1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1054 | --no-cr | --no-c | -n) 1055 no_create=yes ;; 1056 1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1059 no_recursion=yes ;; 1060 1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1063 | --oldin | --oldi | --old | --ol | --o) 1064 ac_prev=oldincludedir ;; 1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1068 oldincludedir=$ac_optarg ;; 1069 1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1071 ac_prev=prefix ;; 1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1073 prefix=$ac_optarg ;; 1074 1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1076 | --program-pre | --program-pr | --program-p) 1077 ac_prev=program_prefix ;; 1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1080 program_prefix=$ac_optarg ;; 1081 1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1083 | --program-suf | --program-su | --program-s) 1084 ac_prev=program_suffix ;; 1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1087 program_suffix=$ac_optarg ;; 1088 1089 -program-transform-name | --program-transform-name \ 1090 | --program-transform-nam | --program-transform-na \ 1091 | --program-transform-n | --program-transform- \ 1092 | --program-transform | --program-transfor \ 1093 | --program-transfo | --program-transf \ 1094 | --program-trans | --program-tran \ 1095 | --progr-tra | --program-tr | --program-t) 1096 ac_prev=program_transform_name ;; 1097 -program-transform-name=* | --program-transform-name=* \ 1098 | --program-transform-nam=* | --program-transform-na=* \ 1099 | --program-transform-n=* | --program-transform-=* \ 1100 | --program-transform=* | --program-transfor=* \ 1101 | --program-transfo=* | --program-transf=* \ 1102 | --program-trans=* | --program-tran=* \ 1103 | --progr-tra=* | --program-tr=* | --program-t=*) 1104 program_transform_name=$ac_optarg ;; 1105 1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1107 ac_prev=pdfdir ;; 1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1109 pdfdir=$ac_optarg ;; 1110 1111 -psdir | --psdir | --psdi | --psd | --ps) 1112 ac_prev=psdir ;; 1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1114 psdir=$ac_optarg ;; 1115 1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1117 | -silent | --silent | --silen | --sile | --sil) 1118 silent=yes ;; 1119 1120 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1121 | --runstate | --runstat | --runsta | --runst | --runs \ 1122 | --run | --ru | --r) 1123 ac_prev=runstatedir ;; 1124 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1125 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1126 | --run=* | --ru=* | --r=*) 1127 runstatedir=$ac_optarg ;; 1128 1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1130 ac_prev=sbindir ;; 1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1132 | --sbi=* | --sb=*) 1133 sbindir=$ac_optarg ;; 1134 1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1137 | --sharedst | --shareds | --shared | --share | --shar \ 1138 | --sha | --sh) 1139 ac_prev=sharedstatedir ;; 1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1143 | --sha=* | --sh=*) 1144 sharedstatedir=$ac_optarg ;; 1145 1146 -site | --site | --sit) 1147 ac_prev=site ;; 1148 -site=* | --site=* | --sit=*) 1149 site=$ac_optarg ;; 1150 1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1152 ac_prev=srcdir ;; 1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1154 srcdir=$ac_optarg ;; 1155 1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1157 | --syscon | --sysco | --sysc | --sys | --sy) 1158 ac_prev=sysconfdir ;; 1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1161 sysconfdir=$ac_optarg ;; 1162 1163 -target | --target | --targe | --targ | --tar | --ta | --t) 1164 ac_prev=target_alias ;; 1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1166 target_alias=$ac_optarg ;; 1167 1168 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1169 verbose=yes ;; 1170 1171 -version | --version | --versio | --versi | --vers | -V) 1172 ac_init_version=: ;; 1173 1174 -with-* | --with-*) 1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1176 # Reject names that are not valid shell variable names. 1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 as_fn_error $? "invalid package name: $ac_useropt" 1179 ac_useropt_orig=$ac_useropt 1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 case $ac_user_opts in 1182 *" 1183"with_$ac_useropt" 1184"*) ;; 1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1186 ac_unrecognized_sep=', ';; 1187 esac 1188 eval with_$ac_useropt=\$ac_optarg ;; 1189 1190 -without-* | --without-*) 1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1192 # Reject names that are not valid shell variable names. 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 as_fn_error $? "invalid package name: $ac_useropt" 1195 ac_useropt_orig=$ac_useropt 1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 case $ac_user_opts in 1198 *" 1199"with_$ac_useropt" 1200"*) ;; 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1202 ac_unrecognized_sep=', ';; 1203 esac 1204 eval with_$ac_useropt=no ;; 1205 1206 --x) 1207 # Obsolete; use --with-x. 1208 with_x=yes ;; 1209 1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1211 | --x-incl | --x-inc | --x-in | --x-i) 1212 ac_prev=x_includes ;; 1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1215 x_includes=$ac_optarg ;; 1216 1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1219 ac_prev=x_libraries ;; 1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1222 x_libraries=$ac_optarg ;; 1223 1224 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1225Try \`$0 --help' for more information" 1226 ;; 1227 1228 *=*) 1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1230 # Reject names that are not valid shell variable names. 1231 case $ac_envvar in #( 1232 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1233 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1234 esac 1235 eval $ac_envvar=\$ac_optarg 1236 export $ac_envvar ;; 1237 1238 *) 1239 # FIXME: should be removed in autoconf 3.0. 1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1243 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1244 ;; 1245 1246 esac 1247done 1248 1249if test -n "$ac_prev"; then 1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1251 as_fn_error $? "missing argument to $ac_option" 1252fi 1253 1254if test -n "$ac_unrecognized_opts"; then 1255 case $enable_option_checking in 1256 no) ;; 1257 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1259 esac 1260fi 1261 1262# Check all directory arguments for consistency. 1263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1264 datadir sysconfdir sharedstatedir localstatedir includedir \ 1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1266 libdir localedir mandir runstatedir 1267do 1268 eval ac_val=\$$ac_var 1269 # Remove trailing slashes. 1270 case $ac_val in 1271 */ ) 1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1273 eval $ac_var=\$ac_val;; 1274 esac 1275 # Be sure to have absolute directory names. 1276 case $ac_val in 1277 [\\/$]* | ?:[\\/]* ) continue;; 1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1279 esac 1280 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1281done 1282 1283# There might be people who depend on the old broken behavior: `$host' 1284# used to hold the argument of --host etc. 1285# FIXME: To remove some day. 1286build=$build_alias 1287host=$host_alias 1288target=$target_alias 1289 1290# FIXME: To remove some day. 1291if test "x$host_alias" != x; then 1292 if test "x$build_alias" = x; then 1293 cross_compiling=maybe 1294 elif test "x$build_alias" != "x$host_alias"; then 1295 cross_compiling=yes 1296 fi 1297fi 1298 1299ac_tool_prefix= 1300test -n "$host_alias" && ac_tool_prefix=$host_alias- 1301 1302test "$silent" = yes && exec 6>/dev/null 1303 1304 1305ac_pwd=`pwd` && test -n "$ac_pwd" && 1306ac_ls_di=`ls -di .` && 1307ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1308 as_fn_error $? "working directory cannot be determined" 1309test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1310 as_fn_error $? "pwd does not report name of working directory" 1311 1312 1313# Find the source files, if location was not specified. 1314if test -z "$srcdir"; then 1315 ac_srcdir_defaulted=yes 1316 # Try the directory containing this script, then the parent directory. 1317 ac_confdir=`$as_dirname -- "$as_myself" || 1318$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1319 X"$as_myself" : 'X\(//\)[^/]' \| \ 1320 X"$as_myself" : 'X\(//\)$' \| \ 1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1322$as_echo X"$as_myself" | 1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\/\)[^/].*/{ 1328 s//\1/ 1329 q 1330 } 1331 /^X\(\/\/\)$/{ 1332 s//\1/ 1333 q 1334 } 1335 /^X\(\/\).*/{ 1336 s//\1/ 1337 q 1338 } 1339 s/.*/./; q'` 1340 srcdir=$ac_confdir 1341 if test ! -r "$srcdir/$ac_unique_file"; then 1342 srcdir=.. 1343 fi 1344else 1345 ac_srcdir_defaulted=no 1346fi 1347if test ! -r "$srcdir/$ac_unique_file"; then 1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1350fi 1351ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1352ac_abs_confdir=`( 1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1354 pwd)` 1355# When building in place, set srcdir=. 1356if test "$ac_abs_confdir" = "$ac_pwd"; then 1357 srcdir=. 1358fi 1359# Remove unnecessary trailing slashes from srcdir. 1360# Double slashes in file names in object file debugging info 1361# mess up M-x gdb in Emacs. 1362case $srcdir in 1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1364esac 1365for ac_var in $ac_precious_vars; do 1366 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1367 eval ac_env_${ac_var}_value=\$${ac_var} 1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1369 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1370done 1371 1372# 1373# Report the --help message. 1374# 1375if test "$ac_init_help" = "long"; then 1376 # Omit some internal or obsolete options to make the list less imposing. 1377 # This message is too long to be a string in the A/UX 3.1 sh. 1378 cat <<_ACEOF 1379\`configure' configures MPFR 4.0.1 to adapt to many kinds of systems. 1380 1381Usage: $0 [OPTION]... [VAR=VALUE]... 1382 1383To assign environment variables (e.g., CC, CFLAGS...), specify them as 1384VAR=VALUE. See below for descriptions of some of the useful variables. 1385 1386Defaults for the options are specified in brackets. 1387 1388Configuration: 1389 -h, --help display this help and exit 1390 --help=short display options specific to this package 1391 --help=recursive display the short help of all the included packages 1392 -V, --version display version information and exit 1393 -q, --quiet, --silent do not print \`checking ...' messages 1394 --cache-file=FILE cache test results in FILE [disabled] 1395 -C, --config-cache alias for \`--cache-file=config.cache' 1396 -n, --no-create do not create output files 1397 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1398 1399Installation directories: 1400 --prefix=PREFIX install architecture-independent files in PREFIX 1401 [$ac_default_prefix] 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1403 [PREFIX] 1404 1405By default, \`make install' will install all the files in 1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1407an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1408for instance \`--prefix=\$HOME'. 1409 1410For better control, use the options below. 1411 1412Fine tuning of the installation directories: 1413 --bindir=DIR user executables [EPREFIX/bin] 1414 --sbindir=DIR system admin executables [EPREFIX/sbin] 1415 --libexecdir=DIR program executables [EPREFIX/libexec] 1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1419 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1420 --libdir=DIR object code libraries [EPREFIX/lib] 1421 --includedir=DIR C header files [PREFIX/include] 1422 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1423 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1424 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1425 --infodir=DIR info documentation [DATAROOTDIR/info] 1426 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1427 --mandir=DIR man documentation [DATAROOTDIR/man] 1428 --docdir=DIR documentation root [DATAROOTDIR/doc/mpfr] 1429 --htmldir=DIR html documentation [DOCDIR] 1430 --dvidir=DIR dvi documentation [DOCDIR] 1431 --pdfdir=DIR pdf documentation [DOCDIR] 1432 --psdir=DIR ps documentation [DOCDIR] 1433_ACEOF 1434 1435 cat <<\_ACEOF 1436 1437Program names: 1438 --program-prefix=PREFIX prepend PREFIX to installed program names 1439 --program-suffix=SUFFIX append SUFFIX to installed program names 1440 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1441 1442System types: 1443 --build=BUILD configure for building on BUILD [guessed] 1444 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1445_ACEOF 1446fi 1447 1448if test -n "$ac_init_help"; then 1449 case $ac_init_help in 1450 short | recursive ) echo "Configuration of MPFR 4.0.1:";; 1451 esac 1452 cat <<\_ACEOF 1453 1454Optional Features: 1455 --disable-option-checking ignore unrecognized --enable/--with options 1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1458 --enable-silent-rules less verbose build output (undo: "make V=1") 1459 --disable-silent-rules verbose build output (undo: "make V=0") 1460 --disable-maintainer-mode 1461 disable make rules and dependencies not useful (and 1462 sometimes confusing) to the casual installer 1463 --enable-gmp-internals enable use of GMP undocumented functions [default=no] 1464 --enable-assert enable ASSERT checking [default=no] 1465 --enable-logging enable MPFR logging (the system must support it) 1466 [default=no] 1467 --disable-thread-safe explicitly disable TLS support 1468 --enable-thread-safe build MPFR as thread safe, i.e. with TLS support 1469 (the system must support it) [default=autodetect] 1470 --enable-shared-cache enable use of caches shared by all threads, 1471 for all MPFR constants. It usually makes MPFR 1472 dependent on PTHREAD [default=no] 1473 --enable-warnings allow MPFR to output warnings to stderr [default=no] 1474 --enable-tests-timeout=NUM 1475 [for developers] enable timeout for test programs 1476 (NUM seconds, <= 9999) [default=no]; if this is 1477 enabled, the environment variable $MPFR_TESTS_TIMEOUT 1478 overrides NUM (0: no timeout) 1479 --enable-tune-for-coverage 1480 [for developers] tune MPFR for coverage tests 1481 --enable-dependency-tracking 1482 do not reject slow dependency extractors 1483 --disable-dependency-tracking 1484 speeds up one-time build 1485 --enable-shared[=PKGS] build shared libraries [default=yes] 1486 --enable-static[=PKGS] build static libraries [default=yes] 1487 --enable-fast-install[=PKGS] 1488 optimize for fast installation [default=yes] 1489 --disable-libtool-lock avoid locking (might break parallel builds) 1490 --disable-decimal-float explicitly disable decimal floats support 1491 --enable-decimal-float build conversion functions from/to decimal floats 1492 [default=autodetect] 1493 --disable-float128 explicitly disable __float128 support 1494 --enable-float128 build conversion functions from/to __float128 1495 [default=autodetect] 1496 --enable-mini-gmp build MPFR with mini-gmp (experimental) [default=no] 1497 --enable-debug-prediction 1498 [for developers] enable debug of branch prediction 1499 (for x86 and x86-64 with GCC, static libs) 1500 --enable-lto build MPFR with link-time-optimization 1501 (experimental) [default: no] 1502 1503Optional Packages: 1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1506 --with-gmp-include=DIR GMP include directory 1507 --with-gmp-lib=DIR GMP lib directory 1508 --with-gmp=DIR GMP install directory 1509 --with-gmp-build=DIR GMP build directory (please read INSTALL file) 1510 --with-mulhigh-size=NUM internal threshold table for mulhigh 1511 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1512 both] 1513 --with-aix-soname=aix|svr4|both 1514 shared library versioning (aka "SONAME") variant to 1515 provide on AIX, [default=aix]. 1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1517 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1518 compiler's sysroot if not specified). 1519 1520Some influential environment variables: 1521 CC C compiler command 1522 CFLAGS C compiler flags 1523 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1524 nonstandard directory <lib dir> 1525 LIBS libraries to pass to the linker, e.g. -l<library> 1526 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1527 you have headers in a nonstandard directory <include dir> 1528 CPP C preprocessor 1529 LT_SYS_LIBRARY_PATH 1530 User-defined run-time library search path. 1531 1532Use these variables to override the choices made by `configure' or to help 1533it to find libraries and programs with nonstandard names/locations. 1534 1535Report bugs to the package provider. 1536_ACEOF 1537ac_status=$? 1538fi 1539 1540if test "$ac_init_help" = "recursive"; then 1541 # If there are subdirs, report their specific --help. 1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1543 test -d "$ac_dir" || 1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1545 continue 1546 ac_builddir=. 1547 1548case "$ac_dir" in 1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1550*) 1551 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1552 # A ".." for each directory in $ac_dir_suffix. 1553 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1554 case $ac_top_builddir_sub in 1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1557 esac ;; 1558esac 1559ac_abs_top_builddir=$ac_pwd 1560ac_abs_builddir=$ac_pwd$ac_dir_suffix 1561# for backward compatibility: 1562ac_top_builddir=$ac_top_build_prefix 1563 1564case $srcdir in 1565 .) # We are building in place. 1566 ac_srcdir=. 1567 ac_top_srcdir=$ac_top_builddir_sub 1568 ac_abs_top_srcdir=$ac_pwd ;; 1569 [\\/]* | ?:[\\/]* ) # Absolute name. 1570 ac_srcdir=$srcdir$ac_dir_suffix; 1571 ac_top_srcdir=$srcdir 1572 ac_abs_top_srcdir=$srcdir ;; 1573 *) # Relative name. 1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1575 ac_top_srcdir=$ac_top_build_prefix$srcdir 1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1577esac 1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1579 1580 cd "$ac_dir" || { ac_status=$?; continue; } 1581 # Check for guested configure. 1582 if test -f "$ac_srcdir/configure.gnu"; then 1583 echo && 1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1585 elif test -f "$ac_srcdir/configure"; then 1586 echo && 1587 $SHELL "$ac_srcdir/configure" --help=recursive 1588 else 1589 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1590 fi || ac_status=$? 1591 cd "$ac_pwd" || { ac_status=$?; break; } 1592 done 1593fi 1594 1595test -n "$ac_init_help" && exit $ac_status 1596if $ac_init_version; then 1597 cat <<\_ACEOF 1598MPFR configure 4.0.1 1599generated by GNU Autoconf 2.69 1600 1601Copyright (C) 2012 Free Software Foundation, Inc. 1602This configure script is free software; the Free Software Foundation 1603gives unlimited permission to copy, distribute and modify it. 1604 1605 1606Copyright 1999-2018 Free Software Foundation, Inc. 1607Contributed by the AriC and Caramba projects, INRIA. 1608 1609This file is part of the GNU MPFR Library. 1610 1611The GNU MPFR Library is free software; you can redistribute it and/or modify 1612it under the terms of the GNU Lesser General Public License as published 1613by the Free Software Foundation; either version 3 of the License, or (at 1614your option) any later version. 1615 1616The GNU MPFR Library is distributed in the hope that it will be useful, but 1617WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 1618or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 1619License for more details. 1620 1621You should have received a copy of the GNU Lesser General Public License 1622along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see 1623http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., 162451 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 1625 1626_ACEOF 1627 exit 1628fi 1629 1630## ------------------------ ## 1631## Autoconf initialization. ## 1632## ------------------------ ## 1633 1634# ac_fn_c_try_compile LINENO 1635# -------------------------- 1636# Try to compile conftest.$ac_ext, and return whether this succeeded. 1637ac_fn_c_try_compile () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 rm -f conftest.$ac_objext 1641 if { { ac_try="$ac_compile" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_compile") 2>conftest.err 1649 ac_status=$? 1650 if test -s conftest.err; then 1651 grep -v '^ *+' conftest.err >conftest.er1 1652 cat conftest.er1 >&5 1653 mv -f conftest.er1 conftest.err 1654 fi 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } && { 1657 test -z "$ac_c_werror_flag" || 1658 test ! -s conftest.err 1659 } && test -s conftest.$ac_objext; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=1 1666fi 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_compile 1671 1672# ac_fn_c_try_cpp LINENO 1673# ---------------------- 1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675ac_fn_c_try_cpp () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } > conftest.i && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_cpp 1708 1709# ac_fn_c_try_link LINENO 1710# ----------------------- 1711# Try to link conftest.$ac_ext, and return whether this succeeded. 1712ac_fn_c_try_link () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 rm -f conftest.$ac_objext conftest$ac_exeext 1716 if { { ac_try="$ac_link" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_link") 2>conftest.err 1724 ac_status=$? 1725 if test -s conftest.err; then 1726 grep -v '^ *+' conftest.err >conftest.er1 1727 cat conftest.er1 >&5 1728 mv -f conftest.er1 conftest.err 1729 fi 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } && { 1732 test -z "$ac_c_werror_flag" || 1733 test ! -s conftest.err 1734 } && test -s conftest$ac_exeext && { 1735 test "$cross_compiling" = yes || 1736 test -x conftest$ac_exeext 1737 }; then : 1738 ac_retval=0 1739else 1740 $as_echo "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=1 1744fi 1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1747 # interfere with the next link command; also delete a directory that is 1748 # left behind by Apple's compiler. We do this before executing the actions. 1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_c_try_link 1754 1755# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1756# ------------------------------------------------------- 1757# Tests whether HEADER exists and can be compiled using the include files in 1758# INCLUDES, setting the cache variable VAR accordingly. 1759ac_fn_c_check_header_compile () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1763$as_echo_n "checking for $2... " >&6; } 1764if eval \${$3+:} false; then : 1765 $as_echo_n "(cached) " >&6 1766else 1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1768/* end confdefs.h. */ 1769$4 1770#include <$2> 1771_ACEOF 1772if ac_fn_c_try_compile "$LINENO"; then : 1773 eval "$3=yes" 1774else 1775 eval "$3=no" 1776fi 1777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1778fi 1779eval ac_res=\$$3 1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1781$as_echo "$ac_res" >&6; } 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 1784} # ac_fn_c_check_header_compile 1785 1786# ac_fn_c_try_run LINENO 1787# ---------------------- 1788# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1789# that executables *can* be run. 1790ac_fn_c_try_run () 1791{ 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 if { { ac_try="$ac_link" 1794case "(($ac_try" in 1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1796 *) ac_try_echo=$ac_try;; 1797esac 1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1799$as_echo "$ac_try_echo"; } >&5 1800 (eval "$ac_link") 2>&5 1801 ac_status=$? 1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1803 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1804 { { case "(($ac_try" in 1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1806 *) ac_try_echo=$ac_try;; 1807esac 1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1809$as_echo "$ac_try_echo"; } >&5 1810 (eval "$ac_try") 2>&5 1811 ac_status=$? 1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1813 test $ac_status = 0; }; }; then : 1814 ac_retval=0 1815else 1816 $as_echo "$as_me: program exited with status $ac_status" >&5 1817 $as_echo "$as_me: failed program was:" >&5 1818sed 's/^/| /' conftest.$ac_ext >&5 1819 1820 ac_retval=$ac_status 1821fi 1822 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1824 as_fn_set_status $ac_retval 1825 1826} # ac_fn_c_try_run 1827 1828# ac_fn_c_check_func LINENO FUNC VAR 1829# ---------------------------------- 1830# Tests whether FUNC exists, setting the cache variable VAR accordingly 1831ac_fn_c_check_func () 1832{ 1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1835$as_echo_n "checking for $2... " >&6; } 1836if eval \${$3+:} false; then : 1837 $as_echo_n "(cached) " >&6 1838else 1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1840/* end confdefs.h. */ 1841/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1842 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1843#define $2 innocuous_$2 1844 1845/* System header to define __stub macros and hopefully few prototypes, 1846 which can conflict with char $2 (); below. 1847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1848 <limits.h> exists even on freestanding compilers. */ 1849 1850#ifdef __STDC__ 1851# include <limits.h> 1852#else 1853# include <assert.h> 1854#endif 1855 1856#undef $2 1857 1858/* Override any GCC internal prototype to avoid an error. 1859 Use char because int might match the return type of a GCC 1860 builtin and then its argument prototype would still apply. */ 1861#ifdef __cplusplus 1862extern "C" 1863#endif 1864char $2 (); 1865/* The GNU C library defines this for functions which it implements 1866 to always fail with ENOSYS. Some functions are actually named 1867 something starting with __ and the normal name is an alias. */ 1868#if defined __stub_$2 || defined __stub___$2 1869choke me 1870#endif 1871 1872int 1873main (void) 1874{ 1875return $2 (); 1876 ; 1877 return 0; 1878} 1879_ACEOF 1880if ac_fn_c_try_link "$LINENO"; then : 1881 eval "$3=yes" 1882else 1883 eval "$3=no" 1884fi 1885rm -f core conftest.err conftest.$ac_objext \ 1886 conftest$ac_exeext conftest.$ac_ext 1887fi 1888eval ac_res=\$$3 1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1890$as_echo "$ac_res" >&6; } 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1892 1893} # ac_fn_c_check_func 1894 1895# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1896# -------------------------------------------- 1897# Tries to find the compile-time value of EXPR in a program that includes 1898# INCLUDES, setting VAR accordingly. Returns whether the value could be 1899# computed 1900ac_fn_c_compute_int () 1901{ 1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1903 if test "$cross_compiling" = yes; then 1904 # Depending upon the size, compute the lo and hi bounds. 1905cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1906/* end confdefs.h. */ 1907$4 1908int 1909main (void) 1910{ 1911static int test_array [1 - 2 * !(($2) >= 0)]; 1912test_array [0] = 0; 1913return test_array [0]; 1914 1915 ; 1916 return 0; 1917} 1918_ACEOF 1919if ac_fn_c_try_compile "$LINENO"; then : 1920 ac_lo=0 ac_mid=0 1921 while :; do 1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1923/* end confdefs.h. */ 1924$4 1925int 1926main (void) 1927{ 1928static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1929test_array [0] = 0; 1930return test_array [0]; 1931 1932 ; 1933 return 0; 1934} 1935_ACEOF 1936if ac_fn_c_try_compile "$LINENO"; then : 1937 ac_hi=$ac_mid; break 1938else 1939 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1940 if test $ac_lo -le $ac_mid; then 1941 ac_lo= ac_hi= 1942 break 1943 fi 1944 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1945fi 1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1947 done 1948else 1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1950/* end confdefs.h. */ 1951$4 1952int 1953main (void) 1954{ 1955static int test_array [1 - 2 * !(($2) < 0)]; 1956test_array [0] = 0; 1957return test_array [0]; 1958 1959 ; 1960 return 0; 1961} 1962_ACEOF 1963if ac_fn_c_try_compile "$LINENO"; then : 1964 ac_hi=-1 ac_mid=-1 1965 while :; do 1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1967/* end confdefs.h. */ 1968$4 1969int 1970main (void) 1971{ 1972static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1973test_array [0] = 0; 1974return test_array [0]; 1975 1976 ; 1977 return 0; 1978} 1979_ACEOF 1980if ac_fn_c_try_compile "$LINENO"; then : 1981 ac_lo=$ac_mid; break 1982else 1983 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1984 if test $ac_mid -le $ac_hi; then 1985 ac_lo= ac_hi= 1986 break 1987 fi 1988 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1989fi 1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1991 done 1992else 1993 ac_lo= ac_hi= 1994fi 1995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1996fi 1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1998# Binary search between lo and hi bounds. 1999while test "x$ac_lo" != "x$ac_hi"; do 2000 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002/* end confdefs.h. */ 2003$4 2004int 2005main (void) 2006{ 2007static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2008test_array [0] = 0; 2009return test_array [0]; 2010 2011 ; 2012 return 0; 2013} 2014_ACEOF 2015if ac_fn_c_try_compile "$LINENO"; then : 2016 ac_hi=$ac_mid 2017else 2018 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2019fi 2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2021done 2022case $ac_lo in #(( 2023?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2024'') ac_retval=1 ;; 2025esac 2026 else 2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2028/* end confdefs.h. */ 2029$4 2030static long int longval () { return $2; } 2031static unsigned long int ulongval () { return $2; } 2032#include <stdio.h> 2033#include <stdlib.h> 2034int 2035main (void) 2036{ 2037 2038 FILE *f = fopen ("conftest.val", "w"); 2039 if (! f) 2040 return 1; 2041 if (($2) < 0) 2042 { 2043 long int i = longval (); 2044 if (i != ($2)) 2045 return 1; 2046 fprintf (f, "%ld", i); 2047 } 2048 else 2049 { 2050 unsigned long int i = ulongval (); 2051 if (i != ($2)) 2052 return 1; 2053 fprintf (f, "%lu", i); 2054 } 2055 /* Do not output a trailing newline, as this causes \r\n confusion 2056 on some platforms. */ 2057 return ferror (f) || fclose (f) != 0; 2058 2059 ; 2060 return 0; 2061} 2062_ACEOF 2063if ac_fn_c_try_run "$LINENO"; then : 2064 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2065else 2066 ac_retval=1 2067fi 2068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2069 conftest.$ac_objext conftest.beam conftest.$ac_ext 2070rm -f conftest.val 2071 2072 fi 2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2074 as_fn_set_status $ac_retval 2075 2076} # ac_fn_c_compute_int 2077 2078# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2079# ------------------------------------------------------- 2080# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2081# the include files in INCLUDES and setting the cache variable VAR 2082# accordingly. 2083ac_fn_c_check_header_mongrel () 2084{ 2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2086 if eval \${$3+:} false; then : 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2088$as_echo_n "checking for $2... " >&6; } 2089if eval \${$3+:} false; then : 2090 $as_echo_n "(cached) " >&6 2091fi 2092eval ac_res=\$$3 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2094$as_echo "$ac_res" >&6; } 2095else 2096 # Is the header compilable? 2097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2098$as_echo_n "checking $2 usability... " >&6; } 2099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2100/* end confdefs.h. */ 2101$4 2102#include <$2> 2103_ACEOF 2104if ac_fn_c_try_compile "$LINENO"; then : 2105 ac_header_compiler=yes 2106else 2107 ac_header_compiler=no 2108fi 2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2111$as_echo "$ac_header_compiler" >&6; } 2112 2113# Is the header present? 2114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2115$as_echo_n "checking $2 presence... " >&6; } 2116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2117/* end confdefs.h. */ 2118#include <$2> 2119_ACEOF 2120if ac_fn_c_try_cpp "$LINENO"; then : 2121 ac_header_preproc=yes 2122else 2123 ac_header_preproc=no 2124fi 2125rm -f conftest.err conftest.i conftest.$ac_ext 2126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2127$as_echo "$ac_header_preproc" >&6; } 2128 2129# So? What about this header? 2130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2131 yes:no: ) 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2133$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2135$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2136 ;; 2137 no:yes:* ) 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2139$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2141$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2143$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2145$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2147$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2148 ;; 2149esac 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2151$as_echo_n "checking for $2... " >&6; } 2152if eval \${$3+:} false; then : 2153 $as_echo_n "(cached) " >&6 2154else 2155 eval "$3=\$ac_header_compiler" 2156fi 2157eval ac_res=\$$3 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2159$as_echo "$ac_res" >&6; } 2160fi 2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2162 2163} # ac_fn_c_check_header_mongrel 2164 2165# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2166# ---------------------------------------------------- 2167# Tries to find if the field MEMBER exists in type AGGR, after including 2168# INCLUDES, setting cache variable VAR accordingly. 2169ac_fn_c_check_member () 2170{ 2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2173$as_echo_n "checking for $2.$3... " >&6; } 2174if eval \${$4+:} false; then : 2175 $as_echo_n "(cached) " >&6 2176else 2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2178/* end confdefs.h. */ 2179$5 2180int 2181main (void) 2182{ 2183static $2 ac_aggr; 2184if (ac_aggr.$3) 2185return 0; 2186 ; 2187 return 0; 2188} 2189_ACEOF 2190if ac_fn_c_try_compile "$LINENO"; then : 2191 eval "$4=yes" 2192else 2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2194/* end confdefs.h. */ 2195$5 2196int 2197main (void) 2198{ 2199static $2 ac_aggr; 2200if (sizeof ac_aggr.$3) 2201return 0; 2202 ; 2203 return 0; 2204} 2205_ACEOF 2206if ac_fn_c_try_compile "$LINENO"; then : 2207 eval "$4=yes" 2208else 2209 eval "$4=no" 2210fi 2211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2212fi 2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2214fi 2215eval ac_res=\$$4 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2217$as_echo "$ac_res" >&6; } 2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2219 2220} # ac_fn_c_check_member 2221 2222# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2223# ------------------------------------------- 2224# Tests whether TYPE exists after having included INCLUDES, setting cache 2225# variable VAR accordingly. 2226ac_fn_c_check_type () 2227{ 2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2230$as_echo_n "checking for $2... " >&6; } 2231if eval \${$3+:} false; then : 2232 $as_echo_n "(cached) " >&6 2233else 2234 eval "$3=no" 2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237$4 2238int 2239main (void) 2240{ 2241if (sizeof ($2)) 2242 return 0; 2243 ; 2244 return 0; 2245} 2246_ACEOF 2247if ac_fn_c_try_compile "$LINENO"; then : 2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2249/* end confdefs.h. */ 2250$4 2251int 2252main (void) 2253{ 2254if (sizeof (($2))) 2255 return 0; 2256 ; 2257 return 0; 2258} 2259_ACEOF 2260if ac_fn_c_try_compile "$LINENO"; then : 2261 2262else 2263 eval "$3=yes" 2264fi 2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2266fi 2267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2268fi 2269eval ac_res=\$$3 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2271$as_echo "$ac_res" >&6; } 2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2273 2274} # ac_fn_c_check_type 2275cat >config.log <<_ACEOF 2276This file contains any messages produced by compilers while 2277running configure, to aid debugging if configure makes a mistake. 2278 2279It was created by MPFR $as_me 4.0.1, which was 2280generated by GNU Autoconf 2.69. Invocation command line was 2281 2282 $ $0 $@ 2283 2284_ACEOF 2285exec 5>>config.log 2286{ 2287cat <<_ASUNAME 2288## --------- ## 2289## Platform. ## 2290## --------- ## 2291 2292hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2293uname -m = `(uname -m) 2>/dev/null || echo unknown` 2294uname -r = `(uname -r) 2>/dev/null || echo unknown` 2295uname -s = `(uname -s) 2>/dev/null || echo unknown` 2296uname -v = `(uname -v) 2>/dev/null || echo unknown` 2297 2298/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2299/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2300 2301/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2302/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2303/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2304/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2305/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2306/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2307/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2308 2309_ASUNAME 2310 2311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2312for as_dir in $PATH 2313do 2314 IFS=$as_save_IFS 2315 test -z "$as_dir" && as_dir=. 2316 $as_echo "PATH: $as_dir" 2317 done 2318IFS=$as_save_IFS 2319 2320} >&5 2321 2322cat >&5 <<_ACEOF 2323 2324 2325## ----------- ## 2326## Core tests. ## 2327## ----------- ## 2328 2329_ACEOF 2330 2331 2332# Keep a trace of the command line. 2333# Strip out --no-create and --no-recursion so they do not pile up. 2334# Strip out --silent because we don't want to record it for future runs. 2335# Also quote any args containing shell meta-characters. 2336# Make two passes to allow for proper duplicate-argument suppression. 2337ac_configure_args= 2338ac_configure_args0= 2339ac_configure_args1= 2340ac_must_keep_next=false 2341for ac_pass in 1 2 2342do 2343 for ac_arg 2344 do 2345 case $ac_arg in 2346 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2348 | -silent | --silent | --silen | --sile | --sil) 2349 continue ;; 2350 *\'*) 2351 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2352 esac 2353 case $ac_pass in 2354 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2355 2) 2356 as_fn_append ac_configure_args1 " '$ac_arg'" 2357 if test $ac_must_keep_next = true; then 2358 ac_must_keep_next=false # Got value, back to normal. 2359 else 2360 case $ac_arg in 2361 *=* | --config-cache | -C | -disable-* | --disable-* \ 2362 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2363 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2364 | -with-* | --with-* | -without-* | --without-* | --x) 2365 case "$ac_configure_args0 " in 2366 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2367 esac 2368 ;; 2369 -* ) ac_must_keep_next=true ;; 2370 esac 2371 fi 2372 as_fn_append ac_configure_args " '$ac_arg'" 2373 ;; 2374 esac 2375 done 2376done 2377{ ac_configure_args0=; unset ac_configure_args0;} 2378{ ac_configure_args1=; unset ac_configure_args1;} 2379 2380# When interrupted or exit'd, cleanup temporary files, and complete 2381# config.log. We remove comments because anyway the quotes in there 2382# would cause problems or look ugly. 2383# WARNING: Use '\'' to represent an apostrophe within the trap. 2384# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2385trap 'exit_status=$? 2386 # Save into config.log some information that might help in debugging. 2387 { 2388 echo 2389 2390 $as_echo "## ---------------- ## 2391## Cache variables. ## 2392## ---------------- ##" 2393 echo 2394 # The following way of writing the cache mishandles newlines in values, 2395( 2396 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2397 eval ac_val=\$$ac_var 2398 case $ac_val in #( 2399 *${as_nl}*) 2400 case $ac_var in #( 2401 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2402$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2403 esac 2404 case $ac_var in #( 2405 _ | IFS | as_nl) ;; #( 2406 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2407 *) { eval $ac_var=; unset $ac_var;} ;; 2408 esac ;; 2409 esac 2410 done 2411 (set) 2>&1 | 2412 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2413 *${as_nl}ac_space=\ *) 2414 sed -n \ 2415 "s/'\''/'\''\\\\'\'''\''/g; 2416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2417 ;; #( 2418 *) 2419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2420 ;; 2421 esac | 2422 sort 2423) 2424 echo 2425 2426 $as_echo "## ----------------- ## 2427## Output variables. ## 2428## ----------------- ##" 2429 echo 2430 for ac_var in $ac_subst_vars 2431 do 2432 eval ac_val=\$$ac_var 2433 case $ac_val in 2434 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2435 esac 2436 $as_echo "$ac_var='\''$ac_val'\''" 2437 done | sort 2438 echo 2439 2440 if test -n "$ac_subst_files"; then 2441 $as_echo "## ------------------- ## 2442## File substitutions. ## 2443## ------------------- ##" 2444 echo 2445 for ac_var in $ac_subst_files 2446 do 2447 eval ac_val=\$$ac_var 2448 case $ac_val in 2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2450 esac 2451 $as_echo "$ac_var='\''$ac_val'\''" 2452 done | sort 2453 echo 2454 fi 2455 2456 if test -s confdefs.h; then 2457 $as_echo "## ----------- ## 2458## confdefs.h. ## 2459## ----------- ##" 2460 echo 2461 cat confdefs.h 2462 echo 2463 fi 2464 test "$ac_signal" != 0 && 2465 $as_echo "$as_me: caught signal $ac_signal" 2466 $as_echo "$as_me: exit $exit_status" 2467 } >&5 2468 rm -f core *.core core.conftest.* && 2469 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2470 exit $exit_status 2471' 0 2472for ac_signal in 1 2 13 15; do 2473 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2474done 2475ac_signal=0 2476 2477# confdefs.h avoids OS command line length limits that DEFS can exceed. 2478rm -f -r conftest* confdefs.h 2479 2480$as_echo "/* confdefs.h */" > confdefs.h 2481 2482# Predefined preprocessor variables. 2483 2484cat >>confdefs.h <<_ACEOF 2485#define PACKAGE_NAME "$PACKAGE_NAME" 2486_ACEOF 2487 2488cat >>confdefs.h <<_ACEOF 2489#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2490_ACEOF 2491 2492cat >>confdefs.h <<_ACEOF 2493#define PACKAGE_VERSION "$PACKAGE_VERSION" 2494_ACEOF 2495 2496cat >>confdefs.h <<_ACEOF 2497#define PACKAGE_STRING "$PACKAGE_STRING" 2498_ACEOF 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2502_ACEOF 2503 2504cat >>confdefs.h <<_ACEOF 2505#define PACKAGE_URL "$PACKAGE_URL" 2506_ACEOF 2507 2508 2509# Let the site file select an alternate cache file if it wants to. 2510# Prefer an explicitly selected file to automatically selected ones. 2511ac_site_file1=NONE 2512ac_site_file2=NONE 2513if test -n "$CONFIG_SITE"; then 2514 # We do not want a PATH search for config.site. 2515 case $CONFIG_SITE in #(( 2516 -*) ac_site_file1=./$CONFIG_SITE;; 2517 */*) ac_site_file1=$CONFIG_SITE;; 2518 *) ac_site_file1=./$CONFIG_SITE;; 2519 esac 2520elif test "x$prefix" != xNONE; then 2521 ac_site_file1=$prefix/share/config.site 2522 ac_site_file2=$prefix/etc/config.site 2523else 2524 ac_site_file1=$ac_default_prefix/share/config.site 2525 ac_site_file2=$ac_default_prefix/etc/config.site 2526fi 2527for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2528do 2529 test "x$ac_site_file" = xNONE && continue 2530 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2532$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2533 sed 's/^/| /' "$ac_site_file" >&5 2534 . "$ac_site_file" \ 2535 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2537as_fn_error $? "failed to load site script $ac_site_file 2538See \`config.log' for more details" "$LINENO" 5; } 2539 fi 2540done 2541 2542if test -r "$cache_file"; then 2543 # Some versions of bash will fail to source /dev/null (special files 2544 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2545 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2547$as_echo "$as_me: loading cache $cache_file" >&6;} 2548 case $cache_file in 2549 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2550 *) . "./$cache_file";; 2551 esac 2552 fi 2553else 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2555$as_echo "$as_me: creating cache $cache_file" >&6;} 2556 >$cache_file 2557fi 2558 2559# Check that the precious variables saved in the cache have kept the same 2560# value. 2561ac_cache_corrupted=false 2562for ac_var in $ac_precious_vars; do 2563 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2564 eval ac_new_set=\$ac_env_${ac_var}_set 2565 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2566 eval ac_new_val=\$ac_env_${ac_var}_value 2567 case $ac_old_set,$ac_new_set in 2568 set,) 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2570$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2571 ac_cache_corrupted=: ;; 2572 ,set) 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2574$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2575 ac_cache_corrupted=: ;; 2576 ,);; 2577 *) 2578 if test "x$ac_old_val" != "x$ac_new_val"; then 2579 # differences in whitespace do not lead to failure. 2580 ac_old_val_w=`echo x $ac_old_val` 2581 ac_new_val_w=`echo x $ac_new_val` 2582 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2584$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2585 ac_cache_corrupted=: 2586 else 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2588$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2589 eval $ac_var=\$ac_old_val 2590 fi 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2592$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2594$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2595 fi;; 2596 esac 2597 # Pass precious variables to config.status. 2598 if test "$ac_new_set" = set; then 2599 case $ac_new_val in 2600 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2601 *) ac_arg=$ac_var=$ac_new_val ;; 2602 esac 2603 case " $ac_configure_args " in 2604 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2605 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2606 esac 2607 fi 2608done 2609if $ac_cache_corrupted; then 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2613$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2614 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2615fi 2616## -------------------- ## 2617## Main body of script. ## 2618## -------------------- ## 2619 2620ac_ext=c 2621ac_cpp='$CPP $CPPFLAGS' 2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2624ac_compiler_gnu=$ac_cv_c_compiler_gnu 2625 2626 2627 2628am__api_version='1.15' 2629 2630ac_aux_dir= 2631for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2632 if test -f "$ac_dir/install-sh"; then 2633 ac_aux_dir=$ac_dir 2634 ac_install_sh="$ac_aux_dir/install-sh -c" 2635 break 2636 elif test -f "$ac_dir/install.sh"; then 2637 ac_aux_dir=$ac_dir 2638 ac_install_sh="$ac_aux_dir/install.sh -c" 2639 break 2640 elif test -f "$ac_dir/shtool"; then 2641 ac_aux_dir=$ac_dir 2642 ac_install_sh="$ac_aux_dir/shtool install -c" 2643 break 2644 fi 2645done 2646if test -z "$ac_aux_dir"; then 2647 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2648fi 2649 2650# These three variables are undocumented and unsupported, 2651# and are intended to be withdrawn in a future Autoconf release. 2652# They can cause serious problems if a builder's source tree is in a directory 2653# whose full name contains unusual characters. 2654ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2655ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2656ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2657 2658 2659# Find a good install program. We prefer a C program (faster), 2660# so one script is as good as another. But avoid the broken or 2661# incompatible versions: 2662# SysV /etc/install, /usr/sbin/install 2663# SunOS /usr/etc/install 2664# IRIX /sbin/install 2665# AIX /bin/install 2666# AmigaOS /C/install, which installs bootblocks on floppy discs 2667# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2668# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2669# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2670# OS/2's system install, which has a completely different semantic 2671# ./install, which can be erroneously created by make from ./install.sh. 2672# Reject install programs that cannot install multiple files. 2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2674$as_echo_n "checking for a BSD-compatible install... " >&6; } 2675if test -z "$INSTALL"; then 2676if ${ac_cv_path_install+:} false; then : 2677 $as_echo_n "(cached) " >&6 2678else 2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2680for as_dir in $PATH 2681do 2682 IFS=$as_save_IFS 2683 test -z "$as_dir" && as_dir=. 2684 # Account for people who put trailing slashes in PATH elements. 2685case $as_dir/ in #(( 2686 ./ | .// | /[cC]/* | \ 2687 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2688 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2689 /usr/ucb/* ) ;; 2690 *) 2691 # OSF1 and SCO ODT 3.0 have their own names for install. 2692 # Don't use installbsd from OSF since it installs stuff as root 2693 # by default. 2694 for ac_prog in ginstall scoinst install; do 2695 for ac_exec_ext in '' $ac_executable_extensions; do 2696 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2697 if test $ac_prog = install && 2698 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2699 # AIX install. It has an incompatible calling convention. 2700 : 2701 elif test $ac_prog = install && 2702 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2703 # program-specific install script used by HP pwplus--don't use. 2704 : 2705 else 2706 rm -rf conftest.one conftest.two conftest.dir 2707 echo one > conftest.one 2708 echo two > conftest.two 2709 mkdir conftest.dir 2710 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2711 test -s conftest.one && test -s conftest.two && 2712 test -s conftest.dir/conftest.one && 2713 test -s conftest.dir/conftest.two 2714 then 2715 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2716 break 3 2717 fi 2718 fi 2719 fi 2720 done 2721 done 2722 ;; 2723esac 2724 2725 done 2726IFS=$as_save_IFS 2727 2728rm -rf conftest.one conftest.two conftest.dir 2729 2730fi 2731 if test "${ac_cv_path_install+set}" = set; then 2732 INSTALL=$ac_cv_path_install 2733 else 2734 # As a last resort, use the slow shell script. Don't cache a 2735 # value for INSTALL within a source directory, because that will 2736 # break other packages using the cache if that directory is 2737 # removed, or if the value is a relative name. 2738 INSTALL=$ac_install_sh 2739 fi 2740fi 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2742$as_echo "$INSTALL" >&6; } 2743 2744# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2745# It thinks the first close brace ends the variable substitution. 2746test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2747 2748test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2749 2750test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2751 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2753$as_echo_n "checking whether build environment is sane... " >&6; } 2754# Reject unsafe characters in $srcdir or the absolute working directory 2755# name. Accept space and tab only in the latter. 2756am_lf=' 2757' 2758case `pwd` in 2759 *[\\\"\#\$\&\'\`$am_lf]*) 2760 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2761esac 2762case $srcdir in 2763 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2764 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2765esac 2766 2767# Do 'set' in a subshell so we don't clobber the current shell's 2768# arguments. Must try -L first in case configure is actually a 2769# symlink; some systems play weird games with the mod time of symlinks 2770# (eg FreeBSD returns the mod time of the symlink's containing 2771# directory). 2772if ( 2773 am_has_slept=no 2774 for am_try in 1 2; do 2775 echo "timestamp, slept: $am_has_slept" > conftest.file 2776 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2777 if test "$*" = "X"; then 2778 # -L didn't work. 2779 set X `ls -t "$srcdir/configure" conftest.file` 2780 fi 2781 if test "$*" != "X $srcdir/configure conftest.file" \ 2782 && test "$*" != "X conftest.file $srcdir/configure"; then 2783 2784 # If neither matched, then we have a broken ls. This can happen 2785 # if, for instance, CONFIG_SHELL is bash and it inherits a 2786 # broken ls alias from the environment. This has actually 2787 # happened. Such a system could not be considered "sane". 2788 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2789 alias in your environment" "$LINENO" 5 2790 fi 2791 if test "$2" = conftest.file || test $am_try -eq 2; then 2792 break 2793 fi 2794 # Just in case. 2795 sleep 1 2796 am_has_slept=yes 2797 done 2798 test "$2" = conftest.file 2799 ) 2800then 2801 # Ok. 2802 : 2803else 2804 as_fn_error $? "newly created file is older than distributed files! 2805Check your system clock" "$LINENO" 5 2806fi 2807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2808$as_echo "yes" >&6; } 2809# If we didn't sleep, we still need to ensure time stamps of config.status and 2810# generated files are strictly newer. 2811am_sleep_pid= 2812if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2813 ( sleep 1 ) & 2814 am_sleep_pid=$! 2815fi 2816 2817rm -f conftest.file 2818 2819test "$program_prefix" != NONE && 2820 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2821# Use a double $ so make ignores it. 2822test "$program_suffix" != NONE && 2823 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2824# Double any \ or $. 2825# By default was `s,x,x', remove it if useless. 2826ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2827program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2828 2829# Expand $ac_aux_dir to an absolute path. 2830am_aux_dir=`cd "$ac_aux_dir" && pwd` 2831 2832if test x"${MISSING+set}" != xset; then 2833 case $am_aux_dir in 2834 *\ * | *\ *) 2835 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2836 *) 2837 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2838 esac 2839fi 2840# Use eval to expand $SHELL 2841if eval "$MISSING --is-lightweight"; then 2842 am_missing_run="$MISSING " 2843else 2844 am_missing_run= 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2846$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2847fi 2848 2849if test x"${install_sh+set}" != xset; then 2850 case $am_aux_dir in 2851 *\ * | *\ *) 2852 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2853 *) 2854 install_sh="\${SHELL} $am_aux_dir/install-sh" 2855 esac 2856fi 2857 2858# Installed binaries are usually stripped using 'strip' when the user 2859# run "make install-strip". However 'strip' might not be the right 2860# tool to use in cross-compilation environments, therefore Automake 2861# will honor the 'STRIP' environment variable to overrule this program. 2862if test "$cross_compiling" != no; then 2863 if test -n "$ac_tool_prefix"; then 2864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2865set dummy ${ac_tool_prefix}strip; ac_word=$2 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2867$as_echo_n "checking for $ac_word... " >&6; } 2868if ${ac_cv_prog_STRIP+:} false; then : 2869 $as_echo_n "(cached) " >&6 2870else 2871 if test -n "$STRIP"; then 2872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2873else 2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2875for as_dir in $PATH 2876do 2877 IFS=$as_save_IFS 2878 test -z "$as_dir" && as_dir=. 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2881 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886 done 2887IFS=$as_save_IFS 2888 2889fi 2890fi 2891STRIP=$ac_cv_prog_STRIP 2892if test -n "$STRIP"; then 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2894$as_echo "$STRIP" >&6; } 2895else 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2897$as_echo "no" >&6; } 2898fi 2899 2900 2901fi 2902if test -z "$ac_cv_prog_STRIP"; then 2903 ac_ct_STRIP=$STRIP 2904 # Extract the first word of "strip", so it can be a program name with args. 2905set dummy strip; ac_word=$2 2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2907$as_echo_n "checking for $ac_word... " >&6; } 2908if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2909 $as_echo_n "(cached) " >&6 2910else 2911 if test -n "$ac_ct_STRIP"; then 2912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2913else 2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2915for as_dir in $PATH 2916do 2917 IFS=$as_save_IFS 2918 test -z "$as_dir" && as_dir=. 2919 for ac_exec_ext in '' $ac_executable_extensions; do 2920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2921 ac_cv_prog_ac_ct_STRIP="strip" 2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2923 break 2 2924 fi 2925done 2926 done 2927IFS=$as_save_IFS 2928 2929fi 2930fi 2931ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2932if test -n "$ac_ct_STRIP"; then 2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2934$as_echo "$ac_ct_STRIP" >&6; } 2935else 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2937$as_echo "no" >&6; } 2938fi 2939 2940 if test "x$ac_ct_STRIP" = x; then 2941 STRIP=":" 2942 else 2943 case $cross_compiling:$ac_tool_warned in 2944yes:) 2945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2947ac_tool_warned=yes ;; 2948esac 2949 STRIP=$ac_ct_STRIP 2950 fi 2951else 2952 STRIP="$ac_cv_prog_STRIP" 2953fi 2954 2955fi 2956INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2957 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2959$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2960if test -z "$MKDIR_P"; then 2961 if ${ac_cv_path_mkdir+:} false; then : 2962 $as_echo_n "(cached) " >&6 2963else 2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2965for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2966do 2967 IFS=$as_save_IFS 2968 test -z "$as_dir" && as_dir=. 2969 for ac_prog in mkdir gmkdir; do 2970 for ac_exec_ext in '' $ac_executable_extensions; do 2971 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2972 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2973 'mkdir (GNU coreutils) '* | \ 2974 'mkdir (coreutils) '* | \ 2975 'mkdir (fileutils) '4.1*) 2976 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2977 break 3;; 2978 esac 2979 done 2980 done 2981 done 2982IFS=$as_save_IFS 2983 2984fi 2985 2986 test -d ./--version && rmdir ./--version 2987 if test "${ac_cv_path_mkdir+set}" = set; then 2988 MKDIR_P="$ac_cv_path_mkdir -p" 2989 else 2990 # As a last resort, use the slow shell script. Don't cache a 2991 # value for MKDIR_P within a source directory, because that will 2992 # break other packages using the cache if that directory is 2993 # removed, or if the value is a relative name. 2994 MKDIR_P="$ac_install_sh -d" 2995 fi 2996fi 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2998$as_echo "$MKDIR_P" >&6; } 2999 3000for ac_prog in gawk mawk nawk awk 3001do 3002 # Extract the first word of "$ac_prog", so it can be a program name with args. 3003set dummy $ac_prog; ac_word=$2 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3005$as_echo_n "checking for $ac_word... " >&6; } 3006if ${ac_cv_prog_AWK+:} false; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 if test -n "$AWK"; then 3010 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3011else 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013for as_dir in $PATH 3014do 3015 IFS=$as_save_IFS 3016 test -z "$as_dir" && as_dir=. 3017 for ac_exec_ext in '' $ac_executable_extensions; do 3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3019 ac_cv_prog_AWK="$ac_prog" 3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3021 break 2 3022 fi 3023done 3024 done 3025IFS=$as_save_IFS 3026 3027fi 3028fi 3029AWK=$ac_cv_prog_AWK 3030if test -n "$AWK"; then 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3032$as_echo "$AWK" >&6; } 3033else 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3035$as_echo "no" >&6; } 3036fi 3037 3038 3039 test -n "$AWK" && break 3040done 3041 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3043$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3044set x ${MAKE-make} 3045ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3046if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3047 $as_echo_n "(cached) " >&6 3048else 3049 cat >conftest.make <<\_ACEOF 3050SHELL = /bin/sh 3051all: 3052 @echo '@@@%%%=$(MAKE)=@@@%%%' 3053_ACEOF 3054# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3055case `${MAKE-make} -f conftest.make 2>/dev/null` in 3056 *@@@%%%=?*=@@@%%%*) 3057 eval ac_cv_prog_make_${ac_make}_set=yes;; 3058 *) 3059 eval ac_cv_prog_make_${ac_make}_set=no;; 3060esac 3061rm -f conftest.make 3062fi 3063if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3065$as_echo "yes" >&6; } 3066 SET_MAKE= 3067else 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3069$as_echo "no" >&6; } 3070 SET_MAKE="MAKE=${MAKE-make}" 3071fi 3072 3073rm -rf .tst 2>/dev/null 3074mkdir .tst 2>/dev/null 3075if test -d .tst; then 3076 am__leading_dot=. 3077else 3078 am__leading_dot=_ 3079fi 3080rmdir .tst 2>/dev/null 3081 3082# Check whether --enable-silent-rules was given. 3083if test "${enable_silent_rules+set}" = set; then : 3084 enableval=$enable_silent_rules; 3085fi 3086 3087case $enable_silent_rules in # ((( 3088 yes) AM_DEFAULT_VERBOSITY=0;; 3089 no) AM_DEFAULT_VERBOSITY=1;; 3090 *) AM_DEFAULT_VERBOSITY=1;; 3091esac 3092am_make=${MAKE-make} 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3094$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3095if ${am_cv_make_support_nested_variables+:} false; then : 3096 $as_echo_n "(cached) " >&6 3097else 3098 if $as_echo 'TRUE=$(BAR$(V)) 3099BAR0=false 3100BAR1=true 3101V=1 3102am__doit: 3103 @$(TRUE) 3104.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3105 am_cv_make_support_nested_variables=yes 3106else 3107 am_cv_make_support_nested_variables=no 3108fi 3109fi 3110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3111$as_echo "$am_cv_make_support_nested_variables" >&6; } 3112if test $am_cv_make_support_nested_variables = yes; then 3113 AM_V='$(V)' 3114 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3115else 3116 AM_V=$AM_DEFAULT_VERBOSITY 3117 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3118fi 3119AM_BACKSLASH='\' 3120 3121if test "`cd $srcdir && pwd`" != "`pwd`"; then 3122 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3123 # is not polluted with repeated "-I." 3124 am__isrc=' -I$(srcdir)' 3125 # test to see if srcdir already configured 3126 if test -f $srcdir/config.status; then 3127 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3128 fi 3129fi 3130 3131# test whether we have cygpath 3132if test -z "$CYGPATH_W"; then 3133 if (cygpath --version) >/dev/null 2>/dev/null; then 3134 CYGPATH_W='cygpath -w' 3135 else 3136 CYGPATH_W=echo 3137 fi 3138fi 3139 3140 3141# Define the identity of the package. 3142 PACKAGE='mpfr' 3143 VERSION='4.0.1' 3144 3145 3146# Some tools Automake needs. 3147 3148ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3149 3150 3151AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3152 3153 3154AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3155 3156 3157AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3158 3159 3160MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3161 3162# For better backward compatibility. To be removed once Automake 1.9.x 3163# dies out for good. For more background, see: 3164# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3165# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3166mkdir_p='$(MKDIR_P)' 3167 3168# We need awk for the "check" target (and possibly the TAP driver). The 3169# system "awk" is bad on some platforms. 3170# Always define AMTAR for backward compatibility. Yes, it's still used 3171# in the wild :-( We should find a proper way to deprecate it ... 3172AMTAR='$${TAR-tar}' 3173 3174 3175# We'll loop over all known methods to create a tar archive until one works. 3176_am_tools='gnutar pax cpio none' 3177 3178am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3179 3180 3181 3182 3183 3184 3185# POSIX will say in a future version that running "rm -f" with no argument 3186# is OK; and we want to be able to make that assumption in our Makefile 3187# recipes. So use an aggressive probe to check that the usage we want is 3188# actually supported "in the wild" to an acceptable degree. 3189# See automake bug#10828. 3190# To make any issue more visible, cause the running configure to be aborted 3191# by default if the 'rm' program in use doesn't match our expectations; the 3192# user can still override this though. 3193if rm -f && rm -fr && rm -rf; then : OK; else 3194 cat >&2 <<'END' 3195Oops! 3196 3197Your 'rm' program seems unable to run without file operands specified 3198on the command line, even when the '-f' option is present. This is contrary 3199to the behaviour of most rm programs out there, and not conforming with 3200the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3201 3202Please tell bug-automake@gnu.org about your system, including the value 3203of your $PATH and any error possibly output before this message. This 3204can help us improve future automake versions. 3205 3206END 3207 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3208 echo 'Configuration will proceed anyway, since you have set the' >&2 3209 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3210 echo >&2 3211 else 3212 cat >&2 <<'END' 3213Aborting the configuration process, to ensure you take notice of the issue. 3214 3215You can download and install GNU coreutils to get an 'rm' implementation 3216that behaves properly: <http://www.gnu.org/software/coreutils/>. 3217 3218If you want to complete the configuration process using your problematic 3219'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3220to "yes", and re-run configure. 3221 3222END 3223 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3224 fi 3225fi 3226 3227 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3229$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3230 # Check whether --enable-maintainer-mode was given. 3231if test "${enable_maintainer_mode+set}" = set; then : 3232 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3233else 3234 USE_MAINTAINER_MODE=yes 3235fi 3236 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3238$as_echo "$USE_MAINTAINER_MODE" >&6; } 3239 if test $USE_MAINTAINER_MODE = yes; then 3240 MAINTAINER_MODE_TRUE= 3241 MAINTAINER_MODE_FALSE='#' 3242else 3243 MAINTAINER_MODE_TRUE='#' 3244 MAINTAINER_MODE_FALSE= 3245fi 3246 3247 MAINT=$MAINTAINER_MODE_TRUE 3248 3249 3250 3251 3252 3253 3254test_CFLAGS=${CFLAGS+set} 3255 3256if test -n "$CFLAGS" || test -n "$CC" ; then 3257 user_redefine_cc=yes 3258fi 3259 3260 3261# Make sure we can run config.sub. 3262$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3263 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3264 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3266$as_echo_n "checking build system type... " >&6; } 3267if ${ac_cv_build+:} false; then : 3268 $as_echo_n "(cached) " >&6 3269else 3270 ac_build_alias=$build_alias 3271test "x$ac_build_alias" = x && 3272 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3273test "x$ac_build_alias" = x && 3274 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3275ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3276 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3277 3278fi 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3280$as_echo "$ac_cv_build" >&6; } 3281case $ac_cv_build in 3282*-*-*) ;; 3283*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3284esac 3285build=$ac_cv_build 3286ac_save_IFS=$IFS; IFS='-' 3287set x $ac_cv_build 3288shift 3289build_cpu=$1 3290build_vendor=$2 3291shift; shift 3292# Remember, the first character of IFS is used to create $*, 3293# except with old shells: 3294build_os=$* 3295IFS=$ac_save_IFS 3296case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3297 3298 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3300$as_echo_n "checking host system type... " >&6; } 3301if ${ac_cv_host+:} false; then : 3302 $as_echo_n "(cached) " >&6 3303else 3304 if test "x$host_alias" = x; then 3305 ac_cv_host=$ac_cv_build 3306else 3307 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3308 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3309fi 3310 3311fi 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3313$as_echo "$ac_cv_host" >&6; } 3314case $ac_cv_host in 3315*-*-*) ;; 3316*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3317esac 3318host=$ac_cv_host 3319ac_save_IFS=$IFS; IFS='-' 3320set x $ac_cv_host 3321shift 3322host_cpu=$1 3323host_vendor=$2 3324shift; shift 3325# Remember, the first character of IFS is used to create $*, 3326# except with old shells: 3327host_os=$* 3328IFS=$ac_save_IFS 3329case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3330 3331 3332 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3334$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3335if ${ac_cv_path_GREP+:} false; then : 3336 $as_echo_n "(cached) " >&6 3337else 3338 if test -z "$GREP"; then 3339 ac_path_GREP_found=false 3340 # Loop through the user's path and test for each of PROGNAME-LIST 3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3342for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3343do 3344 IFS=$as_save_IFS 3345 test -z "$as_dir" && as_dir=. 3346 for ac_prog in grep ggrep; do 3347 for ac_exec_ext in '' $ac_executable_extensions; do 3348 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3349 as_fn_executable_p "$ac_path_GREP" || continue 3350# Check for GNU ac_path_GREP and select it if it is found. 3351 # Check for GNU $ac_path_GREP 3352case `"$ac_path_GREP" --version 2>&1` in 3353*GNU*) 3354 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3355*) 3356 ac_count=0 3357 $as_echo_n 0123456789 >"conftest.in" 3358 while : 3359 do 3360 cat "conftest.in" "conftest.in" >"conftest.tmp" 3361 mv "conftest.tmp" "conftest.in" 3362 cp "conftest.in" "conftest.nl" 3363 $as_echo 'GREP' >> "conftest.nl" 3364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3366 as_fn_arith $ac_count + 1 && ac_count=$as_val 3367 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3368 # Best one so far, save it but keep looking for a better one 3369 ac_cv_path_GREP="$ac_path_GREP" 3370 ac_path_GREP_max=$ac_count 3371 fi 3372 # 10*(2^10) chars as input seems more than enough 3373 test $ac_count -gt 10 && break 3374 done 3375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3376esac 3377 3378 $ac_path_GREP_found && break 3 3379 done 3380 done 3381 done 3382IFS=$as_save_IFS 3383 if test -z "$ac_cv_path_GREP"; then 3384 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3385 fi 3386else 3387 ac_cv_path_GREP=$GREP 3388fi 3389 3390fi 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3392$as_echo "$ac_cv_path_GREP" >&6; } 3393 GREP="$ac_cv_path_GREP" 3394 3395 3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3397$as_echo_n "checking for egrep... " >&6; } 3398if ${ac_cv_path_EGREP+:} false; then : 3399 $as_echo_n "(cached) " >&6 3400else 3401 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3402 then ac_cv_path_EGREP="$GREP -E" 3403 else 3404 if test -z "$EGREP"; then 3405 ac_path_EGREP_found=false 3406 # Loop through the user's path and test for each of PROGNAME-LIST 3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3409do 3410 IFS=$as_save_IFS 3411 test -z "$as_dir" && as_dir=. 3412 for ac_prog in egrep; do 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3415 as_fn_executable_p "$ac_path_EGREP" || continue 3416# Check for GNU ac_path_EGREP and select it if it is found. 3417 # Check for GNU $ac_path_EGREP 3418case `"$ac_path_EGREP" --version 2>&1` in 3419*GNU*) 3420 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3421*) 3422 ac_count=0 3423 $as_echo_n 0123456789 >"conftest.in" 3424 while : 3425 do 3426 cat "conftest.in" "conftest.in" >"conftest.tmp" 3427 mv "conftest.tmp" "conftest.in" 3428 cp "conftest.in" "conftest.nl" 3429 $as_echo 'EGREP' >> "conftest.nl" 3430 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3432 as_fn_arith $ac_count + 1 && ac_count=$as_val 3433 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3434 # Best one so far, save it but keep looking for a better one 3435 ac_cv_path_EGREP="$ac_path_EGREP" 3436 ac_path_EGREP_max=$ac_count 3437 fi 3438 # 10*(2^10) chars as input seems more than enough 3439 test $ac_count -gt 10 && break 3440 done 3441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3442esac 3443 3444 $ac_path_EGREP_found && break 3 3445 done 3446 done 3447 done 3448IFS=$as_save_IFS 3449 if test -z "$ac_cv_path_EGREP"; then 3450 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3451 fi 3452else 3453 ac_cv_path_EGREP=$EGREP 3454fi 3455 3456 fi 3457fi 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3459$as_echo "$ac_cv_path_EGREP" >&6; } 3460 EGREP="$ac_cv_path_EGREP" 3461 3462 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3464$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3465if ${ac_cv_path_SED+:} false; then : 3466 $as_echo_n "(cached) " >&6 3467else 3468 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3469 for ac_i in 1 2 3 4 5 6 7; do 3470 ac_script="$ac_script$as_nl$ac_script" 3471 done 3472 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3473 { ac_script=; unset ac_script;} 3474 if test -z "$SED"; then 3475 ac_path_SED_found=false 3476 # Loop through the user's path and test for each of PROGNAME-LIST 3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3478for as_dir in $PATH 3479do 3480 IFS=$as_save_IFS 3481 test -z "$as_dir" && as_dir=. 3482 for ac_prog in sed gsed; do 3483 for ac_exec_ext in '' $ac_executable_extensions; do 3484 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3485 as_fn_executable_p "$ac_path_SED" || continue 3486# Check for GNU ac_path_SED and select it if it is found. 3487 # Check for GNU $ac_path_SED 3488case `"$ac_path_SED" --version 2>&1` in 3489*GNU*) 3490 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3491*) 3492 ac_count=0 3493 $as_echo_n 0123456789 >"conftest.in" 3494 while : 3495 do 3496 cat "conftest.in" "conftest.in" >"conftest.tmp" 3497 mv "conftest.tmp" "conftest.in" 3498 cp "conftest.in" "conftest.nl" 3499 $as_echo '' >> "conftest.nl" 3500 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3502 as_fn_arith $ac_count + 1 && ac_count=$as_val 3503 if test $ac_count -gt ${ac_path_SED_max-0}; then 3504 # Best one so far, save it but keep looking for a better one 3505 ac_cv_path_SED="$ac_path_SED" 3506 ac_path_SED_max=$ac_count 3507 fi 3508 # 10*(2^10) chars as input seems more than enough 3509 test $ac_count -gt 10 && break 3510 done 3511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3512esac 3513 3514 $ac_path_SED_found && break 3 3515 done 3516 done 3517 done 3518IFS=$as_save_IFS 3519 if test -z "$ac_cv_path_SED"; then 3520 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3521 fi 3522else 3523 ac_cv_path_SED=$SED 3524fi 3525 3526fi 3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3528$as_echo "$ac_cv_path_SED" >&6; } 3529 SED="$ac_cv_path_SED" 3530 rm -f conftest.sed 3531 3532 3533 3534 3535unset gmp_lib_path GMP_CFLAGS GMP_CC 3536 3537 3538# Check whether --with-gmp_include was given. 3539if test "${with_gmp_include+set}" = set; then : 3540 withval=$with_gmp_include; 3541 if test -d "$withval" ; then 3542 local_tmp=`realpath "$withval" 2>/dev/null` 3543 if test "$local_tmp" != "" ; then 3544 if test -d "$local_tmp" ; then 3545 withval="$local_tmp" 3546 else 3547 withval="$withval" 3548 fi 3549 else 3550 case "$withval" in 3551 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 3552 *) withval="$PWD"/"$withval" ;; 3553 esac 3554 fi 3555 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 3556 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 3557 fi 3558 else 3559 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 3560 fi 3561 3562 CPPFLAGS="$CPPFLAGS -I$withval" 3563fi 3564 3565 3566 3567# Check whether --with-gmp_lib was given. 3568if test "${with_gmp_lib+set}" = set; then : 3569 withval=$with_gmp_lib; 3570 3571 if test -d "$withval" ; then 3572 local_tmp=`realpath "$withval" 2>/dev/null` 3573 if test "$local_tmp" != "" ; then 3574 if test -d "$local_tmp" ; then 3575 withval="$local_tmp" 3576 else 3577 withval="$withval" 3578 fi 3579 else 3580 case "$withval" in 3581 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 3582 *) withval="$PWD"/"$withval" ;; 3583 esac 3584 fi 3585 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 3586 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 3587 fi 3588 else 3589 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 3590 fi 3591 3592 LDFLAGS="$LDFLAGS -L$withval" 3593 gmp_lib_path="$withval" 3594 3595fi 3596 3597 3598 3599# Check whether --with-gmp was given. 3600if test "${with_gmp+set}" = set; then : 3601 withval=$with_gmp; 3602 3603 if test -d "$withval" ; then 3604 local_tmp=`realpath "$withval" 2>/dev/null` 3605 if test "$local_tmp" != "" ; then 3606 if test -d "$local_tmp" ; then 3607 withval="$local_tmp" 3608 else 3609 withval="$withval" 3610 fi 3611 else 3612 case "$withval" in 3613 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 3614 *) withval="$PWD"/"$withval" ;; 3615 esac 3616 fi 3617 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 3618 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 3619 fi 3620 else 3621 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 3622 fi 3623 3624 if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then 3625 CPPFLAGS="$CPPFLAGS -I$withval/include" 3626 LDFLAGS="$LDFLAGS -L$withval/lib" 3627 gmp_lib_path="$withval/lib" 3628 else 3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3631as_fn_error $? "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously. 3632See \`config.log' for more details" "$LINENO" 5; } 3633 fi 3634 3635fi 3636 3637 3638 3639# Check whether --with-gmp_build was given. 3640if test "${with_gmp_build+set}" = set; then : 3641 withval=$with_gmp_build; 3642 3643 if test -d "$withval" ; then 3644 local_tmp=`realpath "$withval" 2>/dev/null` 3645 if test "$local_tmp" != "" ; then 3646 if test -d "$local_tmp" ; then 3647 withval="$local_tmp" 3648 else 3649 withval="$withval" 3650 fi 3651 else 3652 case "$withval" in 3653 [\\/]* | ?:[\\/]* ) withval="$withval" ;; 3654 *) withval="$PWD"/"$withval" ;; 3655 esac 3656 fi 3657 if test `echo "$withval"|cut -d' ' -f1` != "$withval" ; then 3658 as_fn_error $? "\"$withval\" directory shall not contain any space." "$LINENO" 5 3659 fi 3660 else 3661 as_fn_error $? "\"$withval\" shall be a valid directory" "$LINENO" 5 3662 fi 3663 3664 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then 3665 CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune" 3666 LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune" 3667 gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune" 3668 if test -r $withval/Makefile ; then 3669 GMP_CFLAGS=`$SED -n 's/^CFLAGS = //p' $withval/Makefile` 3670 GMP_CC=`$SED -n 's/^CC = //p' $withval/Makefile` 3671 GMP_SOURCE=`$SED -n 's/^srcdir = *//p' $withval/Makefile` 3672 case "$GMP_SOURCE" in 3673 .) GMP_SOURCE="" ;; 3674 /*) ;; 3675 ?*) GMP_SOURCE="$withval/$GMP_SOURCE" ;; 3676 esac 3677 if test -d "$GMP_SOURCE" ; then 3678 CPPFLAGS="$CPPFLAGS -I$GMP_SOURCE -I$GMP_SOURCE/tune" 3679 fi 3680 fi 3681 use_gmp_build=yes 3682 else 3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3685as_fn_error $? "Do not use --with-gmp-build and other --with-gmp options simultaneously. 3686See \`config.log' for more details" "$LINENO" 5; } 3687 fi 3688 3689fi 3690 3691 3692 3693# Check whether --with-mulhigh_size was given. 3694if test "${with_mulhigh_size+set}" = set; then : 3695 withval=$with_mulhigh_size; 3696cat >>confdefs.h <<_ACEOF 3697#define MPFR_MULHIGH_SIZE $withval 3698_ACEOF 3699 3700fi 3701 3702 3703# Check whether --enable-gmp-internals was given. 3704if test "${enable_gmp_internals+set}" = set; then : 3705 enableval=$enable_gmp_internals; case $enableval in 3706 yes) 3707$as_echo "#define WANT_GMP_INTERNALS 1" >>confdefs.h 3708 ;; 3709 no) ;; 3710 *) as_fn_error $? "bad value for --enable-gmp-internals: yes or no" "$LINENO" 5 ;; 3711 esac 3712fi 3713 3714 3715# Check whether --enable-assert was given. 3716if test "${enable_assert+set}" = set; then : 3717 enableval=$enable_assert; case $enableval in 3718 yes) 3719$as_echo "#define MPFR_WANT_ASSERT 1" >>confdefs.h 3720 ;; 3721 none) 3722$as_echo "#define MPFR_WANT_ASSERT -1" >>confdefs.h 3723 ;; 3724 no) ;; 3725 full) 3726$as_echo "#define MPFR_WANT_ASSERT 2" >>confdefs.h 3727 ;; 3728 *) as_fn_error $? "bad value for --enable-assert: yes, no, none or full" "$LINENO" 5 ;; 3729 esac 3730fi 3731 3732 3733# Check whether --enable-logging was given. 3734if test "${enable_logging+set}" = set; then : 3735 enableval=$enable_logging; case $enableval in 3736 yes) 3737$as_echo "#define MPFR_USE_LOGGING 1" >>confdefs.h 3738 ;; 3739 no) ;; 3740 *) as_fn_error $? "bad value for --enable-logging: yes or no" "$LINENO" 5 ;; 3741 esac 3742fi 3743 3744 3745# Check whether --enable-thread-safe was given. 3746if test "${enable_thread_safe+set}" = set; then : 3747 enableval=$enable_thread_safe; case $enableval in 3748 yes) ;; 3749 no) ;; 3750 *) as_fn_error $? "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;; 3751 esac 3752fi 3753 3754 3755# Check whether --enable-shared-cache was given. 3756if test "${enable_shared_cache+set}" = set; then : 3757 enableval=$enable_shared_cache; case $enableval in 3758 yes) mpfr_want_shared_cache=yes 3759 3760$as_echo "#define WANT_SHARED_CACHE 1" >>confdefs.h 3761 ;; 3762 no) ;; 3763 *) as_fn_error $? "bad value for --enable-shared-cache: yes or no" "$LINENO" 5 ;; 3764 esac 3765fi 3766 3767 3768# Check whether --enable-warnings was given. 3769if test "${enable_warnings+set}" = set; then : 3770 enableval=$enable_warnings; case $enableval in 3771 yes) 3772$as_echo "#define MPFR_USE_WARNINGS 1" >>confdefs.h 3773 ;; 3774 no) ;; 3775 *) as_fn_error $? "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;; 3776 esac 3777fi 3778 3779 3780# Check whether --enable-tests-timeout was given. 3781if test "${enable_tests_timeout+set}" = set; then : 3782 enableval=$enable_tests_timeout; case $enableval in 3783 no) ;; 3784 yes) 3785$as_echo "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h 3786 ;; 3787 [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9]) 3788 3789cat >>confdefs.h <<_ACEOF 3790#define MPFR_TESTS_TIMEOUT $enableval 3791_ACEOF 3792 ;; 3793 *) as_fn_error $? "bad value for --enable-tests-timeout" "$LINENO" 5 ;; 3794 esac 3795fi 3796 3797 3798# Check whether --enable-tune-for-coverage was given. 3799if test "${enable_tune_for_coverage+set}" = set; then : 3800 enableval=$enable_tune_for_coverage; case $enableval in 3801 no) ;; 3802 yes) 3803$as_echo "#define MPFR_TUNE_COVERAGE 1" >>confdefs.h 3804 ;; 3805 *) as_fn_error $? "bad value for --enable-tune-for-coverage" "$LINENO" 5 ;; 3806 esac 3807fi 3808 3809 3810 3811 3812 3813 3814if test -z "$user_redefine_cc" && test "$cross_compiling" != yes ; then 3815 3816if test -z "$GMP_CC$GMP_CFLAGS" ; then 3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5 3818$as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; } 3819 GMP_CC=__GMP_CC 3820 GMP_CFLAGS=__GMP_CFLAGS 3821 # /lib/cpp under Solaris doesn't support some environment variables 3822 # used by GCC, such as C_INCLUDE_PATH. If the user has set up such 3823 # environment variables, he probably wants to use them. So, let us 3824 # prefer cpp and gcc to /lib/cpp. However, note that this won't 3825 # work if GCC has been installed with versioned names only (e.g. 3826 # with cpp-5 and gcc-5). 3827 for cpp in "cpp -P" "cpp" "gcc -P -E" "gcc -E" "/lib/cpp -P" "/lib/cpp" "cc -P -E" "cc -E" "c99 -P -E" "c99 -E" "clang -E" "cl -E" "icl -E" 3828 do 3829 # Get CC 3830 echo "#include \"gmp.h\"" > conftest.c 3831 echo "MPFR_OPTION __GMP_CC" >> conftest.c 3832 $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt 3833 test $? -ne 0 && continue 3834 GMP_CC=`$EGREP MPFR_OPTION conftest.txt | $SED -e 's/MPFR_OPTION //g;s/ *" *//g'` 3835 # Get CFLAGS 3836 echo "#include \"gmp.h\"" > conftest.c 3837 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c 3838 unset rmpedantic 3839 test "$enable_logging" = yes && rmpedantic='s/[ "]-pedantic[ "]/ /g;' 3840 $cpp $CPPFLAGS conftest.c 2> /dev/null > conftest.txt 3841 test $? -ne 0 && continue 3842 GMP_CFLAGS=`$EGREP MPFR_OPTION conftest.txt | $SED -e "$rmpedantic"'s/MPFR_OPTION //g;s/ *" *//g'` 3843 break 3844 done 3845 rm -f conftest* 3846 if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then 3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 3848$as_echo "failed" >&6; } 3849 GMP_CFLAGS= 3850 GMP_CC= 3851 else 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5 3853$as_echo "CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; } 3854 fi 3855fi 3856 3857if test -n "$GMP_CC$GMP_CFLAGS" ; then 3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5 3859$as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; } 3860 echo "int main (void) { return 0; }" > conftest.c 3861 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3863$as_echo "yes" >&6; } 3864 CFLAGS=$GMP_CFLAGS 3865 CC=$GMP_CC 3866 else 3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3868$as_echo "no" >&6; } 3869 fi 3870 rm -f conftest* 3871fi 3872 3873fi 3874 3875 3876ac_ext=c 3877ac_cpp='$CPP $CPPFLAGS' 3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3880ac_compiler_gnu=$ac_cv_c_compiler_gnu 3881if test -n "$ac_tool_prefix"; then 3882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3883set dummy ${ac_tool_prefix}gcc; ac_word=$2 3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3885$as_echo_n "checking for $ac_word... " >&6; } 3886if ${ac_cv_prog_CC+:} false; then : 3887 $as_echo_n "(cached) " >&6 3888else 3889 if test -n "$CC"; then 3890 ac_cv_prog_CC="$CC" # Let the user override the test. 3891else 3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3893for as_dir in $PATH 3894do 3895 IFS=$as_save_IFS 3896 test -z "$as_dir" && as_dir=. 3897 for ac_exec_ext in '' $ac_executable_extensions; do 3898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3899 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3901 break 2 3902 fi 3903done 3904 done 3905IFS=$as_save_IFS 3906 3907fi 3908fi 3909CC=$ac_cv_prog_CC 3910if test -n "$CC"; then 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3912$as_echo "$CC" >&6; } 3913else 3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3915$as_echo "no" >&6; } 3916fi 3917 3918 3919fi 3920if test -z "$ac_cv_prog_CC"; then 3921 ac_ct_CC=$CC 3922 # Extract the first word of "gcc", so it can be a program name with args. 3923set dummy gcc; ac_word=$2 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3925$as_echo_n "checking for $ac_word... " >&6; } 3926if ${ac_cv_prog_ac_ct_CC+:} false; then : 3927 $as_echo_n "(cached) " >&6 3928else 3929 if test -n "$ac_ct_CC"; then 3930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3931else 3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3933for as_dir in $PATH 3934do 3935 IFS=$as_save_IFS 3936 test -z "$as_dir" && as_dir=. 3937 for ac_exec_ext in '' $ac_executable_extensions; do 3938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3939 ac_cv_prog_ac_ct_CC="gcc" 3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3941 break 2 3942 fi 3943done 3944 done 3945IFS=$as_save_IFS 3946 3947fi 3948fi 3949ac_ct_CC=$ac_cv_prog_ac_ct_CC 3950if test -n "$ac_ct_CC"; then 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3952$as_echo "$ac_ct_CC" >&6; } 3953else 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3955$as_echo "no" >&6; } 3956fi 3957 3958 if test "x$ac_ct_CC" = x; then 3959 CC="" 3960 else 3961 case $cross_compiling:$ac_tool_warned in 3962yes:) 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3965ac_tool_warned=yes ;; 3966esac 3967 CC=$ac_ct_CC 3968 fi 3969else 3970 CC="$ac_cv_prog_CC" 3971fi 3972 3973if test -z "$CC"; then 3974 if test -n "$ac_tool_prefix"; then 3975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3976set dummy ${ac_tool_prefix}cc; ac_word=$2 3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3978$as_echo_n "checking for $ac_word... " >&6; } 3979if ${ac_cv_prog_CC+:} false; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 if test -n "$CC"; then 3983 ac_cv_prog_CC="$CC" # Let the user override the test. 3984else 3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3986for as_dir in $PATH 3987do 3988 IFS=$as_save_IFS 3989 test -z "$as_dir" && as_dir=. 3990 for ac_exec_ext in '' $ac_executable_extensions; do 3991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3992 ac_cv_prog_CC="${ac_tool_prefix}cc" 3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3994 break 2 3995 fi 3996done 3997 done 3998IFS=$as_save_IFS 3999 4000fi 4001fi 4002CC=$ac_cv_prog_CC 4003if test -n "$CC"; then 4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4005$as_echo "$CC" >&6; } 4006else 4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4008$as_echo "no" >&6; } 4009fi 4010 4011 4012 fi 4013fi 4014if test -z "$CC"; then 4015 # Extract the first word of "cc", so it can be a program name with args. 4016set dummy cc; ac_word=$2 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4018$as_echo_n "checking for $ac_word... " >&6; } 4019if ${ac_cv_prog_CC+:} false; then : 4020 $as_echo_n "(cached) " >&6 4021else 4022 if test -n "$CC"; then 4023 ac_cv_prog_CC="$CC" # Let the user override the test. 4024else 4025 ac_prog_rejected=no 4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4027for as_dir in $PATH 4028do 4029 IFS=$as_save_IFS 4030 test -z "$as_dir" && as_dir=. 4031 for ac_exec_ext in '' $ac_executable_extensions; do 4032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4034 ac_prog_rejected=yes 4035 continue 4036 fi 4037 ac_cv_prog_CC="cc" 4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4039 break 2 4040 fi 4041done 4042 done 4043IFS=$as_save_IFS 4044 4045if test $ac_prog_rejected = yes; then 4046 # We found a bogon in the path, so make sure we never use it. 4047 set dummy $ac_cv_prog_CC 4048 shift 4049 if test $# != 0; then 4050 # We chose a different compiler from the bogus one. 4051 # However, it has the same basename, so the bogon will be chosen 4052 # first if we set CC to just the basename; use the full file name. 4053 shift 4054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4055 fi 4056fi 4057fi 4058fi 4059CC=$ac_cv_prog_CC 4060if test -n "$CC"; then 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4062$as_echo "$CC" >&6; } 4063else 4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4065$as_echo "no" >&6; } 4066fi 4067 4068 4069fi 4070if test -z "$CC"; then 4071 if test -n "$ac_tool_prefix"; then 4072 for ac_prog in cl.exe 4073 do 4074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4075set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4077$as_echo_n "checking for $ac_word... " >&6; } 4078if ${ac_cv_prog_CC+:} false; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 if test -n "$CC"; then 4082 ac_cv_prog_CC="$CC" # Let the user override the test. 4083else 4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4085for as_dir in $PATH 4086do 4087 IFS=$as_save_IFS 4088 test -z "$as_dir" && as_dir=. 4089 for ac_exec_ext in '' $ac_executable_extensions; do 4090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4093 break 2 4094 fi 4095done 4096 done 4097IFS=$as_save_IFS 4098 4099fi 4100fi 4101CC=$ac_cv_prog_CC 4102if test -n "$CC"; then 4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4104$as_echo "$CC" >&6; } 4105else 4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4107$as_echo "no" >&6; } 4108fi 4109 4110 4111 test -n "$CC" && break 4112 done 4113fi 4114if test -z "$CC"; then 4115 ac_ct_CC=$CC 4116 for ac_prog in cl.exe 4117do 4118 # Extract the first word of "$ac_prog", so it can be a program name with args. 4119set dummy $ac_prog; ac_word=$2 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4121$as_echo_n "checking for $ac_word... " >&6; } 4122if ${ac_cv_prog_ac_ct_CC+:} false; then : 4123 $as_echo_n "(cached) " >&6 4124else 4125 if test -n "$ac_ct_CC"; then 4126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4127else 4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4129for as_dir in $PATH 4130do 4131 IFS=$as_save_IFS 4132 test -z "$as_dir" && as_dir=. 4133 for ac_exec_ext in '' $ac_executable_extensions; do 4134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4135 ac_cv_prog_ac_ct_CC="$ac_prog" 4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4137 break 2 4138 fi 4139done 4140 done 4141IFS=$as_save_IFS 4142 4143fi 4144fi 4145ac_ct_CC=$ac_cv_prog_ac_ct_CC 4146if test -n "$ac_ct_CC"; then 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4148$as_echo "$ac_ct_CC" >&6; } 4149else 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4151$as_echo "no" >&6; } 4152fi 4153 4154 4155 test -n "$ac_ct_CC" && break 4156done 4157 4158 if test "x$ac_ct_CC" = x; then 4159 CC="" 4160 else 4161 case $cross_compiling:$ac_tool_warned in 4162yes:) 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4165ac_tool_warned=yes ;; 4166esac 4167 CC=$ac_ct_CC 4168 fi 4169fi 4170 4171fi 4172 4173 4174test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4176as_fn_error $? "no acceptable C compiler found in \$PATH 4177See \`config.log' for more details" "$LINENO" 5; } 4178 4179# Provide some information about the compiler. 4180$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4181set X $ac_compile 4182ac_compiler=$2 4183for ac_option in --version -v -V -qversion; do 4184 { { ac_try="$ac_compiler $ac_option >&5" 4185case "(($ac_try" in 4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4187 *) ac_try_echo=$ac_try;; 4188esac 4189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4190$as_echo "$ac_try_echo"; } >&5 4191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4192 ac_status=$? 4193 if test -s conftest.err; then 4194 sed '10a\ 4195... rest of stderr output deleted ... 4196 10q' conftest.err >conftest.er1 4197 cat conftest.er1 >&5 4198 fi 4199 rm -f conftest.er1 conftest.err 4200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4201 test $ac_status = 0; } 4202done 4203 4204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4205/* end confdefs.h. */ 4206 4207int 4208main (void) 4209{ 4210 4211 ; 4212 return 0; 4213} 4214_ACEOF 4215ac_clean_files_save=$ac_clean_files 4216ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4217# Try to create an executable without -o first, disregard a.out. 4218# It will help us diagnose broken compilers, and finding out an intuition 4219# of exeext. 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4221$as_echo_n "checking whether the C compiler works... " >&6; } 4222ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4223 4224# The possible output files: 4225ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4226 4227ac_rmfiles= 4228for ac_file in $ac_files 4229do 4230 case $ac_file in 4231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4232 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4233 esac 4234done 4235rm -f $ac_rmfiles 4236 4237if { { ac_try="$ac_link_default" 4238case "(($ac_try" in 4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4240 *) ac_try_echo=$ac_try;; 4241esac 4242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4243$as_echo "$ac_try_echo"; } >&5 4244 (eval "$ac_link_default") 2>&5 4245 ac_status=$? 4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4247 test $ac_status = 0; }; then : 4248 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4249# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4250# in a Makefile. We should not override ac_cv_exeext if it was cached, 4251# so that the user can short-circuit this test for compilers unknown to 4252# Autoconf. 4253for ac_file in $ac_files '' 4254do 4255 test -f "$ac_file" || continue 4256 case $ac_file in 4257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4258 ;; 4259 [ab].out ) 4260 # We found the default executable, but exeext='' is most 4261 # certainly right. 4262 break;; 4263 *.* ) 4264 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4265 then :; else 4266 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4267 fi 4268 # We set ac_cv_exeext here because the later test for it is not 4269 # safe: cross compilers may not add the suffix if given an `-o' 4270 # argument, so we may need to know it at that point already. 4271 # Even if this section looks crufty: it has the advantage of 4272 # actually working. 4273 break;; 4274 * ) 4275 break;; 4276 esac 4277done 4278test "$ac_cv_exeext" = no && ac_cv_exeext= 4279 4280else 4281 ac_file='' 4282fi 4283if test -z "$ac_file"; then : 4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4285$as_echo "no" >&6; } 4286$as_echo "$as_me: failed program was:" >&5 4287sed 's/^/| /' conftest.$ac_ext >&5 4288 4289{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4291as_fn_error 77 "C compiler cannot create executables 4292See \`config.log' for more details" "$LINENO" 5; } 4293else 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4295$as_echo "yes" >&6; } 4296fi 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4298$as_echo_n "checking for C compiler default output file name... " >&6; } 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4300$as_echo "$ac_file" >&6; } 4301ac_exeext=$ac_cv_exeext 4302 4303rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4304ac_clean_files=$ac_clean_files_save 4305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4306$as_echo_n "checking for suffix of executables... " >&6; } 4307if { { ac_try="$ac_link" 4308case "(($ac_try" in 4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4310 *) ac_try_echo=$ac_try;; 4311esac 4312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4313$as_echo "$ac_try_echo"; } >&5 4314 (eval "$ac_link") 2>&5 4315 ac_status=$? 4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4317 test $ac_status = 0; }; then : 4318 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4319# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4320# work properly (i.e., refer to `conftest.exe'), while it won't with 4321# `rm'. 4322for ac_file in conftest.exe conftest conftest.*; do 4323 test -f "$ac_file" || continue 4324 case $ac_file in 4325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4327 break;; 4328 * ) break;; 4329 esac 4330done 4331else 4332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4334as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4335See \`config.log' for more details" "$LINENO" 5; } 4336fi 4337rm -f conftest conftest$ac_cv_exeext 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4339$as_echo "$ac_cv_exeext" >&6; } 4340 4341rm -f conftest.$ac_ext 4342EXEEXT=$ac_cv_exeext 4343ac_exeext=$EXEEXT 4344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4345/* end confdefs.h. */ 4346#include <stdio.h> 4347int 4348main (void) 4349{ 4350FILE *f = fopen ("conftest.out", "w"); 4351 return ferror (f) || fclose (f) != 0; 4352 4353 ; 4354 return 0; 4355} 4356_ACEOF 4357ac_clean_files="$ac_clean_files conftest.out" 4358# Check that the compiler produces executables we can run. If not, either 4359# the compiler is broken, or we cross compile. 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4361$as_echo_n "checking whether we are cross compiling... " >&6; } 4362if test "$cross_compiling" != yes; then 4363 { { ac_try="$ac_link" 4364case "(($ac_try" in 4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4366 *) ac_try_echo=$ac_try;; 4367esac 4368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4369$as_echo "$ac_try_echo"; } >&5 4370 (eval "$ac_link") 2>&5 4371 ac_status=$? 4372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4373 test $ac_status = 0; } 4374 if { ac_try='./conftest$ac_cv_exeext' 4375 { { case "(($ac_try" in 4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4377 *) ac_try_echo=$ac_try;; 4378esac 4379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4380$as_echo "$ac_try_echo"; } >&5 4381 (eval "$ac_try") 2>&5 4382 ac_status=$? 4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4384 test $ac_status = 0; }; }; then 4385 cross_compiling=no 4386 else 4387 if test "$cross_compiling" = maybe; then 4388 cross_compiling=yes 4389 else 4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4392as_fn_error $? "cannot run C compiled programs. 4393If you meant to cross compile, use \`--host'. 4394See \`config.log' for more details" "$LINENO" 5; } 4395 fi 4396 fi 4397fi 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4399$as_echo "$cross_compiling" >&6; } 4400 4401rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4402ac_clean_files=$ac_clean_files_save 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4404$as_echo_n "checking for suffix of object files... " >&6; } 4405if ${ac_cv_objext+:} false; then : 4406 $as_echo_n "(cached) " >&6 4407else 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4409/* end confdefs.h. */ 4410 4411int 4412main (void) 4413{ 4414 4415 ; 4416 return 0; 4417} 4418_ACEOF 4419rm -f conftest.o conftest.obj 4420if { { ac_try="$ac_compile" 4421case "(($ac_try" in 4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4423 *) ac_try_echo=$ac_try;; 4424esac 4425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4426$as_echo "$ac_try_echo"; } >&5 4427 (eval "$ac_compile") 2>&5 4428 ac_status=$? 4429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4430 test $ac_status = 0; }; then : 4431 for ac_file in conftest.o conftest.obj conftest.*; do 4432 test -f "$ac_file" || continue; 4433 case $ac_file in 4434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4435 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4436 break;; 4437 esac 4438done 4439else 4440 $as_echo "$as_me: failed program was:" >&5 4441sed 's/^/| /' conftest.$ac_ext >&5 4442 4443{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4445as_fn_error $? "cannot compute suffix of object files: cannot compile 4446See \`config.log' for more details" "$LINENO" 5; } 4447fi 4448rm -f conftest.$ac_cv_objext conftest.$ac_ext 4449fi 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4451$as_echo "$ac_cv_objext" >&6; } 4452OBJEXT=$ac_cv_objext 4453ac_objext=$OBJEXT 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4455$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4456if ${ac_cv_c_compiler_gnu+:} false; then : 4457 $as_echo_n "(cached) " >&6 4458else 4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4460/* end confdefs.h. */ 4461 4462int 4463main (void) 4464{ 4465#ifndef __GNUC__ 4466 choke me 4467#endif 4468 4469 ; 4470 return 0; 4471} 4472_ACEOF 4473if ac_fn_c_try_compile "$LINENO"; then : 4474 ac_compiler_gnu=yes 4475else 4476 ac_compiler_gnu=no 4477fi 4478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4479ac_cv_c_compiler_gnu=$ac_compiler_gnu 4480 4481fi 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4483$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4484if test $ac_compiler_gnu = yes; then 4485 GCC=yes 4486else 4487 GCC= 4488fi 4489ac_test_CFLAGS=${CFLAGS+set} 4490ac_save_CFLAGS=$CFLAGS 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4492$as_echo_n "checking whether $CC accepts -g... " >&6; } 4493if ${ac_cv_prog_cc_g+:} false; then : 4494 $as_echo_n "(cached) " >&6 4495else 4496 ac_save_c_werror_flag=$ac_c_werror_flag 4497 ac_c_werror_flag=yes 4498 ac_cv_prog_cc_g=no 4499 CFLAGS="-g" 4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4501/* end confdefs.h. */ 4502 4503int 4504main (void) 4505{ 4506 4507 ; 4508 return 0; 4509} 4510_ACEOF 4511if ac_fn_c_try_compile "$LINENO"; then : 4512 ac_cv_prog_cc_g=yes 4513else 4514 CFLAGS="" 4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4516/* end confdefs.h. */ 4517 4518int 4519main (void) 4520{ 4521 4522 ; 4523 return 0; 4524} 4525_ACEOF 4526if ac_fn_c_try_compile "$LINENO"; then : 4527 4528else 4529 ac_c_werror_flag=$ac_save_c_werror_flag 4530 CFLAGS="-g" 4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4532/* end confdefs.h. */ 4533 4534int 4535main (void) 4536{ 4537 4538 ; 4539 return 0; 4540} 4541_ACEOF 4542if ac_fn_c_try_compile "$LINENO"; then : 4543 ac_cv_prog_cc_g=yes 4544fi 4545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4546fi 4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4548fi 4549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4550 ac_c_werror_flag=$ac_save_c_werror_flag 4551fi 4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4553$as_echo "$ac_cv_prog_cc_g" >&6; } 4554if test "$ac_test_CFLAGS" = set; then 4555 CFLAGS=$ac_save_CFLAGS 4556elif test $ac_cv_prog_cc_g = yes; then 4557 if test "$GCC" = yes; then 4558 CFLAGS="-g -O2" 4559 else 4560 CFLAGS="-g" 4561 fi 4562else 4563 if test "$GCC" = yes; then 4564 CFLAGS="-O2" 4565 else 4566 CFLAGS= 4567 fi 4568fi 4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4570$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4571if ${ac_cv_prog_cc_c89+:} false; then : 4572 $as_echo_n "(cached) " >&6 4573else 4574 ac_cv_prog_cc_c89=no 4575ac_save_CC=$CC 4576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4577/* end confdefs.h. */ 4578#include <stdarg.h> 4579#include <stdio.h> 4580struct stat; 4581/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4582struct buf { int x; }; 4583FILE * (*rcsopen) (struct buf *, struct stat *, int); 4584static char *e (p, i) 4585 char **p; 4586 int i; 4587{ 4588 return p[i]; 4589} 4590static char *f (char * (*g) (char **, int), char **p, ...) 4591{ 4592 char *s; 4593 va_list v; 4594 va_start (v,p); 4595 s = g (p, va_arg (v,int)); 4596 va_end (v); 4597 return s; 4598} 4599 4600/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4601 function prototypes and stuff, but not '\xHH' hex character constants. 4602 These don't provoke an error unfortunately, instead are silently treated 4603 as 'x'. The following induces an error, until -std is added to get 4604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4605 array size at least. It's necessary to write '\x00'==0 to get something 4606 that's true only with -std. */ 4607int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4608 4609/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4610 inside strings and character constants. */ 4611#define FOO(x) 'x' 4612int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4613 4614int test (int i, double x); 4615struct s1 {int (*f) (int a);}; 4616struct s2 {int (*f) (double a);}; 4617int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4618int argc; 4619char **argv; 4620int 4621main (void) 4622{ 4623return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4624 ; 4625 return 0; 4626} 4627_ACEOF 4628for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4630do 4631 CC="$ac_save_CC $ac_arg" 4632 if ac_fn_c_try_compile "$LINENO"; then : 4633 ac_cv_prog_cc_c89=$ac_arg 4634fi 4635rm -f core conftest.err conftest.$ac_objext 4636 test "x$ac_cv_prog_cc_c89" != "xno" && break 4637done 4638rm -f conftest.$ac_ext 4639CC=$ac_save_CC 4640 4641fi 4642# AC_CACHE_VAL 4643case "x$ac_cv_prog_cc_c89" in 4644 x) 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4646$as_echo "none needed" >&6; } ;; 4647 xno) 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4649$as_echo "unsupported" >&6; } ;; 4650 *) 4651 CC="$CC $ac_cv_prog_cc_c89" 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4653$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4654esac 4655if test "x$ac_cv_prog_cc_c89" != xno; then : 4656 4657fi 4658 4659ac_ext=c 4660ac_cpp='$CPP $CPPFLAGS' 4661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4663ac_compiler_gnu=$ac_cv_c_compiler_gnu 4664 4665ac_ext=c 4666ac_cpp='$CPP $CPPFLAGS' 4667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4669ac_compiler_gnu=$ac_cv_c_compiler_gnu 4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4671$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4672if ${am_cv_prog_cc_c_o+:} false; then : 4673 $as_echo_n "(cached) " >&6 4674else 4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4676/* end confdefs.h. */ 4677 4678int 4679main (void) 4680{ 4681 4682 ; 4683 return 0; 4684} 4685_ACEOF 4686 # Make sure it works both with $CC and with simple cc. 4687 # Following AC_PROG_CC_C_O, we do the test twice because some 4688 # compilers refuse to overwrite an existing .o file with -o, 4689 # though they will create one. 4690 am_cv_prog_cc_c_o=yes 4691 for am_i in 1 2; do 4692 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4693 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4694 ac_status=$? 4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4696 (exit $ac_status); } \ 4697 && test -f conftest2.$ac_objext; then 4698 : OK 4699 else 4700 am_cv_prog_cc_c_o=no 4701 break 4702 fi 4703 done 4704 rm -f core conftest* 4705 unset am_i 4706fi 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4708$as_echo "$am_cv_prog_cc_c_o" >&6; } 4709if test "$am_cv_prog_cc_c_o" != yes; then 4710 # Losing compiler, so override with the script. 4711 # FIXME: It is wrong to rewrite CC. 4712 # But if we don't then we get into trouble of one sort or another. 4713 # A longer-term fix would be to have automake use am__CC in this case, 4714 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4715 CC="$am_aux_dir/compile $CC" 4716fi 4717ac_ext=c 4718ac_cpp='$CPP $CPPFLAGS' 4719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4721ac_compiler_gnu=$ac_cv_c_compiler_gnu 4722 4723DEPDIR="${am__leading_dot}deps" 4724 4725ac_config_commands="$ac_config_commands depfiles" 4726 4727 4728am_make=${MAKE-make} 4729cat > confinc << 'END' 4730am__doit: 4731 @echo this is the am__doit target 4732.PHONY: am__doit 4733END 4734# If we don't find an include directive, just comment out the code. 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4736$as_echo_n "checking for style of include used by $am_make... " >&6; } 4737am__include="#" 4738am__quote= 4739_am_result=none 4740# First try GNU make style include. 4741echo "include confinc" > confmf 4742# Ignore all kinds of additional output from 'make'. 4743case `$am_make -s -f confmf 2> /dev/null` in #( 4744*the\ am__doit\ target*) 4745 am__include=include 4746 am__quote= 4747 _am_result=GNU 4748 ;; 4749esac 4750# Now try BSD make style include. 4751if test "$am__include" = "#"; then 4752 echo '.include "confinc"' > confmf 4753 case `$am_make -s -f confmf 2> /dev/null` in #( 4754 *the\ am__doit\ target*) 4755 am__include=.include 4756 am__quote="\"" 4757 _am_result=BSD 4758 ;; 4759 esac 4760fi 4761 4762 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4764$as_echo "$_am_result" >&6; } 4765rm -f confinc confmf 4766 4767# Check whether --enable-dependency-tracking was given. 4768if test "${enable_dependency_tracking+set}" = set; then : 4769 enableval=$enable_dependency_tracking; 4770fi 4771 4772if test "x$enable_dependency_tracking" != xno; then 4773 am_depcomp="$ac_aux_dir/depcomp" 4774 AMDEPBACKSLASH='\' 4775 am__nodep='_no' 4776fi 4777 if test "x$enable_dependency_tracking" != xno; then 4778 AMDEP_TRUE= 4779 AMDEP_FALSE='#' 4780else 4781 AMDEP_TRUE='#' 4782 AMDEP_FALSE= 4783fi 4784 4785 4786 4787depcc="$CC" am_compiler_list= 4788 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4790$as_echo_n "checking dependency style of $depcc... " >&6; } 4791if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4795 # We make a subdir and do the tests there. Otherwise we can end up 4796 # making bogus files that we don't know about and never remove. For 4797 # instance it was reported that on HP-UX the gcc test will end up 4798 # making a dummy file named 'D' -- because '-MD' means "put the output 4799 # in D". 4800 rm -rf conftest.dir 4801 mkdir conftest.dir 4802 # Copy depcomp to subdir because otherwise we won't find it if we're 4803 # using a relative directory. 4804 cp "$am_depcomp" conftest.dir 4805 cd conftest.dir 4806 # We will build objects and dependencies in a subdirectory because 4807 # it helps to detect inapplicable dependency modes. For instance 4808 # both Tru64's cc and ICC support -MD to output dependencies as a 4809 # side effect of compilation, but ICC will put the dependencies in 4810 # the current directory while Tru64 will put them in the object 4811 # directory. 4812 mkdir sub 4813 4814 am_cv_CC_dependencies_compiler_type=none 4815 if test "$am_compiler_list" = ""; then 4816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4817 fi 4818 am__universal=false 4819 case " $depcc " in #( 4820 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4821 esac 4822 4823 for depmode in $am_compiler_list; do 4824 # Setup a source with many dependencies, because some compilers 4825 # like to wrap large dependency lists on column 80 (with \), and 4826 # we should not choose a depcomp mode which is confused by this. 4827 # 4828 # We need to recreate these files for each test, as the compiler may 4829 # overwrite some of them when testing with obscure command lines. 4830 # This happens at least with the AIX C compiler. 4831 : > sub/conftest.c 4832 for i in 1 2 3 4 5 6; do 4833 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4834 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4835 # Solaris 10 /bin/sh. 4836 echo '/* dummy */' > sub/conftst$i.h 4837 done 4838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4839 4840 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4841 # mode. It turns out that the SunPro C++ compiler does not properly 4842 # handle '-M -o', and we need to detect this. Also, some Intel 4843 # versions had trouble with output in subdirs. 4844 am__obj=sub/conftest.${OBJEXT-o} 4845 am__minus_obj="-o $am__obj" 4846 case $depmode in 4847 gcc) 4848 # This depmode causes a compiler race in universal mode. 4849 test "$am__universal" = false || continue 4850 ;; 4851 nosideeffect) 4852 # After this tag, mechanisms are not by side-effect, so they'll 4853 # only be used when explicitly requested. 4854 if test "x$enable_dependency_tracking" = xyes; then 4855 continue 4856 else 4857 break 4858 fi 4859 ;; 4860 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4861 # This compiler won't grok '-c -o', but also, the minuso test has 4862 # not run yet. These depmodes are late enough in the game, and 4863 # so weak that their functioning should not be impacted. 4864 am__obj=conftest.${OBJEXT-o} 4865 am__minus_obj= 4866 ;; 4867 none) break ;; 4868 esac 4869 if depmode=$depmode \ 4870 source=sub/conftest.c object=$am__obj \ 4871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4872 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4873 >/dev/null 2>conftest.err && 4874 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4876 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4878 # icc doesn't choke on unknown options, it will just issue warnings 4879 # or remarks (even with -Werror). So we grep stderr for any message 4880 # that says an option was ignored or not supported. 4881 # When given -MP, icc 7.0 and 7.1 complain thusly: 4882 # icc: Command line warning: ignoring option '-M'; no argument required 4883 # The diagnosis changed in icc 8.0: 4884 # icc: Command line remark: option '-MP' not supported 4885 if (grep 'ignoring option' conftest.err || 4886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4887 am_cv_CC_dependencies_compiler_type=$depmode 4888 break 4889 fi 4890 fi 4891 done 4892 4893 cd .. 4894 rm -rf conftest.dir 4895else 4896 am_cv_CC_dependencies_compiler_type=none 4897fi 4898 4899fi 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4901$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4902CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4903 4904 if 4905 test "x$enable_dependency_tracking" != xno \ 4906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4907 am__fastdepCC_TRUE= 4908 am__fastdepCC_FALSE='#' 4909else 4910 am__fastdepCC_TRUE='#' 4911 am__fastdepCC_FALSE= 4912fi 4913 4914 4915ac_ext=c 4916ac_cpp='$CPP $CPPFLAGS' 4917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4919ac_compiler_gnu=$ac_cv_c_compiler_gnu 4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4921$as_echo_n "checking how to run the C preprocessor... " >&6; } 4922# On Suns, sometimes $CPP names a directory. 4923if test -n "$CPP" && test -d "$CPP"; then 4924 CPP= 4925fi 4926if test -z "$CPP"; then 4927 if ${ac_cv_prog_CPP+:} false; then : 4928 $as_echo_n "(cached) " >&6 4929else 4930 # Double quotes because CPP needs to be expanded 4931 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4932 do 4933 ac_preproc_ok=false 4934for ac_c_preproc_warn_flag in '' yes 4935do 4936 # Use a header file that comes with gcc, so configuring glibc 4937 # with a fresh cross-compiler works. 4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4939 # <limits.h> exists even on freestanding compilers. 4940 # On the NeXT, cc -E runs the code through the compiler's parser, 4941 # not just through cpp. "Syntax error" is here to catch this case. 4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4943/* end confdefs.h. */ 4944#ifdef __STDC__ 4945# include <limits.h> 4946#else 4947# include <assert.h> 4948#endif 4949 Syntax error 4950_ACEOF 4951if ac_fn_c_try_cpp "$LINENO"; then : 4952 4953else 4954 # Broken: fails on valid input. 4955continue 4956fi 4957rm -f conftest.err conftest.i conftest.$ac_ext 4958 4959 # OK, works on sane cases. Now check whether nonexistent headers 4960 # can be detected and how. 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962/* end confdefs.h. */ 4963#include <ac_nonexistent.h> 4964_ACEOF 4965if ac_fn_c_try_cpp "$LINENO"; then : 4966 # Broken: success on invalid input. 4967continue 4968else 4969 # Passes both tests. 4970ac_preproc_ok=: 4971break 4972fi 4973rm -f conftest.err conftest.i conftest.$ac_ext 4974 4975done 4976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4977rm -f conftest.i conftest.err conftest.$ac_ext 4978if $ac_preproc_ok; then : 4979 break 4980fi 4981 4982 done 4983 ac_cv_prog_CPP=$CPP 4984 4985fi 4986 CPP=$ac_cv_prog_CPP 4987else 4988 ac_cv_prog_CPP=$CPP 4989fi 4990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4991$as_echo "$CPP" >&6; } 4992ac_preproc_ok=false 4993for ac_c_preproc_warn_flag in '' yes 4994do 4995 # Use a header file that comes with gcc, so configuring glibc 4996 # with a fresh cross-compiler works. 4997 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4998 # <limits.h> exists even on freestanding compilers. 4999 # On the NeXT, cc -E runs the code through the compiler's parser, 5000 # not just through cpp. "Syntax error" is here to catch this case. 5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5002/* end confdefs.h. */ 5003#ifdef __STDC__ 5004# include <limits.h> 5005#else 5006# include <assert.h> 5007#endif 5008 Syntax error 5009_ACEOF 5010if ac_fn_c_try_cpp "$LINENO"; then : 5011 5012else 5013 # Broken: fails on valid input. 5014continue 5015fi 5016rm -f conftest.err conftest.i conftest.$ac_ext 5017 5018 # OK, works on sane cases. Now check whether nonexistent headers 5019 # can be detected and how. 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021/* end confdefs.h. */ 5022#include <ac_nonexistent.h> 5023_ACEOF 5024if ac_fn_c_try_cpp "$LINENO"; then : 5025 # Broken: success on invalid input. 5026continue 5027else 5028 # Passes both tests. 5029ac_preproc_ok=: 5030break 5031fi 5032rm -f conftest.err conftest.i conftest.$ac_ext 5033 5034done 5035# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5036rm -f conftest.i conftest.err conftest.$ac_ext 5037if $ac_preproc_ok; then : 5038 5039else 5040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5042as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5043See \`config.log' for more details" "$LINENO" 5; } 5044fi 5045 5046ac_ext=c 5047ac_cpp='$CPP $CPPFLAGS' 5048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5050ac_compiler_gnu=$ac_cv_c_compiler_gnu 5051 5052ac_ext=c 5053ac_cpp='$CPP $CPPFLAGS' 5054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5056ac_compiler_gnu=$ac_cv_c_compiler_gnu 5057 5058 5059 5060if test -n "$ac_tool_prefix"; then 5061 for ac_prog in ar lib "link -lib" 5062 do 5063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5064set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5066$as_echo_n "checking for $ac_word... " >&6; } 5067if ${ac_cv_prog_AR+:} false; then : 5068 $as_echo_n "(cached) " >&6 5069else 5070 if test -n "$AR"; then 5071 ac_cv_prog_AR="$AR" # Let the user override the test. 5072else 5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5074for as_dir in $PATH 5075do 5076 IFS=$as_save_IFS 5077 test -z "$as_dir" && as_dir=. 5078 for ac_exec_ext in '' $ac_executable_extensions; do 5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5080 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5082 break 2 5083 fi 5084done 5085 done 5086IFS=$as_save_IFS 5087 5088fi 5089fi 5090AR=$ac_cv_prog_AR 5091if test -n "$AR"; then 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5093$as_echo "$AR" >&6; } 5094else 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5096$as_echo "no" >&6; } 5097fi 5098 5099 5100 test -n "$AR" && break 5101 done 5102fi 5103if test -z "$AR"; then 5104 ac_ct_AR=$AR 5105 for ac_prog in ar lib "link -lib" 5106do 5107 # Extract the first word of "$ac_prog", so it can be a program name with args. 5108set dummy $ac_prog; ac_word=$2 5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5110$as_echo_n "checking for $ac_word... " >&6; } 5111if ${ac_cv_prog_ac_ct_AR+:} false; then : 5112 $as_echo_n "(cached) " >&6 5113else 5114 if test -n "$ac_ct_AR"; then 5115 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5116else 5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5118for as_dir in $PATH 5119do 5120 IFS=$as_save_IFS 5121 test -z "$as_dir" && as_dir=. 5122 for ac_exec_ext in '' $ac_executable_extensions; do 5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5124 ac_cv_prog_ac_ct_AR="$ac_prog" 5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5126 break 2 5127 fi 5128done 5129 done 5130IFS=$as_save_IFS 5131 5132fi 5133fi 5134ac_ct_AR=$ac_cv_prog_ac_ct_AR 5135if test -n "$ac_ct_AR"; then 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5137$as_echo "$ac_ct_AR" >&6; } 5138else 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5140$as_echo "no" >&6; } 5141fi 5142 5143 5144 test -n "$ac_ct_AR" && break 5145done 5146 5147 if test "x$ac_ct_AR" = x; then 5148 AR="false" 5149 else 5150 case $cross_compiling:$ac_tool_warned in 5151yes:) 5152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5154ac_tool_warned=yes ;; 5155esac 5156 AR=$ac_ct_AR 5157 fi 5158fi 5159 5160: ${AR=ar} 5161 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5163$as_echo_n "checking the archiver ($AR) interface... " >&6; } 5164if ${am_cv_ar_interface+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 ac_ext=c 5168ac_cpp='$CPP $CPPFLAGS' 5169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5171ac_compiler_gnu=$ac_cv_c_compiler_gnu 5172 5173 am_cv_ar_interface=ar 5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175/* end confdefs.h. */ 5176int some_variable = 0; 5177_ACEOF 5178if ac_fn_c_try_compile "$LINENO"; then : 5179 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5181 (eval $am_ar_try) 2>&5 5182 ac_status=$? 5183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5184 test $ac_status = 0; } 5185 if test "$ac_status" -eq 0; then 5186 am_cv_ar_interface=ar 5187 else 5188 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5190 (eval $am_ar_try) 2>&5 5191 ac_status=$? 5192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5193 test $ac_status = 0; } 5194 if test "$ac_status" -eq 0; then 5195 am_cv_ar_interface=lib 5196 else 5197 am_cv_ar_interface=unknown 5198 fi 5199 fi 5200 rm -f conftest.lib libconftest.a 5201 5202fi 5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5204 ac_ext=c 5205ac_cpp='$CPP $CPPFLAGS' 5206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5208ac_compiler_gnu=$ac_cv_c_compiler_gnu 5209 5210fi 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5212$as_echo "$am_cv_ar_interface" >&6; } 5213 5214case $am_cv_ar_interface in 5215ar) 5216 ;; 5217lib) 5218 # Microsoft lib, so override with the ar-lib wrapper script. 5219 # FIXME: It is wrong to rewrite AR. 5220 # But if we don't then we get into trouble of one sort or another. 5221 # A longer-term fix would be to have automake use am__AR in this case, 5222 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5223 # similar. 5224 AR="$am_aux_dir/ar-lib $AR" 5225 ;; 5226unknown) 5227 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5228 ;; 5229esac 5230 5231 5232case `pwd` in 5233 *\ * | *\ *) 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5235$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5236esac 5237 5238 5239 5240macro_version='2.4.6' 5241macro_revision='2.4.6' 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255ltmain=$ac_aux_dir/ltmain.sh 5256 5257# Backslashify metacharacters that are still active within 5258# double-quoted strings. 5259sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5260 5261# Same as above, but do not quote variable references. 5262double_quote_subst='s/\(["`\\]\)/\\\1/g' 5263 5264# Sed substitution to delay expansion of an escaped shell variable in a 5265# double_quote_subst'ed string. 5266delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5267 5268# Sed substitution to delay expansion of an escaped single quote. 5269delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5270 5271# Sed substitution to avoid accidental globbing in evaled expressions 5272no_glob_subst='s/\*/\\\*/g' 5273 5274ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5275ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5276ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5277 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5279$as_echo_n "checking how to print strings... " >&6; } 5280# Test print first, because it will be a builtin if present. 5281if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5282 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5283 ECHO='print -r --' 5284elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5285 ECHO='printf %s\n' 5286else 5287 # Use this function as a fallback that always works. 5288 func_fallback_echo () 5289 { 5290 eval 'cat <<_LTECHO_EOF 5291$1 5292_LTECHO_EOF' 5293 } 5294 ECHO='func_fallback_echo' 5295fi 5296 5297# func_echo_all arg... 5298# Invoke $ECHO with all args, space-separated. 5299func_echo_all () 5300{ 5301 $ECHO "" 5302} 5303 5304case $ECHO in 5305 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5306$as_echo "printf" >&6; } ;; 5307 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5308$as_echo "print -r" >&6; } ;; 5309 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5310$as_echo "cat" >&6; } ;; 5311esac 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5327$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5328if ${ac_cv_path_SED+:} false; then : 5329 $as_echo_n "(cached) " >&6 5330else 5331 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5332 for ac_i in 1 2 3 4 5 6 7; do 5333 ac_script="$ac_script$as_nl$ac_script" 5334 done 5335 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5336 { ac_script=; unset ac_script;} 5337 if test -z "$SED"; then 5338 ac_path_SED_found=false 5339 # Loop through the user's path and test for each of PROGNAME-LIST 5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5341for as_dir in $PATH 5342do 5343 IFS=$as_save_IFS 5344 test -z "$as_dir" && as_dir=. 5345 for ac_prog in sed gsed; do 5346 for ac_exec_ext in '' $ac_executable_extensions; do 5347 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5348 as_fn_executable_p "$ac_path_SED" || continue 5349# Check for GNU ac_path_SED and select it if it is found. 5350 # Check for GNU $ac_path_SED 5351case `"$ac_path_SED" --version 2>&1` in 5352*GNU*) 5353 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5354*) 5355 ac_count=0 5356 $as_echo_n 0123456789 >"conftest.in" 5357 while : 5358 do 5359 cat "conftest.in" "conftest.in" >"conftest.tmp" 5360 mv "conftest.tmp" "conftest.in" 5361 cp "conftest.in" "conftest.nl" 5362 $as_echo '' >> "conftest.nl" 5363 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5365 as_fn_arith $ac_count + 1 && ac_count=$as_val 5366 if test $ac_count -gt ${ac_path_SED_max-0}; then 5367 # Best one so far, save it but keep looking for a better one 5368 ac_cv_path_SED="$ac_path_SED" 5369 ac_path_SED_max=$ac_count 5370 fi 5371 # 10*(2^10) chars as input seems more than enough 5372 test $ac_count -gt 10 && break 5373 done 5374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5375esac 5376 5377 $ac_path_SED_found && break 3 5378 done 5379 done 5380 done 5381IFS=$as_save_IFS 5382 if test -z "$ac_cv_path_SED"; then 5383 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5384 fi 5385else 5386 ac_cv_path_SED=$SED 5387fi 5388 5389fi 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5391$as_echo "$ac_cv_path_SED" >&6; } 5392 SED="$ac_cv_path_SED" 5393 rm -f conftest.sed 5394 5395test -z "$SED" && SED=sed 5396Xsed="$SED -e 1s/^X//" 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5409$as_echo_n "checking for fgrep... " >&6; } 5410if ${ac_cv_path_FGREP+:} false; then : 5411 $as_echo_n "(cached) " >&6 5412else 5413 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5414 then ac_cv_path_FGREP="$GREP -F" 5415 else 5416 if test -z "$FGREP"; then 5417 ac_path_FGREP_found=false 5418 # Loop through the user's path and test for each of PROGNAME-LIST 5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5421do 5422 IFS=$as_save_IFS 5423 test -z "$as_dir" && as_dir=. 5424 for ac_prog in fgrep; do 5425 for ac_exec_ext in '' $ac_executable_extensions; do 5426 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5427 as_fn_executable_p "$ac_path_FGREP" || continue 5428# Check for GNU ac_path_FGREP and select it if it is found. 5429 # Check for GNU $ac_path_FGREP 5430case `"$ac_path_FGREP" --version 2>&1` in 5431*GNU*) 5432 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5433*) 5434 ac_count=0 5435 $as_echo_n 0123456789 >"conftest.in" 5436 while : 5437 do 5438 cat "conftest.in" "conftest.in" >"conftest.tmp" 5439 mv "conftest.tmp" "conftest.in" 5440 cp "conftest.in" "conftest.nl" 5441 $as_echo 'FGREP' >> "conftest.nl" 5442 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5444 as_fn_arith $ac_count + 1 && ac_count=$as_val 5445 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5446 # Best one so far, save it but keep looking for a better one 5447 ac_cv_path_FGREP="$ac_path_FGREP" 5448 ac_path_FGREP_max=$ac_count 5449 fi 5450 # 10*(2^10) chars as input seems more than enough 5451 test $ac_count -gt 10 && break 5452 done 5453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5454esac 5455 5456 $ac_path_FGREP_found && break 3 5457 done 5458 done 5459 done 5460IFS=$as_save_IFS 5461 if test -z "$ac_cv_path_FGREP"; then 5462 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5463 fi 5464else 5465 ac_cv_path_FGREP=$FGREP 5466fi 5467 5468 fi 5469fi 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5471$as_echo "$ac_cv_path_FGREP" >&6; } 5472 FGREP="$ac_cv_path_FGREP" 5473 5474 5475test -z "$GREP" && GREP=grep 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495# Check whether --with-gnu-ld was given. 5496if test "${with_gnu_ld+set}" = set; then : 5497 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5498else 5499 with_gnu_ld=no 5500fi 5501 5502ac_prog=ld 5503if test yes = "$GCC"; then 5504 # Check if gcc -print-prog-name=ld gives a path. 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5506$as_echo_n "checking for ld used by $CC... " >&6; } 5507 case $host in 5508 *-*-mingw*) 5509 # gcc leaves a trailing carriage return, which upsets mingw 5510 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5511 *) 5512 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5513 esac 5514 case $ac_prog in 5515 # Accept absolute paths. 5516 [\\/]* | ?:[\\/]*) 5517 re_direlt='/[^/][^/]*/\.\./' 5518 # Canonicalize the pathname of ld 5519 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5520 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5521 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5522 done 5523 test -z "$LD" && LD=$ac_prog 5524 ;; 5525 "") 5526 # If it fails, then pretend we aren't using GCC. 5527 ac_prog=ld 5528 ;; 5529 *) 5530 # If it is relative, then search for the first ld in PATH. 5531 with_gnu_ld=unknown 5532 ;; 5533 esac 5534elif test yes = "$with_gnu_ld"; then 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5536$as_echo_n "checking for GNU ld... " >&6; } 5537else 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5539$as_echo_n "checking for non-GNU ld... " >&6; } 5540fi 5541if ${lt_cv_path_LD+:} false; then : 5542 $as_echo_n "(cached) " >&6 5543else 5544 if test -z "$LD"; then 5545 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5546 for ac_dir in $PATH; do 5547 IFS=$lt_save_ifs 5548 test -z "$ac_dir" && ac_dir=. 5549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5550 lt_cv_path_LD=$ac_dir/$ac_prog 5551 # Check to see if the program is GNU ld. I'd rather use --version, 5552 # but apparently some variants of GNU ld only accept -v. 5553 # Break only if it was the GNU/non-GNU ld that we prefer. 5554 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5555 *GNU* | *'with BFD'*) 5556 test no != "$with_gnu_ld" && break 5557 ;; 5558 *) 5559 test yes != "$with_gnu_ld" && break 5560 ;; 5561 esac 5562 fi 5563 done 5564 IFS=$lt_save_ifs 5565else 5566 lt_cv_path_LD=$LD # Let the user override the test with a path. 5567fi 5568fi 5569 5570LD=$lt_cv_path_LD 5571if test -n "$LD"; then 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5573$as_echo "$LD" >&6; } 5574else 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5576$as_echo "no" >&6; } 5577fi 5578test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5580$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5581if ${lt_cv_prog_gnu_ld+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583else 5584 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5585case `$LD -v 2>&1 </dev/null` in 5586*GNU* | *'with BFD'*) 5587 lt_cv_prog_gnu_ld=yes 5588 ;; 5589*) 5590 lt_cv_prog_gnu_ld=no 5591 ;; 5592esac 5593fi 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5595$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5596with_gnu_ld=$lt_cv_prog_gnu_ld 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5607$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5608if ${lt_cv_path_NM+:} false; then : 5609 $as_echo_n "(cached) " >&6 5610else 5611 if test -n "$NM"; then 5612 # Let the user override the test. 5613 lt_cv_path_NM=$NM 5614else 5615 lt_nm_to_check=${ac_tool_prefix}nm 5616 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5617 lt_nm_to_check="$lt_nm_to_check nm" 5618 fi 5619 for lt_tmp_nm in $lt_nm_to_check; do 5620 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5621 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5622 IFS=$lt_save_ifs 5623 test -z "$ac_dir" && ac_dir=. 5624 tmp_nm=$ac_dir/$lt_tmp_nm 5625 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5626 # Check to see if the nm accepts a BSD-compat flag. 5627 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5628 # nm: unknown option "B" ignored 5629 # Tru64's nm complains that /dev/null is an invalid object file 5630 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5631 case $build_os in 5632 mingw*) lt_bad_file=conftest.nm/nofile ;; 5633 *) lt_bad_file=/dev/null ;; 5634 esac 5635 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5636 *$lt_bad_file* | *'Invalid file or object type'*) 5637 lt_cv_path_NM="$tmp_nm -B" 5638 break 2 5639 ;; 5640 *) 5641 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5642 */dev/null*) 5643 lt_cv_path_NM="$tmp_nm -p" 5644 break 2 5645 ;; 5646 *) 5647 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5648 continue # so that we can try to find one that supports BSD flags 5649 ;; 5650 esac 5651 ;; 5652 esac 5653 fi 5654 done 5655 IFS=$lt_save_ifs 5656 done 5657 : ${lt_cv_path_NM=no} 5658fi 5659fi 5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5661$as_echo "$lt_cv_path_NM" >&6; } 5662if test no != "$lt_cv_path_NM"; then 5663 NM=$lt_cv_path_NM 5664else 5665 # Didn't find any BSD compatible name lister, look for dumpbin. 5666 if test -n "$DUMPBIN"; then : 5667 # Let the user override the test. 5668 else 5669 if test -n "$ac_tool_prefix"; then 5670 for ac_prog in dumpbin "link -dump" 5671 do 5672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5673set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5675$as_echo_n "checking for $ac_word... " >&6; } 5676if ${ac_cv_prog_DUMPBIN+:} false; then : 5677 $as_echo_n "(cached) " >&6 5678else 5679 if test -n "$DUMPBIN"; then 5680 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5681else 5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5683for as_dir in $PATH 5684do 5685 IFS=$as_save_IFS 5686 test -z "$as_dir" && as_dir=. 5687 for ac_exec_ext in '' $ac_executable_extensions; do 5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5689 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5691 break 2 5692 fi 5693done 5694 done 5695IFS=$as_save_IFS 5696 5697fi 5698fi 5699DUMPBIN=$ac_cv_prog_DUMPBIN 5700if test -n "$DUMPBIN"; then 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5702$as_echo "$DUMPBIN" >&6; } 5703else 5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5705$as_echo "no" >&6; } 5706fi 5707 5708 5709 test -n "$DUMPBIN" && break 5710 done 5711fi 5712if test -z "$DUMPBIN"; then 5713 ac_ct_DUMPBIN=$DUMPBIN 5714 for ac_prog in dumpbin "link -dump" 5715do 5716 # Extract the first word of "$ac_prog", so it can be a program name with args. 5717set dummy $ac_prog; ac_word=$2 5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5719$as_echo_n "checking for $ac_word... " >&6; } 5720if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5721 $as_echo_n "(cached) " >&6 5722else 5723 if test -n "$ac_ct_DUMPBIN"; then 5724 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5725else 5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5727for as_dir in $PATH 5728do 5729 IFS=$as_save_IFS 5730 test -z "$as_dir" && as_dir=. 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5733 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5735 break 2 5736 fi 5737done 5738 done 5739IFS=$as_save_IFS 5740 5741fi 5742fi 5743ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5744if test -n "$ac_ct_DUMPBIN"; then 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5746$as_echo "$ac_ct_DUMPBIN" >&6; } 5747else 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5749$as_echo "no" >&6; } 5750fi 5751 5752 5753 test -n "$ac_ct_DUMPBIN" && break 5754done 5755 5756 if test "x$ac_ct_DUMPBIN" = x; then 5757 DUMPBIN=":" 5758 else 5759 case $cross_compiling:$ac_tool_warned in 5760yes:) 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5763ac_tool_warned=yes ;; 5764esac 5765 DUMPBIN=$ac_ct_DUMPBIN 5766 fi 5767fi 5768 5769 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5770 *COFF*) 5771 DUMPBIN="$DUMPBIN -symbols -headers" 5772 ;; 5773 *) 5774 DUMPBIN=: 5775 ;; 5776 esac 5777 fi 5778 5779 if test : != "$DUMPBIN"; then 5780 NM=$DUMPBIN 5781 fi 5782fi 5783test -z "$NM" && NM=nm 5784 5785 5786 5787 5788 5789 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5791$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5792if ${lt_cv_nm_interface+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794else 5795 lt_cv_nm_interface="BSD nm" 5796 echo "int some_variable = 0;" > conftest.$ac_ext 5797 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5798 (eval "$ac_compile" 2>conftest.err) 5799 cat conftest.err >&5 5800 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5801 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5802 cat conftest.err >&5 5803 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5804 cat conftest.out >&5 5805 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5806 lt_cv_nm_interface="MS dumpbin" 5807 fi 5808 rm -f conftest* 5809fi 5810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5811$as_echo "$lt_cv_nm_interface" >&6; } 5812 5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5814$as_echo_n "checking whether ln -s works... " >&6; } 5815LN_S=$as_ln_s 5816if test "$LN_S" = "ln -s"; then 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5818$as_echo "yes" >&6; } 5819else 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5821$as_echo "no, using $LN_S" >&6; } 5822fi 5823 5824# find the maximum length of command line arguments 5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5826$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5827if ${lt_cv_sys_max_cmd_len+:} false; then : 5828 $as_echo_n "(cached) " >&6 5829else 5830 i=0 5831 teststring=ABCD 5832 5833 case $build_os in 5834 msdosdjgpp*) 5835 # On DJGPP, this test can blow up pretty badly due to problems in libc 5836 # (any single argument exceeding 2000 bytes causes a buffer overrun 5837 # during glob expansion). Even if it were fixed, the result of this 5838 # check would be larger than it should be. 5839 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5840 ;; 5841 5842 gnu*) 5843 # Under GNU Hurd, this test is not required because there is 5844 # no limit to the length of command line arguments. 5845 # Libtool will interpret -1 as no limit whatsoever 5846 lt_cv_sys_max_cmd_len=-1; 5847 ;; 5848 5849 cygwin* | mingw* | cegcc*) 5850 # On Win9x/ME, this test blows up -- it succeeds, but takes 5851 # about 5 minutes as the teststring grows exponentially. 5852 # Worse, since 9x/ME are not pre-emptively multitasking, 5853 # you end up with a "frozen" computer, even though with patience 5854 # the test eventually succeeds (with a max line length of 256k). 5855 # Instead, let's just punt: use the minimum linelength reported by 5856 # all of the supported platforms: 8192 (on NT/2K/XP). 5857 lt_cv_sys_max_cmd_len=8192; 5858 ;; 5859 5860 mint*) 5861 # On MiNT this can take a long time and run out of memory. 5862 lt_cv_sys_max_cmd_len=8192; 5863 ;; 5864 5865 amigaos*) 5866 # On AmigaOS with pdksh, this test takes hours, literally. 5867 # So we just punt and use a minimum line length of 8192. 5868 lt_cv_sys_max_cmd_len=8192; 5869 ;; 5870 5871 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5872 # This has been around since 386BSD, at least. Likely further. 5873 if test -x /sbin/sysctl; then 5874 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5875 elif test -x /usr/sbin/sysctl; then 5876 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5877 else 5878 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5879 fi 5880 # And add a safety zone 5881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5882 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5883 ;; 5884 5885 interix*) 5886 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5887 lt_cv_sys_max_cmd_len=196608 5888 ;; 5889 5890 os2*) 5891 # The test takes a long time on OS/2. 5892 lt_cv_sys_max_cmd_len=8192 5893 ;; 5894 5895 osf*) 5896 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5897 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5898 # nice to cause kernel panics so lets avoid the loop below. 5899 # First set a reasonable default. 5900 lt_cv_sys_max_cmd_len=16384 5901 # 5902 if test -x /sbin/sysconfig; then 5903 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5904 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5905 esac 5906 fi 5907 ;; 5908 sco3.2v5*) 5909 lt_cv_sys_max_cmd_len=102400 5910 ;; 5911 sysv5* | sco5v6* | sysv4.2uw2*) 5912 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5913 if test -n "$kargmax"; then 5914 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5915 else 5916 lt_cv_sys_max_cmd_len=32768 5917 fi 5918 ;; 5919 *) 5920 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5921 if test -n "$lt_cv_sys_max_cmd_len" && \ 5922 test undefined != "$lt_cv_sys_max_cmd_len"; then 5923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5925 else 5926 # Make teststring a little bigger before we do anything with it. 5927 # a 1K string should be a reasonable start. 5928 for i in 1 2 3 4 5 6 7 8; do 5929 teststring=$teststring$teststring 5930 done 5931 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5932 # If test is not a shell built-in, we'll probably end up computing a 5933 # maximum length that is only half of the actual maximum length, but 5934 # we can't tell. 5935 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5936 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5937 test 17 != "$i" # 1/2 MB should be enough 5938 do 5939 i=`expr $i + 1` 5940 teststring=$teststring$teststring 5941 done 5942 # Only check the string length outside the loop. 5943 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5944 teststring= 5945 # Add a significant safety factor because C++ compilers can tack on 5946 # massive amounts of additional arguments before passing them to the 5947 # linker. It appears as though 1/2 is a usable value. 5948 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5949 fi 5950 ;; 5951 esac 5952 5953fi 5954 5955if test -n "$lt_cv_sys_max_cmd_len"; then 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5957$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5958else 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5960$as_echo "none" >&6; } 5961fi 5962max_cmd_len=$lt_cv_sys_max_cmd_len 5963 5964 5965 5966 5967 5968 5969: ${CP="cp -f"} 5970: ${MV="mv -f"} 5971: ${RM="rm -f"} 5972 5973if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5974 lt_unset=unset 5975else 5976 lt_unset=false 5977fi 5978 5979 5980 5981 5982 5983# test EBCDIC or ASCII 5984case `echo X|tr X '\101'` in 5985 A) # ASCII based system 5986 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5987 lt_SP2NL='tr \040 \012' 5988 lt_NL2SP='tr \015\012 \040\040' 5989 ;; 5990 *) # EBCDIC based system 5991 lt_SP2NL='tr \100 \n' 5992 lt_NL2SP='tr \r\n \100\100' 5993 ;; 5994esac 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6005$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6006if ${lt_cv_to_host_file_cmd+:} false; then : 6007 $as_echo_n "(cached) " >&6 6008else 6009 case $host in 6010 *-*-mingw* ) 6011 case $build in 6012 *-*-mingw* ) # actually msys 6013 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6014 ;; 6015 *-*-cygwin* ) 6016 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6017 ;; 6018 * ) # otherwise, assume *nix 6019 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6020 ;; 6021 esac 6022 ;; 6023 *-*-cygwin* ) 6024 case $build in 6025 *-*-mingw* ) # actually msys 6026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6027 ;; 6028 *-*-cygwin* ) 6029 lt_cv_to_host_file_cmd=func_convert_file_noop 6030 ;; 6031 * ) # otherwise, assume *nix 6032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6033 ;; 6034 esac 6035 ;; 6036 * ) # unhandled hosts (and "normal" native builds) 6037 lt_cv_to_host_file_cmd=func_convert_file_noop 6038 ;; 6039esac 6040 6041fi 6042 6043to_host_file_cmd=$lt_cv_to_host_file_cmd 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6045$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6046 6047 6048 6049 6050 6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6052$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6053if ${lt_cv_to_tool_file_cmd+:} false; then : 6054 $as_echo_n "(cached) " >&6 6055else 6056 #assume ordinary cross tools, or native build. 6057lt_cv_to_tool_file_cmd=func_convert_file_noop 6058case $host in 6059 *-*-mingw* ) 6060 case $build in 6061 *-*-mingw* ) # actually msys 6062 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6063 ;; 6064 esac 6065 ;; 6066esac 6067 6068fi 6069 6070to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6072$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6073 6074 6075 6076 6077 6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6079$as_echo_n "checking for $LD option to reload object files... " >&6; } 6080if ${lt_cv_ld_reload_flag+:} false; then : 6081 $as_echo_n "(cached) " >&6 6082else 6083 lt_cv_ld_reload_flag='-r' 6084fi 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6086$as_echo "$lt_cv_ld_reload_flag" >&6; } 6087reload_flag=$lt_cv_ld_reload_flag 6088case $reload_flag in 6089"" | " "*) ;; 6090*) reload_flag=" $reload_flag" ;; 6091esac 6092reload_cmds='$LD$reload_flag -o $output$reload_objs' 6093case $host_os in 6094 cygwin* | mingw* | pw32* | cegcc*) 6095 if test yes != "$GCC"; then 6096 reload_cmds=false 6097 fi 6098 ;; 6099 darwin*) 6100 if test yes = "$GCC"; then 6101 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6102 else 6103 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6104 fi 6105 ;; 6106esac 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116if test -n "$ac_tool_prefix"; then 6117 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6118set dummy ${ac_tool_prefix}objdump; ac_word=$2 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6120$as_echo_n "checking for $ac_word... " >&6; } 6121if ${ac_cv_prog_OBJDUMP+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123else 6124 if test -n "$OBJDUMP"; then 6125 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6126else 6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6128for as_dir in $PATH 6129do 6130 IFS=$as_save_IFS 6131 test -z "$as_dir" && as_dir=. 6132 for ac_exec_ext in '' $ac_executable_extensions; do 6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6134 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6136 break 2 6137 fi 6138done 6139 done 6140IFS=$as_save_IFS 6141 6142fi 6143fi 6144OBJDUMP=$ac_cv_prog_OBJDUMP 6145if test -n "$OBJDUMP"; then 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6147$as_echo "$OBJDUMP" >&6; } 6148else 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6150$as_echo "no" >&6; } 6151fi 6152 6153 6154fi 6155if test -z "$ac_cv_prog_OBJDUMP"; then 6156 ac_ct_OBJDUMP=$OBJDUMP 6157 # Extract the first word of "objdump", so it can be a program name with args. 6158set dummy objdump; ac_word=$2 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6160$as_echo_n "checking for $ac_word... " >&6; } 6161if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6162 $as_echo_n "(cached) " >&6 6163else 6164 if test -n "$ac_ct_OBJDUMP"; then 6165 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6166else 6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6168for as_dir in $PATH 6169do 6170 IFS=$as_save_IFS 6171 test -z "$as_dir" && as_dir=. 6172 for ac_exec_ext in '' $ac_executable_extensions; do 6173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6174 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6176 break 2 6177 fi 6178done 6179 done 6180IFS=$as_save_IFS 6181 6182fi 6183fi 6184ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6185if test -n "$ac_ct_OBJDUMP"; then 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6187$as_echo "$ac_ct_OBJDUMP" >&6; } 6188else 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6190$as_echo "no" >&6; } 6191fi 6192 6193 if test "x$ac_ct_OBJDUMP" = x; then 6194 OBJDUMP="false" 6195 else 6196 case $cross_compiling:$ac_tool_warned in 6197yes:) 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6200ac_tool_warned=yes ;; 6201esac 6202 OBJDUMP=$ac_ct_OBJDUMP 6203 fi 6204else 6205 OBJDUMP="$ac_cv_prog_OBJDUMP" 6206fi 6207 6208test -z "$OBJDUMP" && OBJDUMP=objdump 6209 6210 6211 6212 6213 6214 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6216$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6217if ${lt_cv_deplibs_check_method+:} false; then : 6218 $as_echo_n "(cached) " >&6 6219else 6220 lt_cv_file_magic_cmd='$MAGIC_CMD' 6221lt_cv_file_magic_test_file= 6222lt_cv_deplibs_check_method='unknown' 6223# Need to set the preceding variable on all platforms that support 6224# interlibrary dependencies. 6225# 'none' -- dependencies not supported. 6226# 'unknown' -- same as none, but documents that we really don't know. 6227# 'pass_all' -- all dependencies passed with no checks. 6228# 'test_compile' -- check by making test program. 6229# 'file_magic [[regex]]' -- check by looking for files in library path 6230# that responds to the $file_magic_cmd with a given extended regex. 6231# If you have 'file' or equivalent on your system and you're not sure 6232# whether 'pass_all' will *always* work, you probably want this one. 6233 6234case $host_os in 6235aix[4-9]*) 6236 lt_cv_deplibs_check_method=pass_all 6237 ;; 6238 6239beos*) 6240 lt_cv_deplibs_check_method=pass_all 6241 ;; 6242 6243bsdi[45]*) 6244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6245 lt_cv_file_magic_cmd='/usr/bin/file -L' 6246 lt_cv_file_magic_test_file=/shlib/libc.so 6247 ;; 6248 6249cygwin*) 6250 # func_win32_libid is a shell function defined in ltmain.sh 6251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6252 lt_cv_file_magic_cmd='func_win32_libid' 6253 ;; 6254 6255mingw* | pw32*) 6256 # Base MSYS/MinGW do not provide the 'file' command needed by 6257 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6258 # unless we find 'file', for example because we are cross-compiling. 6259 if ( file / ) >/dev/null 2>&1; then 6260 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6261 lt_cv_file_magic_cmd='func_win32_libid' 6262 else 6263 # Keep this pattern in sync with the one in func_win32_libid. 6264 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6265 lt_cv_file_magic_cmd='$OBJDUMP -f' 6266 fi 6267 ;; 6268 6269cegcc*) 6270 # use the weaker test based on 'objdump'. See mingw*. 6271 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6272 lt_cv_file_magic_cmd='$OBJDUMP -f' 6273 ;; 6274 6275darwin* | rhapsody*) 6276 lt_cv_deplibs_check_method=pass_all 6277 ;; 6278 6279freebsd* | dragonfly*) 6280 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6281 case $host_cpu in 6282 i*86 ) 6283 # Not sure whether the presence of OpenBSD here was a mistake. 6284 # Let's accept both of them until this is cleared up. 6285 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6286 lt_cv_file_magic_cmd=/usr/bin/file 6287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6288 ;; 6289 esac 6290 else 6291 lt_cv_deplibs_check_method=pass_all 6292 fi 6293 ;; 6294 6295haiku*) 6296 lt_cv_deplibs_check_method=pass_all 6297 ;; 6298 6299hpux10.20* | hpux11*) 6300 lt_cv_file_magic_cmd=/usr/bin/file 6301 case $host_cpu in 6302 ia64*) 6303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6304 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6305 ;; 6306 hppa*64*) 6307 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]' 6308 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6309 ;; 6310 *) 6311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6312 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6313 ;; 6314 esac 6315 ;; 6316 6317interix[3-9]*) 6318 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6320 ;; 6321 6322irix5* | irix6* | nonstopux*) 6323 case $LD in 6324 *-32|*"-32 ") libmagic=32-bit;; 6325 *-n32|*"-n32 ") libmagic=N32;; 6326 *-64|*"-64 ") libmagic=64-bit;; 6327 *) libmagic=never-match;; 6328 esac 6329 lt_cv_deplibs_check_method=pass_all 6330 ;; 6331 6332# This must be glibc/ELF. 6333linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6334 lt_cv_deplibs_check_method=pass_all 6335 ;; 6336 6337netbsd* | netbsdelf*-gnu) 6338 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6340 else 6341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6342 fi 6343 ;; 6344 6345newos6*) 6346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6347 lt_cv_file_magic_cmd=/usr/bin/file 6348 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6349 ;; 6350 6351*nto* | *qnx*) 6352 lt_cv_deplibs_check_method=pass_all 6353 ;; 6354 6355openbsd* | bitrig*) 6356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6358 else 6359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6360 fi 6361 ;; 6362 6363osf3* | osf4* | osf5*) 6364 lt_cv_deplibs_check_method=pass_all 6365 ;; 6366 6367rdos*) 6368 lt_cv_deplibs_check_method=pass_all 6369 ;; 6370 6371solaris*) 6372 lt_cv_deplibs_check_method=pass_all 6373 ;; 6374 6375sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6376 lt_cv_deplibs_check_method=pass_all 6377 ;; 6378 6379sysv4 | sysv4.3*) 6380 case $host_vendor in 6381 motorola) 6382 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]' 6383 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6384 ;; 6385 ncr) 6386 lt_cv_deplibs_check_method=pass_all 6387 ;; 6388 sequent) 6389 lt_cv_file_magic_cmd='/bin/file' 6390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6391 ;; 6392 sni) 6393 lt_cv_file_magic_cmd='/bin/file' 6394 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6395 lt_cv_file_magic_test_file=/lib/libc.so 6396 ;; 6397 siemens) 6398 lt_cv_deplibs_check_method=pass_all 6399 ;; 6400 pc) 6401 lt_cv_deplibs_check_method=pass_all 6402 ;; 6403 esac 6404 ;; 6405 6406tpf*) 6407 lt_cv_deplibs_check_method=pass_all 6408 ;; 6409os2*) 6410 lt_cv_deplibs_check_method=pass_all 6411 ;; 6412esac 6413 6414fi 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6416$as_echo "$lt_cv_deplibs_check_method" >&6; } 6417 6418file_magic_glob= 6419want_nocaseglob=no 6420if test "$build" = "$host"; then 6421 case $host_os in 6422 mingw* | pw32*) 6423 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6424 want_nocaseglob=yes 6425 else 6426 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6427 fi 6428 ;; 6429 esac 6430fi 6431 6432file_magic_cmd=$lt_cv_file_magic_cmd 6433deplibs_check_method=$lt_cv_deplibs_check_method 6434test -z "$deplibs_check_method" && deplibs_check_method=unknown 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457if test -n "$ac_tool_prefix"; then 6458 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6459set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6461$as_echo_n "checking for $ac_word... " >&6; } 6462if ${ac_cv_prog_DLLTOOL+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464else 6465 if test -n "$DLLTOOL"; then 6466 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6467else 6468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6469for as_dir in $PATH 6470do 6471 IFS=$as_save_IFS 6472 test -z "$as_dir" && as_dir=. 6473 for ac_exec_ext in '' $ac_executable_extensions; do 6474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6475 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6477 break 2 6478 fi 6479done 6480 done 6481IFS=$as_save_IFS 6482 6483fi 6484fi 6485DLLTOOL=$ac_cv_prog_DLLTOOL 6486if test -n "$DLLTOOL"; then 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6488$as_echo "$DLLTOOL" >&6; } 6489else 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6491$as_echo "no" >&6; } 6492fi 6493 6494 6495fi 6496if test -z "$ac_cv_prog_DLLTOOL"; then 6497 ac_ct_DLLTOOL=$DLLTOOL 6498 # Extract the first word of "dlltool", so it can be a program name with args. 6499set dummy dlltool; ac_word=$2 6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6501$as_echo_n "checking for $ac_word... " >&6; } 6502if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6503 $as_echo_n "(cached) " >&6 6504else 6505 if test -n "$ac_ct_DLLTOOL"; then 6506 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6507else 6508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6509for as_dir in $PATH 6510do 6511 IFS=$as_save_IFS 6512 test -z "$as_dir" && as_dir=. 6513 for ac_exec_ext in '' $ac_executable_extensions; do 6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6515 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6517 break 2 6518 fi 6519done 6520 done 6521IFS=$as_save_IFS 6522 6523fi 6524fi 6525ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6526if test -n "$ac_ct_DLLTOOL"; then 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6528$as_echo "$ac_ct_DLLTOOL" >&6; } 6529else 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6531$as_echo "no" >&6; } 6532fi 6533 6534 if test "x$ac_ct_DLLTOOL" = x; then 6535 DLLTOOL="false" 6536 else 6537 case $cross_compiling:$ac_tool_warned in 6538yes:) 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6541ac_tool_warned=yes ;; 6542esac 6543 DLLTOOL=$ac_ct_DLLTOOL 6544 fi 6545else 6546 DLLTOOL="$ac_cv_prog_DLLTOOL" 6547fi 6548 6549test -z "$DLLTOOL" && DLLTOOL=dlltool 6550 6551 6552 6553 6554 6555 6556 6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6558$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6559if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6560 $as_echo_n "(cached) " >&6 6561else 6562 lt_cv_sharedlib_from_linklib_cmd='unknown' 6563 6564case $host_os in 6565cygwin* | mingw* | pw32* | cegcc*) 6566 # two different shell functions defined in ltmain.sh; 6567 # decide which one to use based on capabilities of $DLLTOOL 6568 case `$DLLTOOL --help 2>&1` in 6569 *--identify-strict*) 6570 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6571 ;; 6572 *) 6573 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6574 ;; 6575 esac 6576 ;; 6577*) 6578 # fallback: assume linklib IS sharedlib 6579 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6580 ;; 6581esac 6582 6583fi 6584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6585$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6586sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6587test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6588 6589 6590 6591 6592 6593 6594 6595if test -n "$ac_tool_prefix"; then 6596 for ac_prog in ar 6597 do 6598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6599set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6601$as_echo_n "checking for $ac_word... " >&6; } 6602if ${ac_cv_prog_AR+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 if test -n "$AR"; then 6606 ac_cv_prog_AR="$AR" # Let the user override the test. 6607else 6608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6609for as_dir in $PATH 6610do 6611 IFS=$as_save_IFS 6612 test -z "$as_dir" && as_dir=. 6613 for ac_exec_ext in '' $ac_executable_extensions; do 6614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6615 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6617 break 2 6618 fi 6619done 6620 done 6621IFS=$as_save_IFS 6622 6623fi 6624fi 6625AR=$ac_cv_prog_AR 6626if test -n "$AR"; then 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6628$as_echo "$AR" >&6; } 6629else 6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6631$as_echo "no" >&6; } 6632fi 6633 6634 6635 test -n "$AR" && break 6636 done 6637fi 6638if test -z "$AR"; then 6639 ac_ct_AR=$AR 6640 for ac_prog in ar 6641do 6642 # Extract the first word of "$ac_prog", so it can be a program name with args. 6643set dummy $ac_prog; ac_word=$2 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6645$as_echo_n "checking for $ac_word... " >&6; } 6646if ${ac_cv_prog_ac_ct_AR+:} false; then : 6647 $as_echo_n "(cached) " >&6 6648else 6649 if test -n "$ac_ct_AR"; then 6650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6651else 6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6653for as_dir in $PATH 6654do 6655 IFS=$as_save_IFS 6656 test -z "$as_dir" && as_dir=. 6657 for ac_exec_ext in '' $ac_executable_extensions; do 6658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6659 ac_cv_prog_ac_ct_AR="$ac_prog" 6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6661 break 2 6662 fi 6663done 6664 done 6665IFS=$as_save_IFS 6666 6667fi 6668fi 6669ac_ct_AR=$ac_cv_prog_ac_ct_AR 6670if test -n "$ac_ct_AR"; then 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6672$as_echo "$ac_ct_AR" >&6; } 6673else 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6675$as_echo "no" >&6; } 6676fi 6677 6678 6679 test -n "$ac_ct_AR" && break 6680done 6681 6682 if test "x$ac_ct_AR" = x; then 6683 AR="false" 6684 else 6685 case $cross_compiling:$ac_tool_warned in 6686yes:) 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6689ac_tool_warned=yes ;; 6690esac 6691 AR=$ac_ct_AR 6692 fi 6693fi 6694 6695: ${AR=ar} 6696: ${AR_FLAGS=cru} 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6709$as_echo_n "checking for archiver @FILE support... " >&6; } 6710if ${lt_cv_ar_at_file+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 lt_cv_ar_at_file=no 6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6715/* end confdefs.h. */ 6716 6717int 6718main (void) 6719{ 6720 6721 ; 6722 return 0; 6723} 6724_ACEOF 6725if ac_fn_c_try_compile "$LINENO"; then : 6726 echo conftest.$ac_objext > conftest.lst 6727 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6729 (eval $lt_ar_try) 2>&5 6730 ac_status=$? 6731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6732 test $ac_status = 0; } 6733 if test 0 -eq "$ac_status"; then 6734 # Ensure the archiver fails upon bogus file names. 6735 rm -f conftest.$ac_objext libconftest.a 6736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6737 (eval $lt_ar_try) 2>&5 6738 ac_status=$? 6739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6740 test $ac_status = 0; } 6741 if test 0 -ne "$ac_status"; then 6742 lt_cv_ar_at_file=@ 6743 fi 6744 fi 6745 rm -f conftest.* libconftest.a 6746 6747fi 6748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6749 6750fi 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6752$as_echo "$lt_cv_ar_at_file" >&6; } 6753 6754if test no = "$lt_cv_ar_at_file"; then 6755 archiver_list_spec= 6756else 6757 archiver_list_spec=$lt_cv_ar_at_file 6758fi 6759 6760 6761 6762 6763 6764 6765 6766if test -n "$ac_tool_prefix"; then 6767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6768set dummy ${ac_tool_prefix}strip; ac_word=$2 6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6770$as_echo_n "checking for $ac_word... " >&6; } 6771if ${ac_cv_prog_STRIP+:} false; then : 6772 $as_echo_n "(cached) " >&6 6773else 6774 if test -n "$STRIP"; then 6775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6776else 6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6778for as_dir in $PATH 6779do 6780 IFS=$as_save_IFS 6781 test -z "$as_dir" && as_dir=. 6782 for ac_exec_ext in '' $ac_executable_extensions; do 6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6784 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6786 break 2 6787 fi 6788done 6789 done 6790IFS=$as_save_IFS 6791 6792fi 6793fi 6794STRIP=$ac_cv_prog_STRIP 6795if test -n "$STRIP"; then 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6797$as_echo "$STRIP" >&6; } 6798else 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6800$as_echo "no" >&6; } 6801fi 6802 6803 6804fi 6805if test -z "$ac_cv_prog_STRIP"; then 6806 ac_ct_STRIP=$STRIP 6807 # Extract the first word of "strip", so it can be a program name with args. 6808set dummy strip; ac_word=$2 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6810$as_echo_n "checking for $ac_word... " >&6; } 6811if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 if test -n "$ac_ct_STRIP"; then 6815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6816else 6817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6818for as_dir in $PATH 6819do 6820 IFS=$as_save_IFS 6821 test -z "$as_dir" && as_dir=. 6822 for ac_exec_ext in '' $ac_executable_extensions; do 6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6824 ac_cv_prog_ac_ct_STRIP="strip" 6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6826 break 2 6827 fi 6828done 6829 done 6830IFS=$as_save_IFS 6831 6832fi 6833fi 6834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6835if test -n "$ac_ct_STRIP"; then 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6837$as_echo "$ac_ct_STRIP" >&6; } 6838else 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840$as_echo "no" >&6; } 6841fi 6842 6843 if test "x$ac_ct_STRIP" = x; then 6844 STRIP=":" 6845 else 6846 case $cross_compiling:$ac_tool_warned in 6847yes:) 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6850ac_tool_warned=yes ;; 6851esac 6852 STRIP=$ac_ct_STRIP 6853 fi 6854else 6855 STRIP="$ac_cv_prog_STRIP" 6856fi 6857 6858test -z "$STRIP" && STRIP=: 6859 6860 6861 6862 6863 6864 6865if test -n "$ac_tool_prefix"; then 6866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6867set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6869$as_echo_n "checking for $ac_word... " >&6; } 6870if ${ac_cv_prog_RANLIB+:} false; then : 6871 $as_echo_n "(cached) " >&6 6872else 6873 if test -n "$RANLIB"; then 6874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6875else 6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6877for as_dir in $PATH 6878do 6879 IFS=$as_save_IFS 6880 test -z "$as_dir" && as_dir=. 6881 for ac_exec_ext in '' $ac_executable_extensions; do 6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6885 break 2 6886 fi 6887done 6888 done 6889IFS=$as_save_IFS 6890 6891fi 6892fi 6893RANLIB=$ac_cv_prog_RANLIB 6894if test -n "$RANLIB"; then 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6896$as_echo "$RANLIB" >&6; } 6897else 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6899$as_echo "no" >&6; } 6900fi 6901 6902 6903fi 6904if test -z "$ac_cv_prog_RANLIB"; then 6905 ac_ct_RANLIB=$RANLIB 6906 # Extract the first word of "ranlib", so it can be a program name with args. 6907set dummy ranlib; ac_word=$2 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6909$as_echo_n "checking for $ac_word... " >&6; } 6910if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 if test -n "$ac_ct_RANLIB"; then 6914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6915else 6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917for as_dir in $PATH 6918do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6923 ac_cv_prog_ac_ct_RANLIB="ranlib" 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927done 6928 done 6929IFS=$as_save_IFS 6930 6931fi 6932fi 6933ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6934if test -n "$ac_ct_RANLIB"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6936$as_echo "$ac_ct_RANLIB" >&6; } 6937else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939$as_echo "no" >&6; } 6940fi 6941 6942 if test "x$ac_ct_RANLIB" = x; then 6943 RANLIB=":" 6944 else 6945 case $cross_compiling:$ac_tool_warned in 6946yes:) 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6949ac_tool_warned=yes ;; 6950esac 6951 RANLIB=$ac_ct_RANLIB 6952 fi 6953else 6954 RANLIB="$ac_cv_prog_RANLIB" 6955fi 6956 6957test -z "$RANLIB" && RANLIB=: 6958 6959 6960 6961 6962 6963 6964# Determine commands to create old-style static archives. 6965old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6966old_postinstall_cmds='chmod 644 $oldlib' 6967old_postuninstall_cmds= 6968 6969if test -n "$RANLIB"; then 6970 case $host_os in 6971 bitrig* | openbsd*) 6972 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6973 ;; 6974 *) 6975 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6976 ;; 6977 esac 6978 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6979fi 6980 6981case $host_os in 6982 darwin*) 6983 lock_old_archive_extraction=yes ;; 6984 *) 6985 lock_old_archive_extraction=no ;; 6986esac 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026# If no C compiler was specified, use CC. 7027LTCC=${LTCC-"$CC"} 7028 7029# If no C compiler flags were specified, use CFLAGS. 7030LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7031 7032# Allow CC to be a program name with arguments. 7033compiler=$CC 7034 7035 7036# Check for command to grab the raw symbol name followed by C symbol from nm. 7037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7038$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7039if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 7043# These are sane defaults that work on at least a few old systems. 7044# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7045 7046# Character class describing NM global symbol codes. 7047symcode='[BCDEGRST]' 7048 7049# Regexp to match symbols that can be accessed directly from C. 7050sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7051 7052# Define system-specific variables. 7053case $host_os in 7054aix*) 7055 symcode='[BCDT]' 7056 ;; 7057cygwin* | mingw* | pw32* | cegcc*) 7058 symcode='[ABCDGISTW]' 7059 ;; 7060hpux*) 7061 if test ia64 = "$host_cpu"; then 7062 symcode='[ABCDEGRST]' 7063 fi 7064 ;; 7065irix* | nonstopux*) 7066 symcode='[BCDEGRST]' 7067 ;; 7068osf*) 7069 symcode='[BCDEGQRST]' 7070 ;; 7071solaris*) 7072 symcode='[BDRT]' 7073 ;; 7074sco3.2v5*) 7075 symcode='[DT]' 7076 ;; 7077sysv4.2uw2*) 7078 symcode='[DT]' 7079 ;; 7080sysv5* | sco5v6* | unixware* | OpenUNIX*) 7081 symcode='[ABDT]' 7082 ;; 7083sysv4) 7084 symcode='[DFNSTU]' 7085 ;; 7086esac 7087 7088# If we're using GNU nm, then use its standard symbol codes. 7089case `$NM -V 2>&1` in 7090*GNU* | *'with BFD'*) 7091 symcode='[ABCDGIRSTW]' ;; 7092esac 7093 7094if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7095 # Gets list of data symbols to import. 7096 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7097 # Adjust the below global symbol transforms to fixup imported variables. 7098 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7099 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7100 lt_c_name_lib_hook="\ 7101 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7102 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7103else 7104 # Disable hooks by default. 7105 lt_cv_sys_global_symbol_to_import= 7106 lt_cdecl_hook= 7107 lt_c_name_hook= 7108 lt_c_name_lib_hook= 7109fi 7110 7111# Transform an extracted symbol line into a proper C declaration. 7112# Some systems (esp. on ia64) link data and code symbols differently, 7113# so use this general approach. 7114lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7115$lt_cdecl_hook\ 7116" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7117" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7118 7119# Transform an extracted symbol line into symbol name and symbol address 7120lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7121$lt_c_name_hook\ 7122" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7123" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7124 7125# Transform an extracted symbol line into symbol name with lib prefix and 7126# symbol address. 7127lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7128$lt_c_name_lib_hook\ 7129" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7130" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7131" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7132 7133# Handle CRLF in mingw tool chain 7134opt_cr= 7135case $build_os in 7136mingw*) 7137 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7138 ;; 7139esac 7140 7141# Try without a prefix underscore, then with it. 7142for ac_symprfx in "" "_"; do 7143 7144 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7145 symxfrm="\\1 $ac_symprfx\\2 \\2" 7146 7147 # Write the raw and C identifiers. 7148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7149 # Fake it for dumpbin and say T for any non-static function, 7150 # D for any global variable and I for any imported variable. 7151 # Also find C++ and __fastcall symbols from MSVC++, 7152 # which start with @ or ?. 7153 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7154" {last_section=section; section=\$ 3};"\ 7155" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7156" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7157" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7158" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7159" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7160" \$ 0!~/External *\|/{next};"\ 7161" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7162" {if(hide[section]) next};"\ 7163" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7164" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7165" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7166" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7167" ' prfx=^$ac_symprfx" 7168 else 7169 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7170 fi 7171 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7172 7173 # Check to see that the pipe works correctly. 7174 pipe_works=no 7175 7176 rm -f conftest* 7177 cat > conftest.$ac_ext <<_LT_EOF 7178#ifdef __cplusplus 7179extern "C" { 7180#endif 7181char nm_test_var; 7182void nm_test_func(void); 7183void nm_test_func(void){} 7184#ifdef __cplusplus 7185} 7186#endif 7187int main(){nm_test_var='a';nm_test_func();return(0);} 7188_LT_EOF 7189 7190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7191 (eval $ac_compile) 2>&5 7192 ac_status=$? 7193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7194 test $ac_status = 0; }; then 7195 # Now try to grab the symbols. 7196 nlist=conftest.nm 7197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7198 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7199 ac_status=$? 7200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7201 test $ac_status = 0; } && test -s "$nlist"; then 7202 # Try sorting and uniquifying the output. 7203 if sort "$nlist" | uniq > "$nlist"T; then 7204 mv -f "$nlist"T "$nlist" 7205 else 7206 rm -f "$nlist"T 7207 fi 7208 7209 # Make sure that we snagged all the symbols we need. 7210 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7211 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7212 cat <<_LT_EOF > conftest.$ac_ext 7213/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7214#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7215/* DATA imports from DLLs on WIN32 can't be const, because runtime 7216 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7217# define LT_DLSYM_CONST 7218#elif defined __osf__ 7219/* This system does not cope well with relocations in const data. */ 7220# define LT_DLSYM_CONST 7221#else 7222# define LT_DLSYM_CONST const 7223#endif 7224 7225#ifdef __cplusplus 7226extern "C" { 7227#endif 7228 7229_LT_EOF 7230 # Now generate the symbol file. 7231 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7232 7233 cat <<_LT_EOF >> conftest.$ac_ext 7234 7235/* The mapping between symbol names and symbols. */ 7236LT_DLSYM_CONST struct { 7237 const char *name; 7238 void *address; 7239} 7240lt__PROGRAM__LTX_preloaded_symbols[] = 7241{ 7242 { "@PROGRAM@", (void *) 0 }, 7243_LT_EOF 7244 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7245 cat <<\_LT_EOF >> conftest.$ac_ext 7246 {0, (void *) 0} 7247}; 7248 7249/* This works around a problem in FreeBSD linker */ 7250#ifdef FREEBSD_WORKAROUND 7251static const void *lt_preloaded_setup() { 7252 return lt__PROGRAM__LTX_preloaded_symbols; 7253} 7254#endif 7255 7256#ifdef __cplusplus 7257} 7258#endif 7259_LT_EOF 7260 # Now try linking the two files. 7261 mv conftest.$ac_objext conftstm.$ac_objext 7262 lt_globsym_save_LIBS=$LIBS 7263 lt_globsym_save_CFLAGS=$CFLAGS 7264 LIBS=conftstm.$ac_objext 7265 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7267 (eval $ac_link) 2>&5 7268 ac_status=$? 7269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7270 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7271 pipe_works=yes 7272 fi 7273 LIBS=$lt_globsym_save_LIBS 7274 CFLAGS=$lt_globsym_save_CFLAGS 7275 else 7276 echo "cannot find nm_test_func in $nlist" >&5 7277 fi 7278 else 7279 echo "cannot find nm_test_var in $nlist" >&5 7280 fi 7281 else 7282 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7283 fi 7284 else 7285 echo "$progname: failed program was:" >&5 7286 cat conftest.$ac_ext >&5 7287 fi 7288 rm -rf conftest* conftst* 7289 7290 # Do not use the global_symbol_pipe unless it works. 7291 if test yes = "$pipe_works"; then 7292 break 7293 else 7294 lt_cv_sys_global_symbol_pipe= 7295 fi 7296done 7297 7298fi 7299 7300if test -z "$lt_cv_sys_global_symbol_pipe"; then 7301 lt_cv_sys_global_symbol_to_cdecl= 7302fi 7303if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7305$as_echo "failed" >&6; } 7306else 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7308$as_echo "ok" >&6; } 7309fi 7310 7311# Response file support. 7312if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7313 nm_file_list_spec='@' 7314elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7315 nm_file_list_spec='@' 7316fi 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7355$as_echo_n "checking for sysroot... " >&6; } 7356 7357# Check whether --with-sysroot was given. 7358if test "${with_sysroot+set}" = set; then : 7359 withval=$with_sysroot; 7360else 7361 with_sysroot=no 7362fi 7363 7364 7365lt_sysroot= 7366case $with_sysroot in #( 7367 yes) 7368 if test yes = "$GCC"; then 7369 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7370 fi 7371 ;; #( 7372 /*) 7373 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7374 ;; #( 7375 no|'') 7376 ;; #( 7377 *) 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7379$as_echo "$with_sysroot" >&6; } 7380 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7381 ;; 7382esac 7383 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7385$as_echo "${lt_sysroot:-no}" >&6; } 7386 7387 7388 7389 7390 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7392$as_echo_n "checking for a working dd... " >&6; } 7393if ${ac_cv_path_lt_DD+:} false; then : 7394 $as_echo_n "(cached) " >&6 7395else 7396 printf 0123456789abcdef0123456789abcdef >conftest.i 7397cat conftest.i conftest.i >conftest2.i 7398: ${lt_DD:=$DD} 7399if test -z "$lt_DD"; then 7400 ac_path_lt_DD_found=false 7401 # Loop through the user's path and test for each of PROGNAME-LIST 7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7403for as_dir in $PATH 7404do 7405 IFS=$as_save_IFS 7406 test -z "$as_dir" && as_dir=. 7407 for ac_prog in dd; do 7408 for ac_exec_ext in '' $ac_executable_extensions; do 7409 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7410 as_fn_executable_p "$ac_path_lt_DD" || continue 7411if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7412 cmp -s conftest.i conftest.out \ 7413 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7414fi 7415 $ac_path_lt_DD_found && break 3 7416 done 7417 done 7418 done 7419IFS=$as_save_IFS 7420 if test -z "$ac_cv_path_lt_DD"; then 7421 : 7422 fi 7423else 7424 ac_cv_path_lt_DD=$lt_DD 7425fi 7426 7427rm -f conftest.i conftest2.i conftest.out 7428fi 7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7430$as_echo "$ac_cv_path_lt_DD" >&6; } 7431 7432 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7434$as_echo_n "checking how to truncate binary pipes... " >&6; } 7435if ${lt_cv_truncate_bin+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 printf 0123456789abcdef0123456789abcdef >conftest.i 7439cat conftest.i conftest.i >conftest2.i 7440lt_cv_truncate_bin= 7441if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7442 cmp -s conftest.i conftest.out \ 7443 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7444fi 7445rm -f conftest.i conftest2.i conftest.out 7446test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7447fi 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7449$as_echo "$lt_cv_truncate_bin" >&6; } 7450 7451 7452 7453 7454 7455 7456 7457# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7458func_cc_basename () 7459{ 7460 for cc_temp in $*""; do 7461 case $cc_temp in 7462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7464 \-*) ;; 7465 *) break;; 7466 esac 7467 done 7468 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7469} 7470 7471# Check whether --enable-libtool-lock was given. 7472if test "${enable_libtool_lock+set}" = set; then : 7473 enableval=$enable_libtool_lock; 7474fi 7475 7476test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7477 7478# Some flags need to be propagated to the compiler or linker for good 7479# libtool support. 7480case $host in 7481ia64-*-hpux*) 7482 # Find out what ABI is being produced by ac_compile, and set mode 7483 # options accordingly. 7484 echo 'int i;' > conftest.$ac_ext 7485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7486 (eval $ac_compile) 2>&5 7487 ac_status=$? 7488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7489 test $ac_status = 0; }; then 7490 case `/usr/bin/file conftest.$ac_objext` in 7491 *ELF-32*) 7492 HPUX_IA64_MODE=32 7493 ;; 7494 *ELF-64*) 7495 HPUX_IA64_MODE=64 7496 ;; 7497 esac 7498 fi 7499 rm -rf conftest* 7500 ;; 7501*-*-irix6*) 7502 # Find out what ABI is being produced by ac_compile, and set linker 7503 # options accordingly. 7504 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7506 (eval $ac_compile) 2>&5 7507 ac_status=$? 7508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7509 test $ac_status = 0; }; then 7510 if test yes = "$lt_cv_prog_gnu_ld"; then 7511 case `/usr/bin/file conftest.$ac_objext` in 7512 *32-bit*) 7513 LD="${LD-ld} -melf32bsmip" 7514 ;; 7515 *N32*) 7516 LD="${LD-ld} -melf32bmipn32" 7517 ;; 7518 *64-bit*) 7519 LD="${LD-ld} -melf64bmip" 7520 ;; 7521 esac 7522 else 7523 case `/usr/bin/file conftest.$ac_objext` in 7524 *32-bit*) 7525 LD="${LD-ld} -32" 7526 ;; 7527 *N32*) 7528 LD="${LD-ld} -n32" 7529 ;; 7530 *64-bit*) 7531 LD="${LD-ld} -64" 7532 ;; 7533 esac 7534 fi 7535 fi 7536 rm -rf conftest* 7537 ;; 7538 7539mips64*-*linux*) 7540 # Find out what ABI is being produced by ac_compile, and set linker 7541 # options accordingly. 7542 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7544 (eval $ac_compile) 2>&5 7545 ac_status=$? 7546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7547 test $ac_status = 0; }; then 7548 emul=elf 7549 case `/usr/bin/file conftest.$ac_objext` in 7550 *32-bit*) 7551 emul="${emul}32" 7552 ;; 7553 *64-bit*) 7554 emul="${emul}64" 7555 ;; 7556 esac 7557 case `/usr/bin/file conftest.$ac_objext` in 7558 *MSB*) 7559 emul="${emul}btsmip" 7560 ;; 7561 *LSB*) 7562 emul="${emul}ltsmip" 7563 ;; 7564 esac 7565 case `/usr/bin/file conftest.$ac_objext` in 7566 *N32*) 7567 emul="${emul}n32" 7568 ;; 7569 esac 7570 LD="${LD-ld} -m $emul" 7571 fi 7572 rm -rf conftest* 7573 ;; 7574 7575x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7576s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7577 # Find out what ABI is being produced by ac_compile, and set linker 7578 # options accordingly. Note that the listed cases only cover the 7579 # situations where additional linker options are needed (such as when 7580 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7581 # vice versa); the common cases where no linker options are needed do 7582 # not appear in the list. 7583 echo 'int i;' > conftest.$ac_ext 7584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7585 (eval $ac_compile) 2>&5 7586 ac_status=$? 7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7588 test $ac_status = 0; }; then 7589 case `/usr/bin/file conftest.o` in 7590 *32-bit*) 7591 case $host in 7592 x86_64-*kfreebsd*-gnu) 7593 LD="${LD-ld} -m elf_i386_fbsd" 7594 ;; 7595 x86_64-*linux*) 7596 case `/usr/bin/file conftest.o` in 7597 *x86-64*) 7598 LD="${LD-ld} -m elf32_x86_64" 7599 ;; 7600 *) 7601 LD="${LD-ld} -m elf_i386" 7602 ;; 7603 esac 7604 ;; 7605 powerpc64le-*linux*) 7606 LD="${LD-ld} -m elf32lppclinux" 7607 ;; 7608 powerpc64-*linux*) 7609 LD="${LD-ld} -m elf32ppclinux" 7610 ;; 7611 s390x-*linux*) 7612 LD="${LD-ld} -m elf_s390" 7613 ;; 7614 sparc64-*linux*) 7615 LD="${LD-ld} -m elf32_sparc" 7616 ;; 7617 esac 7618 ;; 7619 *64-bit*) 7620 case $host in 7621 x86_64-*kfreebsd*-gnu) 7622 LD="${LD-ld} -m elf_x86_64_fbsd" 7623 ;; 7624 x86_64-*linux*) 7625 LD="${LD-ld} -m elf_x86_64" 7626 ;; 7627 powerpcle-*linux*) 7628 LD="${LD-ld} -m elf64lppc" 7629 ;; 7630 powerpc-*linux*) 7631 LD="${LD-ld} -m elf64ppc" 7632 ;; 7633 s390*-*linux*|s390*-*tpf*) 7634 LD="${LD-ld} -m elf64_s390" 7635 ;; 7636 sparc*-*linux*) 7637 LD="${LD-ld} -m elf64_sparc" 7638 ;; 7639 esac 7640 ;; 7641 esac 7642 fi 7643 rm -rf conftest* 7644 ;; 7645 7646*-*-sco3.2v5*) 7647 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7648 SAVE_CFLAGS=$CFLAGS 7649 CFLAGS="$CFLAGS -belf" 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7651$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7652if ${lt_cv_cc_needs_belf+:} false; then : 7653 $as_echo_n "(cached) " >&6 7654else 7655 ac_ext=c 7656ac_cpp='$CPP $CPPFLAGS' 7657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7659ac_compiler_gnu=$ac_cv_c_compiler_gnu 7660 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663 7664int 7665main (void) 7666{ 7667 7668 ; 7669 return 0; 7670} 7671_ACEOF 7672if ac_fn_c_try_link "$LINENO"; then : 7673 lt_cv_cc_needs_belf=yes 7674else 7675 lt_cv_cc_needs_belf=no 7676fi 7677rm -f core conftest.err conftest.$ac_objext \ 7678 conftest$ac_exeext conftest.$ac_ext 7679 ac_ext=c 7680ac_cpp='$CPP $CPPFLAGS' 7681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7683ac_compiler_gnu=$ac_cv_c_compiler_gnu 7684 7685fi 7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7687$as_echo "$lt_cv_cc_needs_belf" >&6; } 7688 if test yes != "$lt_cv_cc_needs_belf"; then 7689 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7690 CFLAGS=$SAVE_CFLAGS 7691 fi 7692 ;; 7693*-*solaris*) 7694 # Find out what ABI is being produced by ac_compile, and set linker 7695 # options accordingly. 7696 echo 'int i;' > conftest.$ac_ext 7697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7698 (eval $ac_compile) 2>&5 7699 ac_status=$? 7700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7701 test $ac_status = 0; }; then 7702 case `/usr/bin/file conftest.o` in 7703 *64-bit*) 7704 case $lt_cv_prog_gnu_ld in 7705 yes*) 7706 case $host in 7707 i?86-*-solaris*|x86_64-*-solaris*) 7708 LD="${LD-ld} -m elf_x86_64" 7709 ;; 7710 sparc*-*-solaris*) 7711 LD="${LD-ld} -m elf64_sparc" 7712 ;; 7713 esac 7714 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7715 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7716 LD=${LD-ld}_sol2 7717 fi 7718 ;; 7719 *) 7720 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7721 LD="${LD-ld} -64" 7722 fi 7723 ;; 7724 esac 7725 ;; 7726 esac 7727 fi 7728 rm -rf conftest* 7729 ;; 7730esac 7731 7732need_locks=$enable_libtool_lock 7733 7734if test -n "$ac_tool_prefix"; then 7735 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7736set dummy ${ac_tool_prefix}mt; ac_word=$2 7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7738$as_echo_n "checking for $ac_word... " >&6; } 7739if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7740 $as_echo_n "(cached) " >&6 7741else 7742 if test -n "$MANIFEST_TOOL"; then 7743 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7744else 7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7746for as_dir in $PATH 7747do 7748 IFS=$as_save_IFS 7749 test -z "$as_dir" && as_dir=. 7750 for ac_exec_ext in '' $ac_executable_extensions; do 7751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7752 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7754 break 2 7755 fi 7756done 7757 done 7758IFS=$as_save_IFS 7759 7760fi 7761fi 7762MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7763if test -n "$MANIFEST_TOOL"; then 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7765$as_echo "$MANIFEST_TOOL" >&6; } 7766else 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7768$as_echo "no" >&6; } 7769fi 7770 7771 7772fi 7773if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7774 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7775 # Extract the first word of "mt", so it can be a program name with args. 7776set dummy mt; ac_word=$2 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7778$as_echo_n "checking for $ac_word... " >&6; } 7779if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7780 $as_echo_n "(cached) " >&6 7781else 7782 if test -n "$ac_ct_MANIFEST_TOOL"; then 7783 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7784else 7785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7786for as_dir in $PATH 7787do 7788 IFS=$as_save_IFS 7789 test -z "$as_dir" && as_dir=. 7790 for ac_exec_ext in '' $ac_executable_extensions; do 7791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7792 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7794 break 2 7795 fi 7796done 7797 done 7798IFS=$as_save_IFS 7799 7800fi 7801fi 7802ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7803if test -n "$ac_ct_MANIFEST_TOOL"; then 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7805$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7806else 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7808$as_echo "no" >&6; } 7809fi 7810 7811 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7812 MANIFEST_TOOL=":" 7813 else 7814 case $cross_compiling:$ac_tool_warned in 7815yes:) 7816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7818ac_tool_warned=yes ;; 7819esac 7820 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7821 fi 7822else 7823 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7824fi 7825 7826test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7828$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7829if ${lt_cv_path_mainfest_tool+:} false; then : 7830 $as_echo_n "(cached) " >&6 7831else 7832 lt_cv_path_mainfest_tool=no 7833 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7834 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7835 cat conftest.err >&5 7836 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7837 lt_cv_path_mainfest_tool=yes 7838 fi 7839 rm -f conftest* 7840fi 7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7842$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7843if test yes != "$lt_cv_path_mainfest_tool"; then 7844 MANIFEST_TOOL=: 7845fi 7846 7847 7848 7849 7850 7851 7852 case $host_os in 7853 rhapsody* | darwin*) 7854 if test -n "$ac_tool_prefix"; then 7855 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7856set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7858$as_echo_n "checking for $ac_word... " >&6; } 7859if ${ac_cv_prog_DSYMUTIL+:} false; then : 7860 $as_echo_n "(cached) " >&6 7861else 7862 if test -n "$DSYMUTIL"; then 7863 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7864else 7865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7866for as_dir in $PATH 7867do 7868 IFS=$as_save_IFS 7869 test -z "$as_dir" && as_dir=. 7870 for ac_exec_ext in '' $ac_executable_extensions; do 7871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7872 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7874 break 2 7875 fi 7876done 7877 done 7878IFS=$as_save_IFS 7879 7880fi 7881fi 7882DSYMUTIL=$ac_cv_prog_DSYMUTIL 7883if test -n "$DSYMUTIL"; then 7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7885$as_echo "$DSYMUTIL" >&6; } 7886else 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7888$as_echo "no" >&6; } 7889fi 7890 7891 7892fi 7893if test -z "$ac_cv_prog_DSYMUTIL"; then 7894 ac_ct_DSYMUTIL=$DSYMUTIL 7895 # Extract the first word of "dsymutil", so it can be a program name with args. 7896set dummy dsymutil; ac_word=$2 7897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7898$as_echo_n "checking for $ac_word... " >&6; } 7899if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7900 $as_echo_n "(cached) " >&6 7901else 7902 if test -n "$ac_ct_DSYMUTIL"; then 7903 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7904else 7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7906for as_dir in $PATH 7907do 7908 IFS=$as_save_IFS 7909 test -z "$as_dir" && as_dir=. 7910 for ac_exec_ext in '' $ac_executable_extensions; do 7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7912 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7914 break 2 7915 fi 7916done 7917 done 7918IFS=$as_save_IFS 7919 7920fi 7921fi 7922ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7923if test -n "$ac_ct_DSYMUTIL"; then 7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7925$as_echo "$ac_ct_DSYMUTIL" >&6; } 7926else 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7928$as_echo "no" >&6; } 7929fi 7930 7931 if test "x$ac_ct_DSYMUTIL" = x; then 7932 DSYMUTIL=":" 7933 else 7934 case $cross_compiling:$ac_tool_warned in 7935yes:) 7936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7938ac_tool_warned=yes ;; 7939esac 7940 DSYMUTIL=$ac_ct_DSYMUTIL 7941 fi 7942else 7943 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7944fi 7945 7946 if test -n "$ac_tool_prefix"; then 7947 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7948set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7950$as_echo_n "checking for $ac_word... " >&6; } 7951if ${ac_cv_prog_NMEDIT+:} false; then : 7952 $as_echo_n "(cached) " >&6 7953else 7954 if test -n "$NMEDIT"; then 7955 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7956else 7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7958for as_dir in $PATH 7959do 7960 IFS=$as_save_IFS 7961 test -z "$as_dir" && as_dir=. 7962 for ac_exec_ext in '' $ac_executable_extensions; do 7963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7964 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7966 break 2 7967 fi 7968done 7969 done 7970IFS=$as_save_IFS 7971 7972fi 7973fi 7974NMEDIT=$ac_cv_prog_NMEDIT 7975if test -n "$NMEDIT"; then 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7977$as_echo "$NMEDIT" >&6; } 7978else 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7980$as_echo "no" >&6; } 7981fi 7982 7983 7984fi 7985if test -z "$ac_cv_prog_NMEDIT"; then 7986 ac_ct_NMEDIT=$NMEDIT 7987 # Extract the first word of "nmedit", so it can be a program name with args. 7988set dummy nmedit; ac_word=$2 7989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7990$as_echo_n "checking for $ac_word... " >&6; } 7991if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7992 $as_echo_n "(cached) " >&6 7993else 7994 if test -n "$ac_ct_NMEDIT"; then 7995 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7996else 7997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7998for as_dir in $PATH 7999do 8000 IFS=$as_save_IFS 8001 test -z "$as_dir" && as_dir=. 8002 for ac_exec_ext in '' $ac_executable_extensions; do 8003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8004 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8006 break 2 8007 fi 8008done 8009 done 8010IFS=$as_save_IFS 8011 8012fi 8013fi 8014ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8015if test -n "$ac_ct_NMEDIT"; then 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8017$as_echo "$ac_ct_NMEDIT" >&6; } 8018else 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8020$as_echo "no" >&6; } 8021fi 8022 8023 if test "x$ac_ct_NMEDIT" = x; then 8024 NMEDIT=":" 8025 else 8026 case $cross_compiling:$ac_tool_warned in 8027yes:) 8028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8030ac_tool_warned=yes ;; 8031esac 8032 NMEDIT=$ac_ct_NMEDIT 8033 fi 8034else 8035 NMEDIT="$ac_cv_prog_NMEDIT" 8036fi 8037 8038 if test -n "$ac_tool_prefix"; then 8039 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8040set dummy ${ac_tool_prefix}lipo; ac_word=$2 8041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8042$as_echo_n "checking for $ac_word... " >&6; } 8043if ${ac_cv_prog_LIPO+:} false; then : 8044 $as_echo_n "(cached) " >&6 8045else 8046 if test -n "$LIPO"; then 8047 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8048else 8049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8050for as_dir in $PATH 8051do 8052 IFS=$as_save_IFS 8053 test -z "$as_dir" && as_dir=. 8054 for ac_exec_ext in '' $ac_executable_extensions; do 8055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8056 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8058 break 2 8059 fi 8060done 8061 done 8062IFS=$as_save_IFS 8063 8064fi 8065fi 8066LIPO=$ac_cv_prog_LIPO 8067if test -n "$LIPO"; then 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8069$as_echo "$LIPO" >&6; } 8070else 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8072$as_echo "no" >&6; } 8073fi 8074 8075 8076fi 8077if test -z "$ac_cv_prog_LIPO"; then 8078 ac_ct_LIPO=$LIPO 8079 # Extract the first word of "lipo", so it can be a program name with args. 8080set dummy lipo; ac_word=$2 8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8082$as_echo_n "checking for $ac_word... " >&6; } 8083if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8084 $as_echo_n "(cached) " >&6 8085else 8086 if test -n "$ac_ct_LIPO"; then 8087 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8088else 8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8090for as_dir in $PATH 8091do 8092 IFS=$as_save_IFS 8093 test -z "$as_dir" && as_dir=. 8094 for ac_exec_ext in '' $ac_executable_extensions; do 8095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8096 ac_cv_prog_ac_ct_LIPO="lipo" 8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8098 break 2 8099 fi 8100done 8101 done 8102IFS=$as_save_IFS 8103 8104fi 8105fi 8106ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8107if test -n "$ac_ct_LIPO"; then 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8109$as_echo "$ac_ct_LIPO" >&6; } 8110else 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8112$as_echo "no" >&6; } 8113fi 8114 8115 if test "x$ac_ct_LIPO" = x; then 8116 LIPO=":" 8117 else 8118 case $cross_compiling:$ac_tool_warned in 8119yes:) 8120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8122ac_tool_warned=yes ;; 8123esac 8124 LIPO=$ac_ct_LIPO 8125 fi 8126else 8127 LIPO="$ac_cv_prog_LIPO" 8128fi 8129 8130 if test -n "$ac_tool_prefix"; then 8131 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8132set dummy ${ac_tool_prefix}otool; ac_word=$2 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8134$as_echo_n "checking for $ac_word... " >&6; } 8135if ${ac_cv_prog_OTOOL+:} false; then : 8136 $as_echo_n "(cached) " >&6 8137else 8138 if test -n "$OTOOL"; then 8139 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8140else 8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8142for as_dir in $PATH 8143do 8144 IFS=$as_save_IFS 8145 test -z "$as_dir" && as_dir=. 8146 for ac_exec_ext in '' $ac_executable_extensions; do 8147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8148 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8150 break 2 8151 fi 8152done 8153 done 8154IFS=$as_save_IFS 8155 8156fi 8157fi 8158OTOOL=$ac_cv_prog_OTOOL 8159if test -n "$OTOOL"; then 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8161$as_echo "$OTOOL" >&6; } 8162else 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8164$as_echo "no" >&6; } 8165fi 8166 8167 8168fi 8169if test -z "$ac_cv_prog_OTOOL"; then 8170 ac_ct_OTOOL=$OTOOL 8171 # Extract the first word of "otool", so it can be a program name with args. 8172set dummy otool; ac_word=$2 8173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8174$as_echo_n "checking for $ac_word... " >&6; } 8175if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8176 $as_echo_n "(cached) " >&6 8177else 8178 if test -n "$ac_ct_OTOOL"; then 8179 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8180else 8181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8182for as_dir in $PATH 8183do 8184 IFS=$as_save_IFS 8185 test -z "$as_dir" && as_dir=. 8186 for ac_exec_ext in '' $ac_executable_extensions; do 8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8188 ac_cv_prog_ac_ct_OTOOL="otool" 8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8190 break 2 8191 fi 8192done 8193 done 8194IFS=$as_save_IFS 8195 8196fi 8197fi 8198ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8199if test -n "$ac_ct_OTOOL"; then 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8201$as_echo "$ac_ct_OTOOL" >&6; } 8202else 8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8204$as_echo "no" >&6; } 8205fi 8206 8207 if test "x$ac_ct_OTOOL" = x; then 8208 OTOOL=":" 8209 else 8210 case $cross_compiling:$ac_tool_warned in 8211yes:) 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8214ac_tool_warned=yes ;; 8215esac 8216 OTOOL=$ac_ct_OTOOL 8217 fi 8218else 8219 OTOOL="$ac_cv_prog_OTOOL" 8220fi 8221 8222 if test -n "$ac_tool_prefix"; then 8223 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8224set dummy ${ac_tool_prefix}otool64; ac_word=$2 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8226$as_echo_n "checking for $ac_word... " >&6; } 8227if ${ac_cv_prog_OTOOL64+:} false; then : 8228 $as_echo_n "(cached) " >&6 8229else 8230 if test -n "$OTOOL64"; then 8231 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8232else 8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8234for as_dir in $PATH 8235do 8236 IFS=$as_save_IFS 8237 test -z "$as_dir" && as_dir=. 8238 for ac_exec_ext in '' $ac_executable_extensions; do 8239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8240 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8242 break 2 8243 fi 8244done 8245 done 8246IFS=$as_save_IFS 8247 8248fi 8249fi 8250OTOOL64=$ac_cv_prog_OTOOL64 8251if test -n "$OTOOL64"; then 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8253$as_echo "$OTOOL64" >&6; } 8254else 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8256$as_echo "no" >&6; } 8257fi 8258 8259 8260fi 8261if test -z "$ac_cv_prog_OTOOL64"; then 8262 ac_ct_OTOOL64=$OTOOL64 8263 # Extract the first word of "otool64", so it can be a program name with args. 8264set dummy otool64; ac_word=$2 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8266$as_echo_n "checking for $ac_word... " >&6; } 8267if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8268 $as_echo_n "(cached) " >&6 8269else 8270 if test -n "$ac_ct_OTOOL64"; then 8271 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8272else 8273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8274for as_dir in $PATH 8275do 8276 IFS=$as_save_IFS 8277 test -z "$as_dir" && as_dir=. 8278 for ac_exec_ext in '' $ac_executable_extensions; do 8279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8280 ac_cv_prog_ac_ct_OTOOL64="otool64" 8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8282 break 2 8283 fi 8284done 8285 done 8286IFS=$as_save_IFS 8287 8288fi 8289fi 8290ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8291if test -n "$ac_ct_OTOOL64"; then 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8293$as_echo "$ac_ct_OTOOL64" >&6; } 8294else 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8296$as_echo "no" >&6; } 8297fi 8298 8299 if test "x$ac_ct_OTOOL64" = x; then 8300 OTOOL64=":" 8301 else 8302 case $cross_compiling:$ac_tool_warned in 8303yes:) 8304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8306ac_tool_warned=yes ;; 8307esac 8308 OTOOL64=$ac_ct_OTOOL64 8309 fi 8310else 8311 OTOOL64="$ac_cv_prog_OTOOL64" 8312fi 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8341$as_echo_n "checking for -single_module linker flag... " >&6; } 8342if ${lt_cv_apple_cc_single_mod+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 lt_cv_apple_cc_single_mod=no 8346 if test -z "$LT_MULTI_MODULE"; then 8347 # By default we will add the -single_module flag. You can override 8348 # by either setting the environment variable LT_MULTI_MODULE 8349 # non-empty at configure time, or by adding -multi_module to the 8350 # link flags. 8351 rm -rf libconftest.dylib* 8352 echo "int foo(void){return 1;}" > conftest.c 8353 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8354-dynamiclib -Wl,-single_module conftest.c" >&5 8355 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8356 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8357 _lt_result=$? 8358 # If there is a non-empty error log, and "single_module" 8359 # appears in it, assume the flag caused a linker warning 8360 if test -s conftest.err && $GREP single_module conftest.err; then 8361 cat conftest.err >&5 8362 # Otherwise, if the output was created with a 0 exit code from 8363 # the compiler, it worked. 8364 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8365 lt_cv_apple_cc_single_mod=yes 8366 else 8367 cat conftest.err >&5 8368 fi 8369 rm -rf libconftest.dylib* 8370 rm -f conftest.* 8371 fi 8372fi 8373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8374$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8375 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8377$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8378if ${lt_cv_ld_exported_symbols_list+:} false; then : 8379 $as_echo_n "(cached) " >&6 8380else 8381 lt_cv_ld_exported_symbols_list=no 8382 save_LDFLAGS=$LDFLAGS 8383 echo "_main" > conftest.sym 8384 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8386/* end confdefs.h. */ 8387 8388int 8389main (void) 8390{ 8391 8392 ; 8393 return 0; 8394} 8395_ACEOF 8396if ac_fn_c_try_link "$LINENO"; then : 8397 lt_cv_ld_exported_symbols_list=yes 8398else 8399 lt_cv_ld_exported_symbols_list=no 8400fi 8401rm -f core conftest.err conftest.$ac_objext \ 8402 conftest$ac_exeext conftest.$ac_ext 8403 LDFLAGS=$save_LDFLAGS 8404 8405fi 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8407$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8408 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8410$as_echo_n "checking for -force_load linker flag... " >&6; } 8411if ${lt_cv_ld_force_load+:} false; then : 8412 $as_echo_n "(cached) " >&6 8413else 8414 lt_cv_ld_force_load=no 8415 cat > conftest.c << _LT_EOF 8416int forced_loaded() { return 2;} 8417_LT_EOF 8418 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8419 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8420 echo "$AR cru libconftest.a conftest.o" >&5 8421 $AR cru libconftest.a conftest.o 2>&5 8422 echo "$RANLIB libconftest.a" >&5 8423 $RANLIB libconftest.a 2>&5 8424 cat > conftest.c << _LT_EOF 8425int main() { return 0;} 8426_LT_EOF 8427 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8428 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8429 _lt_result=$? 8430 if test -s conftest.err && $GREP force_load conftest.err; then 8431 cat conftest.err >&5 8432 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8433 lt_cv_ld_force_load=yes 8434 else 8435 cat conftest.err >&5 8436 fi 8437 rm -f conftest.err libconftest.a conftest conftest.c 8438 rm -rf conftest.dSYM 8439 8440fi 8441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8442$as_echo "$lt_cv_ld_force_load" >&6; } 8443 case $host_os in 8444 rhapsody* | darwin1.[012]) 8445 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8446 darwin1.*) 8447 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8448 darwin*) # darwin 5.x on 8449 # if running on 10.5 or later, the deployment target defaults 8450 # to the OS version, if on x86, and 10.4, the deployment 8451 # target defaults to 10.4. Don't you love it? 8452 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8453 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8454 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8455 10.[012][,.]*) 8456 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8457 10.*) 8458 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8459 esac 8460 ;; 8461 esac 8462 if test yes = "$lt_cv_apple_cc_single_mod"; then 8463 _lt_dar_single_mod='$single_module' 8464 fi 8465 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8466 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8467 else 8468 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8469 fi 8470 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8471 _lt_dsymutil='~$DSYMUTIL $lib || :' 8472 else 8473 _lt_dsymutil= 8474 fi 8475 ;; 8476 esac 8477 8478# func_munge_path_list VARIABLE PATH 8479# ----------------------------------- 8480# VARIABLE is name of variable containing _space_ separated list of 8481# directories to be munged by the contents of PATH, which is string 8482# having a format: 8483# "DIR[:DIR]:" 8484# string "DIR[ DIR]" will be prepended to VARIABLE 8485# ":DIR[:DIR]" 8486# string "DIR[ DIR]" will be appended to VARIABLE 8487# "DIRP[:DIRP]::[DIRA:]DIRA" 8488# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8489# "DIRA[ DIRA]" will be appended to VARIABLE 8490# "DIR[:DIR]" 8491# VARIABLE will be replaced by "DIR[ DIR]" 8492func_munge_path_list () 8493{ 8494 case x$2 in 8495 x) 8496 ;; 8497 *:) 8498 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8499 ;; 8500 x:*) 8501 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8502 ;; 8503 *::*) 8504 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8505 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8506 ;; 8507 *) 8508 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8509 ;; 8510 esac 8511} 8512 8513 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8515$as_echo_n "checking for ANSI C header files... " >&6; } 8516if ${ac_cv_header_stdc+:} false; then : 8517 $as_echo_n "(cached) " >&6 8518else 8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8520/* end confdefs.h. */ 8521#include <stdlib.h> 8522#include <stdarg.h> 8523#include <string.h> 8524#include <float.h> 8525 8526int 8527main (void) 8528{ 8529 8530 ; 8531 return 0; 8532} 8533_ACEOF 8534if ac_fn_c_try_compile "$LINENO"; then : 8535 ac_cv_header_stdc=yes 8536else 8537 ac_cv_header_stdc=no 8538fi 8539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8540 8541if test $ac_cv_header_stdc = yes; then 8542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544/* end confdefs.h. */ 8545#include <string.h> 8546 8547_ACEOF 8548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8549 $EGREP "memchr" >/dev/null 2>&1; then : 8550 8551else 8552 ac_cv_header_stdc=no 8553fi 8554rm -f conftest* 8555 8556fi 8557 8558if test $ac_cv_header_stdc = yes; then 8559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8561/* end confdefs.h. */ 8562#include <stdlib.h> 8563 8564_ACEOF 8565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8566 $EGREP "free" >/dev/null 2>&1; then : 8567 8568else 8569 ac_cv_header_stdc=no 8570fi 8571rm -f conftest* 8572 8573fi 8574 8575if test $ac_cv_header_stdc = yes; then 8576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8577 if test "$cross_compiling" = yes; then : 8578 : 8579else 8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8581/* end confdefs.h. */ 8582#include <ctype.h> 8583#include <stdlib.h> 8584#if ((' ' & 0x0FF) == 0x020) 8585# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8586# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8587#else 8588# define ISLOWER(c) \ 8589 (('a' <= (c) && (c) <= 'i') \ 8590 || ('j' <= (c) && (c) <= 'r') \ 8591 || ('s' <= (c) && (c) <= 'z')) 8592# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8593#endif 8594 8595#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8596int 8597main () 8598{ 8599 int i; 8600 for (i = 0; i < 256; i++) 8601 if (XOR (islower (i), ISLOWER (i)) 8602 || toupper (i) != TOUPPER (i)) 8603 return 2; 8604 return 0; 8605} 8606_ACEOF 8607if ac_fn_c_try_run "$LINENO"; then : 8608 8609else 8610 ac_cv_header_stdc=no 8611fi 8612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8613 conftest.$ac_objext conftest.beam conftest.$ac_ext 8614fi 8615 8616fi 8617fi 8618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8619$as_echo "$ac_cv_header_stdc" >&6; } 8620if test $ac_cv_header_stdc = yes; then 8621 8622$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8623 8624fi 8625 8626# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8627for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8628 inttypes.h stdint.h unistd.h 8629do : 8630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8631ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8632" 8633if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8634 cat >>confdefs.h <<_ACEOF 8635#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8636_ACEOF 8637 8638fi 8639 8640done 8641 8642 8643for ac_header in dlfcn.h 8644do : 8645 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8646" 8647if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8648 cat >>confdefs.h <<_ACEOF 8649#define HAVE_DLFCN_H 1 8650_ACEOF 8651 8652fi 8653 8654done 8655 8656 8657 8658 8659 8660# Set options 8661enable_win32_dll=yes 8662 8663case $host in 8664*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8665 if test -n "$ac_tool_prefix"; then 8666 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8667set dummy ${ac_tool_prefix}as; ac_word=$2 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8669$as_echo_n "checking for $ac_word... " >&6; } 8670if ${ac_cv_prog_AS+:} false; then : 8671 $as_echo_n "(cached) " >&6 8672else 8673 if test -n "$AS"; then 8674 ac_cv_prog_AS="$AS" # Let the user override the test. 8675else 8676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8677for as_dir in $PATH 8678do 8679 IFS=$as_save_IFS 8680 test -z "$as_dir" && as_dir=. 8681 for ac_exec_ext in '' $ac_executable_extensions; do 8682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8683 ac_cv_prog_AS="${ac_tool_prefix}as" 8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8685 break 2 8686 fi 8687done 8688 done 8689IFS=$as_save_IFS 8690 8691fi 8692fi 8693AS=$ac_cv_prog_AS 8694if test -n "$AS"; then 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8696$as_echo "$AS" >&6; } 8697else 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8699$as_echo "no" >&6; } 8700fi 8701 8702 8703fi 8704if test -z "$ac_cv_prog_AS"; then 8705 ac_ct_AS=$AS 8706 # Extract the first word of "as", so it can be a program name with args. 8707set dummy as; ac_word=$2 8708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8709$as_echo_n "checking for $ac_word... " >&6; } 8710if ${ac_cv_prog_ac_ct_AS+:} false; then : 8711 $as_echo_n "(cached) " >&6 8712else 8713 if test -n "$ac_ct_AS"; then 8714 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8715else 8716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8717for as_dir in $PATH 8718do 8719 IFS=$as_save_IFS 8720 test -z "$as_dir" && as_dir=. 8721 for ac_exec_ext in '' $ac_executable_extensions; do 8722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8723 ac_cv_prog_ac_ct_AS="as" 8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8725 break 2 8726 fi 8727done 8728 done 8729IFS=$as_save_IFS 8730 8731fi 8732fi 8733ac_ct_AS=$ac_cv_prog_ac_ct_AS 8734if test -n "$ac_ct_AS"; then 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8736$as_echo "$ac_ct_AS" >&6; } 8737else 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8739$as_echo "no" >&6; } 8740fi 8741 8742 if test "x$ac_ct_AS" = x; then 8743 AS="false" 8744 else 8745 case $cross_compiling:$ac_tool_warned in 8746yes:) 8747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8749ac_tool_warned=yes ;; 8750esac 8751 AS=$ac_ct_AS 8752 fi 8753else 8754 AS="$ac_cv_prog_AS" 8755fi 8756 8757 if test -n "$ac_tool_prefix"; then 8758 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8759set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8761$as_echo_n "checking for $ac_word... " >&6; } 8762if ${ac_cv_prog_DLLTOOL+:} false; then : 8763 $as_echo_n "(cached) " >&6 8764else 8765 if test -n "$DLLTOOL"; then 8766 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8767else 8768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8769for as_dir in $PATH 8770do 8771 IFS=$as_save_IFS 8772 test -z "$as_dir" && as_dir=. 8773 for ac_exec_ext in '' $ac_executable_extensions; do 8774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8775 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8777 break 2 8778 fi 8779done 8780 done 8781IFS=$as_save_IFS 8782 8783fi 8784fi 8785DLLTOOL=$ac_cv_prog_DLLTOOL 8786if test -n "$DLLTOOL"; then 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8788$as_echo "$DLLTOOL" >&6; } 8789else 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8791$as_echo "no" >&6; } 8792fi 8793 8794 8795fi 8796if test -z "$ac_cv_prog_DLLTOOL"; then 8797 ac_ct_DLLTOOL=$DLLTOOL 8798 # Extract the first word of "dlltool", so it can be a program name with args. 8799set dummy dlltool; ac_word=$2 8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8801$as_echo_n "checking for $ac_word... " >&6; } 8802if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8803 $as_echo_n "(cached) " >&6 8804else 8805 if test -n "$ac_ct_DLLTOOL"; then 8806 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8807else 8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8809for as_dir in $PATH 8810do 8811 IFS=$as_save_IFS 8812 test -z "$as_dir" && as_dir=. 8813 for ac_exec_ext in '' $ac_executable_extensions; do 8814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8815 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8817 break 2 8818 fi 8819done 8820 done 8821IFS=$as_save_IFS 8822 8823fi 8824fi 8825ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8826if test -n "$ac_ct_DLLTOOL"; then 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8828$as_echo "$ac_ct_DLLTOOL" >&6; } 8829else 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8831$as_echo "no" >&6; } 8832fi 8833 8834 if test "x$ac_ct_DLLTOOL" = x; then 8835 DLLTOOL="false" 8836 else 8837 case $cross_compiling:$ac_tool_warned in 8838yes:) 8839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8841ac_tool_warned=yes ;; 8842esac 8843 DLLTOOL=$ac_ct_DLLTOOL 8844 fi 8845else 8846 DLLTOOL="$ac_cv_prog_DLLTOOL" 8847fi 8848 8849 if test -n "$ac_tool_prefix"; then 8850 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8851set dummy ${ac_tool_prefix}objdump; ac_word=$2 8852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8853$as_echo_n "checking for $ac_word... " >&6; } 8854if ${ac_cv_prog_OBJDUMP+:} false; then : 8855 $as_echo_n "(cached) " >&6 8856else 8857 if test -n "$OBJDUMP"; then 8858 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8859else 8860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8861for as_dir in $PATH 8862do 8863 IFS=$as_save_IFS 8864 test -z "$as_dir" && as_dir=. 8865 for ac_exec_ext in '' $ac_executable_extensions; do 8866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8867 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8869 break 2 8870 fi 8871done 8872 done 8873IFS=$as_save_IFS 8874 8875fi 8876fi 8877OBJDUMP=$ac_cv_prog_OBJDUMP 8878if test -n "$OBJDUMP"; then 8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8880$as_echo "$OBJDUMP" >&6; } 8881else 8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8883$as_echo "no" >&6; } 8884fi 8885 8886 8887fi 8888if test -z "$ac_cv_prog_OBJDUMP"; then 8889 ac_ct_OBJDUMP=$OBJDUMP 8890 # Extract the first word of "objdump", so it can be a program name with args. 8891set dummy objdump; ac_word=$2 8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8893$as_echo_n "checking for $ac_word... " >&6; } 8894if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8895 $as_echo_n "(cached) " >&6 8896else 8897 if test -n "$ac_ct_OBJDUMP"; then 8898 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8899else 8900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8901for as_dir in $PATH 8902do 8903 IFS=$as_save_IFS 8904 test -z "$as_dir" && as_dir=. 8905 for ac_exec_ext in '' $ac_executable_extensions; do 8906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8907 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8909 break 2 8910 fi 8911done 8912 done 8913IFS=$as_save_IFS 8914 8915fi 8916fi 8917ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8918if test -n "$ac_ct_OBJDUMP"; then 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8920$as_echo "$ac_ct_OBJDUMP" >&6; } 8921else 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8923$as_echo "no" >&6; } 8924fi 8925 8926 if test "x$ac_ct_OBJDUMP" = x; then 8927 OBJDUMP="false" 8928 else 8929 case $cross_compiling:$ac_tool_warned in 8930yes:) 8931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8933ac_tool_warned=yes ;; 8934esac 8935 OBJDUMP=$ac_ct_OBJDUMP 8936 fi 8937else 8938 OBJDUMP="$ac_cv_prog_OBJDUMP" 8939fi 8940 8941 ;; 8942esac 8943 8944test -z "$AS" && AS=as 8945 8946 8947 8948 8949 8950test -z "$DLLTOOL" && DLLTOOL=dlltool 8951 8952 8953 8954 8955 8956test -z "$OBJDUMP" && OBJDUMP=objdump 8957 8958 8959 8960 8961 8962 8963 8964 enable_dlopen=no 8965 8966 8967 8968 # Check whether --enable-shared was given. 8969if test "${enable_shared+set}" = set; then : 8970 enableval=$enable_shared; p=${PACKAGE-default} 8971 case $enableval in 8972 yes) enable_shared=yes ;; 8973 no) enable_shared=no ;; 8974 *) 8975 enable_shared=no 8976 # Look at the argument we got. We use all the common list separators. 8977 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8978 for pkg in $enableval; do 8979 IFS=$lt_save_ifs 8980 if test "X$pkg" = "X$p"; then 8981 enable_shared=yes 8982 fi 8983 done 8984 IFS=$lt_save_ifs 8985 ;; 8986 esac 8987else 8988 enable_shared=yes 8989fi 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 # Check whether --enable-static was given. 9000if test "${enable_static+set}" = set; then : 9001 enableval=$enable_static; p=${PACKAGE-default} 9002 case $enableval in 9003 yes) enable_static=yes ;; 9004 no) enable_static=no ;; 9005 *) 9006 enable_static=no 9007 # Look at the argument we got. We use all the common list separators. 9008 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9009 for pkg in $enableval; do 9010 IFS=$lt_save_ifs 9011 if test "X$pkg" = "X$p"; then 9012 enable_static=yes 9013 fi 9014 done 9015 IFS=$lt_save_ifs 9016 ;; 9017 esac 9018else 9019 enable_static=yes 9020fi 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031# Check whether --with-pic was given. 9032if test "${with_pic+set}" = set; then : 9033 withval=$with_pic; lt_p=${PACKAGE-default} 9034 case $withval in 9035 yes|no) pic_mode=$withval ;; 9036 *) 9037 pic_mode=default 9038 # Look at the argument we got. We use all the common list separators. 9039 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9040 for lt_pkg in $withval; do 9041 IFS=$lt_save_ifs 9042 if test "X$lt_pkg" = "X$lt_p"; then 9043 pic_mode=yes 9044 fi 9045 done 9046 IFS=$lt_save_ifs 9047 ;; 9048 esac 9049else 9050 pic_mode=default 9051fi 9052 9053 9054 9055 9056 9057 9058 9059 9060 # Check whether --enable-fast-install was given. 9061if test "${enable_fast_install+set}" = set; then : 9062 enableval=$enable_fast_install; p=${PACKAGE-default} 9063 case $enableval in 9064 yes) enable_fast_install=yes ;; 9065 no) enable_fast_install=no ;; 9066 *) 9067 enable_fast_install=no 9068 # Look at the argument we got. We use all the common list separators. 9069 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9070 for pkg in $enableval; do 9071 IFS=$lt_save_ifs 9072 if test "X$pkg" = "X$p"; then 9073 enable_fast_install=yes 9074 fi 9075 done 9076 IFS=$lt_save_ifs 9077 ;; 9078 esac 9079else 9080 enable_fast_install=yes 9081fi 9082 9083 9084 9085 9086 9087 9088 9089 9090 shared_archive_member_spec= 9091case $host,$enable_shared in 9092power*-*-aix[5-9]*,yes) 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9094$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9095 9096# Check whether --with-aix-soname was given. 9097if test "${with_aix_soname+set}" = set; then : 9098 withval=$with_aix_soname; case $withval in 9099 aix|svr4|both) 9100 ;; 9101 *) 9102 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9103 ;; 9104 esac 9105 lt_cv_with_aix_soname=$with_aix_soname 9106else 9107 if ${lt_cv_with_aix_soname+:} false; then : 9108 $as_echo_n "(cached) " >&6 9109else 9110 lt_cv_with_aix_soname=aix 9111fi 9112 9113 with_aix_soname=$lt_cv_with_aix_soname 9114fi 9115 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9117$as_echo "$with_aix_soname" >&6; } 9118 if test aix != "$with_aix_soname"; then 9119 # For the AIX way of multilib, we name the shared archive member 9120 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9121 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9122 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9123 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9124 if test 64 = "${OBJECT_MODE-32}"; then 9125 shared_archive_member_spec=shr_64 9126 else 9127 shared_archive_member_spec=shr 9128 fi 9129 fi 9130 ;; 9131*) 9132 with_aix_soname=aix 9133 ;; 9134esac 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145# This can be used to rebuild libtool when needed 9146LIBTOOL_DEPS=$ltmain 9147 9148# Always use our own libtool. 9149LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180test -z "$LN_S" && LN_S="ln -s" 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195if test -n "${ZSH_VERSION+set}"; then 9196 setopt NO_GLOB_SUBST 9197fi 9198 9199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9200$as_echo_n "checking for objdir... " >&6; } 9201if ${lt_cv_objdir+:} false; then : 9202 $as_echo_n "(cached) " >&6 9203else 9204 rm -f .libs 2>/dev/null 9205mkdir .libs 2>/dev/null 9206if test -d .libs; then 9207 lt_cv_objdir=.libs 9208else 9209 # MS-DOS does not allow filenames that begin with a dot. 9210 lt_cv_objdir=_libs 9211fi 9212rmdir .libs 2>/dev/null 9213fi 9214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9215$as_echo "$lt_cv_objdir" >&6; } 9216objdir=$lt_cv_objdir 9217 9218 9219 9220 9221 9222cat >>confdefs.h <<_ACEOF 9223#define LT_OBJDIR "$lt_cv_objdir/" 9224_ACEOF 9225 9226 9227 9228 9229case $host_os in 9230aix3*) 9231 # AIX sometimes has problems with the GCC collect2 program. For some 9232 # reason, if we set the COLLECT_NAMES environment variable, the problems 9233 # vanish in a puff of smoke. 9234 if test set != "${COLLECT_NAMES+set}"; then 9235 COLLECT_NAMES= 9236 export COLLECT_NAMES 9237 fi 9238 ;; 9239esac 9240 9241# Global variables: 9242ofile=libtool 9243can_build_shared=yes 9244 9245# All known linkers require a '.a' archive for static linking (except MSVC, 9246# which needs '.lib'). 9247libext=a 9248 9249with_gnu_ld=$lt_cv_prog_gnu_ld 9250 9251old_CC=$CC 9252old_CFLAGS=$CFLAGS 9253 9254# Set sane defaults for various variables 9255test -z "$CC" && CC=cc 9256test -z "$LTCC" && LTCC=$CC 9257test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9258test -z "$LD" && LD=ld 9259test -z "$ac_objext" && ac_objext=o 9260 9261func_cc_basename $compiler 9262cc_basename=$func_cc_basename_result 9263 9264 9265# Only perform the check for file, if the check method requires it 9266test -z "$MAGIC_CMD" && MAGIC_CMD=file 9267case $deplibs_check_method in 9268file_magic*) 9269 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9271$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9272if ${lt_cv_path_MAGIC_CMD+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274else 9275 case $MAGIC_CMD in 9276[\\/*] | ?:[\\/]*) 9277 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9278 ;; 9279*) 9280 lt_save_MAGIC_CMD=$MAGIC_CMD 9281 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9283 for ac_dir in $ac_dummy; do 9284 IFS=$lt_save_ifs 9285 test -z "$ac_dir" && ac_dir=. 9286 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9287 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9288 if test -n "$file_magic_test_file"; then 9289 case $deplibs_check_method in 9290 "file_magic "*) 9291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9292 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9294 $EGREP "$file_magic_regex" > /dev/null; then 9295 : 9296 else 9297 cat <<_LT_EOF 1>&2 9298 9299*** Warning: the command libtool uses to detect shared libraries, 9300*** $file_magic_cmd, produces output that libtool cannot recognize. 9301*** The result is that libtool may fail to recognize shared libraries 9302*** as such. This will affect the creation of libtool libraries that 9303*** depend on shared libraries, but programs linked with such libtool 9304*** libraries will work regardless of this problem. Nevertheless, you 9305*** may want to report the problem to your system manager and/or to 9306*** bug-libtool@gnu.org 9307 9308_LT_EOF 9309 fi ;; 9310 esac 9311 fi 9312 break 9313 fi 9314 done 9315 IFS=$lt_save_ifs 9316 MAGIC_CMD=$lt_save_MAGIC_CMD 9317 ;; 9318esac 9319fi 9320 9321MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9322if test -n "$MAGIC_CMD"; then 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9324$as_echo "$MAGIC_CMD" >&6; } 9325else 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9327$as_echo "no" >&6; } 9328fi 9329 9330 9331 9332 9333 9334if test -z "$lt_cv_path_MAGIC_CMD"; then 9335 if test -n "$ac_tool_prefix"; then 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9337$as_echo_n "checking for file... " >&6; } 9338if ${lt_cv_path_MAGIC_CMD+:} false; then : 9339 $as_echo_n "(cached) " >&6 9340else 9341 case $MAGIC_CMD in 9342[\\/*] | ?:[\\/]*) 9343 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9344 ;; 9345*) 9346 lt_save_MAGIC_CMD=$MAGIC_CMD 9347 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9349 for ac_dir in $ac_dummy; do 9350 IFS=$lt_save_ifs 9351 test -z "$ac_dir" && ac_dir=. 9352 if test -f "$ac_dir/file"; then 9353 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9354 if test -n "$file_magic_test_file"; then 9355 case $deplibs_check_method in 9356 "file_magic "*) 9357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9358 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9360 $EGREP "$file_magic_regex" > /dev/null; then 9361 : 9362 else 9363 cat <<_LT_EOF 1>&2 9364 9365*** Warning: the command libtool uses to detect shared libraries, 9366*** $file_magic_cmd, produces output that libtool cannot recognize. 9367*** The result is that libtool may fail to recognize shared libraries 9368*** as such. This will affect the creation of libtool libraries that 9369*** depend on shared libraries, but programs linked with such libtool 9370*** libraries will work regardless of this problem. Nevertheless, you 9371*** may want to report the problem to your system manager and/or to 9372*** bug-libtool@gnu.org 9373 9374_LT_EOF 9375 fi ;; 9376 esac 9377 fi 9378 break 9379 fi 9380 done 9381 IFS=$lt_save_ifs 9382 MAGIC_CMD=$lt_save_MAGIC_CMD 9383 ;; 9384esac 9385fi 9386 9387MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9388if test -n "$MAGIC_CMD"; then 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9390$as_echo "$MAGIC_CMD" >&6; } 9391else 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9393$as_echo "no" >&6; } 9394fi 9395 9396 9397 else 9398 MAGIC_CMD=: 9399 fi 9400fi 9401 9402 fi 9403 ;; 9404esac 9405 9406# Use C for the default configuration in the libtool script 9407 9408lt_save_CC=$CC 9409ac_ext=c 9410ac_cpp='$CPP $CPPFLAGS' 9411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9413ac_compiler_gnu=$ac_cv_c_compiler_gnu 9414 9415 9416# Source file extension for C test sources. 9417ac_ext=c 9418 9419# Object file extension for compiled C test sources. 9420objext=o 9421objext=$objext 9422 9423# Code to be used in simple compile tests 9424lt_simple_compile_test_code="int some_variable = 0;" 9425 9426# Code to be used in simple link tests 9427lt_simple_link_test_code='int main(){return(0);}' 9428 9429 9430 9431 9432 9433 9434 9435# If no C compiler was specified, use CC. 9436LTCC=${LTCC-"$CC"} 9437 9438# If no C compiler flags were specified, use CFLAGS. 9439LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9440 9441# Allow CC to be a program name with arguments. 9442compiler=$CC 9443 9444# Save the default compiler, since it gets overwritten when the other 9445# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9446compiler_DEFAULT=$CC 9447 9448# save warnings/boilerplate of simple test code 9449ac_outfile=conftest.$ac_objext 9450echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9451eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9452_lt_compiler_boilerplate=`cat conftest.err` 9453$RM conftest* 9454 9455ac_outfile=conftest.$ac_objext 9456echo "$lt_simple_link_test_code" >conftest.$ac_ext 9457eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9458_lt_linker_boilerplate=`cat conftest.err` 9459$RM -r conftest* 9460 9461 9462## CAVEAT EMPTOR: 9463## There is no encapsulation within the following macros, do not change 9464## the running order or otherwise move them around unless you know exactly 9465## what you are doing... 9466if test -n "$compiler"; then 9467 9468lt_prog_compiler_no_builtin_flag= 9469 9470if test yes = "$GCC"; then 9471 case $cc_basename in 9472 nvcc*) 9473 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9474 *) 9475 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9476 esac 9477 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9479$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9480if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9481 $as_echo_n "(cached) " >&6 9482else 9483 lt_cv_prog_compiler_rtti_exceptions=no 9484 ac_outfile=conftest.$ac_objext 9485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9486 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9487 # Insert the option either (1) after the last *FLAGS variable, or 9488 # (2) before a word containing "conftest.", or (3) at the end. 9489 # Note that $ac_compile itself does not contain backslashes and begins 9490 # with a dollar sign (not a hyphen), so the echo should work correctly. 9491 # The option is referenced via a variable to avoid confusing sed. 9492 lt_compile=`echo "$ac_compile" | $SED \ 9493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9495 -e 's:$: $lt_compiler_flag:'` 9496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9497 (eval "$lt_compile" 2>conftest.err) 9498 ac_status=$? 9499 cat conftest.err >&5 9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9501 if (exit $ac_status) && test -s "$ac_outfile"; then 9502 # The compiler can only warn and ignore the option if not recognized 9503 # So say no if there are warnings other than the usual output. 9504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9507 lt_cv_prog_compiler_rtti_exceptions=yes 9508 fi 9509 fi 9510 $RM conftest* 9511 9512fi 9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9514$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9515 9516if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9517 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9518else 9519 : 9520fi 9521 9522fi 9523 9524 9525 9526 9527 9528 9529 lt_prog_compiler_wl= 9530lt_prog_compiler_pic= 9531lt_prog_compiler_static= 9532 9533 9534 if test yes = "$GCC"; then 9535 lt_prog_compiler_wl='-Wl,' 9536 lt_prog_compiler_static='-static' 9537 9538 case $host_os in 9539 aix*) 9540 # All AIX code is PIC. 9541 if test ia64 = "$host_cpu"; then 9542 # AIX 5 now supports IA64 processor 9543 lt_prog_compiler_static='-Bstatic' 9544 fi 9545 lt_prog_compiler_pic='-fPIC' 9546 ;; 9547 9548 amigaos*) 9549 case $host_cpu in 9550 powerpc) 9551 # see comment about AmigaOS4 .so support 9552 lt_prog_compiler_pic='-fPIC' 9553 ;; 9554 m68k) 9555 # FIXME: we need at least 68020 code to build shared libraries, but 9556 # adding the '-m68020' flag to GCC prevents building anything better, 9557 # like '-m68040'. 9558 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9559 ;; 9560 esac 9561 ;; 9562 9563 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9564 # PIC is the default for these OSes. 9565 ;; 9566 9567 mingw* | cygwin* | pw32* | os2* | cegcc*) 9568 # This hack is so that the source file can tell whether it is being 9569 # built for inclusion in a dll (and should export symbols for example). 9570 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9571 # (--disable-auto-import) libraries 9572 lt_prog_compiler_pic='-DDLL_EXPORT' 9573 case $host_os in 9574 os2*) 9575 lt_prog_compiler_static='$wl-static' 9576 ;; 9577 esac 9578 ;; 9579 9580 darwin* | rhapsody*) 9581 # PIC is the default on this platform 9582 # Common symbols not allowed in MH_DYLIB files 9583 lt_prog_compiler_pic='-fno-common' 9584 ;; 9585 9586 haiku*) 9587 # PIC is the default for Haiku. 9588 # The "-static" flag exists, but is broken. 9589 lt_prog_compiler_static= 9590 ;; 9591 9592 hpux*) 9593 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9594 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9595 # sets the default TLS model and affects inlining. 9596 case $host_cpu in 9597 hppa*64*) 9598 # +Z the default 9599 ;; 9600 *) 9601 lt_prog_compiler_pic='-fPIC' 9602 ;; 9603 esac 9604 ;; 9605 9606 interix[3-9]*) 9607 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9608 # Instead, we relocate shared libraries at runtime. 9609 ;; 9610 9611 msdosdjgpp*) 9612 # Just because we use GCC doesn't mean we suddenly get shared libraries 9613 # on systems that don't support them. 9614 lt_prog_compiler_can_build_shared=no 9615 enable_shared=no 9616 ;; 9617 9618 *nto* | *qnx*) 9619 # QNX uses GNU C++, but need to define -shared option too, otherwise 9620 # it will coredump. 9621 lt_prog_compiler_pic='-fPIC -shared' 9622 ;; 9623 9624 sysv4*MP*) 9625 if test -d /usr/nec; then 9626 lt_prog_compiler_pic=-Kconform_pic 9627 fi 9628 ;; 9629 9630 *) 9631 lt_prog_compiler_pic='-fPIC' 9632 ;; 9633 esac 9634 9635 case $cc_basename in 9636 nvcc*) # Cuda Compiler Driver 2.2 9637 lt_prog_compiler_wl='-Xlinker ' 9638 if test -n "$lt_prog_compiler_pic"; then 9639 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9640 fi 9641 ;; 9642 esac 9643 else 9644 # PORTME Check for flag to pass linker flags through the system compiler. 9645 case $host_os in 9646 aix*) 9647 lt_prog_compiler_wl='-Wl,' 9648 if test ia64 = "$host_cpu"; then 9649 # AIX 5 now supports IA64 processor 9650 lt_prog_compiler_static='-Bstatic' 9651 else 9652 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9653 fi 9654 ;; 9655 9656 darwin* | rhapsody*) 9657 # PIC is the default on this platform 9658 # Common symbols not allowed in MH_DYLIB files 9659 lt_prog_compiler_pic='-fno-common' 9660 case $cc_basename in 9661 nagfor*) 9662 # NAG Fortran compiler 9663 lt_prog_compiler_wl='-Wl,-Wl,,' 9664 lt_prog_compiler_pic='-PIC' 9665 lt_prog_compiler_static='-Bstatic' 9666 ;; 9667 esac 9668 ;; 9669 9670 mingw* | cygwin* | pw32* | os2* | cegcc*) 9671 # This hack is so that the source file can tell whether it is being 9672 # built for inclusion in a dll (and should export symbols for example). 9673 lt_prog_compiler_pic='-DDLL_EXPORT' 9674 case $host_os in 9675 os2*) 9676 lt_prog_compiler_static='$wl-static' 9677 ;; 9678 esac 9679 ;; 9680 9681 hpux9* | hpux10* | hpux11*) 9682 lt_prog_compiler_wl='-Wl,' 9683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9684 # not for PA HP-UX. 9685 case $host_cpu in 9686 hppa*64*|ia64*) 9687 # +Z the default 9688 ;; 9689 *) 9690 lt_prog_compiler_pic='+Z' 9691 ;; 9692 esac 9693 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9694 lt_prog_compiler_static='$wl-a ${wl}archive' 9695 ;; 9696 9697 irix5* | irix6* | nonstopux*) 9698 lt_prog_compiler_wl='-Wl,' 9699 # PIC (with -KPIC) is the default. 9700 lt_prog_compiler_static='-non_shared' 9701 ;; 9702 9703 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9704 case $cc_basename in 9705 # old Intel for x86_64, which still supported -KPIC. 9706 ecc*) 9707 lt_prog_compiler_wl='-Wl,' 9708 lt_prog_compiler_pic='-KPIC' 9709 lt_prog_compiler_static='-static' 9710 ;; 9711 # icc used to be incompatible with GCC. 9712 # ICC 10 doesn't accept -KPIC any more. 9713 icc* | ifort*) 9714 lt_prog_compiler_wl='-Wl,' 9715 lt_prog_compiler_pic='-fPIC' 9716 lt_prog_compiler_static='-static' 9717 ;; 9718 # Lahey Fortran 8.1. 9719 lf95*) 9720 lt_prog_compiler_wl='-Wl,' 9721 lt_prog_compiler_pic='--shared' 9722 lt_prog_compiler_static='--static' 9723 ;; 9724 nagfor*) 9725 # NAG Fortran compiler 9726 lt_prog_compiler_wl='-Wl,-Wl,,' 9727 lt_prog_compiler_pic='-PIC' 9728 lt_prog_compiler_static='-Bstatic' 9729 ;; 9730 tcc*) 9731 # Fabrice Bellard et al's Tiny C Compiler 9732 lt_prog_compiler_wl='-Wl,' 9733 lt_prog_compiler_pic='-fPIC' 9734 lt_prog_compiler_static='-static' 9735 ;; 9736 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9737 # Portland Group compilers (*not* the Pentium gcc compiler, 9738 # which looks to be a dead project) 9739 lt_prog_compiler_wl='-Wl,' 9740 lt_prog_compiler_pic='-fpic' 9741 lt_prog_compiler_static='-Bstatic' 9742 ;; 9743 ccc*) 9744 lt_prog_compiler_wl='-Wl,' 9745 # All Alpha code is PIC. 9746 lt_prog_compiler_static='-non_shared' 9747 ;; 9748 xl* | bgxl* | bgf* | mpixl*) 9749 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9750 lt_prog_compiler_wl='-Wl,' 9751 lt_prog_compiler_pic='-qpic' 9752 lt_prog_compiler_static='-qstaticlink' 9753 ;; 9754 *) 9755 case `$CC -V 2>&1 | sed 5q` in 9756 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9757 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9758 lt_prog_compiler_pic='-KPIC' 9759 lt_prog_compiler_static='-Bstatic' 9760 lt_prog_compiler_wl='' 9761 ;; 9762 *Sun\ F* | *Sun*Fortran*) 9763 lt_prog_compiler_pic='-KPIC' 9764 lt_prog_compiler_static='-Bstatic' 9765 lt_prog_compiler_wl='-Qoption ld ' 9766 ;; 9767 *Sun\ C*) 9768 # Sun C 5.9 9769 lt_prog_compiler_pic='-KPIC' 9770 lt_prog_compiler_static='-Bstatic' 9771 lt_prog_compiler_wl='-Wl,' 9772 ;; 9773 *Intel*\ [CF]*Compiler*) 9774 lt_prog_compiler_wl='-Wl,' 9775 lt_prog_compiler_pic='-fPIC' 9776 lt_prog_compiler_static='-static' 9777 ;; 9778 *Portland\ Group*) 9779 lt_prog_compiler_wl='-Wl,' 9780 lt_prog_compiler_pic='-fpic' 9781 lt_prog_compiler_static='-Bstatic' 9782 ;; 9783 esac 9784 ;; 9785 esac 9786 ;; 9787 9788 newsos6) 9789 lt_prog_compiler_pic='-KPIC' 9790 lt_prog_compiler_static='-Bstatic' 9791 ;; 9792 9793 *nto* | *qnx*) 9794 # QNX uses GNU C++, but need to define -shared option too, otherwise 9795 # it will coredump. 9796 lt_prog_compiler_pic='-fPIC -shared' 9797 ;; 9798 9799 osf3* | osf4* | osf5*) 9800 lt_prog_compiler_wl='-Wl,' 9801 # All OSF/1 code is PIC. 9802 lt_prog_compiler_static='-non_shared' 9803 ;; 9804 9805 rdos*) 9806 lt_prog_compiler_static='-non_shared' 9807 ;; 9808 9809 solaris*) 9810 lt_prog_compiler_pic='-KPIC' 9811 lt_prog_compiler_static='-Bstatic' 9812 case $cc_basename in 9813 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9814 lt_prog_compiler_wl='-Qoption ld ';; 9815 *) 9816 lt_prog_compiler_wl='-Wl,';; 9817 esac 9818 ;; 9819 9820 sunos4*) 9821 lt_prog_compiler_wl='-Qoption ld ' 9822 lt_prog_compiler_pic='-PIC' 9823 lt_prog_compiler_static='-Bstatic' 9824 ;; 9825 9826 sysv4 | sysv4.2uw2* | sysv4.3*) 9827 lt_prog_compiler_wl='-Wl,' 9828 lt_prog_compiler_pic='-KPIC' 9829 lt_prog_compiler_static='-Bstatic' 9830 ;; 9831 9832 sysv4*MP*) 9833 if test -d /usr/nec; then 9834 lt_prog_compiler_pic='-Kconform_pic' 9835 lt_prog_compiler_static='-Bstatic' 9836 fi 9837 ;; 9838 9839 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9840 lt_prog_compiler_wl='-Wl,' 9841 lt_prog_compiler_pic='-KPIC' 9842 lt_prog_compiler_static='-Bstatic' 9843 ;; 9844 9845 unicos*) 9846 lt_prog_compiler_wl='-Wl,' 9847 lt_prog_compiler_can_build_shared=no 9848 ;; 9849 9850 uts4*) 9851 lt_prog_compiler_pic='-pic' 9852 lt_prog_compiler_static='-Bstatic' 9853 ;; 9854 9855 *) 9856 lt_prog_compiler_can_build_shared=no 9857 ;; 9858 esac 9859 fi 9860 9861case $host_os in 9862 # For platforms that do not support PIC, -DPIC is meaningless: 9863 *djgpp*) 9864 lt_prog_compiler_pic= 9865 ;; 9866 *) 9867 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9868 ;; 9869esac 9870 9871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9872$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9873if ${lt_cv_prog_compiler_pic+:} false; then : 9874 $as_echo_n "(cached) " >&6 9875else 9876 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9877fi 9878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9879$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9880lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9881 9882# 9883# Check to make sure the PIC flag actually works. 9884# 9885if test -n "$lt_prog_compiler_pic"; then 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9887$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9888if ${lt_cv_prog_compiler_pic_works+:} false; then : 9889 $as_echo_n "(cached) " >&6 9890else 9891 lt_cv_prog_compiler_pic_works=no 9892 ac_outfile=conftest.$ac_objext 9893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9894 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9895 # Insert the option either (1) after the last *FLAGS variable, or 9896 # (2) before a word containing "conftest.", or (3) at the end. 9897 # Note that $ac_compile itself does not contain backslashes and begins 9898 # with a dollar sign (not a hyphen), so the echo should work correctly. 9899 # The option is referenced via a variable to avoid confusing sed. 9900 lt_compile=`echo "$ac_compile" | $SED \ 9901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9903 -e 's:$: $lt_compiler_flag:'` 9904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9905 (eval "$lt_compile" 2>conftest.err) 9906 ac_status=$? 9907 cat conftest.err >&5 9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9909 if (exit $ac_status) && test -s "$ac_outfile"; then 9910 # The compiler can only warn and ignore the option if not recognized 9911 # So say no if there are warnings other than the usual output. 9912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9915 lt_cv_prog_compiler_pic_works=yes 9916 fi 9917 fi 9918 $RM conftest* 9919 9920fi 9921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9922$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9923 9924if test yes = "$lt_cv_prog_compiler_pic_works"; then 9925 case $lt_prog_compiler_pic in 9926 "" | " "*) ;; 9927 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9928 esac 9929else 9930 lt_prog_compiler_pic= 9931 lt_prog_compiler_can_build_shared=no 9932fi 9933 9934fi 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946# 9947# Check to make sure the static flag actually works. 9948# 9949wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9951$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9952if ${lt_cv_prog_compiler_static_works+:} false; then : 9953 $as_echo_n "(cached) " >&6 9954else 9955 lt_cv_prog_compiler_static_works=no 9956 save_LDFLAGS=$LDFLAGS 9957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9958 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9960 # The linker can only warn and ignore the option if not recognized 9961 # So say no if there are warnings 9962 if test -s conftest.err; then 9963 # Append any errors to the config.log. 9964 cat conftest.err 1>&5 9965 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9967 if diff conftest.exp conftest.er2 >/dev/null; then 9968 lt_cv_prog_compiler_static_works=yes 9969 fi 9970 else 9971 lt_cv_prog_compiler_static_works=yes 9972 fi 9973 fi 9974 $RM -r conftest* 9975 LDFLAGS=$save_LDFLAGS 9976 9977fi 9978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9979$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9980 9981if test yes = "$lt_cv_prog_compiler_static_works"; then 9982 : 9983else 9984 lt_prog_compiler_static= 9985fi 9986 9987 9988 9989 9990 9991 9992 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9994$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9995if ${lt_cv_prog_compiler_c_o+:} false; then : 9996 $as_echo_n "(cached) " >&6 9997else 9998 lt_cv_prog_compiler_c_o=no 9999 $RM -r conftest 2>/dev/null 10000 mkdir conftest 10001 cd conftest 10002 mkdir out 10003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10004 10005 lt_compiler_flag="-o out/conftest2.$ac_objext" 10006 # Insert the option either (1) after the last *FLAGS variable, or 10007 # (2) before a word containing "conftest.", or (3) at the end. 10008 # Note that $ac_compile itself does not contain backslashes and begins 10009 # with a dollar sign (not a hyphen), so the echo should work correctly. 10010 lt_compile=`echo "$ac_compile" | $SED \ 10011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10013 -e 's:$: $lt_compiler_flag:'` 10014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10015 (eval "$lt_compile" 2>out/conftest.err) 10016 ac_status=$? 10017 cat out/conftest.err >&5 10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10019 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10020 then 10021 # The compiler can only warn and ignore the option if not recognized 10022 # So say no if there are warnings 10023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10026 lt_cv_prog_compiler_c_o=yes 10027 fi 10028 fi 10029 chmod u+w . 2>&5 10030 $RM conftest* 10031 # SGI C++ compiler will create directory out/ii_files/ for 10032 # template instantiation 10033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10034 $RM out/* && rmdir out 10035 cd .. 10036 $RM -r conftest 10037 $RM conftest* 10038 10039fi 10040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10041$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10042 10043 10044 10045 10046 10047 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10049$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10050if ${lt_cv_prog_compiler_c_o+:} false; then : 10051 $as_echo_n "(cached) " >&6 10052else 10053 lt_cv_prog_compiler_c_o=no 10054 $RM -r conftest 2>/dev/null 10055 mkdir conftest 10056 cd conftest 10057 mkdir out 10058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10059 10060 lt_compiler_flag="-o out/conftest2.$ac_objext" 10061 # Insert the option either (1) after the last *FLAGS variable, or 10062 # (2) before a word containing "conftest.", or (3) at the end. 10063 # Note that $ac_compile itself does not contain backslashes and begins 10064 # with a dollar sign (not a hyphen), so the echo should work correctly. 10065 lt_compile=`echo "$ac_compile" | $SED \ 10066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10068 -e 's:$: $lt_compiler_flag:'` 10069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10070 (eval "$lt_compile" 2>out/conftest.err) 10071 ac_status=$? 10072 cat out/conftest.err >&5 10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10074 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10075 then 10076 # The compiler can only warn and ignore the option if not recognized 10077 # So say no if there are warnings 10078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10081 lt_cv_prog_compiler_c_o=yes 10082 fi 10083 fi 10084 chmod u+w . 2>&5 10085 $RM conftest* 10086 # SGI C++ compiler will create directory out/ii_files/ for 10087 # template instantiation 10088 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10089 $RM out/* && rmdir out 10090 cd .. 10091 $RM -r conftest 10092 $RM conftest* 10093 10094fi 10095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10096$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10097 10098 10099 10100 10101hard_links=nottested 10102if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10103 # do not overwrite the value of need_locks provided by the user 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10105$as_echo_n "checking if we can lock with hard links... " >&6; } 10106 hard_links=yes 10107 $RM conftest* 10108 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10109 touch conftest.a 10110 ln conftest.a conftest.b 2>&5 || hard_links=no 10111 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10113$as_echo "$hard_links" >&6; } 10114 if test no = "$hard_links"; then 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10116$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10117 need_locks=warn 10118 fi 10119else 10120 need_locks=no 10121fi 10122 10123 10124 10125 10126 10127 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10129$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10130 10131 runpath_var= 10132 allow_undefined_flag= 10133 always_export_symbols=no 10134 archive_cmds= 10135 archive_expsym_cmds= 10136 compiler_needs_object=no 10137 enable_shared_with_static_runtimes=no 10138 export_dynamic_flag_spec= 10139 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10140 hardcode_automatic=no 10141 hardcode_direct=no 10142 hardcode_direct_absolute=no 10143 hardcode_libdir_flag_spec= 10144 hardcode_libdir_separator= 10145 hardcode_minus_L=no 10146 hardcode_shlibpath_var=unsupported 10147 inherit_rpath=no 10148 link_all_deplibs=unknown 10149 module_cmds= 10150 module_expsym_cmds= 10151 old_archive_from_new_cmds= 10152 old_archive_from_expsyms_cmds= 10153 thread_safe_flag_spec= 10154 whole_archive_flag_spec= 10155 # include_expsyms should be a list of space-separated symbols to be *always* 10156 # included in the symbol list 10157 include_expsyms= 10158 # exclude_expsyms can be an extended regexp of symbols to exclude 10159 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10160 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10161 # as well as any symbol that contains 'd'. 10162 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10163 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10164 # platforms (ab)use it in PIC code, but their linkers get confused if 10165 # the symbol is explicitly referenced. Since portable code cannot 10166 # rely on this symbol name, it's probably fine to never include it in 10167 # preloaded symbol tables. 10168 # Exclude shared library initialization/finalization symbols. 10169 extract_expsyms_cmds= 10170 10171 case $host_os in 10172 cygwin* | mingw* | pw32* | cegcc*) 10173 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10174 # When not using gcc, we currently assume that we are using 10175 # Microsoft Visual C++. 10176 if test yes != "$GCC"; then 10177 with_gnu_ld=no 10178 fi 10179 ;; 10180 interix*) 10181 # we just hope/assume this is gcc and not c89 (= MSVC++) 10182 with_gnu_ld=yes 10183 ;; 10184 openbsd* | bitrig*) 10185 with_gnu_ld=no 10186 ;; 10187 linux* | k*bsd*-gnu | gnu*) 10188 link_all_deplibs=no 10189 ;; 10190 esac 10191 10192 ld_shlibs=yes 10193 10194 # On some targets, GNU ld is compatible enough with the native linker 10195 # that we're better off using the native interface for both. 10196 lt_use_gnu_ld_interface=no 10197 if test yes = "$with_gnu_ld"; then 10198 case $host_os in 10199 aix*) 10200 # The AIX port of GNU ld has always aspired to compatibility 10201 # with the native linker. However, as the warning in the GNU ld 10202 # block says, versions before 2.19.5* couldn't really create working 10203 # shared libraries, regardless of the interface used. 10204 case `$LD -v 2>&1` in 10205 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10206 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10207 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10208 *) 10209 lt_use_gnu_ld_interface=yes 10210 ;; 10211 esac 10212 ;; 10213 *) 10214 lt_use_gnu_ld_interface=yes 10215 ;; 10216 esac 10217 fi 10218 10219 if test yes = "$lt_use_gnu_ld_interface"; then 10220 # If archive_cmds runs LD, not CC, wlarc should be empty 10221 wlarc='$wl' 10222 10223 # Set some defaults for GNU ld with shared library support. These 10224 # are reset later if shared libraries are not supported. Putting them 10225 # here allows them to be overridden if necessary. 10226 runpath_var=LD_RUN_PATH 10227 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10228 export_dynamic_flag_spec='$wl--export-dynamic' 10229 # ancient GNU ld didn't support --whole-archive et. al. 10230 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10231 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10232 else 10233 whole_archive_flag_spec= 10234 fi 10235 supports_anon_versioning=no 10236 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10237 *GNU\ gold*) supports_anon_versioning=yes ;; 10238 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10239 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10240 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10241 *\ 2.11.*) ;; # other 2.11 versions 10242 *) supports_anon_versioning=yes ;; 10243 esac 10244 10245 # See if GNU ld supports shared libraries. 10246 case $host_os in 10247 aix[3-9]*) 10248 # On AIX/PPC, the GNU linker is very broken 10249 if test ia64 != "$host_cpu"; then 10250 ld_shlibs=no 10251 cat <<_LT_EOF 1>&2 10252 10253*** Warning: the GNU linker, at least up to release 2.19, is reported 10254*** to be unable to reliably create shared libraries on AIX. 10255*** Therefore, libtool is disabling shared libraries support. If you 10256*** really care for shared libraries, you may want to install binutils 10257*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10258*** You will then need to restart the configuration process. 10259 10260_LT_EOF 10261 fi 10262 ;; 10263 10264 amigaos*) 10265 case $host_cpu in 10266 powerpc) 10267 # see comment about AmigaOS4 .so support 10268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10269 archive_expsym_cmds='' 10270 ;; 10271 m68k) 10272 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)' 10273 hardcode_libdir_flag_spec='-L$libdir' 10274 hardcode_minus_L=yes 10275 ;; 10276 esac 10277 ;; 10278 10279 beos*) 10280 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10281 allow_undefined_flag=unsupported 10282 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10283 # support --undefined. This deserves some investigation. FIXME 10284 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10285 else 10286 ld_shlibs=no 10287 fi 10288 ;; 10289 10290 cygwin* | mingw* | pw32* | cegcc*) 10291 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10292 # as there is no search path for DLLs. 10293 hardcode_libdir_flag_spec='-L$libdir' 10294 export_dynamic_flag_spec='$wl--export-all-symbols' 10295 allow_undefined_flag=unsupported 10296 always_export_symbols=no 10297 enable_shared_with_static_runtimes=yes 10298 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' 10299 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10300 10301 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10303 # If the export-symbols file already is a .def file, use it as 10304 # is; otherwise, prepend EXPORTS... 10305 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10306 cp $export_symbols $output_objdir/$soname.def; 10307 else 10308 echo EXPORTS > $output_objdir/$soname.def; 10309 cat $export_symbols >> $output_objdir/$soname.def; 10310 fi~ 10311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10312 else 10313 ld_shlibs=no 10314 fi 10315 ;; 10316 10317 haiku*) 10318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10319 link_all_deplibs=yes 10320 ;; 10321 10322 os2*) 10323 hardcode_libdir_flag_spec='-L$libdir' 10324 hardcode_minus_L=yes 10325 allow_undefined_flag=unsupported 10326 shrext_cmds=.dll 10327 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10328 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10329 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10330 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10331 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10332 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10333 emximp -o $lib $output_objdir/$libname.def' 10334 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10335 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10336 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10337 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10338 prefix_cmds="$SED"~ 10339 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10340 prefix_cmds="$prefix_cmds -e 1d"; 10341 fi~ 10342 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10343 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10344 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10345 emximp -o $lib $output_objdir/$libname.def' 10346 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10347 enable_shared_with_static_runtimes=yes 10348 ;; 10349 10350 interix[3-9]*) 10351 hardcode_direct=no 10352 hardcode_shlibpath_var=no 10353 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10354 export_dynamic_flag_spec='$wl-E' 10355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10356 # Instead, shared libraries are loaded at an image base (0x10000000 by 10357 # default) and relocated if they conflict, which is a slow very memory 10358 # consuming and fragmenting process. To avoid this, we pick a random, 10359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10360 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10361 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10362 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' 10363 ;; 10364 10365 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10366 tmp_diet=no 10367 if test linux-dietlibc = "$host_os"; then 10368 case $cc_basename in 10369 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10370 esac 10371 fi 10372 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10373 && test no = "$tmp_diet" 10374 then 10375 tmp_addflag=' $pic_flag' 10376 tmp_sharedflag='-shared' 10377 case $cc_basename,$host_cpu in 10378 pgcc*) # Portland Group C compiler 10379 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' 10380 tmp_addflag=' $pic_flag' 10381 ;; 10382 pgf77* | pgf90* | pgf95* | pgfortran*) 10383 # Portland Group f77 and f90 compilers 10384 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' 10385 tmp_addflag=' $pic_flag -Mnomain' ;; 10386 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10387 tmp_addflag=' -i_dynamic' ;; 10388 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10389 tmp_addflag=' -i_dynamic -nofor_main' ;; 10390 ifc* | ifort*) # Intel Fortran compiler 10391 tmp_addflag=' -nofor_main' ;; 10392 lf95*) # Lahey Fortran 8.1 10393 whole_archive_flag_spec= 10394 tmp_sharedflag='--shared' ;; 10395 nagfor*) # NAGFOR 5.3 10396 tmp_sharedflag='-Wl,-shared' ;; 10397 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10398 tmp_sharedflag='-qmkshrobj' 10399 tmp_addflag= ;; 10400 nvcc*) # Cuda Compiler Driver 2.2 10401 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' 10402 compiler_needs_object=yes 10403 ;; 10404 esac 10405 case `$CC -V 2>&1 | sed 5q` in 10406 *Sun\ C*) # Sun C 5.9 10407 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' 10408 compiler_needs_object=yes 10409 tmp_sharedflag='-G' ;; 10410 *Sun\ F*) # Sun Fortran 8.3 10411 tmp_sharedflag='-G' ;; 10412 esac 10413 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10414 10415 if test yes = "$supports_anon_versioning"; then 10416 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10418 echo "local: *; };" >> $output_objdir/$libname.ver~ 10419 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10420 fi 10421 10422 case $cc_basename in 10423 tcc*) 10424 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10425 export_dynamic_flag_spec='-rdynamic' 10426 ;; 10427 xlf* | bgf* | bgxlf* | mpixlf*) 10428 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10429 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10430 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10431 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10432 if test yes = "$supports_anon_versioning"; then 10433 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10435 echo "local: *; };" >> $output_objdir/$libname.ver~ 10436 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10437 fi 10438 ;; 10439 esac 10440 else 10441 ld_shlibs=no 10442 fi 10443 ;; 10444 10445 netbsd* | netbsdelf*-gnu) 10446 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10447 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10448 wlarc= 10449 else 10450 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10451 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10452 fi 10453 ;; 10454 10455 solaris*) 10456 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10457 ld_shlibs=no 10458 cat <<_LT_EOF 1>&2 10459 10460*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10461*** create shared libraries on Solaris systems. Therefore, libtool 10462*** is disabling shared libraries support. We urge you to upgrade GNU 10463*** binutils to release 2.9.1 or newer. Another option is to modify 10464*** your PATH or compiler configuration so that the native linker is 10465*** used, and then restart. 10466 10467_LT_EOF 10468 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10470 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10471 else 10472 ld_shlibs=no 10473 fi 10474 ;; 10475 10476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10477 case `$LD -v 2>&1` in 10478 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10479 ld_shlibs=no 10480 cat <<_LT_EOF 1>&2 10481 10482*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10483*** reliably create shared libraries on SCO systems. Therefore, libtool 10484*** is disabling shared libraries support. We urge you to upgrade GNU 10485*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10486*** your PATH or compiler configuration so that the native linker is 10487*** used, and then restart. 10488 10489_LT_EOF 10490 ;; 10491 *) 10492 # For security reasons, it is highly recommended that you always 10493 # use absolute paths for naming shared libraries, and exclude the 10494 # DT_RUNPATH tag from executables and libraries. But doing so 10495 # requires that you compile everything twice, which is a pain. 10496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10500 else 10501 ld_shlibs=no 10502 fi 10503 ;; 10504 esac 10505 ;; 10506 10507 sunos4*) 10508 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10509 wlarc= 10510 hardcode_direct=yes 10511 hardcode_shlibpath_var=no 10512 ;; 10513 10514 *) 10515 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10516 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10517 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10518 else 10519 ld_shlibs=no 10520 fi 10521 ;; 10522 esac 10523 10524 if test no = "$ld_shlibs"; then 10525 runpath_var= 10526 hardcode_libdir_flag_spec= 10527 export_dynamic_flag_spec= 10528 whole_archive_flag_spec= 10529 fi 10530 else 10531 # PORTME fill in a description of your system's linker (not GNU ld) 10532 case $host_os in 10533 aix3*) 10534 allow_undefined_flag=unsupported 10535 always_export_symbols=yes 10536 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' 10537 # Note: this linker hardcodes the directories in LIBPATH if there 10538 # are no directories specified by -L. 10539 hardcode_minus_L=yes 10540 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10541 # Neither direct hardcoding nor static linking is supported with a 10542 # broken collect2. 10543 hardcode_direct=unsupported 10544 fi 10545 ;; 10546 10547 aix[4-9]*) 10548 if test ia64 = "$host_cpu"; then 10549 # On IA64, the linker does run time linking by default, so we don't 10550 # have to do anything special. 10551 aix_use_runtimelinking=no 10552 exp_sym_flag='-Bexport' 10553 no_entry_flag= 10554 else 10555 # If we're using GNU nm, then we don't want the "-C" option. 10556 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10557 # Without the "-l" option, or with the "-B" option, AIX nm treats 10558 # weak defined symbols like other global defined symbols, whereas 10559 # GNU nm marks them as "W". 10560 # While the 'weak' keyword is ignored in the Export File, we need 10561 # it in the Import File for the 'aix-soname' feature, so we have 10562 # to replace the "-B" option with "-P" for AIX nm. 10563 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10564 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' 10565 else 10566 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' 10567 fi 10568 aix_use_runtimelinking=no 10569 10570 # Test if we are trying to use run time linking or normal 10571 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10572 # have runtime linking enabled, and use it for executables. 10573 # For shared libraries, we enable/disable runtime linking 10574 # depending on the kind of the shared library created - 10575 # when "with_aix_soname,aix_use_runtimelinking" is: 10576 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10577 # "aix,yes" lib.so shared, rtl:yes, for executables 10578 # lib.a static archive 10579 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10580 # lib.a(lib.so.V) shared, rtl:no, for executables 10581 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10582 # lib.a(lib.so.V) shared, rtl:no 10583 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10584 # lib.a static archive 10585 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10586 for ld_flag in $LDFLAGS; do 10587 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10588 aix_use_runtimelinking=yes 10589 break 10590 fi 10591 done 10592 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10593 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10594 # so we don't have lib.a shared libs to link our executables. 10595 # We have to force runtime linking in this case. 10596 aix_use_runtimelinking=yes 10597 LDFLAGS="$LDFLAGS -Wl,-brtl" 10598 fi 10599 ;; 10600 esac 10601 10602 exp_sym_flag='-bexport' 10603 no_entry_flag='-bnoentry' 10604 fi 10605 10606 # When large executables or shared objects are built, AIX ld can 10607 # have problems creating the table of contents. If linking a library 10608 # or program results in "error TOC overflow" add -mminimal-toc to 10609 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10610 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10611 10612 archive_cmds='' 10613 hardcode_direct=yes 10614 hardcode_direct_absolute=yes 10615 hardcode_libdir_separator=':' 10616 link_all_deplibs=yes 10617 file_list_spec='$wl-f,' 10618 case $with_aix_soname,$aix_use_runtimelinking in 10619 aix,*) ;; # traditional, no import file 10620 svr4,* | *,yes) # use import file 10621 # The Import File defines what to hardcode. 10622 hardcode_direct=no 10623 hardcode_direct_absolute=no 10624 ;; 10625 esac 10626 10627 if test yes = "$GCC"; then 10628 case $host_os in aix4.[012]|aix4.[012].*) 10629 # We only want to do this on AIX 4.2 and lower, the check 10630 # below for broken collect2 doesn't work under 4.3+ 10631 collect2name=`$CC -print-prog-name=collect2` 10632 if test -f "$collect2name" && 10633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10634 then 10635 # We have reworked collect2 10636 : 10637 else 10638 # We have old collect2 10639 hardcode_direct=unsupported 10640 # It fails to find uninstalled libraries when the uninstalled 10641 # path is not listed in the libpath. Setting hardcode_minus_L 10642 # to unsupported forces relinking 10643 hardcode_minus_L=yes 10644 hardcode_libdir_flag_spec='-L$libdir' 10645 hardcode_libdir_separator= 10646 fi 10647 ;; 10648 esac 10649 shared_flag='-shared' 10650 if test yes = "$aix_use_runtimelinking"; then 10651 shared_flag="$shared_flag "'$wl-G' 10652 fi 10653 # Need to ensure runtime linking is disabled for the traditional 10654 # shared library, or the linker may eventually find shared libraries 10655 # /with/ Import File - we do not want to mix them. 10656 shared_flag_aix='-shared' 10657 shared_flag_svr4='-shared $wl-G' 10658 else 10659 # not using gcc 10660 if test ia64 = "$host_cpu"; then 10661 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10662 # chokes on -Wl,-G. The following line is correct: 10663 shared_flag='-G' 10664 else 10665 if test yes = "$aix_use_runtimelinking"; then 10666 shared_flag='$wl-G' 10667 else 10668 shared_flag='$wl-bM:SRE' 10669 fi 10670 shared_flag_aix='$wl-bM:SRE' 10671 shared_flag_svr4='$wl-G' 10672 fi 10673 fi 10674 10675 export_dynamic_flag_spec='$wl-bexpall' 10676 # It seems that -bexpall does not export symbols beginning with 10677 # underscore (_), so it is better to generate a list of symbols to export. 10678 always_export_symbols=yes 10679 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10680 # Warning - without using the other runtime loading flags (-brtl), 10681 # -berok will link without error, but may produce a broken library. 10682 allow_undefined_flag='-berok' 10683 # Determine the default libpath from the value encoded in an 10684 # empty executable. 10685 if test set = "${lt_cv_aix_libpath+set}"; then 10686 aix_libpath=$lt_cv_aix_libpath 10687else 10688 if ${lt_cv_aix_libpath_+:} false; then : 10689 $as_echo_n "(cached) " >&6 10690else 10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10692/* end confdefs.h. */ 10693 10694int 10695main (void) 10696{ 10697 10698 ; 10699 return 0; 10700} 10701_ACEOF 10702if ac_fn_c_try_link "$LINENO"; then : 10703 10704 lt_aix_libpath_sed=' 10705 /Import File Strings/,/^$/ { 10706 /^0/ { 10707 s/^0 *\([^ ]*\) *$/\1/ 10708 p 10709 } 10710 }' 10711 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10712 # Check for a 64-bit object if we didn't find anything. 10713 if test -z "$lt_cv_aix_libpath_"; then 10714 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10715 fi 10716fi 10717rm -f core conftest.err conftest.$ac_objext \ 10718 conftest$ac_exeext conftest.$ac_ext 10719 if test -z "$lt_cv_aix_libpath_"; then 10720 lt_cv_aix_libpath_=/usr/lib:/lib 10721 fi 10722 10723fi 10724 10725 aix_libpath=$lt_cv_aix_libpath_ 10726fi 10727 10728 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10729 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 10730 else 10731 if test ia64 = "$host_cpu"; then 10732 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10733 allow_undefined_flag="-z nodefs" 10734 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" 10735 else 10736 # Determine the default libpath from the value encoded in an 10737 # empty executable. 10738 if test set = "${lt_cv_aix_libpath+set}"; then 10739 aix_libpath=$lt_cv_aix_libpath 10740else 10741 if ${lt_cv_aix_libpath_+:} false; then : 10742 $as_echo_n "(cached) " >&6 10743else 10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10745/* end confdefs.h. */ 10746 10747int 10748main (void) 10749{ 10750 10751 ; 10752 return 0; 10753} 10754_ACEOF 10755if ac_fn_c_try_link "$LINENO"; then : 10756 10757 lt_aix_libpath_sed=' 10758 /Import File Strings/,/^$/ { 10759 /^0/ { 10760 s/^0 *\([^ ]*\) *$/\1/ 10761 p 10762 } 10763 }' 10764 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10765 # Check for a 64-bit object if we didn't find anything. 10766 if test -z "$lt_cv_aix_libpath_"; then 10767 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10768 fi 10769fi 10770rm -f core conftest.err conftest.$ac_objext \ 10771 conftest$ac_exeext conftest.$ac_ext 10772 if test -z "$lt_cv_aix_libpath_"; then 10773 lt_cv_aix_libpath_=/usr/lib:/lib 10774 fi 10775 10776fi 10777 10778 aix_libpath=$lt_cv_aix_libpath_ 10779fi 10780 10781 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10782 # Warning - without using the other run time loading flags, 10783 # -berok will link without error, but may produce a broken library. 10784 no_undefined_flag=' $wl-bernotok' 10785 allow_undefined_flag=' $wl-berok' 10786 if test yes = "$with_gnu_ld"; then 10787 # We only use this code for GNU lds that support --whole-archive. 10788 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10789 else 10790 # Exported symbols can be pulled into shared objects from archives 10791 whole_archive_flag_spec='$convenience' 10792 fi 10793 archive_cmds_need_lc=yes 10794 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10795 # -brtl affects multiple linker settings, -berok does not and is overridden later 10796 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10797 if test svr4 != "$with_aix_soname"; then 10798 # This is similar to how AIX traditionally builds its shared libraries. 10799 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' 10800 fi 10801 if test aix != "$with_aix_soname"; then 10802 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' 10803 else 10804 # used by -dlpreopen to get the symbols 10805 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10806 fi 10807 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10808 fi 10809 fi 10810 ;; 10811 10812 amigaos*) 10813 case $host_cpu in 10814 powerpc) 10815 # see comment about AmigaOS4 .so support 10816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10817 archive_expsym_cmds='' 10818 ;; 10819 m68k) 10820 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)' 10821 hardcode_libdir_flag_spec='-L$libdir' 10822 hardcode_minus_L=yes 10823 ;; 10824 esac 10825 ;; 10826 10827 bsdi[45]*) 10828 export_dynamic_flag_spec=-rdynamic 10829 ;; 10830 10831 cygwin* | mingw* | pw32* | cegcc*) 10832 # When not using gcc, we currently assume that we are using 10833 # Microsoft Visual C++. 10834 # hardcode_libdir_flag_spec is actually meaningless, as there is 10835 # no search path for DLLs. 10836 case $cc_basename in 10837 cl*) 10838 # Native MSVC 10839 hardcode_libdir_flag_spec=' ' 10840 allow_undefined_flag=unsupported 10841 always_export_symbols=yes 10842 file_list_spec='@' 10843 # Tell ltmain to make .lib files, not .a files. 10844 libext=lib 10845 # Tell ltmain to make .dll files, not .so files. 10846 shrext_cmds=.dll 10847 # FIXME: Setting linknames here is a bad hack. 10848 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10849 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10850 cp "$export_symbols" "$output_objdir/$soname.def"; 10851 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10852 else 10853 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10854 fi~ 10855 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10856 linknames=' 10857 # The linker will not automatically build a static lib if we build a DLL. 10858 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10859 enable_shared_with_static_runtimes=yes 10860 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10861 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10862 # Don't use ranlib 10863 old_postinstall_cmds='chmod 644 $oldlib' 10864 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10865 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10866 case $lt_outputfile in 10867 *.exe|*.EXE) ;; 10868 *) 10869 lt_outputfile=$lt_outputfile.exe 10870 lt_tool_outputfile=$lt_tool_outputfile.exe 10871 ;; 10872 esac~ 10873 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10874 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10875 $RM "$lt_outputfile.manifest"; 10876 fi' 10877 ;; 10878 *) 10879 # Assume MSVC wrapper 10880 hardcode_libdir_flag_spec=' ' 10881 allow_undefined_flag=unsupported 10882 # Tell ltmain to make .lib files, not .a files. 10883 libext=lib 10884 # Tell ltmain to make .dll files, not .so files. 10885 shrext_cmds=.dll 10886 # FIXME: Setting linknames here is a bad hack. 10887 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10888 # The linker will automatically build a .lib file if we build a DLL. 10889 old_archive_from_new_cmds='true' 10890 # FIXME: Should let the user specify the lib program. 10891 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10892 enable_shared_with_static_runtimes=yes 10893 ;; 10894 esac 10895 ;; 10896 10897 darwin* | rhapsody*) 10898 10899 10900 archive_cmds_need_lc=no 10901 hardcode_direct=no 10902 hardcode_automatic=yes 10903 hardcode_shlibpath_var=unsupported 10904 if test yes = "$lt_cv_ld_force_load"; then 10905 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\"`' 10906 10907 else 10908 whole_archive_flag_spec='' 10909 fi 10910 link_all_deplibs=yes 10911 allow_undefined_flag=$_lt_dar_allow_undefined 10912 case $cc_basename in 10913 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10914 *) _lt_dar_can_shared=$GCC ;; 10915 esac 10916 if test yes = "$_lt_dar_can_shared"; then 10917 output_verbose_link_cmd=func_echo_all 10918 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10919 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10920 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" 10921 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" 10922 10923 else 10924 ld_shlibs=no 10925 fi 10926 10927 ;; 10928 10929 dgux*) 10930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10931 hardcode_libdir_flag_spec='-L$libdir' 10932 hardcode_shlibpath_var=no 10933 ;; 10934 10935 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10936 # support. Future versions do this automatically, but an explicit c++rt0.o 10937 # does not break anything, and helps significantly (at the cost of a little 10938 # extra space). 10939 freebsd2.2*) 10940 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10941 hardcode_libdir_flag_spec='-R$libdir' 10942 hardcode_direct=yes 10943 hardcode_shlibpath_var=no 10944 ;; 10945 10946 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10947 freebsd2.*) 10948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10949 hardcode_direct=yes 10950 hardcode_minus_L=yes 10951 hardcode_shlibpath_var=no 10952 ;; 10953 10954 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10955 freebsd* | dragonfly*) 10956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10957 hardcode_libdir_flag_spec='-R$libdir' 10958 hardcode_direct=yes 10959 hardcode_shlibpath_var=no 10960 ;; 10961 10962 hpux9*) 10963 if test yes = "$GCC"; then 10964 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' 10965 else 10966 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' 10967 fi 10968 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10969 hardcode_libdir_separator=: 10970 hardcode_direct=yes 10971 10972 # hardcode_minus_L: Not really in the search PATH, 10973 # but as the default location of the library. 10974 hardcode_minus_L=yes 10975 export_dynamic_flag_spec='$wl-E' 10976 ;; 10977 10978 hpux10*) 10979 if test yes,no = "$GCC,$with_gnu_ld"; then 10980 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10981 else 10982 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10983 fi 10984 if test no = "$with_gnu_ld"; then 10985 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10986 hardcode_libdir_separator=: 10987 hardcode_direct=yes 10988 hardcode_direct_absolute=yes 10989 export_dynamic_flag_spec='$wl-E' 10990 # hardcode_minus_L: Not really in the search PATH, 10991 # but as the default location of the library. 10992 hardcode_minus_L=yes 10993 fi 10994 ;; 10995 10996 hpux11*) 10997 if test yes,no = "$GCC,$with_gnu_ld"; then 10998 case $host_cpu in 10999 hppa*64*) 11000 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11001 ;; 11002 ia64*) 11003 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11004 ;; 11005 *) 11006 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11007 ;; 11008 esac 11009 else 11010 case $host_cpu in 11011 hppa*64*) 11012 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11013 ;; 11014 ia64*) 11015 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11016 ;; 11017 *) 11018 11019 # Older versions of the 11.00 compiler do not understand -b yet 11020 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11022$as_echo_n "checking if $CC understands -b... " >&6; } 11023if ${lt_cv_prog_compiler__b+:} false; then : 11024 $as_echo_n "(cached) " >&6 11025else 11026 lt_cv_prog_compiler__b=no 11027 save_LDFLAGS=$LDFLAGS 11028 LDFLAGS="$LDFLAGS -b" 11029 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11030 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11031 # The linker can only warn and ignore the option if not recognized 11032 # So say no if there are warnings 11033 if test -s conftest.err; then 11034 # Append any errors to the config.log. 11035 cat conftest.err 1>&5 11036 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11038 if diff conftest.exp conftest.er2 >/dev/null; then 11039 lt_cv_prog_compiler__b=yes 11040 fi 11041 else 11042 lt_cv_prog_compiler__b=yes 11043 fi 11044 fi 11045 $RM -r conftest* 11046 LDFLAGS=$save_LDFLAGS 11047 11048fi 11049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11050$as_echo "$lt_cv_prog_compiler__b" >&6; } 11051 11052if test yes = "$lt_cv_prog_compiler__b"; then 11053 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11054else 11055 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11056fi 11057 11058 ;; 11059 esac 11060 fi 11061 if test no = "$with_gnu_ld"; then 11062 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11063 hardcode_libdir_separator=: 11064 11065 case $host_cpu in 11066 hppa*64*|ia64*) 11067 hardcode_direct=no 11068 hardcode_shlibpath_var=no 11069 ;; 11070 *) 11071 hardcode_direct=yes 11072 hardcode_direct_absolute=yes 11073 export_dynamic_flag_spec='$wl-E' 11074 11075 # hardcode_minus_L: Not really in the search PATH, 11076 # but as the default location of the library. 11077 hardcode_minus_L=yes 11078 ;; 11079 esac 11080 fi 11081 ;; 11082 11083 irix5* | irix6* | nonstopux*) 11084 if test yes = "$GCC"; then 11085 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' 11086 # Try to use the -exported_symbol ld option, if it does not 11087 # work, assume that -exports_file does not work either and 11088 # implicitly export all symbols. 11089 # This should be the same for all languages, so no per-tag cache variable. 11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11091$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11092if ${lt_cv_irix_exported_symbol+:} false; then : 11093 $as_echo_n "(cached) " >&6 11094else 11095 save_LDFLAGS=$LDFLAGS 11096 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11098/* end confdefs.h. */ 11099int foo (void) { return 0; } 11100_ACEOF 11101if ac_fn_c_try_link "$LINENO"; then : 11102 lt_cv_irix_exported_symbol=yes 11103else 11104 lt_cv_irix_exported_symbol=no 11105fi 11106rm -f core conftest.err conftest.$ac_objext \ 11107 conftest$ac_exeext conftest.$ac_ext 11108 LDFLAGS=$save_LDFLAGS 11109fi 11110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11111$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11112 if test yes = "$lt_cv_irix_exported_symbol"; then 11113 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' 11114 fi 11115 link_all_deplibs=no 11116 else 11117 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' 11118 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' 11119 fi 11120 archive_cmds_need_lc='no' 11121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11122 hardcode_libdir_separator=: 11123 inherit_rpath=yes 11124 link_all_deplibs=yes 11125 ;; 11126 11127 linux*) 11128 case $cc_basename in 11129 tcc*) 11130 # Fabrice Bellard et al's Tiny C Compiler 11131 ld_shlibs=yes 11132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11133 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11134 ;; 11135 esac 11136 ;; 11137 11138 netbsd* | netbsdelf*-gnu) 11139 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11140 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11141 else 11142 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11143 fi 11144 hardcode_libdir_flag_spec='-R$libdir' 11145 hardcode_direct=yes 11146 hardcode_shlibpath_var=no 11147 ;; 11148 11149 newsos6) 11150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11151 hardcode_direct=yes 11152 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11153 hardcode_libdir_separator=: 11154 hardcode_shlibpath_var=no 11155 ;; 11156 11157 *nto* | *qnx*) 11158 ;; 11159 11160 openbsd* | bitrig*) 11161 if test -f /usr/libexec/ld.so; then 11162 hardcode_direct=yes 11163 hardcode_shlibpath_var=no 11164 hardcode_direct_absolute=yes 11165 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11167 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11168 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11169 export_dynamic_flag_spec='$wl-E' 11170 else 11171 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11172 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11173 fi 11174 else 11175 ld_shlibs=no 11176 fi 11177 ;; 11178 11179 os2*) 11180 hardcode_libdir_flag_spec='-L$libdir' 11181 hardcode_minus_L=yes 11182 allow_undefined_flag=unsupported 11183 shrext_cmds=.dll 11184 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11185 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11186 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11187 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11188 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11189 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11190 emximp -o $lib $output_objdir/$libname.def' 11191 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11192 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11193 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11194 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11195 prefix_cmds="$SED"~ 11196 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11197 prefix_cmds="$prefix_cmds -e 1d"; 11198 fi~ 11199 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11200 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11201 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11202 emximp -o $lib $output_objdir/$libname.def' 11203 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11204 enable_shared_with_static_runtimes=yes 11205 ;; 11206 11207 osf3*) 11208 if test yes = "$GCC"; then 11209 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11210 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' 11211 else 11212 allow_undefined_flag=' -expect_unresolved \*' 11213 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' 11214 fi 11215 archive_cmds_need_lc='no' 11216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11217 hardcode_libdir_separator=: 11218 ;; 11219 11220 osf4* | osf5*) # as osf3* with the addition of -msym flag 11221 if test yes = "$GCC"; then 11222 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11223 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' 11224 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11225 else 11226 allow_undefined_flag=' -expect_unresolved \*' 11227 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' 11228 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~ 11229 $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' 11230 11231 # Both c and cxx compiler support -rpath directly 11232 hardcode_libdir_flag_spec='-rpath $libdir' 11233 fi 11234 archive_cmds_need_lc='no' 11235 hardcode_libdir_separator=: 11236 ;; 11237 11238 solaris*) 11239 no_undefined_flag=' -z defs' 11240 if test yes = "$GCC"; then 11241 wlarc='$wl' 11242 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11243 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11244 $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' 11245 else 11246 case `$CC -V 2>&1` in 11247 *"Compilers 5.0"*) 11248 wlarc='' 11249 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11250 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11251 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11252 ;; 11253 *) 11254 wlarc='$wl' 11255 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11256 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11257 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11258 ;; 11259 esac 11260 fi 11261 hardcode_libdir_flag_spec='-R$libdir' 11262 hardcode_shlibpath_var=no 11263 case $host_os in 11264 solaris2.[0-5] | solaris2.[0-5].*) ;; 11265 *) 11266 # The compiler driver will combine and reorder linker options, 11267 # but understands '-z linker_flag'. GCC discards it without '$wl', 11268 # but is careful enough not to reorder. 11269 # Supported since Solaris 2.6 (maybe 2.5.1?) 11270 if test yes = "$GCC"; then 11271 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11272 else 11273 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11274 fi 11275 ;; 11276 esac 11277 link_all_deplibs=yes 11278 ;; 11279 11280 sunos4*) 11281 if test sequent = "$host_vendor"; then 11282 # Use $CC to link under sequent, because it throws in some extra .o 11283 # files that make .init and .fini sections work. 11284 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11285 else 11286 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11287 fi 11288 hardcode_libdir_flag_spec='-L$libdir' 11289 hardcode_direct=yes 11290 hardcode_minus_L=yes 11291 hardcode_shlibpath_var=no 11292 ;; 11293 11294 sysv4) 11295 case $host_vendor in 11296 sni) 11297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11298 hardcode_direct=yes # is this really true??? 11299 ;; 11300 siemens) 11301 ## LD is ld it makes a PLAMLIB 11302 ## CC just makes a GrossModule. 11303 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11304 reload_cmds='$CC -r -o $output$reload_objs' 11305 hardcode_direct=no 11306 ;; 11307 motorola) 11308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11309 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11310 ;; 11311 esac 11312 runpath_var='LD_RUN_PATH' 11313 hardcode_shlibpath_var=no 11314 ;; 11315 11316 sysv4.3*) 11317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11318 hardcode_shlibpath_var=no 11319 export_dynamic_flag_spec='-Bexport' 11320 ;; 11321 11322 sysv4*MP*) 11323 if test -d /usr/nec; then 11324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11325 hardcode_shlibpath_var=no 11326 runpath_var=LD_RUN_PATH 11327 hardcode_runpath_var=yes 11328 ld_shlibs=yes 11329 fi 11330 ;; 11331 11332 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11333 no_undefined_flag='$wl-z,text' 11334 archive_cmds_need_lc=no 11335 hardcode_shlibpath_var=no 11336 runpath_var='LD_RUN_PATH' 11337 11338 if test yes = "$GCC"; then 11339 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11340 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11341 else 11342 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11343 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11344 fi 11345 ;; 11346 11347 sysv5* | sco3.2v5* | sco5v6*) 11348 # Note: We CANNOT use -z defs as we might desire, because we do not 11349 # link with -lc, and that would cause any symbols used from libc to 11350 # always be unresolved, which means just about no library would 11351 # ever link correctly. If we're not using GNU ld we use -z text 11352 # though, which does catch some bad symbols but isn't as heavy-handed 11353 # as -z defs. 11354 no_undefined_flag='$wl-z,text' 11355 allow_undefined_flag='$wl-z,nodefs' 11356 archive_cmds_need_lc=no 11357 hardcode_shlibpath_var=no 11358 hardcode_libdir_flag_spec='$wl-R,$libdir' 11359 hardcode_libdir_separator=':' 11360 link_all_deplibs=yes 11361 export_dynamic_flag_spec='$wl-Bexport' 11362 runpath_var='LD_RUN_PATH' 11363 11364 if test yes = "$GCC"; then 11365 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11366 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11367 else 11368 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11369 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11370 fi 11371 ;; 11372 11373 uts4*) 11374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11375 hardcode_libdir_flag_spec='-L$libdir' 11376 hardcode_shlibpath_var=no 11377 ;; 11378 11379 *) 11380 ld_shlibs=no 11381 ;; 11382 esac 11383 11384 if test sni = "$host_vendor"; then 11385 case $host in 11386 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11387 export_dynamic_flag_spec='$wl-Blargedynsym' 11388 ;; 11389 esac 11390 fi 11391 fi 11392 11393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11394$as_echo "$ld_shlibs" >&6; } 11395test no = "$ld_shlibs" && can_build_shared=no 11396 11397with_gnu_ld=$with_gnu_ld 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413# 11414# Do we need to explicitly link libc? 11415# 11416case "x$archive_cmds_need_lc" in 11417x|xyes) 11418 # Assume -lc should be added 11419 archive_cmds_need_lc=yes 11420 11421 if test yes,yes = "$GCC,$enable_shared"; then 11422 case $archive_cmds in 11423 *'~'*) 11424 # FIXME: we may have to deal with multi-command sequences. 11425 ;; 11426 '$CC '*) 11427 # Test whether the compiler implicitly links with -lc since on some 11428 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11429 # to ld, don't add -lc before -lgcc. 11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11431$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11432if ${lt_cv_archive_cmds_need_lc+:} false; then : 11433 $as_echo_n "(cached) " >&6 11434else 11435 $RM conftest* 11436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11437 11438 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11439 (eval $ac_compile) 2>&5 11440 ac_status=$? 11441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11442 test $ac_status = 0; } 2>conftest.err; then 11443 soname=conftest 11444 lib=conftest 11445 libobjs=conftest.$ac_objext 11446 deplibs= 11447 wl=$lt_prog_compiler_wl 11448 pic_flag=$lt_prog_compiler_pic 11449 compiler_flags=-v 11450 linker_flags=-v 11451 verstring= 11452 output_objdir=. 11453 libname=conftest 11454 lt_save_allow_undefined_flag=$allow_undefined_flag 11455 allow_undefined_flag= 11456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11457 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11458 ac_status=$? 11459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11460 test $ac_status = 0; } 11461 then 11462 lt_cv_archive_cmds_need_lc=no 11463 else 11464 lt_cv_archive_cmds_need_lc=yes 11465 fi 11466 allow_undefined_flag=$lt_save_allow_undefined_flag 11467 else 11468 cat conftest.err 1>&5 11469 fi 11470 $RM conftest* 11471 11472fi 11473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11474$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11475 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11476 ;; 11477 esac 11478 fi 11479 ;; 11480esac 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11634$as_echo_n "checking dynamic linker characteristics... " >&6; } 11635 11636if test yes = "$GCC"; then 11637 case $host_os in 11638 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11639 *) lt_awk_arg='/^libraries:/' ;; 11640 esac 11641 case $host_os in 11642 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11643 *) lt_sed_strip_eq='s|=/|/|g' ;; 11644 esac 11645 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11646 case $lt_search_path_spec in 11647 *\;*) 11648 # if the path contains ";" then we assume it to be the separator 11649 # otherwise default to the standard path separator (i.e. ":") - it is 11650 # assumed that no part of a normal pathname contains ";" but that should 11651 # okay in the real world where ";" in dirpaths is itself problematic. 11652 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11653 ;; 11654 *) 11655 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11656 ;; 11657 esac 11658 # Ok, now we have the path, separated by spaces, we can step through it 11659 # and add multilib dir if necessary... 11660 lt_tmp_lt_search_path_spec= 11661 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11662 # ...but if some path component already ends with the multilib dir we assume 11663 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11664 case "$lt_multi_os_dir; $lt_search_path_spec " in 11665 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11666 lt_multi_os_dir= 11667 ;; 11668 esac 11669 for lt_sys_path in $lt_search_path_spec; do 11670 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11671 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11672 elif test -n "$lt_multi_os_dir"; then 11673 test -d "$lt_sys_path" && \ 11674 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11675 fi 11676 done 11677 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11678BEGIN {RS = " "; FS = "/|\n";} { 11679 lt_foo = ""; 11680 lt_count = 0; 11681 for (lt_i = NF; lt_i > 0; lt_i--) { 11682 if ($lt_i != "" && $lt_i != ".") { 11683 if ($lt_i == "..") { 11684 lt_count++; 11685 } else { 11686 if (lt_count == 0) { 11687 lt_foo = "/" $lt_i lt_foo; 11688 } else { 11689 lt_count--; 11690 } 11691 } 11692 } 11693 } 11694 if (lt_foo != "") { lt_freq[lt_foo]++; } 11695 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11696}'` 11697 # AWK program above erroneously prepends '/' to C:/dos/paths 11698 # for these hosts. 11699 case $host_os in 11700 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11701 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11702 esac 11703 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11704else 11705 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11706fi 11707library_names_spec= 11708libname_spec='lib$name' 11709soname_spec= 11710shrext_cmds=.so 11711postinstall_cmds= 11712postuninstall_cmds= 11713finish_cmds= 11714finish_eval= 11715shlibpath_var= 11716shlibpath_overrides_runpath=unknown 11717version_type=none 11718dynamic_linker="$host_os ld.so" 11719sys_lib_dlsearch_path_spec="/lib /usr/lib" 11720need_lib_prefix=unknown 11721hardcode_into_libs=no 11722 11723# when you set need_version to no, make sure it does not cause -set_version 11724# flags to be left without arguments 11725need_version=unknown 11726 11727 11728 11729case $host_os in 11730aix3*) 11731 version_type=linux # correct to gnu/linux during the next big refactor 11732 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11733 shlibpath_var=LIBPATH 11734 11735 # AIX 3 has no versioning support, so we append a major version to the name. 11736 soname_spec='$libname$release$shared_ext$major' 11737 ;; 11738 11739aix[4-9]*) 11740 version_type=linux # correct to gnu/linux during the next big refactor 11741 need_lib_prefix=no 11742 need_version=no 11743 hardcode_into_libs=yes 11744 if test ia64 = "$host_cpu"; then 11745 # AIX 5 supports IA64 11746 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11747 shlibpath_var=LD_LIBRARY_PATH 11748 else 11749 # With GCC up to 2.95.x, collect2 would create an import file 11750 # for dependence libraries. The import file would start with 11751 # the line '#! .'. This would cause the generated library to 11752 # depend on '.', always an invalid library. This was fixed in 11753 # development snapshots of GCC prior to 3.0. 11754 case $host_os in 11755 aix4 | aix4.[01] | aix4.[01].*) 11756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11757 echo ' yes ' 11758 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11759 : 11760 else 11761 can_build_shared=no 11762 fi 11763 ;; 11764 esac 11765 # Using Import Files as archive members, it is possible to support 11766 # filename-based versioning of shared library archives on AIX. While 11767 # this would work for both with and without runtime linking, it will 11768 # prevent static linking of such archives. So we do filename-based 11769 # shared library versioning with .so extension only, which is used 11770 # when both runtime linking and shared linking is enabled. 11771 # Unfortunately, runtime linking may impact performance, so we do 11772 # not want this to be the default eventually. Also, we use the 11773 # versioned .so libs for executables only if there is the -brtl 11774 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11775 # To allow for filename-based versioning support, we need to create 11776 # libNAME.so.V as an archive file, containing: 11777 # *) an Import File, referring to the versioned filename of the 11778 # archive as well as the shared archive member, telling the 11779 # bitwidth (32 or 64) of that shared object, and providing the 11780 # list of exported symbols of that shared object, eventually 11781 # decorated with the 'weak' keyword 11782 # *) the shared object with the F_LOADONLY flag set, to really avoid 11783 # it being seen by the linker. 11784 # At run time we better use the real file rather than another symlink, 11785 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11786 11787 case $with_aix_soname,$aix_use_runtimelinking in 11788 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11789 # soname into executable. Probably we can add versioning support to 11790 # collect2, so additional links can be useful in future. 11791 aix,yes) # traditional libtool 11792 dynamic_linker='AIX unversionable lib.so' 11793 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11794 # instead of lib<name>.a to let people know that these are not 11795 # typical AIX shared libraries. 11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11797 ;; 11798 aix,no) # traditional AIX only 11799 dynamic_linker='AIX lib.a(lib.so.V)' 11800 # We preserve .a as extension for shared libraries through AIX4.2 11801 # and later when we are not doing run time linking. 11802 library_names_spec='$libname$release.a $libname.a' 11803 soname_spec='$libname$release$shared_ext$major' 11804 ;; 11805 svr4,*) # full svr4 only 11806 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11807 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11808 # We do not specify a path in Import Files, so LIBPATH fires. 11809 shlibpath_overrides_runpath=yes 11810 ;; 11811 *,yes) # both, prefer svr4 11812 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11813 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11814 # unpreferred sharedlib libNAME.a needs extra handling 11815 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"' 11816 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"' 11817 # We do not specify a path in Import Files, so LIBPATH fires. 11818 shlibpath_overrides_runpath=yes 11819 ;; 11820 *,no) # both, prefer aix 11821 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11822 library_names_spec='$libname$release.a $libname.a' 11823 soname_spec='$libname$release$shared_ext$major' 11824 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11825 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)' 11826 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"' 11827 ;; 11828 esac 11829 shlibpath_var=LIBPATH 11830 fi 11831 ;; 11832 11833amigaos*) 11834 case $host_cpu in 11835 powerpc) 11836 # Since July 2007 AmigaOS4 officially supports .so libraries. 11837 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11839 ;; 11840 m68k) 11841 library_names_spec='$libname.ixlibrary $libname.a' 11842 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11843 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' 11844 ;; 11845 esac 11846 ;; 11847 11848beos*) 11849 library_names_spec='$libname$shared_ext' 11850 dynamic_linker="$host_os ld.so" 11851 shlibpath_var=LIBRARY_PATH 11852 ;; 11853 11854bsdi[45]*) 11855 version_type=linux # correct to gnu/linux during the next big refactor 11856 need_version=no 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11858 soname_spec='$libname$release$shared_ext$major' 11859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11860 shlibpath_var=LD_LIBRARY_PATH 11861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11863 # the default ld.so.conf also contains /usr/contrib/lib and 11864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11865 # libtool to hard-code these into programs 11866 ;; 11867 11868cygwin* | mingw* | pw32* | cegcc*) 11869 version_type=windows 11870 shrext_cmds=.dll 11871 need_version=no 11872 need_lib_prefix=no 11873 11874 case $GCC,$cc_basename in 11875 yes,*) 11876 # gcc 11877 library_names_spec='$libname.dll.a' 11878 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11879 postinstall_cmds='base_file=`basename \$file`~ 11880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11881 dldir=$destdir/`dirname \$dlpath`~ 11882 test -d \$dldir || mkdir -p \$dldir~ 11883 $install_prog $dir/$dlname \$dldir/$dlname~ 11884 chmod a+x \$dldir/$dlname~ 11885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11887 fi' 11888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11889 dlpath=$dir/\$dldll~ 11890 $RM \$dlpath' 11891 shlibpath_overrides_runpath=yes 11892 11893 case $host_os in 11894 cygwin*) 11895 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11896 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11897 11898 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11899 ;; 11900 mingw* | cegcc*) 11901 # MinGW DLLs use traditional 'lib' prefix 11902 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11903 ;; 11904 pw32*) 11905 # pw32 DLLs use 'pw' prefix rather than 'lib' 11906 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11907 ;; 11908 esac 11909 dynamic_linker='Win32 ld.exe' 11910 ;; 11911 11912 *,cl*) 11913 # Native MSVC 11914 libname_spec='$name' 11915 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11916 library_names_spec='$libname.dll.lib' 11917 11918 case $build_os in 11919 mingw*) 11920 sys_lib_search_path_spec= 11921 lt_save_ifs=$IFS 11922 IFS=';' 11923 for lt_path in $LIB 11924 do 11925 IFS=$lt_save_ifs 11926 # Let DOS variable expansion print the short 8.3 style file name. 11927 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11928 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11929 done 11930 IFS=$lt_save_ifs 11931 # Convert to MSYS style. 11932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11933 ;; 11934 cygwin*) 11935 # Convert to unix form, then to dos form, then back to unix form 11936 # but this time dos style (no spaces!) so that the unix form looks 11937 # like /cygdrive/c/PROGRA~1:/cygdr... 11938 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11939 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11940 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11941 ;; 11942 *) 11943 sys_lib_search_path_spec=$LIB 11944 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11945 # It is most probably a Windows format PATH. 11946 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11947 else 11948 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11949 fi 11950 # FIXME: find the short name or the path components, as spaces are 11951 # common. (e.g. "Program Files" -> "PROGRA~1") 11952 ;; 11953 esac 11954 11955 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11956 postinstall_cmds='base_file=`basename \$file`~ 11957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11958 dldir=$destdir/`dirname \$dlpath`~ 11959 test -d \$dldir || mkdir -p \$dldir~ 11960 $install_prog $dir/$dlname \$dldir/$dlname' 11961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11962 dlpath=$dir/\$dldll~ 11963 $RM \$dlpath' 11964 shlibpath_overrides_runpath=yes 11965 dynamic_linker='Win32 link.exe' 11966 ;; 11967 11968 *) 11969 # Assume MSVC wrapper 11970 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11971 dynamic_linker='Win32 ld.exe' 11972 ;; 11973 esac 11974 # FIXME: first we should search . and the directory the executable is in 11975 shlibpath_var=PATH 11976 ;; 11977 11978darwin* | rhapsody*) 11979 dynamic_linker="$host_os dyld" 11980 version_type=darwin 11981 need_lib_prefix=no 11982 need_version=no 11983 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11984 soname_spec='$libname$release$major$shared_ext' 11985 shlibpath_overrides_runpath=yes 11986 shlibpath_var=DYLD_LIBRARY_PATH 11987 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11988 11989 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11991 ;; 11992 11993dgux*) 11994 version_type=linux # correct to gnu/linux during the next big refactor 11995 need_lib_prefix=no 11996 need_version=no 11997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11998 soname_spec='$libname$release$shared_ext$major' 11999 shlibpath_var=LD_LIBRARY_PATH 12000 ;; 12001 12002freebsd* | dragonfly*) 12003 # DragonFly does not have aout. When/if they implement a new 12004 # versioning mechanism, adjust this. 12005 if test -x /usr/bin/objformat; then 12006 objformat=`/usr/bin/objformat` 12007 else 12008 case $host_os in 12009 freebsd[23].*) objformat=aout ;; 12010 *) objformat=elf ;; 12011 esac 12012 fi 12013 version_type=freebsd-$objformat 12014 case $version_type in 12015 freebsd-elf*) 12016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12017 soname_spec='$libname$release$shared_ext$major' 12018 need_version=no 12019 need_lib_prefix=no 12020 ;; 12021 freebsd-*) 12022 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12023 need_version=yes 12024 ;; 12025 esac 12026 shlibpath_var=LD_LIBRARY_PATH 12027 case $host_os in 12028 freebsd2.*) 12029 shlibpath_overrides_runpath=yes 12030 ;; 12031 freebsd3.[01]* | freebsdelf3.[01]*) 12032 shlibpath_overrides_runpath=yes 12033 hardcode_into_libs=yes 12034 ;; 12035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12037 shlibpath_overrides_runpath=no 12038 hardcode_into_libs=yes 12039 ;; 12040 *) # from 4.6 on, and DragonFly 12041 shlibpath_overrides_runpath=yes 12042 hardcode_into_libs=yes 12043 ;; 12044 esac 12045 ;; 12046 12047haiku*) 12048 version_type=linux # correct to gnu/linux during the next big refactor 12049 need_lib_prefix=no 12050 need_version=no 12051 dynamic_linker="$host_os runtime_loader" 12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12053 soname_spec='$libname$release$shared_ext$major' 12054 shlibpath_var=LIBRARY_PATH 12055 shlibpath_overrides_runpath=no 12056 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12057 hardcode_into_libs=yes 12058 ;; 12059 12060hpux9* | hpux10* | hpux11*) 12061 # Give a soname corresponding to the major version so that dld.sl refuses to 12062 # link against other versions. 12063 version_type=sunos 12064 need_lib_prefix=no 12065 need_version=no 12066 case $host_cpu in 12067 ia64*) 12068 shrext_cmds='.so' 12069 hardcode_into_libs=yes 12070 dynamic_linker="$host_os dld.so" 12071 shlibpath_var=LD_LIBRARY_PATH 12072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12074 soname_spec='$libname$release$shared_ext$major' 12075 if test 32 = "$HPUX_IA64_MODE"; then 12076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12077 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12078 else 12079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12080 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12081 fi 12082 ;; 12083 hppa*64*) 12084 shrext_cmds='.sl' 12085 hardcode_into_libs=yes 12086 dynamic_linker="$host_os dld.sl" 12087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12090 soname_spec='$libname$release$shared_ext$major' 12091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12093 ;; 12094 *) 12095 shrext_cmds='.sl' 12096 dynamic_linker="$host_os dld.sl" 12097 shlibpath_var=SHLIB_PATH 12098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12100 soname_spec='$libname$release$shared_ext$major' 12101 ;; 12102 esac 12103 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12104 postinstall_cmds='chmod 555 $lib' 12105 # or fails outright, so override atomically: 12106 install_override_mode=555 12107 ;; 12108 12109interix[3-9]*) 12110 version_type=linux # correct to gnu/linux during the next big refactor 12111 need_lib_prefix=no 12112 need_version=no 12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12114 soname_spec='$libname$release$shared_ext$major' 12115 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12116 shlibpath_var=LD_LIBRARY_PATH 12117 shlibpath_overrides_runpath=no 12118 hardcode_into_libs=yes 12119 ;; 12120 12121irix5* | irix6* | nonstopux*) 12122 case $host_os in 12123 nonstopux*) version_type=nonstopux ;; 12124 *) 12125 if test yes = "$lt_cv_prog_gnu_ld"; then 12126 version_type=linux # correct to gnu/linux during the next big refactor 12127 else 12128 version_type=irix 12129 fi ;; 12130 esac 12131 need_lib_prefix=no 12132 need_version=no 12133 soname_spec='$libname$release$shared_ext$major' 12134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12135 case $host_os in 12136 irix5* | nonstopux*) 12137 libsuff= shlibsuff= 12138 ;; 12139 *) 12140 case $LD in # libtool.m4 will add one of these switches to LD 12141 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12142 libsuff= shlibsuff= libmagic=32-bit;; 12143 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12144 libsuff=32 shlibsuff=N32 libmagic=N32;; 12145 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12146 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12147 *) libsuff= shlibsuff= libmagic=never-match;; 12148 esac 12149 ;; 12150 esac 12151 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12152 shlibpath_overrides_runpath=no 12153 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12154 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12155 hardcode_into_libs=yes 12156 ;; 12157 12158# No shared lib support for Linux oldld, aout, or coff. 12159linux*oldld* | linux*aout* | linux*coff*) 12160 dynamic_linker=no 12161 ;; 12162 12163linux*android*) 12164 version_type=none # Android doesn't support versioned libraries. 12165 need_lib_prefix=no 12166 need_version=no 12167 library_names_spec='$libname$release$shared_ext' 12168 soname_spec='$libname$release$shared_ext' 12169 finish_cmds= 12170 shlibpath_var=LD_LIBRARY_PATH 12171 shlibpath_overrides_runpath=yes 12172 12173 # This implies no fast_install, which is unacceptable. 12174 # Some rework will be needed to allow for fast_install 12175 # before this can be enabled. 12176 hardcode_into_libs=yes 12177 12178 dynamic_linker='Android linker' 12179 # Don't embed -rpath directories since the linker doesn't support them. 12180 hardcode_libdir_flag_spec='-L$libdir' 12181 ;; 12182 12183# This must be glibc/ELF. 12184linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12185 version_type=linux # correct to gnu/linux during the next big refactor 12186 need_lib_prefix=no 12187 need_version=no 12188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12189 soname_spec='$libname$release$shared_ext$major' 12190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12191 shlibpath_var=LD_LIBRARY_PATH 12192 shlibpath_overrides_runpath=no 12193 12194 # Some binutils ld are patched to set DT_RUNPATH 12195 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12196 $as_echo_n "(cached) " >&6 12197else 12198 lt_cv_shlibpath_overrides_runpath=no 12199 save_LDFLAGS=$LDFLAGS 12200 save_libdir=$libdir 12201 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12202 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12204/* end confdefs.h. */ 12205 12206int 12207main (void) 12208{ 12209 12210 ; 12211 return 0; 12212} 12213_ACEOF 12214if ac_fn_c_try_link "$LINENO"; then : 12215 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12216 lt_cv_shlibpath_overrides_runpath=yes 12217fi 12218fi 12219rm -f core conftest.err conftest.$ac_objext \ 12220 conftest$ac_exeext conftest.$ac_ext 12221 LDFLAGS=$save_LDFLAGS 12222 libdir=$save_libdir 12223 12224fi 12225 12226 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12227 12228 # This implies no fast_install, which is unacceptable. 12229 # Some rework will be needed to allow for fast_install 12230 # before this can be enabled. 12231 hardcode_into_libs=yes 12232 12233 # Ideally, we could use ldconfig to report *all* directores which are 12234 # searched for libraries, however this is still not possible. Aside from not 12235 # being certain /sbin/ldconfig is available, command 12236 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12237 # even though it is searched at run-time. Try to do the best guess by 12238 # appending ld.so.conf contents (and includes) to the search path. 12239 if test -f /etc/ld.so.conf; then 12240 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' ' '` 12241 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12242 fi 12243 12244 # We used to test for /lib/ld.so.1 and disable shared libraries on 12245 # powerpc, because MkLinux only supported shared libraries with the 12246 # GNU dynamic linker. Since this was broken with cross compilers, 12247 # most powerpc-linux boxes support dynamic linking these days and 12248 # people can always --disable-shared, the test was removed, and we 12249 # assume the GNU/Linux dynamic linker is in use. 12250 dynamic_linker='GNU/Linux ld.so' 12251 ;; 12252 12253netbsdelf*-gnu) 12254 version_type=linux 12255 need_lib_prefix=no 12256 need_version=no 12257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12258 soname_spec='${libname}${release}${shared_ext}$major' 12259 shlibpath_var=LD_LIBRARY_PATH 12260 shlibpath_overrides_runpath=no 12261 hardcode_into_libs=yes 12262 dynamic_linker='NetBSD ld.elf_so' 12263 ;; 12264 12265netbsd*) 12266 version_type=sunos 12267 need_lib_prefix=no 12268 need_version=no 12269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12270 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12272 dynamic_linker='NetBSD (a.out) ld.so' 12273 else 12274 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12275 soname_spec='$libname$release$shared_ext$major' 12276 dynamic_linker='NetBSD ld.elf_so' 12277 fi 12278 shlibpath_var=LD_LIBRARY_PATH 12279 shlibpath_overrides_runpath=yes 12280 hardcode_into_libs=yes 12281 ;; 12282 12283newsos6) 12284 version_type=linux # correct to gnu/linux during the next big refactor 12285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12286 shlibpath_var=LD_LIBRARY_PATH 12287 shlibpath_overrides_runpath=yes 12288 ;; 12289 12290*nto* | *qnx*) 12291 version_type=qnx 12292 need_lib_prefix=no 12293 need_version=no 12294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12295 soname_spec='$libname$release$shared_ext$major' 12296 shlibpath_var=LD_LIBRARY_PATH 12297 shlibpath_overrides_runpath=no 12298 hardcode_into_libs=yes 12299 dynamic_linker='ldqnx.so' 12300 ;; 12301 12302openbsd* | bitrig*) 12303 version_type=sunos 12304 sys_lib_dlsearch_path_spec=/usr/lib 12305 need_lib_prefix=no 12306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12307 need_version=no 12308 else 12309 need_version=yes 12310 fi 12311 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12313 shlibpath_var=LD_LIBRARY_PATH 12314 shlibpath_overrides_runpath=yes 12315 ;; 12316 12317os2*) 12318 libname_spec='$name' 12319 version_type=windows 12320 shrext_cmds=.dll 12321 need_version=no 12322 need_lib_prefix=no 12323 # OS/2 can only load a DLL with a base name of 8 characters or less. 12324 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12325 v=$($ECHO $release$versuffix | tr -d .-); 12326 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12327 $ECHO $n$v`$shared_ext' 12328 library_names_spec='${libname}_dll.$libext' 12329 dynamic_linker='OS/2 ld.exe' 12330 shlibpath_var=BEGINLIBPATH 12331 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12333 postinstall_cmds='base_file=`basename \$file`~ 12334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12335 dldir=$destdir/`dirname \$dlpath`~ 12336 test -d \$dldir || mkdir -p \$dldir~ 12337 $install_prog $dir/$dlname \$dldir/$dlname~ 12338 chmod a+x \$dldir/$dlname~ 12339 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12340 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12341 fi' 12342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12343 dlpath=$dir/\$dldll~ 12344 $RM \$dlpath' 12345 ;; 12346 12347osf3* | osf4* | osf5*) 12348 version_type=osf 12349 need_lib_prefix=no 12350 need_version=no 12351 soname_spec='$libname$release$shared_ext$major' 12352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12353 shlibpath_var=LD_LIBRARY_PATH 12354 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12356 ;; 12357 12358rdos*) 12359 dynamic_linker=no 12360 ;; 12361 12362solaris*) 12363 version_type=linux # correct to gnu/linux during the next big refactor 12364 need_lib_prefix=no 12365 need_version=no 12366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12367 soname_spec='$libname$release$shared_ext$major' 12368 shlibpath_var=LD_LIBRARY_PATH 12369 shlibpath_overrides_runpath=yes 12370 hardcode_into_libs=yes 12371 # ldd complains unless libraries are executable 12372 postinstall_cmds='chmod +x $lib' 12373 ;; 12374 12375sunos4*) 12376 version_type=sunos 12377 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12379 shlibpath_var=LD_LIBRARY_PATH 12380 shlibpath_overrides_runpath=yes 12381 if test yes = "$with_gnu_ld"; then 12382 need_lib_prefix=no 12383 fi 12384 need_version=yes 12385 ;; 12386 12387sysv4 | sysv4.3*) 12388 version_type=linux # correct to gnu/linux during the next big refactor 12389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12390 soname_spec='$libname$release$shared_ext$major' 12391 shlibpath_var=LD_LIBRARY_PATH 12392 case $host_vendor in 12393 sni) 12394 shlibpath_overrides_runpath=no 12395 need_lib_prefix=no 12396 runpath_var=LD_RUN_PATH 12397 ;; 12398 siemens) 12399 need_lib_prefix=no 12400 ;; 12401 motorola) 12402 need_lib_prefix=no 12403 need_version=no 12404 shlibpath_overrides_runpath=no 12405 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12406 ;; 12407 esac 12408 ;; 12409 12410sysv4*MP*) 12411 if test -d /usr/nec; then 12412 version_type=linux # correct to gnu/linux during the next big refactor 12413 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12414 soname_spec='$libname$shared_ext.$major' 12415 shlibpath_var=LD_LIBRARY_PATH 12416 fi 12417 ;; 12418 12419sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12420 version_type=sco 12421 need_lib_prefix=no 12422 need_version=no 12423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12424 soname_spec='$libname$release$shared_ext$major' 12425 shlibpath_var=LD_LIBRARY_PATH 12426 shlibpath_overrides_runpath=yes 12427 hardcode_into_libs=yes 12428 if test yes = "$with_gnu_ld"; then 12429 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12430 else 12431 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12432 case $host_os in 12433 sco3.2v5*) 12434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12435 ;; 12436 esac 12437 fi 12438 sys_lib_dlsearch_path_spec='/usr/lib' 12439 ;; 12440 12441tpf*) 12442 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12443 version_type=linux # correct to gnu/linux during the next big refactor 12444 need_lib_prefix=no 12445 need_version=no 12446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12447 shlibpath_var=LD_LIBRARY_PATH 12448 shlibpath_overrides_runpath=no 12449 hardcode_into_libs=yes 12450 ;; 12451 12452uts4*) 12453 version_type=linux # correct to gnu/linux during the next big refactor 12454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12455 soname_spec='$libname$release$shared_ext$major' 12456 shlibpath_var=LD_LIBRARY_PATH 12457 ;; 12458 12459*) 12460 dynamic_linker=no 12461 ;; 12462esac 12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12464$as_echo "$dynamic_linker" >&6; } 12465test no = "$dynamic_linker" && can_build_shared=no 12466 12467variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12468if test yes = "$GCC"; then 12469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12470fi 12471 12472if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12473 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12474fi 12475 12476if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12477 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12478fi 12479 12480# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12481configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12482 12483# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12484func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12485 12486# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12487configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12586$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12587hardcode_action= 12588if test -n "$hardcode_libdir_flag_spec" || 12589 test -n "$runpath_var" || 12590 test yes = "$hardcode_automatic"; then 12591 12592 # We can hardcode non-existent directories. 12593 if test no != "$hardcode_direct" && 12594 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12595 # have to relink, otherwise we might link with an installed library 12596 # when we should be linking with a yet-to-be-installed one 12597 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12598 test no != "$hardcode_minus_L"; then 12599 # Linking always hardcodes the temporary library directory. 12600 hardcode_action=relink 12601 else 12602 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12603 hardcode_action=immediate 12604 fi 12605else 12606 # We cannot hardcode anything, or else we can only hardcode existing 12607 # directories. 12608 hardcode_action=unsupported 12609fi 12610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12611$as_echo "$hardcode_action" >&6; } 12612 12613if test relink = "$hardcode_action" || 12614 test yes = "$inherit_rpath"; then 12615 # Fast installation is not supported 12616 enable_fast_install=no 12617elif test yes = "$shlibpath_overrides_runpath" || 12618 test no = "$enable_shared"; then 12619 # Fast installation is not necessary 12620 enable_fast_install=needless 12621fi 12622 12623 12624 12625 12626 12627 12628 if test yes != "$enable_dlopen"; then 12629 enable_dlopen=unknown 12630 enable_dlopen_self=unknown 12631 enable_dlopen_self_static=unknown 12632else 12633 lt_cv_dlopen=no 12634 lt_cv_dlopen_libs= 12635 12636 case $host_os in 12637 beos*) 12638 lt_cv_dlopen=load_add_on 12639 lt_cv_dlopen_libs= 12640 lt_cv_dlopen_self=yes 12641 ;; 12642 12643 mingw* | pw32* | cegcc*) 12644 lt_cv_dlopen=LoadLibrary 12645 lt_cv_dlopen_libs= 12646 ;; 12647 12648 cygwin*) 12649 lt_cv_dlopen=dlopen 12650 lt_cv_dlopen_libs= 12651 ;; 12652 12653 darwin*) 12654 # if libdl is installed we need to link against it 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12656$as_echo_n "checking for dlopen in -ldl... " >&6; } 12657if ${ac_cv_lib_dl_dlopen+:} false; then : 12658 $as_echo_n "(cached) " >&6 12659else 12660 ac_check_lib_save_LIBS=$LIBS 12661LIBS="-ldl $LIBS" 12662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12663/* end confdefs.h. */ 12664 12665/* Override any GCC internal prototype to avoid an error. 12666 Use char because int might match the return type of a GCC 12667 builtin and then its argument prototype would still apply. */ 12668#ifdef __cplusplus 12669extern "C" 12670#endif 12671char dlopen (); 12672int 12673main (void) 12674{ 12675return dlopen (); 12676 ; 12677 return 0; 12678} 12679_ACEOF 12680if ac_fn_c_try_link "$LINENO"; then : 12681 ac_cv_lib_dl_dlopen=yes 12682else 12683 ac_cv_lib_dl_dlopen=no 12684fi 12685rm -f core conftest.err conftest.$ac_objext \ 12686 conftest$ac_exeext conftest.$ac_ext 12687LIBS=$ac_check_lib_save_LIBS 12688fi 12689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12690$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12691if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12692 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12693else 12694 12695 lt_cv_dlopen=dyld 12696 lt_cv_dlopen_libs= 12697 lt_cv_dlopen_self=yes 12698 12699fi 12700 12701 ;; 12702 12703 tpf*) 12704 # Don't try to run any link tests for TPF. We know it's impossible 12705 # because TPF is a cross-compiler, and we know how we open DSOs. 12706 lt_cv_dlopen=dlopen 12707 lt_cv_dlopen_libs= 12708 lt_cv_dlopen_self=no 12709 ;; 12710 12711 *) 12712 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12713if test "x$ac_cv_func_shl_load" = xyes; then : 12714 lt_cv_dlopen=shl_load 12715else 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12717$as_echo_n "checking for shl_load in -ldld... " >&6; } 12718if ${ac_cv_lib_dld_shl_load+:} false; then : 12719 $as_echo_n "(cached) " >&6 12720else 12721 ac_check_lib_save_LIBS=$LIBS 12722LIBS="-ldld $LIBS" 12723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12724/* end confdefs.h. */ 12725 12726/* Override any GCC internal prototype to avoid an error. 12727 Use char because int might match the return type of a GCC 12728 builtin and then its argument prototype would still apply. */ 12729#ifdef __cplusplus 12730extern "C" 12731#endif 12732char shl_load (); 12733int 12734main (void) 12735{ 12736return shl_load (); 12737 ; 12738 return 0; 12739} 12740_ACEOF 12741if ac_fn_c_try_link "$LINENO"; then : 12742 ac_cv_lib_dld_shl_load=yes 12743else 12744 ac_cv_lib_dld_shl_load=no 12745fi 12746rm -f core conftest.err conftest.$ac_objext \ 12747 conftest$ac_exeext conftest.$ac_ext 12748LIBS=$ac_check_lib_save_LIBS 12749fi 12750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12751$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12752if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12753 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12754else 12755 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12756if test "x$ac_cv_func_dlopen" = xyes; then : 12757 lt_cv_dlopen=dlopen 12758else 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12760$as_echo_n "checking for dlopen in -ldl... " >&6; } 12761if ${ac_cv_lib_dl_dlopen+:} false; then : 12762 $as_echo_n "(cached) " >&6 12763else 12764 ac_check_lib_save_LIBS=$LIBS 12765LIBS="-ldl $LIBS" 12766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12767/* end confdefs.h. */ 12768 12769/* Override any GCC internal prototype to avoid an error. 12770 Use char because int might match the return type of a GCC 12771 builtin and then its argument prototype would still apply. */ 12772#ifdef __cplusplus 12773extern "C" 12774#endif 12775char dlopen (); 12776int 12777main (void) 12778{ 12779return dlopen (); 12780 ; 12781 return 0; 12782} 12783_ACEOF 12784if ac_fn_c_try_link "$LINENO"; then : 12785 ac_cv_lib_dl_dlopen=yes 12786else 12787 ac_cv_lib_dl_dlopen=no 12788fi 12789rm -f core conftest.err conftest.$ac_objext \ 12790 conftest$ac_exeext conftest.$ac_ext 12791LIBS=$ac_check_lib_save_LIBS 12792fi 12793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12794$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12795if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12796 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12797else 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12799$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12800if ${ac_cv_lib_svld_dlopen+:} false; then : 12801 $as_echo_n "(cached) " >&6 12802else 12803 ac_check_lib_save_LIBS=$LIBS 12804LIBS="-lsvld $LIBS" 12805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806/* end confdefs.h. */ 12807 12808/* Override any GCC internal prototype to avoid an error. 12809 Use char because int might match the return type of a GCC 12810 builtin and then its argument prototype would still apply. */ 12811#ifdef __cplusplus 12812extern "C" 12813#endif 12814char dlopen (); 12815int 12816main (void) 12817{ 12818return dlopen (); 12819 ; 12820 return 0; 12821} 12822_ACEOF 12823if ac_fn_c_try_link "$LINENO"; then : 12824 ac_cv_lib_svld_dlopen=yes 12825else 12826 ac_cv_lib_svld_dlopen=no 12827fi 12828rm -f core conftest.err conftest.$ac_objext \ 12829 conftest$ac_exeext conftest.$ac_ext 12830LIBS=$ac_check_lib_save_LIBS 12831fi 12832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12833$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12834if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12835 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12836else 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12838$as_echo_n "checking for dld_link in -ldld... " >&6; } 12839if ${ac_cv_lib_dld_dld_link+:} false; then : 12840 $as_echo_n "(cached) " >&6 12841else 12842 ac_check_lib_save_LIBS=$LIBS 12843LIBS="-ldld $LIBS" 12844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12845/* end confdefs.h. */ 12846 12847/* Override any GCC internal prototype to avoid an error. 12848 Use char because int might match the return type of a GCC 12849 builtin and then its argument prototype would still apply. */ 12850#ifdef __cplusplus 12851extern "C" 12852#endif 12853char dld_link (); 12854int 12855main (void) 12856{ 12857return dld_link (); 12858 ; 12859 return 0; 12860} 12861_ACEOF 12862if ac_fn_c_try_link "$LINENO"; then : 12863 ac_cv_lib_dld_dld_link=yes 12864else 12865 ac_cv_lib_dld_dld_link=no 12866fi 12867rm -f core conftest.err conftest.$ac_objext \ 12868 conftest$ac_exeext conftest.$ac_ext 12869LIBS=$ac_check_lib_save_LIBS 12870fi 12871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12872$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12873if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12874 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12875fi 12876 12877 12878fi 12879 12880 12881fi 12882 12883 12884fi 12885 12886 12887fi 12888 12889 12890fi 12891 12892 ;; 12893 esac 12894 12895 if test no = "$lt_cv_dlopen"; then 12896 enable_dlopen=no 12897 else 12898 enable_dlopen=yes 12899 fi 12900 12901 case $lt_cv_dlopen in 12902 dlopen) 12903 save_CPPFLAGS=$CPPFLAGS 12904 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12905 12906 save_LDFLAGS=$LDFLAGS 12907 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12908 12909 save_LIBS=$LIBS 12910 LIBS="$lt_cv_dlopen_libs $LIBS" 12911 12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12913$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12914if ${lt_cv_dlopen_self+:} false; then : 12915 $as_echo_n "(cached) " >&6 12916else 12917 if test yes = "$cross_compiling"; then : 12918 lt_cv_dlopen_self=cross 12919else 12920 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12921 lt_status=$lt_dlunknown 12922 cat > conftest.$ac_ext <<_LT_EOF 12923#line $LINENO "configure" 12924#include "confdefs.h" 12925 12926#if HAVE_DLFCN_H 12927#include <dlfcn.h> 12928#endif 12929 12930#include <stdio.h> 12931 12932#ifdef RTLD_GLOBAL 12933# define LT_DLGLOBAL RTLD_GLOBAL 12934#else 12935# ifdef DL_GLOBAL 12936# define LT_DLGLOBAL DL_GLOBAL 12937# else 12938# define LT_DLGLOBAL 0 12939# endif 12940#endif 12941 12942/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12943 find out it does not work in some platform. */ 12944#ifndef LT_DLLAZY_OR_NOW 12945# ifdef RTLD_LAZY 12946# define LT_DLLAZY_OR_NOW RTLD_LAZY 12947# else 12948# ifdef DL_LAZY 12949# define LT_DLLAZY_OR_NOW DL_LAZY 12950# else 12951# ifdef RTLD_NOW 12952# define LT_DLLAZY_OR_NOW RTLD_NOW 12953# else 12954# ifdef DL_NOW 12955# define LT_DLLAZY_OR_NOW DL_NOW 12956# else 12957# define LT_DLLAZY_OR_NOW 0 12958# endif 12959# endif 12960# endif 12961# endif 12962#endif 12963 12964/* When -fvisibility=hidden is used, assume the code has been annotated 12965 correspondingly for the symbols needed. */ 12966#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12967int fnord () __attribute__((visibility("default"))); 12968#endif 12969 12970int fnord () { return 42; } 12971int main () 12972{ 12973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12974 int status = $lt_dlunknown; 12975 12976 if (self) 12977 { 12978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12979 else 12980 { 12981 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12982 else puts (dlerror ()); 12983 } 12984 /* dlclose (self); */ 12985 } 12986 else 12987 puts (dlerror ()); 12988 12989 return status; 12990} 12991_LT_EOF 12992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12993 (eval $ac_link) 2>&5 12994 ac_status=$? 12995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12996 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12997 (./conftest; exit; ) >&5 2>/dev/null 12998 lt_status=$? 12999 case x$lt_status in 13000 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13001 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13002 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13003 esac 13004 else : 13005 # compilation failed 13006 lt_cv_dlopen_self=no 13007 fi 13008fi 13009rm -fr conftest* 13010 13011 13012fi 13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13014$as_echo "$lt_cv_dlopen_self" >&6; } 13015 13016 if test yes = "$lt_cv_dlopen_self"; then 13017 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13019$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13020if ${lt_cv_dlopen_self_static+:} false; then : 13021 $as_echo_n "(cached) " >&6 13022else 13023 if test yes = "$cross_compiling"; then : 13024 lt_cv_dlopen_self_static=cross 13025else 13026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13027 lt_status=$lt_dlunknown 13028 cat > conftest.$ac_ext <<_LT_EOF 13029#line $LINENO "configure" 13030#include "confdefs.h" 13031 13032#if HAVE_DLFCN_H 13033#include <dlfcn.h> 13034#endif 13035 13036#include <stdio.h> 13037 13038#ifdef RTLD_GLOBAL 13039# define LT_DLGLOBAL RTLD_GLOBAL 13040#else 13041# ifdef DL_GLOBAL 13042# define LT_DLGLOBAL DL_GLOBAL 13043# else 13044# define LT_DLGLOBAL 0 13045# endif 13046#endif 13047 13048/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13049 find out it does not work in some platform. */ 13050#ifndef LT_DLLAZY_OR_NOW 13051# ifdef RTLD_LAZY 13052# define LT_DLLAZY_OR_NOW RTLD_LAZY 13053# else 13054# ifdef DL_LAZY 13055# define LT_DLLAZY_OR_NOW DL_LAZY 13056# else 13057# ifdef RTLD_NOW 13058# define LT_DLLAZY_OR_NOW RTLD_NOW 13059# else 13060# ifdef DL_NOW 13061# define LT_DLLAZY_OR_NOW DL_NOW 13062# else 13063# define LT_DLLAZY_OR_NOW 0 13064# endif 13065# endif 13066# endif 13067# endif 13068#endif 13069 13070/* When -fvisibility=hidden is used, assume the code has been annotated 13071 correspondingly for the symbols needed. */ 13072#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13073int fnord () __attribute__((visibility("default"))); 13074#endif 13075 13076int fnord () { return 42; } 13077int main () 13078{ 13079 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13080 int status = $lt_dlunknown; 13081 13082 if (self) 13083 { 13084 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13085 else 13086 { 13087 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13088 else puts (dlerror ()); 13089 } 13090 /* dlclose (self); */ 13091 } 13092 else 13093 puts (dlerror ()); 13094 13095 return status; 13096} 13097_LT_EOF 13098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13099 (eval $ac_link) 2>&5 13100 ac_status=$? 13101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13102 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13103 (./conftest; exit; ) >&5 2>/dev/null 13104 lt_status=$? 13105 case x$lt_status in 13106 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13107 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13108 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13109 esac 13110 else : 13111 # compilation failed 13112 lt_cv_dlopen_self_static=no 13113 fi 13114fi 13115rm -fr conftest* 13116 13117 13118fi 13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13120$as_echo "$lt_cv_dlopen_self_static" >&6; } 13121 fi 13122 13123 CPPFLAGS=$save_CPPFLAGS 13124 LDFLAGS=$save_LDFLAGS 13125 LIBS=$save_LIBS 13126 ;; 13127 esac 13128 13129 case $lt_cv_dlopen_self in 13130 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13131 *) enable_dlopen_self=unknown ;; 13132 esac 13133 13134 case $lt_cv_dlopen_self_static in 13135 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13136 *) enable_dlopen_self_static=unknown ;; 13137 esac 13138fi 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156striplib= 13157old_striplib= 13158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13159$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13160if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13161 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13162 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13164$as_echo "yes" >&6; } 13165else 13166# FIXME - insert some real tests, host_os isn't really good enough 13167 case $host_os in 13168 darwin*) 13169 if test -n "$STRIP"; then 13170 striplib="$STRIP -x" 13171 old_striplib="$STRIP -S" 13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13173$as_echo "yes" >&6; } 13174 else 13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13176$as_echo "no" >&6; } 13177 fi 13178 ;; 13179 *) 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13181$as_echo "no" >&6; } 13182 ;; 13183 esac 13184fi 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 # Report what library types will actually be built 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13199$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13201$as_echo "$can_build_shared" >&6; } 13202 13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13204$as_echo_n "checking whether to build shared libraries... " >&6; } 13205 test no = "$can_build_shared" && enable_shared=no 13206 13207 # On AIX, shared libraries and static libraries use the same namespace, and 13208 # are all built from PIC. 13209 case $host_os in 13210 aix3*) 13211 test yes = "$enable_shared" && enable_static=no 13212 if test -n "$RANLIB"; then 13213 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13214 postinstall_cmds='$RANLIB $lib' 13215 fi 13216 ;; 13217 13218 aix[4-9]*) 13219 if test ia64 != "$host_cpu"; then 13220 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13221 yes,aix,yes) ;; # shared object as lib.so file only 13222 yes,svr4,*) ;; # shared object as lib.so archive member only 13223 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13224 esac 13225 fi 13226 ;; 13227 esac 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13229$as_echo "$enable_shared" >&6; } 13230 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13232$as_echo_n "checking whether to build static libraries... " >&6; } 13233 # Make sure either enable_shared or enable_static is yes. 13234 test yes = "$enable_shared" || enable_static=yes 13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13236$as_echo "$enable_static" >&6; } 13237 13238 13239 13240 13241fi 13242ac_ext=c 13243ac_cpp='$CPP $CPPFLAGS' 13244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13246ac_compiler_gnu=$ac_cv_c_compiler_gnu 13247 13248CC=$lt_save_CC 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 ac_config_commands="$ac_config_commands libtool" 13265 13266 13267 13268 13269# Only expand once: 13270 13271 13272 13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5 13274$as_echo_n "checking format of \`double' floating point... " >&6; } 13275if test "$cross_compiling" = yes; then : 13276 mpfr_ieee_double=0 13277else 13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13279/* end confdefs.h. */ 13280 13281 13282int 13283main (void) 13284{ 13285 13286union ieee_double_extract 13287{ 13288 double d; 13289 unsigned char x[8]; 13290} t; 13291t.d = 2.877939254133025759330166692961938679218292236328125; /* exact */ 13292if (sizeof (double) != 8) 13293 return 0; 13294if (sizeof (unsigned char) != 1) 13295 return 0; 13296if (t.x[0] == 1 && t.x[1] == 2 && t.x[2] == 3 && t.x[3] == 4 && 13297 t.x[4] == 5 && t.x[5] == 6 && t.x[6] == 7 && t.x[7] == 64) 13298 return 1; /* little endian */ 13299else if (t.x[7] == 1 && t.x[6] == 2 && t.x[5] == 3 && t.x[4] == 4 && 13300 t.x[3] == 5 && t.x[2] == 6 && t.x[1] == 7 && t.x[0] == 64) 13301 return 2; /* big endian */ 13302else 13303 return 0; /* unknown */ 13304 13305 ; 13306 return 0; 13307} 13308_ACEOF 13309if ac_fn_c_try_run "$LINENO"; then : 13310 mpfr_ieee_double=$? 13311else 13312 mpfr_ieee_double=$? 13313fi 13314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13315 conftest.$ac_objext conftest.beam conftest.$ac_ext 13316fi 13317 13318case "$mpfr_ieee_double" in 13319 1) { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE little endian" >&5 13320$as_echo "IEEE little endian" >&6; } 13321 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h 13322 ;; 13323 2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE big endian" >&5 13324$as_echo "IEEE big endian" >&6; } 13325 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h 13326 ;; 13327 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: format of \`double' floating-point not recognized" >&5 13328$as_echo "$as_me: WARNING: format of \`double' floating-point not recognized" >&2;} ;; 13329esac 13330 13331# Check whether --enable-decimal-float was given. 13332if test "${enable_decimal_float+set}" = set; then : 13333 enableval=$enable_decimal_float; case $enableval in 13334 yes) ;; 13335 no) ;; 13336 *) as_fn_error $? "bad value for --enable-decimal-float: yes or no" "$LINENO" 5 ;; 13337 esac 13338fi 13339 13340 13341# Check whether --enable-float128 was given. 13342if test "${enable_float128+set}" = set; then : 13343 enableval=$enable_float128; case $enableval in 13344 yes) ;; 13345 no) ;; 13346 *) as_fn_error $? "bad value for --enable-float128: yes or no" "$LINENO" 5 ;; 13347 esac 13348fi 13349 13350 13351test_libgmp=__gmpz_init 13352 13353# Check whether --enable-mini-gmp was given. 13354if test "${enable_mini_gmp+set}" = set; then : 13355 enableval=$enable_mini_gmp; case $enableval in 13356 yes) 13357$as_echo "#define MPFR_USE_MINI_GMP 1" >>confdefs.h 13358 13359 # With mini-gmp, mp_limb_t is always unsigned long. 13360 if ac_fn_c_compute_int "$LINENO" "(sizeof(unsigned long) * CHAR_BIT)" "nettle_cv_gmp_numb_bits" "#include <limits.h>"; then : 13361 13362else 13363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13365as_fn_error $? "cannot find value of GMP_NUMB_BITS 13366See \`config.log' for more details" "$LINENO" 5; } 13367fi 13368 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nettle_cv_gmp_numb_bits bits" >&5 13370$as_echo "$nettle_cv_gmp_numb_bits bits" >&6; } 13371 13372cat >>confdefs.h <<_ACEOF 13373#define GMP_NUMB_BITS $nettle_cv_gmp_numb_bits 13374_ACEOF 13375 13376 13377$as_echo "#define GMP_NAIL_BITS 0" >>confdefs.h 13378 13379 test_libgmp=mpz_init;; 13380 no) ;; 13381 *) as_fn_error $? "bad value for --enable-mini-gmp: yes or no" "$LINENO" 5 ;; 13382 esac 13383fi 13384 13385 13386# Check whether --enable-debug-prediction was given. 13387if test "${enable_debug_prediction+set}" = set; then : 13388 enableval=$enable_debug_prediction; case $enableval in 13389 yes) if test "$enable_shared" != no; then 13390 as_fn_error $? "--enable-debug-prediction can only work in static mode (--disable-shared)" "$LINENO" 5 13391 fi 13392 13393$as_echo "#define MPFR_DEBUG_PREDICTION 1" >>confdefs.h 13394 ;; 13395 no) ;; 13396 *) as_fn_error $? "bad value for --enable-debug-prediction: yes or no" "$LINENO" 5 ;; 13397 esac 13398fi 13399 13400 13401# Check whether --enable-lto was given. 13402if test "${enable_lto+set}" = set; then : 13403 enableval=$enable_lto; case $enableval in 13404 yes) if test "$enable_shared" != "no"; then 13405 as_fn_error $? "--enable-lto can only work in static mode (--disable-shared)" "$LINENO" 5 13406 fi 13407 enable_lto=yes 13408 ;; 13409 no) ;; 13410 *) as_fn_error $? "bad value for --enable-lto: yes or no" "$LINENO" 5 ;; 13411 esac 13412fi 13413 13414 13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICC" >&5 13416$as_echo_n "checking for ICC... " >&6; } 13417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13418/* end confdefs.h. */ 13419 13420#if !defined(__ICC) 13421# error "Not ICC" 13422error 13423#endif 13424 13425int 13426main (void) 13427{ 13428 13429 ; 13430 return 0; 13431} 13432_ACEOF 13433if ac_fn_c_try_compile "$LINENO"; then : 13434 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13436$as_echo "yes" >&6; } 13437 CFLAGS="-fp_port -mieee-fp -wd1572 -wd265 -wd186 -wd239 $CFLAGS" 13438 13439else 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13441$as_echo "no" >&6; } 13442fi 13443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13444 13445if test "$test_CFLAGS" != set && test -n "$GCC"; then 13446 CFLAGS="-Wpointer-arith $CFLAGS" 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the selected language is C++" >&5 13448$as_echo_n "checking whether the selected language is C++... " >&6; } 13449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13450/* end confdefs.h. */ 13451 13452#if defined (__cplusplus) 13453# error "C++" 13454error 13455#endif 13456 13457int 13458main (void) 13459{ 13460 13461 ; 13462 return 0; 13463} 13464_ACEOF 13465if ac_fn_c_try_compile "$LINENO"; then : 13466 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13468$as_echo "no" >&6; } 13469 CFLAGS="-Wmissing-prototypes $CFLAGS" 13470 13471else 13472 13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13474$as_echo "yes" >&6; } 13475 CFLAGS="-Wmissing-declarations -Wno-sign-compare $CFLAGS" 13476 13477fi 13478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13479 CFLAGS="-Wall $CFLAGS" 13480fi 13481 13482 13483 13484case $host in 13485 *-apple-darwin*) 13486 case "$LD $LDFLAGS" in 13487 *-Wl,-search_paths_first*) ;; 13488 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5 13489$as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; } 13490 saved_LDFLAGS="$LDFLAGS" 13491 LDFLAGS="-Wl,-search_paths_first $LDFLAGS" 13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13493/* end confdefs.h. */ 13494 13495int 13496main (void) 13497{ 13498 13499 ; 13500 return 0; 13501} 13502_ACEOF 13503if ac_fn_c_try_link "$LINENO"; then : 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13505$as_echo "yes" >&6; } 13506else 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13508$as_echo "no" >&6; } 13509 LDFLAGS="$saved_LDFLAGS" 13510fi 13511rm -f core conftest.err conftest.$ac_objext \ 13512 conftest$ac_exeext conftest.$ac_ext 13513 ;; 13514 esac 13515 ;; 13516esac 13517 13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13519$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13520if ${ac_cv_c_const+:} false; then : 13521 $as_echo_n "(cached) " >&6 13522else 13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13524/* end confdefs.h. */ 13525 13526int 13527main (void) 13528{ 13529 13530#ifndef __cplusplus 13531 /* Ultrix mips cc rejects this sort of thing. */ 13532 typedef int charset[2]; 13533 const charset cs = { 0, 0 }; 13534 /* SunOS 4.1.1 cc rejects this. */ 13535 char const *const *pcpcc; 13536 char **ppc; 13537 /* NEC SVR4.0.2 mips cc rejects this. */ 13538 struct point {int x, y;}; 13539 static struct point const zero = {0,0}; 13540 /* AIX XL C 1.02.0.0 rejects this. 13541 It does not let you subtract one const X* pointer from another in 13542 an arm of an if-expression whose if-part is not a constant 13543 expression */ 13544 const char *g = "string"; 13545 pcpcc = &g + (g ? g-g : 0); 13546 /* HPUX 7.0 cc rejects these. */ 13547 ++pcpcc; 13548 ppc = (char**) pcpcc; 13549 pcpcc = (char const *const *) ppc; 13550 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13551 char tx; 13552 char *t = &tx; 13553 char const *s = 0 ? (char *) 0 : (char const *) 0; 13554 13555 *t++ = 0; 13556 if (s) return 0; 13557 } 13558 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13559 int x[] = {25, 17}; 13560 const int *foo = &x[0]; 13561 ++foo; 13562 } 13563 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13564 typedef const int *iptr; 13565 iptr p = 0; 13566 ++p; 13567 } 13568 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13569 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13570 struct s { int j; const int *ap[3]; } bx; 13571 struct s *b = &bx; b->j = 5; 13572 } 13573 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13574 const int foo = 10; 13575 if (!foo) return 0; 13576 } 13577 return !cs[0] && !zero.x; 13578#endif 13579 13580 ; 13581 return 0; 13582} 13583_ACEOF 13584if ac_fn_c_try_compile "$LINENO"; then : 13585 ac_cv_c_const=yes 13586else 13587 ac_cv_c_const=no 13588fi 13589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13590fi 13591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13592$as_echo "$ac_cv_c_const" >&6; } 13593if test $ac_cv_c_const = no; then 13594 13595$as_echo "#define const /**/" >>confdefs.h 13596 13597fi 13598 13599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 13600$as_echo_n "checking for working volatile... " >&6; } 13601if ${ac_cv_c_volatile+:} false; then : 13602 $as_echo_n "(cached) " >&6 13603else 13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13605/* end confdefs.h. */ 13606 13607int 13608main (void) 13609{ 13610 13611volatile int x; 13612int * volatile y = (int *) 0; 13613return !x && !y; 13614 ; 13615 return 0; 13616} 13617_ACEOF 13618if ac_fn_c_try_compile "$LINENO"; then : 13619 ac_cv_c_volatile=yes 13620else 13621 ac_cv_c_volatile=no 13622fi 13623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13624fi 13625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 13626$as_echo "$ac_cv_c_volatile" >&6; } 13627if test $ac_cv_c_volatile = no; then 13628 13629$as_echo "#define volatile /**/" >>confdefs.h 13630 13631fi 13632 13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13634$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13635if ${ac_cv_c_bigendian+:} false; then : 13636 $as_echo_n "(cached) " >&6 13637else 13638 ac_cv_c_bigendian=unknown 13639 # See if we're dealing with a universal compiler. 13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13641/* end confdefs.h. */ 13642#ifndef __APPLE_CC__ 13643 not a universal capable compiler 13644 #endif 13645 typedef int dummy; 13646 13647_ACEOF 13648if ac_fn_c_try_compile "$LINENO"; then : 13649 13650 # Check for potential -arch flags. It is not universal unless 13651 # there are at least two -arch flags with different values. 13652 ac_arch= 13653 ac_prev= 13654 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13655 if test -n "$ac_prev"; then 13656 case $ac_word in 13657 i?86 | x86_64 | ppc | ppc64) 13658 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13659 ac_arch=$ac_word 13660 else 13661 ac_cv_c_bigendian=universal 13662 break 13663 fi 13664 ;; 13665 esac 13666 ac_prev= 13667 elif test "x$ac_word" = "x-arch"; then 13668 ac_prev=arch 13669 fi 13670 done 13671fi 13672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13673 if test $ac_cv_c_bigendian = unknown; then 13674 # See if sys/param.h defines the BYTE_ORDER macro. 13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13676/* end confdefs.h. */ 13677#include <sys/types.h> 13678 #include <sys/param.h> 13679 13680int 13681main (void) 13682{ 13683#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13684 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13685 && LITTLE_ENDIAN) 13686 bogus endian macros 13687 #endif 13688 13689 ; 13690 return 0; 13691} 13692_ACEOF 13693if ac_fn_c_try_compile "$LINENO"; then : 13694 # It does; now see whether it defined to BIG_ENDIAN or not. 13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13696/* end confdefs.h. */ 13697#include <sys/types.h> 13698 #include <sys/param.h> 13699 13700int 13701main (void) 13702{ 13703#if BYTE_ORDER != BIG_ENDIAN 13704 not big endian 13705 #endif 13706 13707 ; 13708 return 0; 13709} 13710_ACEOF 13711if ac_fn_c_try_compile "$LINENO"; then : 13712 ac_cv_c_bigendian=yes 13713else 13714 ac_cv_c_bigendian=no 13715fi 13716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13717fi 13718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13719 fi 13720 if test $ac_cv_c_bigendian = unknown; then 13721 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13723/* end confdefs.h. */ 13724#include <limits.h> 13725 13726int 13727main (void) 13728{ 13729#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13730 bogus endian macros 13731 #endif 13732 13733 ; 13734 return 0; 13735} 13736_ACEOF 13737if ac_fn_c_try_compile "$LINENO"; then : 13738 # It does; now see whether it defined to _BIG_ENDIAN or not. 13739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13740/* end confdefs.h. */ 13741#include <limits.h> 13742 13743int 13744main (void) 13745{ 13746#ifndef _BIG_ENDIAN 13747 not big endian 13748 #endif 13749 13750 ; 13751 return 0; 13752} 13753_ACEOF 13754if ac_fn_c_try_compile "$LINENO"; then : 13755 ac_cv_c_bigendian=yes 13756else 13757 ac_cv_c_bigendian=no 13758fi 13759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13760fi 13761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13762 fi 13763 if test $ac_cv_c_bigendian = unknown; then 13764 # Compile a test program. 13765 if test "$cross_compiling" = yes; then : 13766 # Try to guess by grepping values from an object file. 13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13768/* end confdefs.h. */ 13769short int ascii_mm[] = 13770 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13771 short int ascii_ii[] = 13772 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13773 int use_ascii (int i) { 13774 return ascii_mm[i] + ascii_ii[i]; 13775 } 13776 short int ebcdic_ii[] = 13777 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13778 short int ebcdic_mm[] = 13779 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13780 int use_ebcdic (int i) { 13781 return ebcdic_mm[i] + ebcdic_ii[i]; 13782 } 13783 extern int foo; 13784 13785int 13786main (void) 13787{ 13788return use_ascii (foo) == use_ebcdic (foo); 13789 ; 13790 return 0; 13791} 13792_ACEOF 13793if ac_fn_c_try_compile "$LINENO"; then : 13794 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13795 ac_cv_c_bigendian=yes 13796 fi 13797 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13798 if test "$ac_cv_c_bigendian" = unknown; then 13799 ac_cv_c_bigendian=no 13800 else 13801 # finding both strings is unlikely to happen, but who knows? 13802 ac_cv_c_bigendian=unknown 13803 fi 13804 fi 13805fi 13806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13807else 13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13809/* end confdefs.h. */ 13810$ac_includes_default 13811int 13812main (void) 13813{ 13814 13815 /* Are we little or big endian? From Harbison&Steele. */ 13816 union 13817 { 13818 long int l; 13819 char c[sizeof (long int)]; 13820 } u; 13821 u.l = 1; 13822 return u.c[sizeof (long int) - 1] == 1; 13823 13824 ; 13825 return 0; 13826} 13827_ACEOF 13828if ac_fn_c_try_run "$LINENO"; then : 13829 ac_cv_c_bigendian=no 13830else 13831 ac_cv_c_bigendian=yes 13832fi 13833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13834 conftest.$ac_objext conftest.beam conftest.$ac_ext 13835fi 13836 13837 fi 13838fi 13839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13840$as_echo "$ac_cv_c_bigendian" >&6; } 13841 case $ac_cv_c_bigendian in #( 13842 yes) 13843 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h 13844;; #( 13845 no) 13846 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h 13847 ;; #( 13848 universal) 13849 true 13850 ;; #( 13851 *) 13852 true ;; 13853 esac 13854 13855 13856 13857 13858MPFR_LIBM='' 13859 13860case $host in 13861 *-*-beos* | *-*-cygwin* | *-*-pw32*) 13862 # According to libtool AC CHECK LIBM, these systems don't have libm 13863 ;; 13864 *-*-solaris*) 13865 # On Solaris the math functions new in C99 are in -lm9x. 13866 # FIXME: Do we need -lm9x as well as -lm, or just instead of? 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm9x" >&5 13868$as_echo_n "checking for main in -lm9x... " >&6; } 13869if ${ac_cv_lib_m9x_main+:} false; then : 13870 $as_echo_n "(cached) " >&6 13871else 13872 ac_check_lib_save_LIBS=$LIBS 13873LIBS="-lm9x $LIBS" 13874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13875/* end confdefs.h. */ 13876 13877 13878int 13879main (void) 13880{ 13881return main (); 13882 ; 13883 return 0; 13884} 13885_ACEOF 13886if ac_fn_c_try_link "$LINENO"; then : 13887 ac_cv_lib_m9x_main=yes 13888else 13889 ac_cv_lib_m9x_main=no 13890fi 13891rm -f core conftest.err conftest.$ac_objext \ 13892 conftest$ac_exeext conftest.$ac_ext 13893LIBS=$ac_check_lib_save_LIBS 13894fi 13895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m9x_main" >&5 13896$as_echo "$ac_cv_lib_m9x_main" >&6; } 13897if test "x$ac_cv_lib_m9x_main" = xyes; then : 13898 MPFR_LIBM="-lm9x" 13899fi 13900 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 13902$as_echo_n "checking for main in -lm... " >&6; } 13903if ${ac_cv_lib_m_main+:} false; then : 13904 $as_echo_n "(cached) " >&6 13905else 13906 ac_check_lib_save_LIBS=$LIBS 13907LIBS="-lm $LIBS" 13908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13909/* end confdefs.h. */ 13910 13911 13912int 13913main (void) 13914{ 13915return main (); 13916 ; 13917 return 0; 13918} 13919_ACEOF 13920if ac_fn_c_try_link "$LINENO"; then : 13921 ac_cv_lib_m_main=yes 13922else 13923 ac_cv_lib_m_main=no 13924fi 13925rm -f core conftest.err conftest.$ac_objext \ 13926 conftest$ac_exeext conftest.$ac_ext 13927LIBS=$ac_check_lib_save_LIBS 13928fi 13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 13930$as_echo "$ac_cv_lib_m_main" >&6; } 13931if test "x$ac_cv_lib_m_main" = xyes; then : 13932 MPFR_LIBM="$MPFR_LIBM -lm" 13933fi 13934 13935 ;; 13936 *-ncr-sysv4.3*) 13937 # FIXME: What does -lmw mean? Libtool AC CHECK LIBM does it this way. 13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 13939$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 13940if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 13941 $as_echo_n "(cached) " >&6 13942else 13943 ac_check_lib_save_LIBS=$LIBS 13944LIBS="-lmw $LIBS" 13945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13946/* end confdefs.h. */ 13947 13948/* Override any GCC internal prototype to avoid an error. 13949 Use char because int might match the return type of a GCC 13950 builtin and then its argument prototype would still apply. */ 13951#ifdef __cplusplus 13952extern "C" 13953#endif 13954char _mwvalidcheckl (); 13955int 13956main (void) 13957{ 13958return _mwvalidcheckl (); 13959 ; 13960 return 0; 13961} 13962_ACEOF 13963if ac_fn_c_try_link "$LINENO"; then : 13964 ac_cv_lib_mw__mwvalidcheckl=yes 13965else 13966 ac_cv_lib_mw__mwvalidcheckl=no 13967fi 13968rm -f core conftest.err conftest.$ac_objext \ 13969 conftest$ac_exeext conftest.$ac_ext 13970LIBS=$ac_check_lib_save_LIBS 13971fi 13972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 13973$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 13974if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 13975 MPFR_LIBM="-lmw" 13976fi 13977 13978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 13979$as_echo_n "checking for main in -lm... " >&6; } 13980if ${ac_cv_lib_m_main+:} false; then : 13981 $as_echo_n "(cached) " >&6 13982else 13983 ac_check_lib_save_LIBS=$LIBS 13984LIBS="-lm $LIBS" 13985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13986/* end confdefs.h. */ 13987 13988 13989int 13990main (void) 13991{ 13992return main (); 13993 ; 13994 return 0; 13995} 13996_ACEOF 13997if ac_fn_c_try_link "$LINENO"; then : 13998 ac_cv_lib_m_main=yes 13999else 14000 ac_cv_lib_m_main=no 14001fi 14002rm -f core conftest.err conftest.$ac_objext \ 14003 conftest$ac_exeext conftest.$ac_ext 14004LIBS=$ac_check_lib_save_LIBS 14005fi 14006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 14007$as_echo "$ac_cv_lib_m_main" >&6; } 14008if test "x$ac_cv_lib_m_main" = xyes; then : 14009 MPFR_LIBM="$MPFR_LIBM -lm" 14010fi 14011 14012 ;; 14013 *) 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 14015$as_echo_n "checking for main in -lm... " >&6; } 14016if ${ac_cv_lib_m_main+:} false; then : 14017 $as_echo_n "(cached) " >&6 14018else 14019 ac_check_lib_save_LIBS=$LIBS 14020LIBS="-lm $LIBS" 14021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14022/* end confdefs.h. */ 14023 14024 14025int 14026main (void) 14027{ 14028return main (); 14029 ; 14030 return 0; 14031} 14032_ACEOF 14033if ac_fn_c_try_link "$LINENO"; then : 14034 ac_cv_lib_m_main=yes 14035else 14036 ac_cv_lib_m_main=no 14037fi 14038rm -f core conftest.err conftest.$ac_objext \ 14039 conftest$ac_exeext conftest.$ac_ext 14040LIBS=$ac_check_lib_save_LIBS 14041fi 14042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 14043$as_echo "$ac_cv_lib_m_main" >&6; } 14044if test "x$ac_cv_lib_m_main" = xyes; then : 14045 MPFR_LIBM="-lm" 14046fi 14047 14048 ;; 14049esac 14050 14051 14052MPFR_LIBQUADMATH='' 14053 14054case $host in 14055 *) 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lquadmath" >&5 14057$as_echo_n "checking for main in -lquadmath... " >&6; } 14058if ${ac_cv_lib_quadmath_main+:} false; then : 14059 $as_echo_n "(cached) " >&6 14060else 14061 ac_check_lib_save_LIBS=$LIBS 14062LIBS="-lquadmath $LIBS" 14063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14064/* end confdefs.h. */ 14065 14066 14067int 14068main (void) 14069{ 14070return main (); 14071 ; 14072 return 0; 14073} 14074_ACEOF 14075if ac_fn_c_try_link "$LINENO"; then : 14076 ac_cv_lib_quadmath_main=yes 14077else 14078 ac_cv_lib_quadmath_main=no 14079fi 14080rm -f core conftest.err conftest.$ac_objext \ 14081 conftest$ac_exeext conftest.$ac_ext 14082LIBS=$ac_check_lib_save_LIBS 14083fi 14084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_main" >&5 14085$as_echo "$ac_cv_lib_quadmath_main" >&6; } 14086if test "x$ac_cv_lib_quadmath_main" = xyes; then : 14087 MPFR_LIBQUADMATH="-lquadmath" 14088fi 14089 14090 ;; 14091esac 14092 14093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 14094$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 14095if ${ac_cv_header_time+:} false; then : 14096 $as_echo_n "(cached) " >&6 14097else 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100#include <sys/types.h> 14101#include <sys/time.h> 14102#include <time.h> 14103 14104int 14105main (void) 14106{ 14107if ((struct tm *) 0) 14108return 0; 14109 ; 14110 return 0; 14111} 14112_ACEOF 14113if ac_fn_c_try_compile "$LINENO"; then : 14114 ac_cv_header_time=yes 14115else 14116 ac_cv_header_time=no 14117fi 14118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14119fi 14120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 14121$as_echo "$ac_cv_header_time" >&6; } 14122if test $ac_cv_header_time = yes; then 14123 14124$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 14125 14126fi 14127 14128ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14129if test "x$ac_cv_type_size_t" = xyes; then : 14130 14131else 14132 14133cat >>confdefs.h <<_ACEOF 14134#define size_t unsigned int 14135_ACEOF 14136 14137fi 14138 14139 14140 14141 14142 14143 14144 14145 14146ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 14147if test "x$ac_cv_header_limits_h" = xyes; then : 14148 14149else 14150 as_fn_error $? "limits.h not found" "$LINENO" 5 14151fi 14152 14153 14154ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 14155if test "x$ac_cv_header_float_h" = xyes; then : 14156 14157else 14158 as_fn_error $? "float.h not found" "$LINENO" 5 14159fi 14160 14161 14162ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 14163if test "x$ac_cv_header_string_h" = xyes; then : 14164 14165else 14166 as_fn_error $? "string.h not found" "$LINENO" 5 14167fi 14168 14169 14170 14171for ac_header in locale.h 14172do : 14173 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 14174if test "x$ac_cv_header_locale_h" = xyes; then : 14175 cat >>confdefs.h <<_ACEOF 14176#define HAVE_LOCALE_H 1 14177_ACEOF 14178 14179fi 14180 14181done 14182 14183 14184for ac_header in wchar.h 14185do : 14186 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 14187if test "x$ac_cv_header_wchar_h" = xyes; then : 14188 cat >>confdefs.h <<_ACEOF 14189#define HAVE_WCHAR_H 1 14190_ACEOF 14191 14192fi 14193 14194done 14195 14196 14197ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 14198if test "x$ac_cv_header_stdarg_h" = xyes; then : 14199 14200$as_echo "#define HAVE_STDARG 1" >>confdefs.h 14201 14202else 14203 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default" 14204if test "x$ac_cv_header_varargs_h" = xyes; then : 14205 14206else 14207 as_fn_error $? "stdarg.h or varargs.h not found" "$LINENO" 5 14208fi 14209 14210 14211fi 14212 14213 14214 14215for ac_header in sys/time.h sys/fpu.h 14216do : 14217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14218ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14219if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14220 cat >>confdefs.h <<_ACEOF 14221#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14222_ACEOF 14223 14224fi 14225 14226done 14227 14228 14229ac_fn_c_check_member "$LINENO" "struct lconv" "decimal_point" "ac_cv_member_struct_lconv_decimal_point" "#include <locale.h> 14230" 14231if test "x$ac_cv_member_struct_lconv_decimal_point" = xyes; then : 14232 14233cat >>confdefs.h <<_ACEOF 14234#define HAVE_STRUCT_LCONV_DECIMAL_POINT 1 14235_ACEOF 14236 14237 14238fi 14239ac_fn_c_check_member "$LINENO" "struct lconv" "thousands_sep" "ac_cv_member_struct_lconv_thousands_sep" "#include <locale.h> 14240" 14241if test "x$ac_cv_member_struct_lconv_thousands_sep" = xyes; then : 14242 14243cat >>confdefs.h <<_ACEOF 14244#define HAVE_STRUCT_LCONV_THOUSANDS_SEP 1 14245_ACEOF 14246 14247 14248fi 14249 14250 14251# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 14252# for constant arguments. Useless! 14253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 14254$as_echo_n "checking for working alloca.h... " >&6; } 14255if ${ac_cv_working_alloca_h+:} false; then : 14256 $as_echo_n "(cached) " >&6 14257else 14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14259/* end confdefs.h. */ 14260#include <alloca.h> 14261int 14262main (void) 14263{ 14264char *p = (char *) alloca (2 * sizeof (int)); 14265 if (p) return 0; 14266 ; 14267 return 0; 14268} 14269_ACEOF 14270if ac_fn_c_try_link "$LINENO"; then : 14271 ac_cv_working_alloca_h=yes 14272else 14273 ac_cv_working_alloca_h=no 14274fi 14275rm -f core conftest.err conftest.$ac_objext \ 14276 conftest$ac_exeext conftest.$ac_ext 14277fi 14278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 14279$as_echo "$ac_cv_working_alloca_h" >&6; } 14280if test $ac_cv_working_alloca_h = yes; then 14281 14282$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 14283 14284fi 14285 14286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 14287$as_echo_n "checking for alloca... " >&6; } 14288if ${ac_cv_func_alloca_works+:} false; then : 14289 $as_echo_n "(cached) " >&6 14290else 14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14292/* end confdefs.h. */ 14293#ifdef __GNUC__ 14294# define alloca __builtin_alloca 14295#else 14296# ifdef _MSC_VER 14297# include <malloc.h> 14298# define alloca _alloca 14299# else 14300# ifdef HAVE_ALLOCA_H 14301# include <alloca.h> 14302# else 14303# ifdef _AIX 14304 #pragma alloca 14305# else 14306# ifndef alloca /* predefined by HP cc +Olibcalls */ 14307void *alloca (size_t); 14308# endif 14309# endif 14310# endif 14311# endif 14312#endif 14313 14314int 14315main (void) 14316{ 14317char *p = (char *) alloca (1); 14318 if (p) return 0; 14319 ; 14320 return 0; 14321} 14322_ACEOF 14323if ac_fn_c_try_link "$LINENO"; then : 14324 ac_cv_func_alloca_works=yes 14325else 14326 ac_cv_func_alloca_works=no 14327fi 14328rm -f core conftest.err conftest.$ac_objext \ 14329 conftest$ac_exeext conftest.$ac_ext 14330fi 14331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 14332$as_echo "$ac_cv_func_alloca_works" >&6; } 14333 14334if test $ac_cv_func_alloca_works = yes; then 14335 14336$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 14337 14338else 14339 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 14340# that cause trouble. Some versions do not even contain alloca or 14341# contain a buggy version. If you still want to use their alloca, 14342# use ar to extract alloca.o from them instead of compiling alloca.c. 14343 14344ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 14345 14346$as_echo "#define C_ALLOCA 1" >>confdefs.h 14347 14348 14349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 14350$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 14351if ${ac_cv_os_cray+:} false; then : 14352 $as_echo_n "(cached) " >&6 14353else 14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14355/* end confdefs.h. */ 14356#if defined CRAY && ! defined CRAY2 14357webecray 14358#else 14359wenotbecray 14360#endif 14361 14362_ACEOF 14363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14364 $EGREP "webecray" >/dev/null 2>&1; then : 14365 ac_cv_os_cray=yes 14366else 14367 ac_cv_os_cray=no 14368fi 14369rm -f conftest* 14370 14371fi 14372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 14373$as_echo "$ac_cv_os_cray" >&6; } 14374if test $ac_cv_os_cray = yes; then 14375 for ac_func in _getb67 GETB67 getb67; do 14376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14377ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14378if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14379 14380cat >>confdefs.h <<_ACEOF 14381#define CRAY_STACKSEG_END $ac_func 14382_ACEOF 14383 14384 break 14385fi 14386 14387 done 14388fi 14389 14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 14391$as_echo_n "checking stack direction for C alloca... " >&6; } 14392if ${ac_cv_c_stack_direction+:} false; then : 14393 $as_echo_n "(cached) " >&6 14394else 14395 if test "$cross_compiling" = yes; then : 14396 ac_cv_c_stack_direction=0 14397else 14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14399/* end confdefs.h. */ 14400$ac_includes_default 14401int 14402find_stack_direction (int *addr, int depth) 14403{ 14404 int dir, dummy = 0; 14405 if (! addr) 14406 addr = &dummy; 14407 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 14408 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 14409 return dir + dummy; 14410} 14411 14412int 14413main (int argc, char **argv) 14414{ 14415 return find_stack_direction (0, argc + !argv + 20) < 0; 14416} 14417_ACEOF 14418if ac_fn_c_try_run "$LINENO"; then : 14419 ac_cv_c_stack_direction=1 14420else 14421 ac_cv_c_stack_direction=-1 14422fi 14423rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14424 conftest.$ac_objext conftest.beam conftest.$ac_ext 14425fi 14426 14427fi 14428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 14429$as_echo "$ac_cv_c_stack_direction" >&6; } 14430cat >>confdefs.h <<_ACEOF 14431#define STACK_DIRECTION $ac_cv_c_stack_direction 14432_ACEOF 14433 14434 14435fi 14436 14437 14438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5 14439$as_echo_n "checking how to copy va_list... " >&6; } 14440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14441/* end confdefs.h. */ 14442 14443#include <stdarg.h> 14444 14445int 14446main (void) 14447{ 14448 14449 va_list ap1, ap2; 14450 va_copy(ap1, ap2); 14451 14452 ; 14453 return 0; 14454} 14455_ACEOF 14456if ac_fn_c_try_link "$LINENO"; then : 14457 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5 14459$as_echo "va_copy" >&6; } 14460 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h 14461 14462 14463else 14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14465/* end confdefs.h. */ 14466 14467#include <stdarg.h> 14468 14469int 14470main (void) 14471{ 14472 14473 va_list ap1, ap2; 14474 __va_copy(ap1, ap2); 14475 14476 ; 14477 return 0; 14478} 14479_ACEOF 14480if ac_fn_c_try_link "$LINENO"; then : 14481 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5 14483$as_echo "__va_copy" >&6; } 14484else 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5 14486$as_echo "memcpy" >&6; } 14487fi 14488rm -f core conftest.err conftest.$ac_objext \ 14489 conftest$ac_exeext conftest.$ac_ext 14490fi 14491rm -f core conftest.err conftest.$ac_objext \ 14492 conftest$ac_exeext conftest.$ac_ext 14493 14494for ac_func in memmove memset setlocale strtol gettimeofday signal 14495do : 14496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14497ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14498if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14499 cat >>confdefs.h <<_ACEOF 14500#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14501_ACEOF 14502 14503fi 14504done 14505 14506 14507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaction and its associated structure" >&5 14508$as_echo_n "checking for sigaction and its associated structure... " >&6; } 14509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14510/* end confdefs.h. */ 14511 14512#include <signal.h> 14513static int f (int (*func)(int, const struct sigaction *, struct sigaction *)) 14514{ return 0; } 14515 14516int 14517main (void) 14518{ 14519 14520 return f(sigaction); 14521 14522 ; 14523 return 0; 14524} 14525_ACEOF 14526if ac_fn_c_try_link "$LINENO"; then : 14527 14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14529$as_echo "yes" >&6; } 14530 14531$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h 14532 14533 14534else 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14536$as_echo "no" >&6; } 14537fi 14538rm -f core conftest.err conftest.$ac_objext \ 14539 conftest$ac_exeext conftest.$ac_ext 14540 14541ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default" 14542if test "x$ac_cv_type_long_long_int" = xyes; then : 14543 14544$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 14545 14546fi 14547 14548 14549ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 14550if test "x$ac_cv_type_intmax_t" = xyes; then : 14551 14552cat >>confdefs.h <<_ACEOF 14553#define HAVE_INTMAX_T 1 14554_ACEOF 14555 14556 14557fi 14558 14559if test "$ac_cv_type_intmax_t" = yes; then 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working INTMAX_MAX" >&5 14561$as_echo_n "checking for working INTMAX_MAX... " >&6; } 14562if ${mpfr_cv_have_intmax_max+:} false; then : 14563 $as_echo_n "(cached) " >&6 14564else 14565 14566 saved_CPPFLAGS="$CPPFLAGS" 14567 CPPFLAGS="$CPPFLAGS -I$srcdir/src" 14568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14569/* end confdefs.h. */ 14570#include "mpfr-intmax.h" 14571int 14572main (void) 14573{ 14574intmax_t x = INTMAX_MAX; (void) x; 14575 14576 ; 14577 return 0; 14578} 14579_ACEOF 14580if ac_fn_c_try_compile "$LINENO"; then : 14581 mpfr_cv_have_intmax_max=yes 14582else 14583 mpfr_cv_have_intmax_max=no 14584fi 14585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14586 CPPFLAGS="$saved_CPPFLAGS" 14587 14588fi 14589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_intmax_max" >&5 14590$as_echo "$mpfr_cv_have_intmax_max" >&6; } 14591 if test "$mpfr_cv_have_intmax_max" = "yes"; then 14592 14593$as_echo "#define MPFR_HAVE_INTMAX_MAX 1" >>confdefs.h 14594 14595 fi 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working printf length modifier for intmax_t" >&5 14597$as_echo_n "checking for working printf length modifier for intmax_t... " >&6; } 14598if ${mpfr_cv_printf_maxlm+:} false; then : 14599 $as_echo_n "(cached) " >&6 14600else 14601 14602 saved_CPPFLAGS="$CPPFLAGS" 14603 CPPFLAGS="$CPPFLAGS -I$srcdir/src" 14604 for modifier in j ll l 14605 do 14606 if test "$cross_compiling" = yes; then : 14607 mpfr_cv_printf_maxlm=j; break 14608 14609else 14610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14611/* end confdefs.h. */ 14612 14613#include <stdio.h> 14614#include <string.h> 14615#include "mpfr-intmax.h" 14616 14617int 14618main (void) 14619{ 14620 14621 char s[64]; 14622 sprintf (s, "%${modifier}d %${modifier}u", 14623 (intmax_t) -17, (uintmax_t) 42); 14624 return strcmp (s, "-17 42") != 0; 14625 14626 ; 14627 return 0; 14628} 14629_ACEOF 14630if ac_fn_c_try_run "$LINENO"; then : 14631 mpfr_cv_printf_maxlm=${modifier}; break 14632else 14633 mpfr_cv_printf_maxlm=none 14634fi 14635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14636 conftest.$ac_objext conftest.beam conftest.$ac_ext 14637fi 14638 14639 done 14640 CPPFLAGS="$saved_CPPFLAGS" 14641 14642fi 14643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_printf_maxlm" >&5 14644$as_echo "$mpfr_cv_printf_maxlm" >&6; } 14645 if test "$mpfr_cv_printf_maxlm" != "none"; then 14646 14647cat >>confdefs.h <<_ACEOF 14648#define MPFR_PRINTF_MAXLM "$mpfr_cv_printf_maxlm" 14649_ACEOF 14650 14651 fi 14652fi 14653 14654ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" " 14655#if HAVE_SYS_FPU_H 14656# include <sys/fpu.h> 14657#endif 14658 14659" 14660if test "x$ac_cv_type_union_fpc_csr" = xyes; then : 14661 14662$as_echo "#define HAVE_FPC_CSR 1" >>confdefs.h 14663 14664fi 14665 14666 14667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Noreturn" >&5 14668$as_echo_n "checking for _Noreturn... " >&6; } 14669if ${mpfr_cv_have_noreturn+:} false; then : 14670 $as_echo_n "(cached) " >&6 14671else 14672 14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14674/* end confdefs.h. */ 14675_Noreturn void foo(int); 14676_ACEOF 14677if ac_fn_c_try_compile "$LINENO"; then : 14678 mpfr_cv_have_noreturn=yes 14679else 14680 mpfr_cv_have_noreturn=no 14681fi 14682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14683 14684fi 14685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_noreturn" >&5 14686$as_echo "$mpfr_cv_have_noreturn" >&6; } 14687if test "$mpfr_cv_have_noreturn" = "yes"; then 14688 14689$as_echo "#define MPFR_HAVE_NORETURN 1" >>confdefs.h 14690 14691fi 14692 14693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5 14694$as_echo_n "checking for __builtin_unreachable... " >&6; } 14695if ${mpfr_cv_have_builtin_unreachable+:} false; then : 14696 $as_echo_n "(cached) " >&6 14697else 14698 14699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14700/* end confdefs.h. */ 14701int x; 14702int 14703main (void) 14704{ 14705if (x) __builtin_unreachable(); 14706 14707 ; 14708 return 0; 14709} 14710_ACEOF 14711if ac_fn_c_try_link "$LINENO"; then : 14712 mpfr_cv_have_builtin_unreachable=yes 14713else 14714 mpfr_cv_have_builtin_unreachable=no 14715fi 14716rm -f core conftest.err conftest.$ac_objext \ 14717 conftest$ac_exeext conftest.$ac_ext 14718 14719fi 14720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_builtin_unreachable" >&5 14721$as_echo "$mpfr_cv_have_builtin_unreachable" >&6; } 14722if test "$mpfr_cv_have_builtin_unreachable" = "yes"; then 14723 14724$as_echo "#define MPFR_HAVE_BUILTIN_UNREACHABLE 1" >>confdefs.h 14725 14726fi 14727 14728 14729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for constructor and destructor attributes" >&5 14730$as_echo_n "checking for constructor and destructor attributes... " >&6; } 14731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14732/* end confdefs.h. */ 14733 14734#include <stdlib.h> 14735int x = 0; 14736__attribute__((constructor)) static void 14737call_f(void) { x = 1742; } 14738__attribute__((destructor)) static void 14739call_g(void) { x = 1448; } 14740 14741int 14742main (void) 14743{ 14744 14745 return (x == 1742) ? 0 : 1; 14746 14747 ; 14748 return 0; 14749} 14750_ACEOF 14751if ac_fn_c_try_link "$LINENO"; then : 14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14753$as_echo "yes" >&6; } 14754 mpfr_have_constructor_destructor_attributes=yes 14755else 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14757$as_echo "no" >&6; } 14758 14759fi 14760rm -f core conftest.err conftest.$ac_objext \ 14761 conftest$ac_exeext conftest.$ac_ext 14762 14763if test "$mpfr_have_constructor_destructor_attributes" = "yes"; then 14764 14765$as_echo "#define MPFR_HAVE_CONSTRUCTOR_ATTR 1" >>confdefs.h 14766 14767fi 14768 14769 14770 14771 14772 14773 14774 14775ac_ext=c 14776ac_cpp='$CPP $CPPFLAGS' 14777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14779ac_compiler_gnu=$ac_cv_c_compiler_gnu 14780 14781ax_pthread_ok=no 14782 14783# We used to check for pthread.h first, but this fails if pthread.h 14784# requires special compiler flags (e.g. on Tru64 or Sequent). 14785# It gets checked for in the link test anyway. 14786 14787# First of all, check if the user has set any of the PTHREAD_LIBS, 14788# etcetera environment variables, and if threads linking works using 14789# them: 14790if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 14791 ax_pthread_save_CC="$CC" 14792 ax_pthread_save_CFLAGS="$CFLAGS" 14793 ax_pthread_save_LIBS="$LIBS" 14794 if test "x$PTHREAD_CC" != "x"; then : 14795 CC="$PTHREAD_CC" 14796fi 14797 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 14798 LIBS="$PTHREAD_LIBS $LIBS" 14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 14800$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 14801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14802/* end confdefs.h. */ 14803 14804/* Override any GCC internal prototype to avoid an error. 14805 Use char because int might match the return type of a GCC 14806 builtin and then its argument prototype would still apply. */ 14807#ifdef __cplusplus 14808extern "C" 14809#endif 14810char pthread_join (); 14811int 14812main (void) 14813{ 14814return pthread_join (); 14815 ; 14816 return 0; 14817} 14818_ACEOF 14819if ac_fn_c_try_link "$LINENO"; then : 14820 ax_pthread_ok=yes 14821fi 14822rm -f core conftest.err conftest.$ac_objext \ 14823 conftest$ac_exeext conftest.$ac_ext 14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 14825$as_echo "$ax_pthread_ok" >&6; } 14826 if test "x$ax_pthread_ok" = "xno"; then 14827 PTHREAD_LIBS="" 14828 PTHREAD_CFLAGS="" 14829 fi 14830 CC="$ax_pthread_save_CC" 14831 CFLAGS="$ax_pthread_save_CFLAGS" 14832 LIBS="$ax_pthread_save_LIBS" 14833fi 14834 14835# We must check for the threads library under a number of different 14836# names; the ordering is very important because some systems 14837# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 14838# libraries is broken (non-POSIX). 14839 14840# Create a list of thread flags to try. Items starting with a "-" are 14841# C compiler flags, and other items are library names, except for "none" 14842# which indicates that we try without any flags at all, and "pthread-config" 14843# which is a program returning the flags for the Pth emulation library. 14844 14845ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 14846 14847# The ordering *is* (sometimes) important. Some notes on the 14848# individual items follow: 14849 14850# pthreads: AIX (must check this before -lpthread) 14851# none: in case threads are in libc; should be tried before -Kthread and 14852# other compiler flags to prevent continual compiler warnings 14853# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 14854# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 14855# (Note: HP C rejects this with "bad form for `-t' option") 14856# -pthreads: Solaris/gcc (Note: HP C also rejects) 14857# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 14858# doesn't hurt to check since this sometimes defines pthreads and 14859# -D_REENTRANT too), HP C (must be checked before -lpthread, which 14860# is present but should not be used directly; and before -mthreads, 14861# because the compiler interprets this as "-mt" + "-hreads") 14862# -mthreads: Mingw32/gcc, Lynx/gcc 14863# pthread: Linux, etcetera 14864# --thread-safe: KAI C++ 14865# pthread-config: use pthread-config program (for GNU Pth library) 14866 14867case $host_os in 14868 14869 freebsd*) 14870 14871 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 14872 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 14873 14874 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 14875 ;; 14876 14877 hpux*) 14878 14879 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 14880 # multi-threading and also sets -lpthread." 14881 14882 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 14883 ;; 14884 14885 openedition*) 14886 14887 # IBM z/OS requires a feature-test macro to be defined in order to 14888 # enable POSIX threads at all, so give the user a hint if this is 14889 # not set. (We don't define these ourselves, as they can affect 14890 # other portions of the system API in unpredictable ways.) 14891 14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14893/* end confdefs.h. */ 14894 14895# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 14896 AX_PTHREAD_ZOS_MISSING 14897# endif 14898 14899_ACEOF 14900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14901 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 14903$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 14904fi 14905rm -f conftest* 14906 14907 ;; 14908 14909 solaris*) 14910 14911 # On Solaris (at least, for some versions), libc contains stubbed 14912 # (non-functional) versions of the pthreads routines, so link-based 14913 # tests will erroneously succeed. (N.B.: The stubs are missing 14914 # pthread_cleanup_push, or rather a function called by this macro, 14915 # so we could check for that, but who knows whether they'll stub 14916 # that too in a future libc.) So we'll check first for the 14917 # standard Solaris way of linking pthreads (-mt -lpthread). 14918 14919 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 14920 ;; 14921esac 14922 14923# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 14924 14925if test "x$GCC" = "xyes"; then : 14926 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 14927fi 14928 14929# The presence of a feature test macro requesting re-entrant function 14930# definitions is, on some systems, a strong hint that pthreads support is 14931# correctly enabled 14932 14933case $host_os in 14934 darwin* | hpux* | linux* | osf* | solaris*) 14935 ax_pthread_check_macro="_REENTRANT" 14936 ;; 14937 14938 aix*) 14939 ax_pthread_check_macro="_THREAD_SAFE" 14940 ;; 14941 14942 *) 14943 ax_pthread_check_macro="--" 14944 ;; 14945esac 14946if test "x$ax_pthread_check_macro" = "x--"; then : 14947 ax_pthread_check_cond=0 14948else 14949 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 14950fi 14951 14952# Are we compiling with Clang? 14953 14954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 14955$as_echo_n "checking whether $CC is Clang... " >&6; } 14956if ${ax_cv_PTHREAD_CLANG+:} false; then : 14957 $as_echo_n "(cached) " >&6 14958else 14959 ax_cv_PTHREAD_CLANG=no 14960 # Note that Autoconf sets GCC=yes for Clang as well as GCC 14961 if test "x$GCC" = "xyes"; then 14962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14963/* end confdefs.h. */ 14964/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 14965# if defined(__clang__) && defined(__llvm__) 14966 AX_PTHREAD_CC_IS_CLANG 14967# endif 14968 14969_ACEOF 14970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14971 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 14972 ax_cv_PTHREAD_CLANG=yes 14973fi 14974rm -f conftest* 14975 14976 fi 14977 14978fi 14979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 14980$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 14981ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 14982 14983ax_pthread_clang_warning=no 14984 14985# Clang needs special handling, because older versions handle the -pthread 14986# option in a rather... idiosyncratic way 14987 14988if test "x$ax_pthread_clang" = "xyes"; then 14989 14990 # Clang takes -pthread; it has never supported any other flag 14991 14992 # (Note 1: This will need to be revisited if a system that Clang 14993 # supports has POSIX threads in a separate library. This tends not 14994 # to be the way of modern systems, but it's conceivable.) 14995 14996 # (Note 2: On some systems, notably Darwin, -pthread is not needed 14997 # to get POSIX threads support; the API is always present and 14998 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 14999 # -pthread does define _REENTRANT, and while the Darwin headers 15000 # ignore this macro, third-party headers might not.) 15001 15002 PTHREAD_CFLAGS="-pthread" 15003 PTHREAD_LIBS= 15004 15005 ax_pthread_ok=yes 15006 15007 # However, older versions of Clang make a point of warning the user 15008 # that, in an invocation where only linking and no compilation is 15009 # taking place, the -pthread option has no effect ("argument unused 15010 # during compilation"). They expect -pthread to be passed in only 15011 # when source code is being compiled. 15012 # 15013 # Problem is, this is at odds with the way Automake and most other 15014 # C build frameworks function, which is that the same flags used in 15015 # compilation (CFLAGS) are also used in linking. Many systems 15016 # supported by AX_PTHREAD require exactly this for POSIX threads 15017 # support, and in fact it is often not straightforward to specify a 15018 # flag that is used only in the compilation phase and not in 15019 # linking. Such a scenario is extremely rare in practice. 15020 # 15021 # Even though use of the -pthread flag in linking would only print 15022 # a warning, this can be a nuisance for well-run software projects 15023 # that build with -Werror. So if the active version of Clang has 15024 # this misfeature, we search for an option to squash it. 15025 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 15027$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 15028if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 15029 $as_echo_n "(cached) " >&6 15030else 15031 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 15032 # Create an alternate version of $ac_link that compiles and 15033 # links in two steps (.c -> .o, .o -> exe) instead of one 15034 # (.c -> exe), because the warning occurs only in the second 15035 # step 15036 ax_pthread_save_ac_link="$ac_link" 15037 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 15038 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 15039 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 15040 ax_pthread_save_CFLAGS="$CFLAGS" 15041 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 15042 if test "x$ax_pthread_try" = "xunknown"; then : 15043 break 15044fi 15045 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 15046 ac_link="$ax_pthread_save_ac_link" 15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15048/* end confdefs.h. */ 15049int main(void){return 0;} 15050_ACEOF 15051if ac_fn_c_try_link "$LINENO"; then : 15052 ac_link="$ax_pthread_2step_ac_link" 15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15054/* end confdefs.h. */ 15055int main(void){return 0;} 15056_ACEOF 15057if ac_fn_c_try_link "$LINENO"; then : 15058 break 15059fi 15060rm -f core conftest.err conftest.$ac_objext \ 15061 conftest$ac_exeext conftest.$ac_ext 15062 15063fi 15064rm -f core conftest.err conftest.$ac_objext \ 15065 conftest$ac_exeext conftest.$ac_ext 15066 done 15067 ac_link="$ax_pthread_save_ac_link" 15068 CFLAGS="$ax_pthread_save_CFLAGS" 15069 if test "x$ax_pthread_try" = "x"; then : 15070 ax_pthread_try=no 15071fi 15072 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 15073 15074fi 15075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 15076$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 15077 15078 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 15079 no | unknown) ;; 15080 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 15081 esac 15082 15083fi # $ax_pthread_clang = yes 15084 15085if test "x$ax_pthread_ok" = "xno"; then 15086for ax_pthread_try_flag in $ax_pthread_flags; do 15087 15088 case $ax_pthread_try_flag in 15089 none) 15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 15091$as_echo_n "checking whether pthreads work without any flags... " >&6; } 15092 ;; 15093 15094 -mt,pthread) 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 15096$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 15097 PTHREAD_CFLAGS="-mt" 15098 PTHREAD_LIBS="-lpthread" 15099 ;; 15100 15101 -*) 15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 15103$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 15104 PTHREAD_CFLAGS="$ax_pthread_try_flag" 15105 ;; 15106 15107 pthread-config) 15108 # Extract the first word of "pthread-config", so it can be a program name with args. 15109set dummy pthread-config; ac_word=$2 15110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15111$as_echo_n "checking for $ac_word... " >&6; } 15112if ${ac_cv_prog_ax_pthread_config+:} false; then : 15113 $as_echo_n "(cached) " >&6 15114else 15115 if test -n "$ax_pthread_config"; then 15116 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 15117else 15118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15119for as_dir in $PATH 15120do 15121 IFS=$as_save_IFS 15122 test -z "$as_dir" && as_dir=. 15123 for ac_exec_ext in '' $ac_executable_extensions; do 15124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15125 ac_cv_prog_ax_pthread_config="yes" 15126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15127 break 2 15128 fi 15129done 15130 done 15131IFS=$as_save_IFS 15132 15133 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 15134fi 15135fi 15136ax_pthread_config=$ac_cv_prog_ax_pthread_config 15137if test -n "$ax_pthread_config"; then 15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 15139$as_echo "$ax_pthread_config" >&6; } 15140else 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15142$as_echo "no" >&6; } 15143fi 15144 15145 15146 if test "x$ax_pthread_config" = "xno"; then : 15147 continue 15148fi 15149 PTHREAD_CFLAGS="`pthread-config --cflags`" 15150 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 15151 ;; 15152 15153 *) 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 15155$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 15156 PTHREAD_LIBS="-l$ax_pthread_try_flag" 15157 ;; 15158 esac 15159 15160 ax_pthread_save_CFLAGS="$CFLAGS" 15161 ax_pthread_save_LIBS="$LIBS" 15162 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15163 LIBS="$PTHREAD_LIBS $LIBS" 15164 15165 # Check for various functions. We must include pthread.h, 15166 # since some functions may be macros. (On the Sequent, we 15167 # need a special flag -Kthread to make this header compile.) 15168 # We check for pthread_join because it is in -lpthread on IRIX 15169 # while pthread_create is in libc. We check for pthread_attr_init 15170 # due to DEC craziness with -lpthreads. We check for 15171 # pthread_cleanup_push because it is one of the few pthread 15172 # functions on Solaris that doesn't have a non-functional libc stub. 15173 # We try pthread_create on general principles. 15174 15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15176/* end confdefs.h. */ 15177#include <pthread.h> 15178# if $ax_pthread_check_cond 15179# error "$ax_pthread_check_macro must be defined" 15180# endif 15181 static void routine(void *a) { a = 0; } 15182 static void *start_routine(void *a) { return a; } 15183int 15184main (void) 15185{ 15186pthread_t th; pthread_attr_t attr; 15187 pthread_create(&th, 0, start_routine, 0); 15188 pthread_join(th, 0); 15189 pthread_attr_init(&attr); 15190 pthread_cleanup_push(routine, 0); 15191 pthread_cleanup_pop(0) /* ; */ 15192 ; 15193 return 0; 15194} 15195_ACEOF 15196if ac_fn_c_try_link "$LINENO"; then : 15197 ax_pthread_ok=yes 15198fi 15199rm -f core conftest.err conftest.$ac_objext \ 15200 conftest$ac_exeext conftest.$ac_ext 15201 15202 CFLAGS="$ax_pthread_save_CFLAGS" 15203 LIBS="$ax_pthread_save_LIBS" 15204 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 15206$as_echo "$ax_pthread_ok" >&6; } 15207 if test "x$ax_pthread_ok" = "xyes"; then : 15208 break 15209fi 15210 15211 PTHREAD_LIBS="" 15212 PTHREAD_CFLAGS="" 15213done 15214fi 15215 15216# Various other checks: 15217if test "x$ax_pthread_ok" = "xyes"; then 15218 ax_pthread_save_CFLAGS="$CFLAGS" 15219 ax_pthread_save_LIBS="$LIBS" 15220 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 15221 LIBS="$PTHREAD_LIBS $LIBS" 15222 15223 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 15225$as_echo_n "checking for joinable pthread attribute... " >&6; } 15226if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 15227 $as_echo_n "(cached) " >&6 15228else 15229 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 15230 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15232/* end confdefs.h. */ 15233#include <pthread.h> 15234int 15235main (void) 15236{ 15237int attr = $ax_pthread_attr; return attr /* ; */ 15238 ; 15239 return 0; 15240} 15241_ACEOF 15242if ac_fn_c_try_link "$LINENO"; then : 15243 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 15244fi 15245rm -f core conftest.err conftest.$ac_objext \ 15246 conftest$ac_exeext conftest.$ac_ext 15247 done 15248 15249fi 15250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 15251$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 15252 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 15253 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 15254 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 15255 15256cat >>confdefs.h <<_ACEOF 15257#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 15258_ACEOF 15259 15260 ax_pthread_joinable_attr_defined=yes 15261 15262fi 15263 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 15265$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 15266if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 15267 $as_echo_n "(cached) " >&6 15268else 15269 ax_cv_PTHREAD_SPECIAL_FLAGS=no 15270 case $host_os in 15271 solaris*) 15272 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 15273 ;; 15274 esac 15275 15276fi 15277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 15278$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 15279 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 15280 test "x$ax_pthread_special_flags_added" != "xyes"; then : 15281 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 15282 ax_pthread_special_flags_added=yes 15283fi 15284 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 15286$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 15287if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 15288 $as_echo_n "(cached) " >&6 15289else 15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15291/* end confdefs.h. */ 15292#include <pthread.h> 15293int 15294main (void) 15295{ 15296int i = PTHREAD_PRIO_INHERIT; 15297 ; 15298 return 0; 15299} 15300_ACEOF 15301if ac_fn_c_try_link "$LINENO"; then : 15302 ax_cv_PTHREAD_PRIO_INHERIT=yes 15303else 15304 ax_cv_PTHREAD_PRIO_INHERIT=no 15305fi 15306rm -f core conftest.err conftest.$ac_objext \ 15307 conftest$ac_exeext conftest.$ac_ext 15308 15309fi 15310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 15311$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 15312 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 15313 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 15314 15315$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 15316 15317 ax_pthread_prio_inherit_defined=yes 15318 15319fi 15320 15321 CFLAGS="$ax_pthread_save_CFLAGS" 15322 LIBS="$ax_pthread_save_LIBS" 15323 15324 # More AIX lossage: compile with *_r variant 15325 if test "x$GCC" != "xyes"; then 15326 case $host_os in 15327 aix*) 15328 case "x/$CC" in #( 15329 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 15330 #handle absolute path differently from PATH based program lookup 15331 case "x$CC" in #( 15332 x/*) : 15333 if as_fn_executable_p ${CC}_r; then : 15334 PTHREAD_CC="${CC}_r" 15335fi ;; #( 15336 *) : 15337 for ac_prog in ${CC}_r 15338do 15339 # Extract the first word of "$ac_prog", so it can be a program name with args. 15340set dummy $ac_prog; ac_word=$2 15341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15342$as_echo_n "checking for $ac_word... " >&6; } 15343if ${ac_cv_prog_PTHREAD_CC+:} false; then : 15344 $as_echo_n "(cached) " >&6 15345else 15346 if test -n "$PTHREAD_CC"; then 15347 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 15348else 15349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15350for as_dir in $PATH 15351do 15352 IFS=$as_save_IFS 15353 test -z "$as_dir" && as_dir=. 15354 for ac_exec_ext in '' $ac_executable_extensions; do 15355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15356 ac_cv_prog_PTHREAD_CC="$ac_prog" 15357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15358 break 2 15359 fi 15360done 15361 done 15362IFS=$as_save_IFS 15363 15364fi 15365fi 15366PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 15367if test -n "$PTHREAD_CC"; then 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 15369$as_echo "$PTHREAD_CC" >&6; } 15370else 15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15372$as_echo "no" >&6; } 15373fi 15374 15375 15376 test -n "$PTHREAD_CC" && break 15377done 15378test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15379 ;; 15380esac ;; #( 15381 *) : 15382 ;; 15383esac 15384 ;; 15385 esac 15386 fi 15387fi 15388 15389test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 15390 15391 15392 15393 15394 15395# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 15396if test "x$ax_pthread_ok" = "xyes"; then 15397 15398$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 15399 15400 : 15401else 15402 ax_pthread_ok=no 15403 15404fi 15405ac_ext=c 15406ac_cpp='$CPP $CPPFLAGS' 15407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15409ac_compiler_gnu=$ac_cv_c_compiler_gnu 15410 15411 15412 15413 15414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C11 thread support" >&5 15415$as_echo_n "checking for ISO C11 thread support... " >&6; } 15416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15417/* end confdefs.h. */ 15418 15419#include <assert.h> 15420#include <thread.h> 15421 mtx_t lock; 15422 once_flag once = ONCE_FLAG_INIT; 15423 thrd_t thd_idx; 15424 int x = 0; 15425 void once_call (void) { x = 1; } 15426 15427int 15428main (void) 15429{ 15430 15431 int err; 15432 err = mtx_init(&lock, mtx_plain); 15433 assert(err == thrd_success); 15434 err = mtx_lock(&lock); 15435 assert(err == thrd_success); 15436 err = mtx_unlock(&lock); 15437 assert(err == thrd_success); 15438 mtx_destroy(&lock); 15439 once_call(&once, once_call); 15440 return x == 1 ? 0 : -1; 15441 15442 ; 15443 return 0; 15444} 15445_ACEOF 15446if ac_fn_c_try_link "$LINENO"; then : 15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15448$as_echo "yes" >&6; } 15449 mpfr_c11_thread_ok=yes 15450else 15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15452$as_echo "no" >&6; } 15453 15454fi 15455rm -f core conftest.err conftest.$ac_objext \ 15456 conftest$ac_exeext conftest.$ac_ext 15457 15458if test "$mpfr_c11_thread_ok" = "yes"; then 15459 15460$as_echo "#define MPFR_HAVE_C11_LOCK 1" >>confdefs.h 15461 15462fi 15463 15464 15465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5 15466$as_echo_n "checking for fesetround... " >&6; } 15467if ${mpfr_cv_have_fesetround+:} false; then : 15468 $as_echo_n "(cached) " >&6 15469else 15470 15471saved_LIBS="$LIBS" 15472LIBS="$LIBS $MPFR_LIBM" 15473cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15474/* end confdefs.h. */ 15475#include <fenv.h> 15476int 15477main (void) 15478{ 15479fesetround(FE_TONEAREST); 15480 ; 15481 return 0; 15482} 15483_ACEOF 15484if ac_fn_c_try_link "$LINENO"; then : 15485 mpfr_cv_have_fesetround=yes 15486else 15487 mpfr_cv_have_fesetround=no 15488fi 15489rm -f core conftest.err conftest.$ac_objext \ 15490 conftest$ac_exeext conftest.$ac_ext 15491LIBS="$saved_LIBS" 15492 15493fi 15494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5 15495$as_echo "$mpfr_cv_have_fesetround" >&6; } 15496if test "$mpfr_cv_have_fesetround" = "yes"; then 15497 15498$as_echo "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h 15499 15500fi 15501 15502if test -n "$GCC"; then 15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5 15504$as_echo_n "checking for gcc float-conversion bug... " >&6; } 15505if ${mpfr_cv_gcc_floatconv_bug+:} false; then : 15506 $as_echo_n "(cached) " >&6 15507else 15508 15509 saved_LIBS="$LIBS" 15510 LIBS="$LIBS $MPFR_LIBM" 15511 if test "$cross_compiling" = yes; then : 15512 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store" 15513else 15514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15515/* end confdefs.h. */ 15516 15517#include <float.h> 15518#ifdef MPFR_HAVE_FESETROUND 15519#include <fenv.h> 15520#endif 15521static double get_max (void); 15522int main (void) { 15523 double x = 0.5; 15524 double y; 15525 int i; 15526 for (i = 1; i <= 11; i++) 15527 x *= x; 15528 if (x != 0) 15529 return 1; 15530#ifdef MPFR_HAVE_FESETROUND 15531 /* Useful test for the G4 PowerPC */ 15532 fesetround(FE_TOWARDZERO); 15533 x = y = get_max (); 15534 x *= 2.0; 15535 if (x != y) 15536 return 1; 15537#endif 15538 return 0; 15539} 15540static double get_max (void) { static volatile double d = DBL_MAX; return d; } 15541 15542_ACEOF 15543if ac_fn_c_try_run "$LINENO"; then : 15544 mpfr_cv_gcc_floatconv_bug="no" 15545else 15546 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store" 15547fi 15548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15549 conftest.$ac_objext conftest.beam conftest.$ac_ext 15550fi 15551 15552 LIBS="$saved_LIBS" 15553 15554fi 15555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5 15556$as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; } 15557 if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then 15558 CFLAGS="$CFLAGS -ffloat-store" 15559 fi 15560fi 15561 15562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for subnormal double-precision numbers" >&5 15563$as_echo_n "checking for subnormal double-precision numbers... " >&6; } 15564if ${mpfr_cv_have_denorms+:} false; then : 15565 $as_echo_n "(cached) " >&6 15566else 15567 15568if test "$cross_compiling" = yes; then : 15569 mpfr_cv_have_denorms="cannot test, assume no" 15570else 15571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15572/* end confdefs.h. */ 15573 15574#include <stdio.h> 15575int main (void) { 15576 double x = 2.22507385850720138309e-308; 15577 fprintf (stderr, "%e\n", x / 2.0); 15578 return 2.0 * (double) (x / 2.0) != x; 15579} 15580 15581_ACEOF 15582if ac_fn_c_try_run "$LINENO"; then : 15583 mpfr_cv_have_denorms="yes" 15584else 15585 mpfr_cv_have_denorms="no" 15586fi 15587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15588 conftest.$ac_objext conftest.beam conftest.$ac_ext 15589fi 15590 15591 15592fi 15593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_denorms" >&5 15594$as_echo "$mpfr_cv_have_denorms" >&6; } 15595if test "$mpfr_cv_have_denorms" = "yes"; then 15596 15597$as_echo "#define HAVE_DENORMS 1" >>confdefs.h 15598 15599fi 15600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for subnormal single-precision numbers" >&5 15601$as_echo_n "checking for subnormal single-precision numbers... " >&6; } 15602if ${mpfr_cv_have_denorms_flt+:} false; then : 15603 $as_echo_n "(cached) " >&6 15604else 15605 15606if test "$cross_compiling" = yes; then : 15607 mpfr_cv_have_denorms_flt="cannot test, assume no" 15608else 15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15610/* end confdefs.h. */ 15611 15612#include <stdio.h> 15613int main (void) { 15614 float x = 1.17549435082229e-38; 15615 fprintf (stderr, "%e\n", x / 2.0); 15616 return 2.0 * (float) (x / 2.0) != x; 15617} 15618 15619_ACEOF 15620if ac_fn_c_try_run "$LINENO"; then : 15621 mpfr_cv_have_denorms_flt="yes" 15622else 15623 mpfr_cv_have_denorms_flt="no" 15624fi 15625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15626 conftest.$ac_objext conftest.beam conftest.$ac_ext 15627fi 15628 15629 15630fi 15631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_denorms_flt" >&5 15632$as_echo "$mpfr_cv_have_denorms_flt" >&6; } 15633if test "$mpfr_cv_have_denorms_flt" = "yes"; then 15634 15635$as_echo "#define HAVE_DENORMS_FLT 1" >>confdefs.h 15636 15637fi 15638 15639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed zeros" >&5 15640$as_echo_n "checking for signed zeros... " >&6; } 15641if ${mpfr_cv_have_signedz+:} false; then : 15642 $as_echo_n "(cached) " >&6 15643else 15644 15645if test "$cross_compiling" = yes; then : 15646 mpfr_cv_have_signedz="cannot test, assume no" 15647else 15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15649/* end confdefs.h. */ 15650 15651int main (void) { 15652 return 1.0 / 0.0 == 1.0 / -0.0; 15653} 15654 15655_ACEOF 15656if ac_fn_c_try_run "$LINENO"; then : 15657 mpfr_cv_have_signedz="yes" 15658else 15659 mpfr_cv_have_signedz="no" 15660fi 15661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15662 conftest.$ac_objext conftest.beam conftest.$ac_ext 15663fi 15664 15665 15666fi 15667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_signedz" >&5 15668$as_echo "$mpfr_cv_have_signedz" >&6; } 15669if test "$mpfr_cv_have_signedz" = "yes"; then 15670 15671$as_echo "#define HAVE_SIGNEDZ 1" >>confdefs.h 15672 15673fi 15674 15675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the FP division by 0 fails" >&5 15676$as_echo_n "checking if the FP division by 0 fails... " >&6; } 15677if ${mpfr_cv_errdivzero+:} false; then : 15678 $as_echo_n "(cached) " >&6 15679else 15680 15681if test "$cross_compiling" = yes; then : 15682 mpfr_cv_errdivzero="cannot test, assume no" 15683else 15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15685/* end confdefs.h. */ 15686 15687int main (void) { 15688 volatile double d = 0.0, x; 15689 x = 0.0 / d; 15690 x = 1.0 / d; 15691 (void) x; 15692 return 0; 15693} 15694 15695_ACEOF 15696if ac_fn_c_try_run "$LINENO"; then : 15697 mpfr_cv_errdivzero="no" 15698else 15699 mpfr_cv_errdivzero="yes" 15700fi 15701rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15702 conftest.$ac_objext conftest.beam conftest.$ac_ext 15703fi 15704 15705 15706fi 15707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_errdivzero" >&5 15708$as_echo "$mpfr_cv_errdivzero" >&6; } 15709if test "$mpfr_cv_errdivzero" = "yes"; then 15710 15711$as_echo "#define MPFR_ERRDIVZERO 1" >>confdefs.h 15712 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The floating-point division by 0 fails instead of" >&5 15714$as_echo "$as_me: WARNING: The floating-point division by 0 fails instead of" >&2;} 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: returning a special value: NaN or infinity. Tests" >&5 15716$as_echo "$as_me: WARNING: returning a special value: NaN or infinity. Tests" >&2;} 15717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: involving a FP division by 0 will be disabled." >&5 15718$as_echo "$as_me: WARNING: involving a FP division by 0 will be disabled." >&2;} 15719fi 15720 15721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5 15722$as_echo_n "checking if NAN == NAN... " >&6; } 15723if ${mpfr_cv_nanisnan+:} false; then : 15724 $as_echo_n "(cached) " >&6 15725else 15726 15727if test "$cross_compiling" = yes; then : 15728 mpfr_cv_nanisnan="cannot test, assume no" 15729else 15730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15731/* end confdefs.h. */ 15732 15733#include <stdio.h> 15734#include <math.h> 15735#ifndef NAN 15736# define NAN (0.0/0.0) 15737#endif 15738int main (void) { 15739 double d; 15740 d = NAN; 15741 return d != d; 15742} 15743 15744_ACEOF 15745if ac_fn_c_try_run "$LINENO"; then : 15746 mpfr_cv_nanisnan="yes" 15747else 15748 mpfr_cv_nanisnan="no" 15749fi 15750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15751 conftest.$ac_objext conftest.beam conftest.$ac_ext 15752fi 15753 15754 15755fi 15756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5 15757$as_echo "$mpfr_cv_nanisnan" >&6; } 15758if test "$mpfr_cv_nanisnan" = "yes"; then 15759 15760$as_echo "#define MPFR_NANISNAN 1" >>confdefs.h 15761 15762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5 15763$as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;} 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5 15765$as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;} 15766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5 15767$as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;} 15768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used. You" >&5 15769$as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used. You" >&2;} 15770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5 15771$as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;} 15772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5 15773$as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;} 15774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5 15775$as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;} 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5 15777$as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;} 15778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5 15779$as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;} 15780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5 15781$as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;} 15782fi 15783 15784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5 15785$as_echo_n "checking if charset has consecutive values... " >&6; } 15786if test "$cross_compiling" = yes; then : 15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 15788$as_echo "cannot test" >&6; } 15789else 15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15791/* end confdefs.h. */ 15792 15793char *number = "0123456789"; 15794char *lower = "abcdefghijklmnopqrstuvwxyz"; 15795char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 15796 15797int 15798main (void) 15799{ 15800 15801 int i; 15802 unsigned char *p; 15803 for (p = (unsigned char*) number, i = 0; i < 9; i++) 15804 if ( (*p)+1 != *(p+1) ) return 1; 15805 for (p = (unsigned char*) lower, i = 0; i < 25; i++) 15806 if ( (*p)+1 != *(p+1) ) return 1; 15807 for (p = (unsigned char*) upper, i = 0; i < 25; i++) 15808 if ( (*p)+1 != *(p+1) ) return 1; 15809 15810 ; 15811 return 0; 15812} 15813_ACEOF 15814if ac_fn_c_try_run "$LINENO"; then : 15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15816$as_echo "yes" >&6; } 15817else 15818 15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15820$as_echo "no" >&6; } 15821 15822$as_echo "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h 15823 15824 15825fi 15826rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15827 conftest.$ac_objext conftest.beam conftest.$ac_ext 15828fi 15829 15830 15831saved_LIBS="$LIBS" 15832LIBS="$LIBS $MPFR_LIBM" 15833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5 15834$as_echo_n "checking for math/round... " >&6; } 15835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15836/* end confdefs.h. */ 15837 15838#include <math.h> 15839static int f (double (*func)(double)) { return 0; } 15840 15841int 15842main (void) 15843{ 15844 15845 return f(round); 15846 15847 ; 15848 return 0; 15849} 15850_ACEOF 15851if ac_fn_c_try_link "$LINENO"; then : 15852 15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15854$as_echo "yes" >&6; } 15855 15856$as_echo "#define HAVE_ROUND 1" >>confdefs.h 15857 15858 15859else 15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15861$as_echo "no" >&6; } 15862fi 15863rm -f core conftest.err conftest.$ac_objext \ 15864 conftest$ac_exeext conftest.$ac_ext 15865 15866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5 15867$as_echo_n "checking for math/trunc... " >&6; } 15868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15869/* end confdefs.h. */ 15870 15871#include <math.h> 15872static int f (double (*func)(double)) { return 0; } 15873 15874int 15875main (void) 15876{ 15877 15878 return f(trunc); 15879 15880 ; 15881 return 0; 15882} 15883_ACEOF 15884if ac_fn_c_try_link "$LINENO"; then : 15885 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15887$as_echo "yes" >&6; } 15888 15889$as_echo "#define HAVE_TRUNC 1" >>confdefs.h 15890 15891 15892else 15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15894$as_echo "no" >&6; } 15895fi 15896rm -f core conftest.err conftest.$ac_objext \ 15897 conftest$ac_exeext conftest.$ac_ext 15898 15899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5 15900$as_echo_n "checking for math/floor... " >&6; } 15901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15902/* end confdefs.h. */ 15903 15904#include <math.h> 15905static int f (double (*func)(double)) { return 0; } 15906 15907int 15908main (void) 15909{ 15910 15911 return f(floor); 15912 15913 ; 15914 return 0; 15915} 15916_ACEOF 15917if ac_fn_c_try_link "$LINENO"; then : 15918 15919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15920$as_echo "yes" >&6; } 15921 15922$as_echo "#define HAVE_FLOOR 1" >>confdefs.h 15923 15924 15925else 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15927$as_echo "no" >&6; } 15928fi 15929rm -f core conftest.err conftest.$ac_objext \ 15930 conftest$ac_exeext conftest.$ac_ext 15931 15932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5 15933$as_echo_n "checking for math/ceil... " >&6; } 15934cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15935/* end confdefs.h. */ 15936 15937#include <math.h> 15938static int f (double (*func)(double)) { return 0; } 15939 15940int 15941main (void) 15942{ 15943 15944 return f(ceil); 15945 15946 ; 15947 return 0; 15948} 15949_ACEOF 15950if ac_fn_c_try_link "$LINENO"; then : 15951 15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15953$as_echo "yes" >&6; } 15954 15955$as_echo "#define HAVE_CEIL 1" >>confdefs.h 15956 15957 15958else 15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15960$as_echo "no" >&6; } 15961fi 15962rm -f core conftest.err conftest.$ac_objext \ 15963 conftest$ac_exeext conftest.$ac_ext 15964 15965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/nearbyint" >&5 15966$as_echo_n "checking for math/nearbyint... " >&6; } 15967cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15968/* end confdefs.h. */ 15969 15970#include <math.h> 15971static int f (double (*func)(double)) { return 0; } 15972 15973int 15974main (void) 15975{ 15976 15977 return f(nearbyint); 15978 15979 ; 15980 return 0; 15981} 15982_ACEOF 15983if ac_fn_c_try_link "$LINENO"; then : 15984 15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15986$as_echo "yes" >&6; } 15987 15988$as_echo "#define HAVE_NEARBYINT 1" >>confdefs.h 15989 15990 15991else 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15993$as_echo "no" >&6; } 15994fi 15995rm -f core conftest.err conftest.$ac_objext \ 15996 conftest$ac_exeext conftest.$ac_ext 15997 15998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mulx_u64" >&5 15999$as_echo_n "checking for _mulx_u64... " >&6; } 16000if test "$cross_compiling" = yes; then : 16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5 16002$as_echo "cannot test, assume no" >&6; } 16003 16004else 16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006/* end confdefs.h. */ 16007 16008#include <immintrin.h> 16009 16010int 16011main (void) 16012{ 16013 16014 unsigned long long h1, h2; 16015 _mulx_u64(17, 42, &h1); 16016 _mulx_u64(-1, -1, &h2); 16017 return h1 == 0 && h2 == -2 ? 0 : 1; 16018 16019 ; 16020 return 0; 16021} 16022_ACEOF 16023if ac_fn_c_try_run "$LINENO"; then : 16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16025$as_echo "yes" >&6; } 16026 16027$as_echo "#define HAVE_MULX_U64 1" >>confdefs.h 16028 16029 16030else 16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16032$as_echo "no" >&6; } 16033 16034fi 16035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16036 conftest.$ac_objext conftest.beam conftest.$ac_ext 16037fi 16038 16039 16040LIBS="$saved_LIBS" 16041 16042 16043 16044 16045ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" 16046if test "x$ac_cv_type_long_double" = xyes; then : 16047 16048cat >>confdefs.h <<_ACEOF 16049#define HAVE_LONG_DOUBLE 1 16050_ACEOF 16051 16052 16053fi 16054 16055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`long double' floating point" >&5 16056$as_echo_n "checking format of \`long double' floating point... " >&6; } 16057if ${mpfr_cv_c_long_double_format+:} false; then : 16058 $as_echo_n "(cached) " >&6 16059else 16060 mpfr_cv_c_long_double_format=unknown 16061if test "$ac_cv_type_long_double" != yes; then 16062 mpfr_cv_c_long_double_format="not available" 16063else 16064 cat >conftest.c <<\EOF 16065 16066/* "before" is 16 bytes to ensure there's no padding between it and "x". 16067 We're not expecting any "long double" bigger than 16 bytes or with 16068 alignment requirements stricter than 16 bytes. */ 16069struct { 16070 char before[16]; 16071 long double x; 16072 char after[8]; 16073} foo = { 16074 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 16075 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' }, 16076 -123456789.0, 16077 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' } 16078}; 16079 16080EOF 16081 mpfr_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1" 16082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5 16083 (eval $mpfr_compile) 2>&5 16084 ac_status=$? 16085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16086 test $ac_status = 0; }; then 16087 cat >conftest.awk <<\EOF 16088 16089BEGIN { 16090 found = 0 16091} 16092 16093# got[] holds a sliding window of bytes read the input. got[0] is the most 16094# recent byte read, and got[31] the oldest byte read, so when looking to 16095# match some data the indices are "reversed". 16096# 16097{ 16098 for (f = 2; f <= NF; f++) 16099 { 16100 # new byte, shift others up 16101 for (i = 31; i >= 0; i--) 16102 got[i+1] = got[i]; 16103 got[0] = $f; 16104 16105 # end sequence 16106 if (got[7] != "376") continue 16107 if (got[6] != "334") continue 16108 if (got[5] != "272") continue 16109 if (got[4] != "230") continue 16110 if (got[3] != "166") continue 16111 if (got[2] != "124") continue 16112 if (got[1] != "062") continue 16113 if (got[0] != "020") continue 16114 16115 # start sequence, with 8-byte body 16116 if (got[23] == "001" && \ 16117 got[22] == "043" && \ 16118 got[21] == "105" && \ 16119 got[20] == "147" && \ 16120 got[19] == "211" && \ 16121 got[18] == "253" && \ 16122 got[17] == "315" && \ 16123 got[16] == "357") 16124 { 16125 saw = " (" got[15] \ 16126 " " got[14] \ 16127 " " got[13] \ 16128 " " got[12] \ 16129 " " got[11] \ 16130 " " got[10] \ 16131 " " got[9] \ 16132 " " got[8] ")" 16133 16134 if (got[15] == "301" && \ 16135 got[14] == "235" && \ 16136 got[13] == "157" && \ 16137 got[12] == "064" && \ 16138 got[11] == "124" && \ 16139 got[10] == "000" && \ 16140 got[9] == "000" && \ 16141 got[8] == "000") 16142 { 16143 print "IEEE double, big endian" 16144 found = 1 16145 exit 16146 } 16147 16148 if (got[15] == "000" && \ 16149 got[14] == "000" && \ 16150 got[13] == "000" && \ 16151 got[12] == "124" && \ 16152 got[11] == "064" && \ 16153 got[10] == "157" && \ 16154 got[9] == "235" && \ 16155 got[8] == "301") 16156 { 16157 print "IEEE double, little endian" 16158 found = 1 16159 exit 16160 } 16161 } 16162 16163 # start sequence, with 12-byte body 16164 if (got[27] == "001" && \ 16165 got[26] == "043" && \ 16166 got[25] == "105" && \ 16167 got[24] == "147" && \ 16168 got[23] == "211" && \ 16169 got[22] == "253" && \ 16170 got[21] == "315" && \ 16171 got[20] == "357") 16172 { 16173 saw = " (" got[19] \ 16174 " " got[18] \ 16175 " " got[17] \ 16176 " " got[16] \ 16177 " " got[15] \ 16178 " " got[14] \ 16179 " " got[13] \ 16180 " " got[12] \ 16181 " " got[11] \ 16182 " " got[10] \ 16183 " " got[9] \ 16184 " " got[8] ")" 16185 16186 if (got[19] == "000" && \ 16187 got[18] == "000" && \ 16188 got[17] == "000" && \ 16189 got[16] == "000" && \ 16190 got[15] == "240" && \ 16191 got[14] == "242" && \ 16192 got[13] == "171" && \ 16193 got[12] == "353" && \ 16194 got[11] == "031" && \ 16195 got[10] == "300") 16196 { 16197 print "IEEE extended, little endian" 16198 found = 1 16199 exit 16200 } 16201 16202 if (got[19] == "300" && \ 16203 got[18] == "031" && \ 16204 got[17] == "000" && \ 16205 got[16] == "000" && \ 16206 got[15] == "353" && \ 16207 got[14] == "171" && \ 16208 got[13] == "242" && \ 16209 got[12] == "240" && \ 16210 got[11] == "000" && \ 16211 got[10] == "000" && \ 16212 got[09] == "000" && \ 16213 got[08] == "000") 16214 { 16215 # format found on m68k 16216 print "IEEE extended, big endian" 16217 found = 1 16218 exit 16219 } 16220 } 16221 16222 # start sequence, with 16-byte body 16223 if (got[31] == "001" && \ 16224 got[30] == "043" && \ 16225 got[29] == "105" && \ 16226 got[28] == "147" && \ 16227 got[27] == "211" && \ 16228 got[26] == "253" && \ 16229 got[25] == "315" && \ 16230 got[24] == "357") 16231 { 16232 saw = " (" got[23] \ 16233 " " got[22] \ 16234 " " got[21] \ 16235 " " got[20] \ 16236 " " got[19] \ 16237 " " got[18] \ 16238 " " got[17] \ 16239 " " got[16] \ 16240 " " got[15] \ 16241 " " got[14] \ 16242 " " got[13] \ 16243 " " got[12] \ 16244 " " got[11] \ 16245 " " got[10] \ 16246 " " got[9] \ 16247 " " got[8] ")" 16248 16249 if (got[23] == "000" && \ 16250 got[22] == "000" && \ 16251 got[21] == "000" && \ 16252 got[20] == "000" && \ 16253 got[19] == "240" && \ 16254 got[18] == "242" && \ 16255 got[17] == "171" && \ 16256 got[16] == "353" && \ 16257 got[15] == "031" && \ 16258 got[14] == "300") 16259 { 16260 print "IEEE extended, little endian" 16261 found = 1 16262 exit 16263 } 16264 16265 if (got[23] == "300" && \ 16266 got[22] == "031" && \ 16267 got[21] == "326" && \ 16268 got[20] == "363" && \ 16269 got[19] == "105" && \ 16270 got[18] == "100" && \ 16271 got[17] == "000" && \ 16272 got[16] == "000" && \ 16273 got[15] == "000" && \ 16274 got[14] == "000" && \ 16275 got[13] == "000" && \ 16276 got[12] == "000" && \ 16277 got[11] == "000" && \ 16278 got[10] == "000" && \ 16279 got[9] == "000" && \ 16280 got[8] == "000") 16281 { 16282 # format used on HP 9000/785 under HP-UX 16283 print "IEEE quad, big endian" 16284 found = 1 16285 exit 16286 } 16287 16288 if (got[23] == "000" && \ 16289 got[22] == "000" && \ 16290 got[21] == "000" && \ 16291 got[20] == "000" && \ 16292 got[19] == "000" && \ 16293 got[18] == "000" && \ 16294 got[17] == "000" && \ 16295 got[16] == "000" && \ 16296 got[15] == "000" && \ 16297 got[14] == "000" && \ 16298 got[13] == "100" && \ 16299 got[12] == "105" && \ 16300 got[11] == "363" && \ 16301 got[10] == "326" && \ 16302 got[9] == "031" && \ 16303 got[8] == "300") 16304 { 16305 print "IEEE quad, little endian" 16306 found = 1 16307 exit 16308 } 16309 16310 if (got[23] == "301" && \ 16311 got[22] == "235" && \ 16312 got[21] == "157" && \ 16313 got[20] == "064" && \ 16314 got[19] == "124" && \ 16315 got[18] == "000" && \ 16316 got[17] == "000" && \ 16317 got[16] == "000" && \ 16318 got[15] == "000" && \ 16319 got[14] == "000" && \ 16320 got[13] == "000" && \ 16321 got[12] == "000" && \ 16322 got[11] == "000" && \ 16323 got[10] == "000" && \ 16324 got[9] == "000" && \ 16325 got[8] == "000") 16326 { 16327 # format used on 32-bit PowerPC (Mac OS X and Debian GNU/Linux) 16328 print "possibly double-double, big endian" 16329 found = 1 16330 exit 16331 } 16332 16333 if (got[23] == "000" && \ 16334 got[22] == "000" && \ 16335 got[21] == "000" && \ 16336 got[20] == "124" && \ 16337 got[19] == "064" && \ 16338 got[18] == "157" && \ 16339 got[17] == "235" && \ 16340 got[16] == "301" && \ 16341 got[15] == "000" && \ 16342 got[14] == "000" && \ 16343 got[13] == "000" && \ 16344 got[12] == "000" && \ 16345 got[11] == "000" && \ 16346 got[10] == "000" && \ 16347 got[9] == "000" && \ 16348 got[8] == "000") 16349 { 16350 # format used on ppc64le 16351 print "possibly double-double, little endian" 16352 found = 1 16353 exit 16354 } 16355 } 16356 } 16357} 16358 16359END { 16360 if (! found) 16361 print "unknown", saw 16362} 16363 16364EOF 16365 mpfr_cv_c_long_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk` 16366 case $mpfr_cv_c_long_double_format in 16367 unknown*) 16368 echo "cannot match anything, conftest.$OBJEXT contains" >&5 16369 od -b conftest.$OBJEXT >&5 16370 ;; 16371 esac 16372 else 16373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5 16374$as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;} 16375 fi 16376fi 16377rm -f conftest* 16378 16379fi 16380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5 16381$as_echo "$mpfr_cv_c_long_double_format" >&6; } 16382 16383 16384 16385case $mpfr_cv_c_long_double_format in 16386 "IEEE double, big endian") 16387 $as_echo "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h 16388 16389 ;; 16390 "IEEE double, little endian") 16391 $as_echo "#define HAVE_LDOUBLE_IS_DOUBLE 1" >>confdefs.h 16392 16393 ;; 16394 "IEEE extended, little endian") 16395 $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h 16396 16397 ;; 16398 "IEEE extended, big endian") 16399 $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_BIG 1" >>confdefs.h 16400 16401 ;; 16402 "IEEE quad, big endian") 16403 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h 16404 16405 ;; 16406 "IEEE quad, little endian") 16407 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_LITTLE 1" >>confdefs.h 16408 16409 ;; 16410 "possibly double-double, big endian") 16411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5 16412$as_echo "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;} 16413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5 16414$as_echo "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;} 16415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5 16416$as_echo "$as_me: WARNING: You can safely ignore this warning, though." >&2;} 16417 $as_echo "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h 16418 16419 ;; 16420 "possibly double-double, little endian") 16421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This format is known on GCC/PowerPC platforms," >&5 16422$as_echo "$as_me: WARNING: This format is known on GCC/PowerPC platforms," >&2;} 16423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: but due to GCC PR26374, we can't test further." >&5 16424$as_echo "$as_me: WARNING: but due to GCC PR26374, we can't test further." >&2;} 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You can safely ignore this warning, though." >&5 16426$as_echo "$as_me: WARNING: You can safely ignore this warning, though." >&2;} 16427 $as_echo "#define HAVE_LDOUBLE_MAYBE_DOUBLE_DOUBLE 1" >>confdefs.h 16428 16429 ;; 16430 unknown* | "not available") 16431 ;; 16432 *) 16433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized long double FP format: $mpfr_cv_c_long_double_format" >&5 16434$as_echo "$as_me: WARNING: unrecognized long double FP format: $mpfr_cv_c_long_double_format" >&2;} 16435 ;; 16436esac 16437 16438 16439if test "$enable_logging" = yes; then 16440 if test "$enable_thread_safe" = yes; then 16441 as_fn_error $? "enable either \`Logging' or \`thread-safe', not both" "$LINENO" 5 16442 else 16443 enable_thread_safe=no 16444 fi 16445fi 16446 16447if test "$enable_thread_safe" != no; then 16448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support using C11" >&5 16449$as_echo_n "checking for TLS support using C11... " >&6; } 16450saved_CPPFLAGS="$CPPFLAGS" 16451CPPFLAGS="$CPPFLAGS -I$srcdir/src" 16452if test "$cross_compiling" = yes; then : 16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5 16454$as_echo "cannot test, assume no" >&6; } 16455 16456else 16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16458/* end confdefs.h. */ 16459 16460#define MPFR_USE_THREAD_SAFE 1 16461#define MPFR_USE_C11_THREAD_SAFE 1 16462#include "mpfr-thread.h" 16463MPFR_THREAD_ATTR int x = 17; 16464int main (void) { 16465 return x != 17; 16466} 16467 16468_ACEOF 16469if ac_fn_c_try_run "$LINENO"; then : 16470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16471$as_echo "yes" >&6; } 16472 16473$as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h 16474 16475 16476$as_echo "#define MPFR_USE_C11_THREAD_SAFE 1" >>confdefs.h 16477 16478 tls_c11_support=yes 16479 enable_thread_safe=yes 16480 16481else 16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16483$as_echo "no" >&6; } 16484 16485fi 16486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16487 conftest.$ac_objext conftest.beam conftest.$ac_ext 16488fi 16489 16490CPPFLAGS="$saved_CPPFLAGS" 16491 16492if test "$tls_c11_support" != "yes" 16493then 16494 16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5 16496$as_echo_n "checking for TLS support... " >&6; } 16497 saved_CPPFLAGS="$CPPFLAGS" 16498 CPPFLAGS="$CPPFLAGS -I$srcdir/src" 16499 if test "$cross_compiling" = yes; then : 16500 if test "$enable_thread_safe" = yes; then 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume yes" >&5 16502$as_echo "cannot test, assume yes" >&6; } 16503 16504$as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h 16505 16506 else 16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test, assume no" >&5 16508$as_echo "cannot test, assume no" >&6; } 16509 fi 16510 16511else 16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16513/* end confdefs.h. */ 16514 16515 #define MPFR_USE_THREAD_SAFE 1 16516 #include "mpfr-thread.h" 16517 MPFR_THREAD_ATTR int x = 17; 16518 int main (void) { 16519 return x != 17; 16520 } 16521 16522_ACEOF 16523if ac_fn_c_try_run "$LINENO"; then : 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16525$as_echo "yes" >&6; } 16526 16527$as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h 16528 16529 enable_thread_safe=yes 16530 16531else 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16533$as_echo "no" >&6; } 16534 if test "$enable_thread_safe" = yes; then 16535 as_fn_error $? "please configure with --disable-thread-safe" "$LINENO" 5 16536 fi 16537 16538fi 16539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16540 conftest.$ac_objext conftest.beam conftest.$ac_ext 16541fi 16542 16543 CPPFLAGS="$saved_CPPFLAGS" 16544 fi 16545fi 16546 16547if test "$enable_decimal_float" != no; then 16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5 16549$as_echo_n "checking if compiler knows _Decimal64... " >&6; } 16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16551/* end confdefs.h. */ 16552_Decimal64 x; 16553int 16554main (void) 16555{ 16556 16557 ; 16558 return 0; 16559} 16560_ACEOF 16561if ac_fn_c_try_compile "$LINENO"; then : 16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16563$as_echo "yes" >&6; } 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5 16565$as_echo_n "checking decimal float format... " >&6; } 16566 if test "$cross_compiling" = yes; then : 16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming DPD" >&5 16568$as_echo "assuming DPD" >&6; } 16569 $as_echo "#define DPD_FORMAT 1" >>confdefs.h 16570 16571 16572$as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h 16573 16574else 16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16576/* end confdefs.h. */ 16577 16578#include <stdlib.h> 16579 16580int 16581main (void) 16582{ 16583 16584volatile _Decimal64 x = 1; 16585union { double d; _Decimal64 d64; } y; 16586if (x != x) return 83; 16587y.d64 = 1234567890123456.0dd; 16588return y.d == 0.14894469406741037E-123 ? 80 : 16589 y.d == 0.59075095508629822E-68 ? 81 : 82; 16590 16591 ; 16592 return 0; 16593} 16594_ACEOF 16595if ac_fn_c_try_run "$LINENO"; then : 16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal error" >&5 16597$as_echo "internal error" >&6; } 16598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16600as_fn_error $? "unexpected exit status 0 16601See \`config.log' for more details" "$LINENO" 5; } 16602else 16603 d64_exit_status=$? 16604 case "$d64_exit_status" in 16605 80) { $as_echo "$as_me:${as_lineno-$LINENO}: result: DPD" >&5 16606$as_echo "DPD" >&6; } 16607 16608$as_echo "#define DPD_FORMAT 1" >>confdefs.h 16609 16610 16611$as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h 16612 ;; 16613 81) { $as_echo "$as_me:${as_lineno-$LINENO}: result: BID" >&5 16614$as_echo "BID" >&6; } 16615 16616$as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h 16617 ;; 16618 82) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither DPD nor BID" >&5 16619$as_echo "neither DPD nor BID" >&6; } 16620 if test "$enable_decimal_float" = yes; then 16621 as_fn_error $? "unsupported decimal float format. 16622Please build MPFR without --enable-decimal-float." "$LINENO" 5 16623 fi ;; 16624 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown (exit status $d64_exit_status)" >&5 16625$as_echo "unknown (exit status $d64_exit_status)" >&6; } 16626 if test "$enable_decimal_float" = yes; then 16627 as_fn_error $? "internal or link error. 16628Please build MPFR without --enable-decimal-float." "$LINENO" 5 16629 fi ;; 16630 esac 16631fi 16632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16633 conftest.$ac_objext conftest.beam conftest.$ac_ext 16634fi 16635 16636 16637else 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16639$as_echo "no" >&6; } 16640 if test "$enable_decimal_float" = yes; then 16641 as_fn_error $? "compiler doesn't know _Decimal64 (ISO/IEC TR 24732). 16642Please use another compiler or build MPFR without --enable-decimal-float." "$LINENO" 5 16643 fi 16644fi 16645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16646fi 16647 16648if test "$enable_float128" != no; then 16649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler knows __float128 with C99 constants" >&5 16650$as_echo_n "checking if compiler knows __float128 with C99 constants... " >&6; } 16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16652/* end confdefs.h. */ 16653__float128 x = 0x1.fp+16383q; 16654int 16655main (void) 16656{ 16657 16658 ; 16659 return 0; 16660} 16661_ACEOF 16662if ac_fn_c_try_compile "$LINENO"; then : 16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16664$as_echo "yes" >&6; } 16665 16666$as_echo "#define MPFR_WANT_FLOAT128 1" >>confdefs.h 16667 16668else 16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16670$as_echo "no" >&6; } 16671 if test "$enable_float128" = yes; then 16672 as_fn_error $? "compiler doesn't know __float128 with C99 constants 16673Please use another compiler or build MPFR without --enable-float128." "$LINENO" 5 16674 fi 16675fi 16676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16677fi 16678 16679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Static Assertion support" >&5 16680$as_echo_n "checking for Static Assertion support... " >&6; } 16681saved_CPPFLAGS="$CPPFLAGS" 16682CPPFLAGS="$CPPFLAGS -I$srcdir/src" 16683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16684/* end confdefs.h. */ 16685 16686#define MPFR_USE_STATIC_ASSERT 1 16687#include "mpfr-sassert.h" 16688 16689/* Test if Static Assertions work */ 16690MPFR_DECL_STATIC_ASSERT(sizeof(char) <= sizeof(int)); 16691 16692int main (void) { 16693 MPFR_DECL_STATIC_ASSERT(sizeof(int) <= sizeof(long)); 16694 int x; 16695 (void) (x = 1); /* cast to void: avoid a warning, at least with GCC */ 16696 /* Test of the macro after a declaraction and a statement. */ 16697 MPFR_STAT_STATIC_ASSERT(sizeof(short) <= sizeof(int)); 16698 return 0; 16699} 16700 16701_ACEOF 16702if ac_fn_c_try_compile "$LINENO"; then : 16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16704$as_echo "yes" >&6; } 16705 16706$as_echo "#define MPFR_USE_STATIC_ASSERT 1" >>confdefs.h 16707 16708 16709else 16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16711$as_echo "no" >&6; } 16712 16713fi 16714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16715CPPFLAGS="$saved_CPPFLAGS" 16716 16717if test "$enable_lto" = "yes" ; then 16718 16719CFLAGS="$CFLAGS -flto" 16720 16721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation flag '-flto' is supported..." >&5 16722$as_echo_n "checking if Link Time Optimisation flag '-flto' is supported...... " >&6; } 16723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16724/* end confdefs.h. */ 16725 16726int main(void) { return 0; } 16727 16728_ACEOF 16729if ac_fn_c_try_compile "$LINENO"; then : 16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16731$as_echo "yes" >&6; } 16732 16733else 16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16735$as_echo "no" >&6; } 16736 as_fn_error $? "Link Time Optimisation flag '-flto' is not supported." "$LINENO" 5 16737 16738fi 16739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16740 16741mpfr_compile_and_link() 16742{ 16743 echo "int f(int); int f(int n) { return n; }" > conftest-f.c 16744 echo "int f(int); int main() { return f(0); }" > conftest-m.c 16745 echo "$CC $CFLAGS -c -o conftest-f.o conftest-f.c" >&2 16746 $CC $CFLAGS -c -o conftest-f.o conftest-f.c || return 1 16747 echo "$AR cru conftest-lib.a conftest-f.o" >&2 16748 $AR cru conftest-lib.a conftest-f.o || return 1 16749 echo "$RANLIB conftest-lib.a" >&2 16750 $RANLIB conftest-lib.a || return 1 16751 echo "$CC $CFLAGS conftest-m.c conftest-lib.a" >&2 16752 $CC $CFLAGS conftest-m.c conftest-lib.a || return 1 16753 return 0 16754} 16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5 16756$as_echo_n "checking if Link Time Optimisation works with AR=$AR... " >&6; } 16757 if mpfr_compile_and_link 2> conftest-log1.txt ; then 16758 cat conftest-log1.txt >&5 16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16760$as_echo "yes" >&6; } 16761 else 16762 cat conftest-log1.txt >&5 16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16764$as_echo "no" >&6; } 16765 AR=gcc-ar 16766 RANLIB=gcc-ranlib 16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Link Time Optimisation works with AR=$AR" >&5 16768$as_echo_n "checking if Link Time Optimisation works with AR=$AR... " >&6; } 16769 if mpfr_compile_and_link 2> conftest-log2.txt; then 16770 cat conftest-log2.txt >&5 16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16772$as_echo "yes" >&6; } 16773 else 16774 cat conftest-log2.txt >&5 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16776$as_echo "no" >&6; } 16777 as_fn_error $? "Link Time Optimisation is not supported (see config.log for details)." "$LINENO" 5 16778 fi 16779 fi 16780rm -f conftest* 16781 16782fi 16783 16784if test "$mpfr_want_shared_cache" = yes ;then 16785 16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if shared cache is supported" >&5 16787$as_echo_n "checking if shared cache is supported... " >&6; } 16788 if test "$enable_logging" = yes ; then 16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16790$as_echo "no" >&6; } 16791 as_fn_error $? "shared cache does not work with logging support." "$LINENO" 5 16792 elif test "$enable_thread_safe" != yes ; then 16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16794$as_echo "no" >&6; } 16795 as_fn_error $? "shared cache needs thread attribute." "$LINENO" 5 16796 elif test "$ax_pthread_ok" != yes && "$mpfr_c11_thread_ok" != yes ; then 16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16798$as_echo "no" >&6; } 16799 as_fn_error $? "shared cache needs pthread/C11 library." "$LINENO" 5 16800 else 16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16802$as_echo "yes" >&6; } 16803 if test "$ax_pthread_ok" = yes ; then 16804 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16805 LIBS="$LIBS $PTHREAD_LIBS" 16806 fi 16807 fi 16808 16809fi 16810 16811 16812 16813# (Based on GMP 5.1) 16814# clock_gettime is in librt on *-*-osf5.1 and on glibc < 2.17, so add -lrt to 16815# TUNE_LIBS if needed (e.g. if clock_gettime is not already in the C library). 16816# On linux (tested on x86_32, 2.6.26), clock_getres reports ns accuracy, 16817# while in a quick test on osf, clock_getres said only 1 millisecond. 16818old_LIBS="$LIBS" 16819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 16820$as_echo_n "checking for library containing clock_gettime... " >&6; } 16821if ${ac_cv_search_clock_gettime+:} false; then : 16822 $as_echo_n "(cached) " >&6 16823else 16824 ac_func_search_save_LIBS=$LIBS 16825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16826/* end confdefs.h. */ 16827 16828/* Override any GCC internal prototype to avoid an error. 16829 Use char because int might match the return type of a GCC 16830 builtin and then its argument prototype would still apply. */ 16831#ifdef __cplusplus 16832extern "C" 16833#endif 16834char clock_gettime (); 16835int 16836main (void) 16837{ 16838return clock_gettime (); 16839 ; 16840 return 0; 16841} 16842_ACEOF 16843for ac_lib in '' rt; do 16844 if test -z "$ac_lib"; then 16845 ac_res="none required" 16846 else 16847 ac_res=-l$ac_lib 16848 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16849 fi 16850 if ac_fn_c_try_link "$LINENO"; then : 16851 ac_cv_search_clock_gettime=$ac_res 16852fi 16853rm -f core conftest.err conftest.$ac_objext \ 16854 conftest$ac_exeext 16855 if ${ac_cv_search_clock_gettime+:} false; then : 16856 break 16857fi 16858done 16859if ${ac_cv_search_clock_gettime+:} false; then : 16860 16861else 16862 ac_cv_search_clock_gettime=no 16863fi 16864rm conftest.$ac_ext 16865LIBS=$ac_func_search_save_LIBS 16866fi 16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 16868$as_echo "$ac_cv_search_clock_gettime" >&6; } 16869ac_res=$ac_cv_search_clock_gettime 16870if test "$ac_res" != no; then : 16871 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16872 16873 16874$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 16875 16876fi 16877 16878TUNE_LIBS="$LIBS" 16879LIBS="$old_LIBS" 16880 16881 16882 16883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5 16884$as_echo_n "checking for gmp.h... " >&6; } 16885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16886/* end confdefs.h. */ 16887 16888#include "gmp.h" 16889 16890_ACEOF 16891if ac_fn_c_try_compile "$LINENO"; then : 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16893$as_echo "yes" >&6; } 16894else 16895 16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16897$as_echo "no" >&6; } 16898 as_fn_error $? "gmp.h can't be found, or is unusable." "$LINENO" 5 16899 16900fi 16901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16902 16903 16904 16905case $host in 16906 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5 16908$as_echo_n "checking for DLL/static GMP... " >&6; } 16909 if test "$enable_shared" = yes; then 16910 MPFR_LDFLAGS="$MPFR_LDFLAGS -no-undefined" 16911 LIBMPFR_LDFLAGS="$LIBMPFR_LDFLAGS -Wl,--output-def,.libs/libmpfr-6.dll.def" 16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16913/* end confdefs.h. */ 16914 16915#include "gmp.h" 16916#if !__GMP_LIBGMP_DLL 16917# error "Dead man" 16918error 16919#endif 16920 16921int 16922main (void) 16923{ 16924 16925 ; 16926 return 0; 16927} 16928_ACEOF 16929if ac_fn_c_try_compile "$LINENO"; then : 16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5 16931$as_echo "DLL" >&6; } 16932else 16933 16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 16935$as_echo "static" >&6; } 16936 as_fn_error $? "libgmp isn't provided as a DLL: use --enable-static --disable-shared" "$LINENO" 5 16937fi 16938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16939 else 16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16941/* end confdefs.h. */ 16942 16943#include "gmp.h" 16944#if __GMP_LIBGMP_DLL 16945# error "Dead man" 16946error 16947#endif 16948 16949int 16950main (void) 16951{ 16952 16953 ; 16954 return 0; 16955} 16956_ACEOF 16957if ac_fn_c_try_compile "$LINENO"; then : 16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 16959$as_echo "static" >&6; } 16960else 16961 16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5 16963$as_echo "DLL" >&6; } 16964 as_fn_error $? "libgmp is provided as a DLL: use --disable-static --enable-shared" "$LINENO" 5 16965fi 16966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16967 fi 16968 ;; 16969esac 16970 16971case $host in 16972 *-*-linux*) 16973 if test -n "$LD_LIBRARY_PATH"; then 16974 saved_LDFLAGS="$LDFLAGS" 16975 LDFLAGS="$LDFLAGS -Wl,--disable-new-dtags" 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5 16977$as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; } 16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16979/* end confdefs.h. */ 16980 16981int main (void) { return 0; } 16982 16983_ACEOF 16984if ac_fn_c_try_link "$LINENO"; then : 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5 16986$as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; } 16987else 16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16989$as_echo "no" >&6; } 16990 LDFLAGS="$saved_LDFLAGS" 16991 16992fi 16993rm -f core conftest.err conftest.$ac_objext \ 16994 conftest$ac_exeext conftest.$ac_ext 16995 fi 16996 ;; 16997esac 16998 16999 17000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5 17001$as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; } 17002if ${gmp_cv_c_attribute_mode+:} false; then : 17003 $as_echo_n "(cached) " >&6 17004else 17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17006/* end confdefs.h. */ 17007typedef int SItype __attribute__ ((mode (SI))); 17008int 17009main (void) 17010{ 17011 17012 ; 17013 return 0; 17014} 17015_ACEOF 17016if ac_fn_c_try_compile "$LINENO"; then : 17017 gmp_cv_c_attribute_mode=yes 17018else 17019 gmp_cv_c_attribute_mode=no 17020fi 17021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17022 17023fi 17024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5 17025$as_echo "$gmp_cv_c_attribute_mode" >&6; } 17026if test $gmp_cv_c_attribute_mode = yes; then 17027 17028$as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h 17029 17030fi 17031 17032 17033 17034 17035if test -z "$enable_mini_gmp" ; then 17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5 17037$as_echo_n "checking for recent GMP... " >&6; } 17038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17039/* end confdefs.h. */ 17040 17041#include "gmp.h" 17042#if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 500) 17043# error "GMP 5.0.0 or newer is required" 17044error 17045#endif 17046 17047_ACEOF 17048if ac_fn_c_try_compile "$LINENO"; then : 17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17050$as_echo "yes" >&6; } 17051else 17052 17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17054$as_echo "no" >&6; } 17055 as_fn_error $? "GMP 5.0.0 or newer is required" "$LINENO" 5 17056 17057fi 17058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17059fi 17060 17061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking usable gmp.h at link time" >&5 17062$as_echo_n "checking usable gmp.h at link time... " >&6; } 17063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17064/* end confdefs.h. */ 17065 17066#include "gmp.h" 17067 17068int 17069main (void) 17070{ 17071 17072 ; 17073 return 0; 17074} 17075_ACEOF 17076if ac_fn_c_try_link "$LINENO"; then : 17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17078$as_echo "yes" >&6; } 17079else 17080 17081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17082$as_echo "no" >&6; } 17083 as_fn_error $? "there is an incompatibility between gmp.h and the compiler. 17084See 'config.log' for details." "$LINENO" 5 17085 17086fi 17087rm -f core conftest.err conftest.$ac_objext \ 17088 conftest$ac_exeext conftest.$ac_ext 17089 17090if test "$use_gmp_build" = yes ; then 17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5 17092$as_echo_n "checking for gmp internal files... " >&6; } 17093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17094/* end confdefs.h. */ 17095 17096 #include "gmp.h" 17097 #include "gmp-impl.h" 17098 #include "longlong.h" 17099 17100_ACEOF 17101if ac_fn_c_try_compile "$LINENO"; then : 17102 17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17104$as_echo "yes" >&6; } 17105 17106$as_echo "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h 17107 17108 17109else 17110 17111 as_fn_error $? "header files gmp-impl.h and longlong.h not found" "$LINENO" 5 17112 17113fi 17114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17115fi 17116 17117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency" >&5 17118$as_echo_n "checking for GMP_NUMB_BITS and sizeof(mp_limb_t) consistency... " >&6; } 17119if test "$cross_compiling" = yes; then : 17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 17121$as_echo "cannot test" >&6; } 17122else 17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17124/* end confdefs.h. */ 17125 17126#include <stdio.h> 17127#include <limits.h> 17128#include "gmp.h" 17129 17130int 17131main (void) 17132{ 17133 17134 if (GMP_NUMB_BITS == sizeof(mp_limb_t) * CHAR_BIT) 17135 return 0; 17136 fprintf (stderr, "GMP_NUMB_BITS = %ld\n", (long) GMP_NUMB_BITS); 17137 fprintf (stderr, "sizeof(mp_limb_t) = %ld\n", (long) sizeof(mp_limb_t)); 17138 fprintf (stderr, "sizeof(mp_limb_t) * CHAR_BIT = %ld != GMP_NUMB_BITS\n", 17139 (long) (sizeof(mp_limb_t) * CHAR_BIT)); 17140 return 1; 17141 17142 ; 17143 return 0; 17144} 17145_ACEOF 17146if ac_fn_c_try_run "$LINENO"; then : 17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17148$as_echo "yes" >&6; } 17149else 17150 17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17152$as_echo "no" >&6; } 17153 as_fn_error $? "GMP_NUMB_BITS and sizeof(mp_limb_t) are not consistent. 17154You probably need to change some of the GMP or MPFR compile options. 17155See 'config.log' for details (search for GMP_NUMB_BITS)." "$LINENO" 5 17156fi 17157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17158 conftest.$ac_objext conftest.beam conftest.$ac_ext 17159fi 17160 17161 17162as_ac_Lib=`$as_echo "ac_cv_lib_gmp_$test_libgmp" | $as_tr_sh` 17163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $test_libgmp in -lgmp" >&5 17164$as_echo_n "checking for $test_libgmp in -lgmp... " >&6; } 17165if eval \${$as_ac_Lib+:} false; then : 17166 $as_echo_n "(cached) " >&6 17167else 17168 ac_check_lib_save_LIBS=$LIBS 17169LIBS="-lgmp $LIBS" 17170cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17171/* end confdefs.h. */ 17172 17173/* Override any GCC internal prototype to avoid an error. 17174 Use char because int might match the return type of a GCC 17175 builtin and then its argument prototype would still apply. */ 17176#ifdef __cplusplus 17177extern "C" 17178#endif 17179char $test_libgmp (); 17180int 17181main (void) 17182{ 17183return $test_libgmp (); 17184 ; 17185 return 0; 17186} 17187_ACEOF 17188if ac_fn_c_try_link "$LINENO"; then : 17189 eval "$as_ac_Lib=yes" 17190else 17191 eval "$as_ac_Lib=no" 17192fi 17193rm -f core conftest.err conftest.$ac_objext \ 17194 conftest$ac_exeext conftest.$ac_ext 17195LIBS=$ac_check_lib_save_LIBS 17196fi 17197eval ac_res=\$$as_ac_Lib 17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17199$as_echo "$ac_res" >&6; } 17200if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17201 LIBS="-lgmp $LIBS" 17202else 17203 as_fn_error $? "libgmp not found or uses a different ABI (including static vs shared). 17204Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5 17205fi 17206 17207 17208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5 17209$as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; } 17210if test -z "$enable_mini_gmp" ; then 17211 saved_LD_RUN_PATH="$LD_RUN_PATH" 17212 LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path" 17213 export LD_RUN_PATH 17214 if test "$cross_compiling" = yes; then : 17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot test" >&5 17216$as_echo "cannot test" >&6; } 17217 17218else 17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17220/* end confdefs.h. */ 17221 17222#include <stdio.h> 17223#include <string.h> 17224#include "gmp.h" 17225 17226int 17227main (void) 17228{ 17229 17230 char buffer[100]; 17231 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR, 17232 __GNU_MP_VERSION_PATCHLEVEL); 17233 printf ("(%s/%s) ", buffer, gmp_version); 17234 fflush (stdout); 17235 /* Also put information in config.log (stderr) */ 17236 fprintf (stderr, "gmp.h: %s / libgmp: %s\n", buffer, gmp_version); 17237 if (strcmp (buffer, gmp_version) == 0) 17238 return 0; 17239 if (__GNU_MP_VERSION_PATCHLEVEL != 0) 17240 return 1; 17241 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR); 17242 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0; 17243 17244 ; 17245 return 0; 17246} 17247_ACEOF 17248if ac_fn_c_try_run "$LINENO"; then : 17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17250$as_echo "yes" >&6; } 17251 17252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP library vs header correctness" >&5 17253$as_echo_n "checking for GMP library vs header correctness... " >&6; } 17254if ${mpfr_cv_check_gmp+:} false; then : 17255 $as_echo_n "(cached) " >&6 17256else 17257 17258if test "$cross_compiling" = yes; then : 17259 mpfr_cv_check_gmp="cannot test, assume yes" 17260else 17261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17262/* end confdefs.h. */ 17263 17264#include <stdio.h> 17265#include <limits.h> 17266#include <gmp.h> 17267 17268int 17269main (void) 17270{ 17271 17272 fprintf (stderr, "GMP_NAIL_BITS = %d\n", (int) GMP_NAIL_BITS); 17273 fprintf (stderr, "GMP_NUMB_BITS = %d\n", (int) GMP_NUMB_BITS); 17274 fprintf (stderr, "mp_bits_per_limb = %d\n", (int) mp_bits_per_limb); 17275 fprintf (stderr, "sizeof(mp_limb_t) = %d\n", (int) sizeof(mp_limb_t)); 17276 if (GMP_NAIL_BITS != 0) 17277 { 17278 fprintf (stderr, "GMP_NAIL_BITS != 0\n"); 17279 return 1; 17280 } 17281 if (GMP_NUMB_BITS != mp_bits_per_limb) 17282 { 17283 fprintf (stderr, "GMP_NUMB_BITS != mp_bits_per_limb\n"); 17284 return 2; 17285 } 17286 if (GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT) 17287 { 17288 fprintf (stderr, "GMP_NUMB_BITS != sizeof(mp_limb_t) * CHAR_BIT\n"); 17289 return 3; 17290 } 17291 return 0; 17292 17293 ; 17294 return 0; 17295} 17296_ACEOF 17297if ac_fn_c_try_run "$LINENO"; then : 17298 mpfr_cv_check_gmp="yes" 17299else 17300 mpfr_cv_check_gmp="no (exit status is $?)" 17301fi 17302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17303 conftest.$ac_objext conftest.beam conftest.$ac_ext 17304fi 17305 17306 17307fi 17308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_check_gmp" >&5 17309$as_echo "$mpfr_cv_check_gmp" >&6; } 17310case $mpfr_cv_check_gmp in 17311no*) 17312 as_fn_error $? "bad GMP library or header - ABI problem? 17313See 'config.log' for details." "$LINENO" 5 17314esac 17315 17316 17317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for double-to-integer conversion bug" >&5 17318$as_echo_n "checking for double-to-integer conversion bug... " >&6; } 17319if ${mpfr_cv_dbl_int_bug+:} false; then : 17320 $as_echo_n "(cached) " >&6 17321else 17322 17323if test "$cross_compiling" = yes; then : 17324 mpfr_cv_dbl_int_bug="cannot test, assume not present" 17325else 17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17327/* end confdefs.h. */ 17328 17329#include <gmp.h> 17330 17331int 17332main (void) 17333{ 17334 17335 double d; 17336 mp_limb_t u; 17337 int i; 17338 17339 d = 1.0; 17340 for (i = 0; i < GMP_NUMB_BITS - 1; i++) 17341 d = d + d; 17342 u = (mp_limb_t) d; 17343 for (; i > 0; i--) 17344 { 17345 if (u & 1) 17346 break; 17347 u = u >> 1; 17348 } 17349 return (i == 0 && u == 1UL) ? 0 : 254 - i; 17350 17351 ; 17352 return 0; 17353} 17354_ACEOF 17355if ac_fn_c_try_run "$LINENO"; then : 17356 mpfr_cv_dbl_int_bug="no" 17357else 17358 mpfr_cv_dbl_int_bug="yes or failed to exec (exit status is $?)" 17359fi 17360rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17361 conftest.$ac_objext conftest.beam conftest.$ac_ext 17362fi 17363 17364 17365fi 17366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_dbl_int_bug" >&5 17367$as_echo "$mpfr_cv_dbl_int_bug" >&6; } 17368case $mpfr_cv_dbl_int_bug in 17369yes*) 17370 as_fn_error $? "double-to-integer conversion is incorrect. 17371You need to use another compiler (or lower the optimization level)." "$LINENO" 5 17372esac 17373 17374 17375if test "$ac_cv_type_intmax_t" = yes; then 17376 17377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5 17378$as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; } 17379if test "$cross_compiling" = yes; then : 17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 17381$as_echo "cross-compiling" >&6; } 17382 17383else 17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17385/* end confdefs.h. */ 17386 17387#include <stdio.h> 17388#include <string.h> 17389 17390#ifdef HAVE_INTTYPES_H 17391# include <inttypes.h> 17392#endif 17393#ifdef HAVE_STDINT_H 17394# include <stdint.h> 17395#endif 17396 17397#include <gmp.h> 17398 17399int 17400main (void) 17401{ 17402 17403 char s[256]; 17404 intmax_t a = 17; 17405 17406 if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1) return 1; 17407 return (strcmp (s, "(17)(42)") != 0); 17408 17409 ; 17410 return 0; 17411} 17412_ACEOF 17413if ac_fn_c_try_run "$LINENO"; then : 17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17415$as_echo "yes" >&6; } 17416 17417else 17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17419$as_echo "no" >&6; } 17420 17421$as_echo "#define NPRINTF_J 1" >>confdefs.h 17422 17423fi 17424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17425 conftest.$ac_objext conftest.beam conftest.$ac_ext 17426fi 17427 17428 17429fi 17430 17431 17432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5 17433$as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; } 17434if test "$cross_compiling" = yes; then : 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 17436$as_echo "cross-compiling" >&6; } 17437 17438else 17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17440/* end confdefs.h. */ 17441 17442#include <stdio.h> 17443#include <string.h> 17444 17445#include <gmp.h> 17446 17447#include <gmp.h> 17448 17449int 17450main (void) 17451{ 17452 17453 char s[256]; 17454 char a = 17; 17455 17456 if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1) return 1; 17457 return (strcmp (s, "(17)(42)") != 0); 17458 17459 ; 17460 return 0; 17461} 17462_ACEOF 17463if ac_fn_c_try_run "$LINENO"; then : 17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17465$as_echo "yes" >&6; } 17466 17467else 17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17469$as_echo "no" >&6; } 17470 17471$as_echo "#define NPRINTF_HH 1" >>confdefs.h 17472 17473fi 17474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17475 conftest.$ac_objext conftest.beam conftest.$ac_ext 17476fi 17477 17478 17479 17480 17481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5 17482$as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; } 17483if test "$cross_compiling" = yes; then : 17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 17485$as_echo "cross-compiling" >&6; } 17486 17487else 17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17489/* end confdefs.h. */ 17490 17491#include <stdio.h> 17492#include <string.h> 17493 17494#include <gmp.h> 17495 17496#include <gmp.h> 17497 17498int 17499main (void) 17500{ 17501 17502 char s[256]; 17503 long long int a = 17; 17504 17505 if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1) return 1; 17506 return (strcmp (s, "(17)(42)") != 0); 17507 17508 ; 17509 return 0; 17510} 17511_ACEOF 17512if ac_fn_c_try_run "$LINENO"; then : 17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17514$as_echo "yes" >&6; } 17515 17516else 17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17518$as_echo "no" >&6; } 17519 17520$as_echo "#define NPRINTF_LL 1" >>confdefs.h 17521 17522fi 17523rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17524 conftest.$ac_objext conftest.beam conftest.$ac_ext 17525fi 17526 17527 17528 17529 17530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5 17531$as_echo_n "checking if gmp_printf supports \"%Lf\"... " >&6; } 17532if test "$cross_compiling" = yes; then : 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 17534$as_echo "cross-compiling" >&6; } 17535 17536$as_echo "#define PRINTF_L 1" >>confdefs.h 17537 17538else 17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17540/* end confdefs.h. */ 17541 17542#include <stdio.h> 17543#include <string.h> 17544 17545#include <gmp.h> 17546 17547#include <gmp.h> 17548 17549int 17550main (void) 17551{ 17552 17553 char s[256]; 17554 long double a = 17; 17555 17556 if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1) return 1; 17557 return (strcmp (s, "(17)(42)") != 0); 17558 17559 ; 17560 return 0; 17561} 17562_ACEOF 17563if ac_fn_c_try_run "$LINENO"; then : 17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17565$as_echo "yes" >&6; } 17566 17567$as_echo "#define PRINTF_L 1" >>confdefs.h 17568 17569else 17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17571$as_echo "no" >&6; } 17572 17573$as_echo "#define NPRINTF_L 1" >>confdefs.h 17574 17575fi 17576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17577 conftest.$ac_objext conftest.beam conftest.$ac_ext 17578fi 17579 17580 17581 17582 17583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5 17584$as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; } 17585if test "$cross_compiling" = yes; then : 17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling" >&5 17587$as_echo "cross-compiling" >&6; } 17588 17589$as_echo "#define PRINTF_T 1" >>confdefs.h 17590 17591else 17592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17593/* end confdefs.h. */ 17594 17595#include <stdio.h> 17596#include <string.h> 17597 17598#if defined (__cplusplus) 17599#include <cstddef> 17600#else 17601#include <stddef.h> 17602#endif 17603#include <gmp.h> 17604 17605#include <gmp.h> 17606 17607int 17608main (void) 17609{ 17610 17611 char s[256]; 17612 ptrdiff_t a = 17; 17613 17614 if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1) return 1; 17615 return (strcmp (s, "(17)(42)") != 0); 17616 17617 ; 17618 return 0; 17619} 17620_ACEOF 17621if ac_fn_c_try_run "$LINENO"; then : 17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17623$as_echo "yes" >&6; } 17624 17625$as_echo "#define PRINTF_T 1" >>confdefs.h 17626 17627else 17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17629$as_echo "no" >&6; } 17630 17631$as_echo "#define NPRINTF_T 1" >>confdefs.h 17632 17633fi 17634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17635 conftest.$ac_objext conftest.beam conftest.$ac_ext 17636fi 17637 17638 17639 17640else 17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17642$as_echo "no" >&6; } 17643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5 17644$as_echo "$as_me: WARNING: ==========================================================" >&2;} 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&5 17646$as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or" >&2;} 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5 17648$as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;} 17649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above). A cause may be different" >&5 17650$as_echo "$as_me: WARNING: see the version numbers above). A cause may be different" >&2;} 17651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&5 17652$as_echo "$as_me: WARNING: GMP versions with different ABI's or the use of --with-gmp" >&2;} 17653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: or --with-gmp-include with a system include directory" >&5 17654$as_echo "$as_me: WARNING: or --with-gmp-include with a system include directory" >&2;} 17655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: (such as /usr/include or /usr/local/include)." >&5 17656$as_echo "$as_me: WARNING: (such as /usr/include or /usr/local/include)." >&2;} 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: However since we can't use 'libtool' inside the configure," >&5 17658$as_echo "$as_me: WARNING: However since we can't use 'libtool' inside the configure," >&2;} 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5 17660$as_echo "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;} 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CC=\"$CC\"" >&5 17662$as_echo "$as_me: WARNING: CC=\"$CC\"" >&2;} 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CFLAGS=\"$CFLAGS\"" >&5 17664$as_echo "$as_me: WARNING: CFLAGS=\"$CFLAGS\"" >&2;} 17665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&5 17666$as_echo "$as_me: WARNING: CPPFLAGS=\"$CPPFLAGS\"" >&2;} 17667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LDFLAGS=\"$LDFLAGS\"" >&5 17668$as_echo "$as_me: WARNING: LDFLAGS=\"$LDFLAGS\"" >&2;} 17669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LIBS=\"$LIBS\"" >&5 17670$as_echo "$as_me: WARNING: LIBS=\"$LIBS\"" >&2;} 17671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&5 17672$as_echo "$as_me: WARNING: Temporary LD_RUN_PATH was \"$LD_RUN_PATH\"." >&2;} 17673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ==========================================================" >&5 17674$as_echo "$as_me: WARNING: ==========================================================" >&2;} 17675 17676fi 17677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17678 conftest.$ac_objext conftest.beam conftest.$ac_ext 17679fi 17680 17681 LD_RUN_PATH="$saved_LD_RUN_PATH" 17682fi 17683 17684for ac_func in __gmpn_sbpi1_divappr_q 17685do : 17686 ac_fn_c_check_func "$LINENO" "__gmpn_sbpi1_divappr_q" "ac_cv_func___gmpn_sbpi1_divappr_q" 17687if test "x$ac_cv_func___gmpn_sbpi1_divappr_q" = xyes; then : 17688 cat >>confdefs.h <<_ACEOF 17689#define HAVE___GMPN_SBPI1_DIVAPPR_Q 1 17690_ACEOF 17691 17692fi 17693done 17694 17695for ac_func in __gmpn_invert_limb 17696do : 17697 ac_fn_c_check_func "$LINENO" "__gmpn_invert_limb" "ac_cv_func___gmpn_invert_limb" 17698if test "x$ac_cv_func___gmpn_invert_limb" = xyes; then : 17699 cat >>confdefs.h <<_ACEOF 17700#define HAVE___GMPN_INVERT_LIMB 1 17701_ACEOF 17702 17703fi 17704done 17705 17706for ac_func in __gmpn_rsblsh_n 17707do : 17708 ac_fn_c_check_func "$LINENO" "__gmpn_rsblsh_n" "ac_cv_func___gmpn_rsblsh_n" 17709if test "x$ac_cv_func___gmpn_rsblsh_n" = xyes; then : 17710 cat >>confdefs.h <<_ACEOF 17711#define HAVE___GMPN_RSBLSH_N 1 17712_ACEOF 17713 17714fi 17715done 17716 17717 17718 17719 17720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long to fit in mp_limb_t" >&5 17721$as_echo_n "checking for long to fit in mp_limb_t... " >&6; } 17722if ${mpfr_cv_long_within_limb+:} false; then : 17723 $as_echo_n "(cached) " >&6 17724else 17725 17726saved_CPPFLAGS="$CPPFLAGS" 17727CPPFLAGS="$CPPFLAGS -I$srcdir/src" 17728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17729/* end confdefs.h. */ 17730 17731#include <gmp.h> 17732#include "mpfr-sassert.h" 17733 17734int 17735main (void) 17736{ 17737 17738 MPFR_STAT_STATIC_ASSERT ((mp_limb_t) -1 >= (unsigned long) -1); 17739 return 0; 17740 17741 ; 17742 return 0; 17743} 17744_ACEOF 17745if ac_fn_c_try_compile "$LINENO"; then : 17746 mpfr_cv_long_within_limb="yes" 17747else 17748 mpfr_cv_long_within_limb="no" 17749fi 17750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17751 17752fi 17753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_long_within_limb" >&5 17754$as_echo "$mpfr_cv_long_within_limb" >&6; } 17755case $mpfr_cv_long_within_limb in 17756yes*) 17757 17758$as_echo "#define MPFR_LONG_WITHIN_LIMB 1" >>confdefs.h 17759 17760esac 17761CPPFLAGS="$saved_CPPFLAGS" 17762 17763 17764for ac_func in getrusage 17765do : 17766 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 17767if test "x$ac_cv_func_getrusage" = xyes; then : 17768 cat >>confdefs.h <<_ACEOF 17769#define HAVE_GETRUSAGE 1 17770_ACEOF 17771 17772fi 17773done 17774 17775 17776if test -f confdefs.h; then 17777 $SED '/#define PACKAGE_/d' <confdefs.h >confdefs.tmp 17778 $SED '/#define HAVE_STRING/d' <confdefs.tmp >confdefs.h 17779 $SED '/#define HAVE_ALLOCA /d' <confdefs.h >confdefs.tmp 17780 $SED '/#define HAVE_DLFCN_H/d' <confdefs.tmp >confdefs.h 17781 $SED '/#define HAVE_MEM/d' <confdefs.h >confdefs.tmp 17782 $SED '/#define STDC_HEADERS/d' <confdefs.tmp >confdefs.h 17783 $SED '/#define HAVE_STRTOL/d' <confdefs.h >confdefs.tmp 17784 $SED '/#define HAVE_STDLIB_H/d' <confdefs.tmp >confdefs.h 17785 $SED '/#define HAVE_UNISTD_H/d' <confdefs.h >confdefs.tmp 17786 $SED '/#define HAVE_STDC_HEADERS/d' <confdefs.tmp >confdefs.h 17787 $SED '/#define HAVE_LONG_DOUBLE/d' <confdefs.h >confdefs.tmp 17788 $SED '/#define HAVE_SYS_STAT_H/d' <confdefs.tmp >confdefs.h 17789 $SED '/#define HAVE_SYS_TYPES_H/d' <confdefs.h >confdefs.tmp 17790 $SED '/#define PROTOTYPES/d' <confdefs.tmp >confdefs.h 17791 $SED '/#define __PROTOTYPES/d' <confdefs.h >confdefs.tmp 17792 17793 mv confdefs.tmp confdefs.h 17794fi 17795 17796if $EGREP -q -e '-dev$' $srcdir/VERSION; then 17797 DATAFILES=`echo \`$SED -n \ 17798 's/^ *data_check *("\(data\/[^"]*\)".*/tests\/\1/p' \ 17799 $srcdir/tests/*.c\`` 17800fi 17801 17802ac_config_files="$ac_config_files Makefile mpfr.pc doc/Makefile src/Makefile tests/Makefile tune/Makefile src/mparam.h:src/mparam_h.in tools/bench/Makefile" 17803 17804cat >confcache <<\_ACEOF 17805# This file is a shell script that caches the results of configure 17806# tests run on this system so they can be shared between configure 17807# scripts and configure runs, see configure's option --config-cache. 17808# It is not useful on other systems. If it contains results you don't 17809# want to keep, you may remove or edit it. 17810# 17811# config.status only pays attention to the cache file if you give it 17812# the --recheck option to rerun configure. 17813# 17814# `ac_cv_env_foo' variables (set or unset) will be overridden when 17815# loading this file, other *unset* `ac_cv_foo' will be assigned the 17816# following values. 17817 17818_ACEOF 17819 17820# The following way of writing the cache mishandles newlines in values, 17821# but we know of no workaround that is simple, portable, and efficient. 17822# So, we kill variables containing newlines. 17823# Ultrix sh set writes to stderr and can't be redirected directly, 17824# and sets the high bit in the cache file unless we assign to the vars. 17825( 17826 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17827 eval ac_val=\$$ac_var 17828 case $ac_val in #( 17829 *${as_nl}*) 17830 case $ac_var in #( 17831 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17832$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17833 esac 17834 case $ac_var in #( 17835 _ | IFS | as_nl) ;; #( 17836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17837 *) { eval $ac_var=; unset $ac_var;} ;; 17838 esac ;; 17839 esac 17840 done 17841 17842 (set) 2>&1 | 17843 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17844 *${as_nl}ac_space=\ *) 17845 # `set' does not quote correctly, so add quotes: double-quote 17846 # substitution turns \\\\ into \\, and sed turns \\ into \. 17847 sed -n \ 17848 "s/'/'\\\\''/g; 17849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17850 ;; #( 17851 *) 17852 # `set' quotes correctly as required by POSIX, so do not add quotes. 17853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17854 ;; 17855 esac | 17856 sort 17857) | 17858 sed ' 17859 /^ac_cv_env_/b end 17860 t clear 17861 :clear 17862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17863 t end 17864 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17865 :end' >>confcache 17866if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17867 if test -w "$cache_file"; then 17868 if test "x$cache_file" != "x/dev/null"; then 17869 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17870$as_echo "$as_me: updating cache $cache_file" >&6;} 17871 if test ! -f "$cache_file" || test -h "$cache_file"; then 17872 cat confcache >"$cache_file" 17873 else 17874 case $cache_file in #( 17875 */* | ?:*) 17876 mv -f confcache "$cache_file"$$ && 17877 mv -f "$cache_file"$$ "$cache_file" ;; #( 17878 *) 17879 mv -f confcache "$cache_file" ;; 17880 esac 17881 fi 17882 fi 17883 else 17884 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17885$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17886 fi 17887fi 17888rm -f confcache 17889 17890test "x$prefix" = xNONE && prefix=$ac_default_prefix 17891# Let make expand exec_prefix. 17892test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17893 17894# Transform confdefs.h into DEFS. 17895# Protect against shell expansion while executing Makefile rules. 17896# Protect against Makefile macro expansion. 17897# 17898# If the first sed substitution is executed (which looks for macros that 17899# take arguments), then branch to the quote section. Otherwise, 17900# look for a macro that doesn't take arguments. 17901ac_script=' 17902:mline 17903/\\$/{ 17904 N 17905 s,\\\n,, 17906 b mline 17907} 17908t clear 17909:clear 17910s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 17911t quote 17912s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 17913t quote 17914b any 17915:quote 17916s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 17917s/\[/\\&/g 17918s/\]/\\&/g 17919s/\$/$$/g 17920H 17921:any 17922${ 17923 g 17924 s/^\n// 17925 s/\n/ /g 17926 p 17927} 17928' 17929DEFS=`sed -n "$ac_script" confdefs.h` 17930 17931 17932ac_libobjs= 17933ac_ltlibobjs= 17934U= 17935for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17936 # 1. Remove the extension, and $U if already installed. 17937 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17938 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17940 # will be set to the directory where LIBOBJS objects are built. 17941 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17942 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17943done 17944LIBOBJS=$ac_libobjs 17945 17946LTLIBOBJS=$ac_ltlibobjs 17947 17948 17949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17950$as_echo_n "checking that generated files are newer than configure... " >&6; } 17951 if test -n "$am_sleep_pid"; then 17952 # Hide warnings about reused PIDs. 17953 wait $am_sleep_pid 2>/dev/null 17954 fi 17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17956$as_echo "done" >&6; } 17957 if test -n "$EXEEXT"; then 17958 am__EXEEXT_TRUE= 17959 am__EXEEXT_FALSE='#' 17960else 17961 am__EXEEXT_TRUE='#' 17962 am__EXEEXT_FALSE= 17963fi 17964 17965if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17966 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17967Usually this means the macro was only invoked conditionally." "$LINENO" 5 17968fi 17969if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17970 as_fn_error $? "conditional \"AMDEP\" was never defined. 17971Usually this means the macro was only invoked conditionally." "$LINENO" 5 17972fi 17973if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17974 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17975Usually this means the macro was only invoked conditionally." "$LINENO" 5 17976fi 17977 17978: "${CONFIG_STATUS=./config.status}" 17979ac_write_fail=0 17980ac_clean_files_save=$ac_clean_files 17981ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17982{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17983$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17984as_write_fail=0 17985cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17986#! $SHELL 17987# Generated by $as_me. 17988# Run this file to recreate the current configuration. 17989# Compiler output produced by configure, useful for debugging 17990# configure, is in config.log if it exists. 17991 17992debug=false 17993ac_cs_recheck=false 17994ac_cs_silent=false 17995 17996SHELL=\${CONFIG_SHELL-$SHELL} 17997export SHELL 17998_ASEOF 17999cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18000## -------------------- ## 18001## M4sh Initialization. ## 18002## -------------------- ## 18003 18004# Be more Bourne compatible 18005DUALCASE=1; export DUALCASE # for MKS sh 18006if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18007 emulate sh 18008 NULLCMD=: 18009 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18010 # is contrary to our usage. Disable this feature. 18011 alias -g '${1+"$@"}'='"$@"' 18012 setopt NO_GLOB_SUBST 18013else 18014 case `(set -o) 2>/dev/null` in #( 18015 *posix*) : 18016 set -o posix ;; #( 18017 *) : 18018 ;; 18019esac 18020fi 18021 18022 18023as_nl=' 18024' 18025export as_nl 18026# Printing a long string crashes Solaris 7 /usr/bin/printf. 18027as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18028as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18029as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18030# Prefer a ksh shell builtin over an external printf program on Solaris, 18031# but without wasting forks for bash or zsh. 18032if test -z "$BASH_VERSION$ZSH_VERSION" \ 18033 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18034 as_echo='print -r --' 18035 as_echo_n='print -rn --' 18036elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18037 as_echo='printf %s\n' 18038 as_echo_n='printf %s' 18039else 18040 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18041 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18042 as_echo_n='/usr/ucb/echo -n' 18043 else 18044 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18045 as_echo_n_body='eval 18046 arg=$1; 18047 case $arg in #( 18048 *"$as_nl"*) 18049 expr "X$arg" : "X\\(.*\\)$as_nl"; 18050 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18051 esac; 18052 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18053 ' 18054 export as_echo_n_body 18055 as_echo_n='sh -c $as_echo_n_body as_echo' 18056 fi 18057 export as_echo_body 18058 as_echo='sh -c $as_echo_body as_echo' 18059fi 18060 18061# The user is always right. 18062if test "${PATH_SEPARATOR+set}" != set; then 18063 PATH_SEPARATOR=: 18064 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18065 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18066 PATH_SEPARATOR=';' 18067 } 18068fi 18069 18070 18071# IFS 18072# We need space, tab and new line, in precisely that order. Quoting is 18073# there to prevent editors from complaining about space-tab. 18074# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18075# splitting by setting IFS to empty value.) 18076IFS=" "" $as_nl" 18077 18078# Find who we are. Look in the path if we contain no directory separator. 18079as_myself= 18080case $0 in #(( 18081 *[\\/]* ) as_myself=$0 ;; 18082 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18083for as_dir in $PATH 18084do 18085 IFS=$as_save_IFS 18086 test -z "$as_dir" && as_dir=. 18087 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18088 done 18089IFS=$as_save_IFS 18090 18091 ;; 18092esac 18093# We did not find ourselves, most probably we were run as `sh COMMAND' 18094# in which case we are not to be found in the path. 18095if test "x$as_myself" = x; then 18096 as_myself=$0 18097fi 18098if test ! -f "$as_myself"; then 18099 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18100 exit 1 18101fi 18102 18103# Unset variables that we do not need and which cause bugs (e.g. in 18104# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18105# suppresses any "Segmentation fault" message there. '((' could 18106# trigger a bug in pdksh 5.2.14. 18107for as_var in BASH_ENV ENV MAIL MAILPATH 18108do eval test x\${$as_var+set} = xset \ 18109 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18110done 18111PS1='$ ' 18112PS2='> ' 18113PS4='+ ' 18114 18115# NLS nuisances. 18116LC_ALL=C 18117export LC_ALL 18118LANGUAGE=C 18119export LANGUAGE 18120 18121# CDPATH. 18122(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18123 18124 18125# as_fn_error STATUS ERROR [LINENO LOG_FD] 18126# ---------------------------------------- 18127# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18128# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18129# script with STATUS, using 1 if that was 0. 18130as_fn_error () 18131{ 18132 as_status=$1; test $as_status -eq 0 && as_status=1 18133 if test "$4"; then 18134 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18135 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18136 fi 18137 $as_echo "$as_me: error: $2" >&2 18138 as_fn_exit $as_status 18139} # as_fn_error 18140 18141 18142# as_fn_set_status STATUS 18143# ----------------------- 18144# Set $? to STATUS, without forking. 18145as_fn_set_status () 18146{ 18147 return $1 18148} # as_fn_set_status 18149 18150# as_fn_exit STATUS 18151# ----------------- 18152# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18153as_fn_exit () 18154{ 18155 set +e 18156 as_fn_set_status $1 18157 exit $1 18158} # as_fn_exit 18159 18160# as_fn_unset VAR 18161# --------------- 18162# Portably unset VAR. 18163as_fn_unset () 18164{ 18165 { eval $1=; unset $1;} 18166} 18167as_unset=as_fn_unset 18168# as_fn_append VAR VALUE 18169# ---------------------- 18170# Append the text in VALUE to the end of the definition contained in VAR. Take 18171# advantage of any shell optimizations that allow amortized linear growth over 18172# repeated appends, instead of the typical quadratic growth present in naive 18173# implementations. 18174if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18175 eval 'as_fn_append () 18176 { 18177 eval $1+=\$2 18178 }' 18179else 18180 as_fn_append () 18181 { 18182 eval $1=\$$1\$2 18183 } 18184fi # as_fn_append 18185 18186# as_fn_arith ARG... 18187# ------------------ 18188# Perform arithmetic evaluation on the ARGs, and store the result in the 18189# global $as_val. Take advantage of shells that can avoid forks. The arguments 18190# must be portable across $(()) and expr. 18191if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18192 eval 'as_fn_arith () 18193 { 18194 as_val=$(( $* )) 18195 }' 18196else 18197 as_fn_arith () 18198 { 18199 as_val=`expr "$@" || test $? -eq 1` 18200 } 18201fi # as_fn_arith 18202 18203 18204if expr a : '\(a\)' >/dev/null 2>&1 && 18205 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18206 as_expr=expr 18207else 18208 as_expr=false 18209fi 18210 18211if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18212 as_basename=basename 18213else 18214 as_basename=false 18215fi 18216 18217if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18218 as_dirname=dirname 18219else 18220 as_dirname=false 18221fi 18222 18223as_me=`$as_basename -- "$0" || 18224$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18225 X"$0" : 'X\(//\)$' \| \ 18226 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18227$as_echo X/"$0" | 18228 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18229 s//\1/ 18230 q 18231 } 18232 /^X\/\(\/\/\)$/{ 18233 s//\1/ 18234 q 18235 } 18236 /^X\/\(\/\).*/{ 18237 s//\1/ 18238 q 18239 } 18240 s/.*/./; q'` 18241 18242# Avoid depending upon Character Ranges. 18243as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18244as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18245as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18246as_cr_digits='0123456789' 18247as_cr_alnum=$as_cr_Letters$as_cr_digits 18248 18249ECHO_C= ECHO_N= ECHO_T= 18250case `echo -n x` in #((((( 18251-n*) 18252 case `echo 'xy\c'` in 18253 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18254 xy) ECHO_C='\c';; 18255 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18256 ECHO_T=' ';; 18257 esac;; 18258*) 18259 ECHO_N='-n';; 18260esac 18261 18262rm -f conf$$ conf$$.exe conf$$.file 18263if test -d conf$$.dir; then 18264 rm -f conf$$.dir/conf$$.file 18265else 18266 rm -f conf$$.dir 18267 mkdir conf$$.dir 2>/dev/null 18268fi 18269if (echo >conf$$.file) 2>/dev/null; then 18270 if ln -s conf$$.file conf$$ 2>/dev/null; then 18271 as_ln_s='ln -s' 18272 # ... but there are two gotchas: 18273 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18274 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18275 # In both cases, we have to default to `cp -pR'. 18276 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18277 as_ln_s='cp -pR' 18278 elif ln conf$$.file conf$$ 2>/dev/null; then 18279 as_ln_s=ln 18280 else 18281 as_ln_s='cp -pR' 18282 fi 18283else 18284 as_ln_s='cp -pR' 18285fi 18286rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18287rmdir conf$$.dir 2>/dev/null 18288 18289 18290# as_fn_mkdir_p 18291# ------------- 18292# Create "$as_dir" as a directory, including parents if necessary. 18293as_fn_mkdir_p () 18294{ 18295 18296 case $as_dir in #( 18297 -*) as_dir=./$as_dir;; 18298 esac 18299 test -d "$as_dir" || eval $as_mkdir_p || { 18300 as_dirs= 18301 while :; do 18302 case $as_dir in #( 18303 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18304 *) as_qdir=$as_dir;; 18305 esac 18306 as_dirs="'$as_qdir' $as_dirs" 18307 as_dir=`$as_dirname -- "$as_dir" || 18308$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18309 X"$as_dir" : 'X\(//\)[^/]' \| \ 18310 X"$as_dir" : 'X\(//\)$' \| \ 18311 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18312$as_echo X"$as_dir" | 18313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18314 s//\1/ 18315 q 18316 } 18317 /^X\(\/\/\)[^/].*/{ 18318 s//\1/ 18319 q 18320 } 18321 /^X\(\/\/\)$/{ 18322 s//\1/ 18323 q 18324 } 18325 /^X\(\/\).*/{ 18326 s//\1/ 18327 q 18328 } 18329 s/.*/./; q'` 18330 test -d "$as_dir" && break 18331 done 18332 test -z "$as_dirs" || eval "mkdir $as_dirs" 18333 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18334 18335 18336} # as_fn_mkdir_p 18337if mkdir -p . 2>/dev/null; then 18338 as_mkdir_p='mkdir -p "$as_dir"' 18339else 18340 test -d ./-p && rmdir ./-p 18341 as_mkdir_p=false 18342fi 18343 18344 18345# as_fn_executable_p FILE 18346# ----------------------- 18347# Test if FILE is an executable regular file. 18348as_fn_executable_p () 18349{ 18350 test -f "$1" && test -x "$1" 18351} # as_fn_executable_p 18352as_test_x='test -x' 18353as_executable_p=as_fn_executable_p 18354 18355# Sed expression to map a string onto a valid CPP name. 18356as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18357 18358# Sed expression to map a string onto a valid variable name. 18359as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18360 18361 18362exec 6>&1 18363## ----------------------------------- ## 18364## Main body of $CONFIG_STATUS script. ## 18365## ----------------------------------- ## 18366_ASEOF 18367test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18368 18369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18370# Save the log message, to keep $0 and so on meaningful, and to 18371# report actual input values of CONFIG_FILES etc. instead of their 18372# values after options handling. 18373ac_log=" 18374This file was extended by MPFR $as_me 4.0.1, which was 18375generated by GNU Autoconf 2.69. Invocation command line was 18376 18377 CONFIG_FILES = $CONFIG_FILES 18378 CONFIG_HEADERS = $CONFIG_HEADERS 18379 CONFIG_LINKS = $CONFIG_LINKS 18380 CONFIG_COMMANDS = $CONFIG_COMMANDS 18381 $ $0 $@ 18382 18383on `(hostname || uname -n) 2>/dev/null | sed 1q` 18384" 18385 18386_ACEOF 18387 18388case $ac_config_files in *" 18389"*) set x $ac_config_files; shift; ac_config_files=$*;; 18390esac 18391 18392 18393 18394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18395# Files that config.status was made for. 18396config_files="$ac_config_files" 18397config_commands="$ac_config_commands" 18398 18399_ACEOF 18400 18401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18402ac_cs_usage="\ 18403\`$as_me' instantiates files and other configuration actions 18404from templates according to the current configuration. Unless the files 18405and actions are specified as TAGs, all are instantiated by default. 18406 18407Usage: $0 [OPTION]... [TAG]... 18408 18409 -h, --help print this help, then exit 18410 -V, --version print version number and configuration settings, then exit 18411 --config print configuration, then exit 18412 -q, --quiet, --silent 18413 do not print progress messages 18414 -d, --debug don't remove temporary files 18415 --recheck update $as_me by reconfiguring in the same conditions 18416 --file=FILE[:TEMPLATE] 18417 instantiate the configuration file FILE 18418 18419Configuration files: 18420$config_files 18421 18422Configuration commands: 18423$config_commands 18424 18425Report bugs to the package provider." 18426 18427_ACEOF 18428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18429ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18430ac_cs_version="\\ 18431MPFR config.status 4.0.1 18432configured by $0, generated by GNU Autoconf 2.69, 18433 with options \\"\$ac_cs_config\\" 18434 18435Copyright (C) 2012 Free Software Foundation, Inc. 18436This config.status script is free software; the Free Software Foundation 18437gives unlimited permission to copy, distribute and modify it." 18438 18439ac_pwd='$ac_pwd' 18440srcdir='$srcdir' 18441INSTALL='$INSTALL' 18442MKDIR_P='$MKDIR_P' 18443AWK='$AWK' 18444test -n "\$AWK" || AWK=awk 18445_ACEOF 18446 18447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18448# The default lists apply if the user does not specify any file. 18449ac_need_defaults=: 18450while test $# != 0 18451do 18452 case $1 in 18453 --*=?*) 18454 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18455 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18456 ac_shift=: 18457 ;; 18458 --*=) 18459 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18460 ac_optarg= 18461 ac_shift=: 18462 ;; 18463 *) 18464 ac_option=$1 18465 ac_optarg=$2 18466 ac_shift=shift 18467 ;; 18468 esac 18469 18470 case $ac_option in 18471 # Handling of the options. 18472 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18473 ac_cs_recheck=: ;; 18474 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18475 $as_echo "$ac_cs_version"; exit ;; 18476 --config | --confi | --conf | --con | --co | --c ) 18477 $as_echo "$ac_cs_config"; exit ;; 18478 --debug | --debu | --deb | --de | --d | -d ) 18479 debug=: ;; 18480 --file | --fil | --fi | --f ) 18481 $ac_shift 18482 case $ac_optarg in 18483 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18484 '') as_fn_error $? "missing file argument" ;; 18485 esac 18486 as_fn_append CONFIG_FILES " '$ac_optarg'" 18487 ac_need_defaults=false;; 18488 --he | --h | --help | --hel | -h ) 18489 $as_echo "$ac_cs_usage"; exit ;; 18490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18491 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18492 ac_cs_silent=: ;; 18493 18494 # This is an error. 18495 -*) as_fn_error $? "unrecognized option: \`$1' 18496Try \`$0 --help' for more information." ;; 18497 18498 *) as_fn_append ac_config_targets " $1" 18499 ac_need_defaults=false ;; 18500 18501 esac 18502 shift 18503done 18504 18505ac_configure_extra_args= 18506 18507if $ac_cs_silent; then 18508 exec 6>/dev/null 18509 ac_configure_extra_args="$ac_configure_extra_args --silent" 18510fi 18511 18512_ACEOF 18513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18514if \$ac_cs_recheck; then 18515 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18516 shift 18517 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18518 CONFIG_SHELL='$SHELL' 18519 export CONFIG_SHELL 18520 exec "\$@" 18521fi 18522 18523_ACEOF 18524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18525exec 5>>config.log 18526{ 18527 echo 18528 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18529## Running $as_me. ## 18530_ASBOX 18531 $as_echo "$ac_log" 18532} >&5 18533 18534_ACEOF 18535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18536# 18537# INIT-COMMANDS 18538# 18539AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18540 18541 18542# The HP-UX ksh and POSIX shell print the target directory to stdout 18543# if CDPATH is set. 18544(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18545 18546sed_quote_subst='$sed_quote_subst' 18547double_quote_subst='$double_quote_subst' 18548delay_variable_subst='$delay_variable_subst' 18549macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18550macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18551AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 18552DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18553OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18554enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18555enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18556pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18557enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18558shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18559SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18560ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18561PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18562host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18563host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18564host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18565build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18566build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18567build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18568SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18569Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18570GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18571EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18572FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18573LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18574NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18575LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18576max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18577ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18578exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18579lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18580lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18581lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18582lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18583lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18584reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18585reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18586deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18587file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18588file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18589want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18590sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18591AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18592AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18593archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18594STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18595RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18596old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18597old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18598old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18599lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18600CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18601CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18602compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18603GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18604lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18605lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18606lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18607lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18608lt_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"`' 18609lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18610nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18611lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18612lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18613objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18614MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18615lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18616lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18617lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18618lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18619lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18620need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18621MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18622DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18623NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18624LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18625OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18626OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18627libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18628shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18629extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18630archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18631enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18632export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18633whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18634compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18635old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18636old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18637archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18638archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18639module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18640module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18641with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18642allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18643no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18644hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18645hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18646hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18647hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18648hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18649hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18650hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18651inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18652link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18653always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18654export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18655exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18656include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18657prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18658postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18659file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18660variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18661need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18662need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18663version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18664runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18665shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18666shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18667libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18668library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18669soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18670install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18671postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18672postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18673finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18674finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18675hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18676sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18677configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18678configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18679hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18680enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18681enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18682enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18683old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18684striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18685 18686LTCC='$LTCC' 18687LTCFLAGS='$LTCFLAGS' 18688compiler='$compiler_DEFAULT' 18689 18690# A function that is used when there is no print builtin or printf. 18691func_fallback_echo () 18692{ 18693 eval 'cat <<_LTECHO_EOF 18694\$1 18695_LTECHO_EOF' 18696} 18697 18698# Quote evaled strings. 18699for var in AS \ 18700DLLTOOL \ 18701OBJDUMP \ 18702SHELL \ 18703ECHO \ 18704PATH_SEPARATOR \ 18705SED \ 18706GREP \ 18707EGREP \ 18708FGREP \ 18709LD \ 18710NM \ 18711LN_S \ 18712lt_SP2NL \ 18713lt_NL2SP \ 18714reload_flag \ 18715deplibs_check_method \ 18716file_magic_cmd \ 18717file_magic_glob \ 18718want_nocaseglob \ 18719sharedlib_from_linklib_cmd \ 18720AR \ 18721AR_FLAGS \ 18722archiver_list_spec \ 18723STRIP \ 18724RANLIB \ 18725CC \ 18726CFLAGS \ 18727compiler \ 18728lt_cv_sys_global_symbol_pipe \ 18729lt_cv_sys_global_symbol_to_cdecl \ 18730lt_cv_sys_global_symbol_to_import \ 18731lt_cv_sys_global_symbol_to_c_name_address \ 18732lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18733lt_cv_nm_interface \ 18734nm_file_list_spec \ 18735lt_cv_truncate_bin \ 18736lt_prog_compiler_no_builtin_flag \ 18737lt_prog_compiler_pic \ 18738lt_prog_compiler_wl \ 18739lt_prog_compiler_static \ 18740lt_cv_prog_compiler_c_o \ 18741need_locks \ 18742MANIFEST_TOOL \ 18743DSYMUTIL \ 18744NMEDIT \ 18745LIPO \ 18746OTOOL \ 18747OTOOL64 \ 18748shrext_cmds \ 18749export_dynamic_flag_spec \ 18750whole_archive_flag_spec \ 18751compiler_needs_object \ 18752with_gnu_ld \ 18753allow_undefined_flag \ 18754no_undefined_flag \ 18755hardcode_libdir_flag_spec \ 18756hardcode_libdir_separator \ 18757exclude_expsyms \ 18758include_expsyms \ 18759file_list_spec \ 18760variables_saved_for_relink \ 18761libname_spec \ 18762library_names_spec \ 18763soname_spec \ 18764install_override_mode \ 18765finish_eval \ 18766old_striplib \ 18767striplib; do 18768 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18769 *[\\\\\\\`\\"\\\$]*) 18770 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18771 ;; 18772 *) 18773 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18774 ;; 18775 esac 18776done 18777 18778# Double-quote double-evaled strings. 18779for var in reload_cmds \ 18780old_postinstall_cmds \ 18781old_postuninstall_cmds \ 18782old_archive_cmds \ 18783extract_expsyms_cmds \ 18784old_archive_from_new_cmds \ 18785old_archive_from_expsyms_cmds \ 18786archive_cmds \ 18787archive_expsym_cmds \ 18788module_cmds \ 18789module_expsym_cmds \ 18790export_symbols_cmds \ 18791prelink_cmds \ 18792postlink_cmds \ 18793postinstall_cmds \ 18794postuninstall_cmds \ 18795finish_cmds \ 18796sys_lib_search_path_spec \ 18797configure_time_dlsearch_path \ 18798configure_time_lt_sys_library_path; do 18799 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18800 *[\\\\\\\`\\"\\\$]*) 18801 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18802 ;; 18803 *) 18804 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18805 ;; 18806 esac 18807done 18808 18809ac_aux_dir='$ac_aux_dir' 18810 18811# See if we are running on zsh, and set the options that allow our 18812# commands through without removal of \ escapes INIT. 18813if test -n "\${ZSH_VERSION+set}"; then 18814 setopt NO_GLOB_SUBST 18815fi 18816 18817 18818 PACKAGE='$PACKAGE' 18819 VERSION='$VERSION' 18820 RM='$RM' 18821 ofile='$ofile' 18822 18823 18824 18825 18826_ACEOF 18827 18828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18829 18830# Handling of arguments. 18831for ac_config_target in $ac_config_targets 18832do 18833 case $ac_config_target in 18834 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18835 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18836 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18837 "mpfr.pc") CONFIG_FILES="$CONFIG_FILES mpfr.pc" ;; 18838 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18839 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18840 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 18841 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;; 18842 "src/mparam.h") CONFIG_FILES="$CONFIG_FILES src/mparam.h:src/mparam_h.in" ;; 18843 "tools/bench/Makefile") CONFIG_FILES="$CONFIG_FILES tools/bench/Makefile" ;; 18844 18845 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18846 esac 18847done 18848 18849 18850# If the user did not use the arguments to specify the items to instantiate, 18851# then the envvar interface is used. Set only those that are not. 18852# We use the long form for the default assignment because of an extremely 18853# bizarre bug on SunOS 4.1.3. 18854if $ac_need_defaults; then 18855 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18856 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18857fi 18858 18859# Have a temporary directory for convenience. Make it in the build tree 18860# simply because there is no reason against having it here, and in addition, 18861# creating and moving files from /tmp can sometimes cause problems. 18862# Hook for its removal unless debugging. 18863# Note that there is a small window in which the directory will not be cleaned: 18864# after its creation but before its name has been assigned to `$tmp'. 18865$debug || 18866{ 18867 tmp= ac_tmp= 18868 trap 'exit_status=$? 18869 : "${ac_tmp:=$tmp}" 18870 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18871' 0 18872 trap 'as_fn_exit 1' 1 2 13 15 18873} 18874# Create a (secure) tmp directory for tmp files. 18875 18876{ 18877 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18878 test -d "$tmp" 18879} || 18880{ 18881 tmp=./conf$$-$RANDOM 18882 (umask 077 && mkdir "$tmp") 18883} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18884ac_tmp=$tmp 18885 18886# Set up the scripts for CONFIG_FILES section. 18887# No need to generate them if there are no CONFIG_FILES. 18888# This happens for instance with `./config.status config.h'. 18889if test -n "$CONFIG_FILES"; then 18890 18891 18892ac_cr=`echo X | tr X '\015'` 18893# On cygwin, bash can eat \r inside `` if the user requested igncr. 18894# But we know of no other shell where ac_cr would be empty at this 18895# point, so we can use a bashism as a fallback. 18896if test "x$ac_cr" = x; then 18897 eval ac_cr=\$\'\\r\' 18898fi 18899ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18900if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18901 ac_cs_awk_cr='\\r' 18902else 18903 ac_cs_awk_cr=$ac_cr 18904fi 18905 18906echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18907_ACEOF 18908 18909 18910{ 18911 echo "cat >conf$$subs.awk <<_ACEOF" && 18912 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18913 echo "_ACEOF" 18914} >conf$$subs.sh || 18915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18916ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18917ac_delim='%!_!# ' 18918for ac_last_try in false false false false false :; do 18919 . ./conf$$subs.sh || 18920 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18921 18922 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18923 if test $ac_delim_n = $ac_delim_num; then 18924 break 18925 elif $ac_last_try; then 18926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18927 else 18928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18929 fi 18930done 18931rm -f conf$$subs.sh 18932 18933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18934cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18935_ACEOF 18936sed -n ' 18937h 18938s/^/S["/; s/!.*/"]=/ 18939p 18940g 18941s/^[^!]*!// 18942:repl 18943t repl 18944s/'"$ac_delim"'$// 18945t delim 18946:nl 18947h 18948s/\(.\{148\}\)..*/\1/ 18949t more1 18950s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18951p 18952n 18953b repl 18954:more1 18955s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18956p 18957g 18958s/.\{148\}// 18959t nl 18960:delim 18961h 18962s/\(.\{148\}\)..*/\1/ 18963t more2 18964s/["\\]/\\&/g; s/^/"/; s/$/"/ 18965p 18966b 18967:more2 18968s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18969p 18970g 18971s/.\{148\}// 18972t delim 18973' <conf$$subs.awk | sed ' 18974/^[^""]/{ 18975 N 18976 s/\n// 18977} 18978' >>$CONFIG_STATUS || ac_write_fail=1 18979rm -f conf$$subs.awk 18980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18981_ACAWK 18982cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18983 for (key in S) S_is_set[key] = 1 18984 FS = "" 18985 18986} 18987{ 18988 line = $ 0 18989 nfields = split(line, field, "@") 18990 substed = 0 18991 len = length(field[1]) 18992 for (i = 2; i < nfields; i++) { 18993 key = field[i] 18994 keylen = length(key) 18995 if (S_is_set[key]) { 18996 value = S[key] 18997 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18998 len += length(value) + length(field[++i]) 18999 substed = 1 19000 } else 19001 len += 1 + keylen 19002 } 19003 19004 print line 19005} 19006 19007_ACAWK 19008_ACEOF 19009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19010if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19011 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19012else 19013 cat 19014fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19015 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19016_ACEOF 19017 19018# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19019# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19020# trailing colons and then remove the whole line if VPATH becomes empty 19021# (actually we leave an empty line to preserve line numbers). 19022if test "x$srcdir" = x.; then 19023 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19024h 19025s/// 19026s/^/:/ 19027s/[ ]*$/:/ 19028s/:\$(srcdir):/:/g 19029s/:\${srcdir}:/:/g 19030s/:@srcdir@:/:/g 19031s/^:*// 19032s/:*$// 19033x 19034s/\(=[ ]*\).*/\1/ 19035G 19036s/\n// 19037s/^[^=]*=[ ]*$// 19038}' 19039fi 19040 19041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19042fi # test -n "$CONFIG_FILES" 19043 19044 19045eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 19046shift 19047for ac_tag 19048do 19049 case $ac_tag in 19050 :[FHLC]) ac_mode=$ac_tag; continue;; 19051 esac 19052 case $ac_mode$ac_tag in 19053 :[FHL]*:*);; 19054 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19055 :[FH]-) ac_tag=-:-;; 19056 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19057 esac 19058 ac_save_IFS=$IFS 19059 IFS=: 19060 set x $ac_tag 19061 IFS=$ac_save_IFS 19062 shift 19063 ac_file=$1 19064 shift 19065 19066 case $ac_mode in 19067 :L) ac_source=$1;; 19068 :[FH]) 19069 ac_file_inputs= 19070 for ac_f 19071 do 19072 case $ac_f in 19073 -) ac_f="$ac_tmp/stdin";; 19074 *) # Look for the file first in the build tree, then in the source tree 19075 # (if the path is not absolute). The absolute path cannot be DOS-style, 19076 # because $ac_f cannot contain `:'. 19077 test -f "$ac_f" || 19078 case $ac_f in 19079 [\\/$]*) false;; 19080 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19081 esac || 19082 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19083 esac 19084 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19085 as_fn_append ac_file_inputs " '$ac_f'" 19086 done 19087 19088 # Let's still pretend it is `configure' which instantiates (i.e., don't 19089 # use $as_me), people would be surprised to read: 19090 # /* config.h. Generated by config.status. */ 19091 configure_input='Generated from '` 19092 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19093 `' by configure.' 19094 if test x"$ac_file" != x-; then 19095 configure_input="$ac_file. $configure_input" 19096 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19097$as_echo "$as_me: creating $ac_file" >&6;} 19098 fi 19099 # Neutralize special characters interpreted by sed in replacement strings. 19100 case $configure_input in #( 19101 *\&* | *\|* | *\\* ) 19102 ac_sed_conf_input=`$as_echo "$configure_input" | 19103 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19104 *) ac_sed_conf_input=$configure_input;; 19105 esac 19106 19107 case $ac_tag in 19108 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19110 esac 19111 ;; 19112 esac 19113 19114 ac_dir=`$as_dirname -- "$ac_file" || 19115$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19116 X"$ac_file" : 'X\(//\)[^/]' \| \ 19117 X"$ac_file" : 'X\(//\)$' \| \ 19118 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19119$as_echo X"$ac_file" | 19120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19121 s//\1/ 19122 q 19123 } 19124 /^X\(\/\/\)[^/].*/{ 19125 s//\1/ 19126 q 19127 } 19128 /^X\(\/\/\)$/{ 19129 s//\1/ 19130 q 19131 } 19132 /^X\(\/\).*/{ 19133 s//\1/ 19134 q 19135 } 19136 s/.*/./; q'` 19137 as_dir="$ac_dir"; as_fn_mkdir_p 19138 ac_builddir=. 19139 19140case "$ac_dir" in 19141.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19142*) 19143 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19144 # A ".." for each directory in $ac_dir_suffix. 19145 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19146 case $ac_top_builddir_sub in 19147 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19148 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19149 esac ;; 19150esac 19151ac_abs_top_builddir=$ac_pwd 19152ac_abs_builddir=$ac_pwd$ac_dir_suffix 19153# for backward compatibility: 19154ac_top_builddir=$ac_top_build_prefix 19155 19156case $srcdir in 19157 .) # We are building in place. 19158 ac_srcdir=. 19159 ac_top_srcdir=$ac_top_builddir_sub 19160 ac_abs_top_srcdir=$ac_pwd ;; 19161 [\\/]* | ?:[\\/]* ) # Absolute name. 19162 ac_srcdir=$srcdir$ac_dir_suffix; 19163 ac_top_srcdir=$srcdir 19164 ac_abs_top_srcdir=$srcdir ;; 19165 *) # Relative name. 19166 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19167 ac_top_srcdir=$ac_top_build_prefix$srcdir 19168 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19169esac 19170ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19171 19172 19173 case $ac_mode in 19174 :F) 19175 # 19176 # CONFIG_FILE 19177 # 19178 19179 case $INSTALL in 19180 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19181 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19182 esac 19183 ac_MKDIR_P=$MKDIR_P 19184 case $MKDIR_P in 19185 [\\/$]* | ?:[\\/]* ) ;; 19186 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19187 esac 19188_ACEOF 19189 19190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19191# If the template does not know about datarootdir, expand it. 19192# FIXME: This hack should be removed a few years after 2.60. 19193ac_datarootdir_hack=; ac_datarootdir_seen= 19194ac_sed_dataroot=' 19195/datarootdir/ { 19196 p 19197 q 19198} 19199/@datadir@/p 19200/@docdir@/p 19201/@infodir@/p 19202/@localedir@/p 19203/@mandir@/p' 19204case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19205*datarootdir*) ac_datarootdir_seen=yes;; 19206*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19208$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19209_ACEOF 19210cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19211 ac_datarootdir_hack=' 19212 s&@datadir@&$datadir&g 19213 s&@docdir@&$docdir&g 19214 s&@infodir@&$infodir&g 19215 s&@localedir@&$localedir&g 19216 s&@mandir@&$mandir&g 19217 s&\\\${datarootdir}&$datarootdir&g' ;; 19218esac 19219_ACEOF 19220 19221# Neutralize VPATH when `$srcdir' = `.'. 19222# Shell code in configure.ac might set extrasub. 19223# FIXME: do we really want to maintain this feature? 19224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19225ac_sed_extra="$ac_vpsub 19226$extrasub 19227_ACEOF 19228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19229:t 19230/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19231s|@configure_input@|$ac_sed_conf_input|;t t 19232s&@top_builddir@&$ac_top_builddir_sub&;t t 19233s&@top_build_prefix@&$ac_top_build_prefix&;t t 19234s&@srcdir@&$ac_srcdir&;t t 19235s&@abs_srcdir@&$ac_abs_srcdir&;t t 19236s&@top_srcdir@&$ac_top_srcdir&;t t 19237s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19238s&@builddir@&$ac_builddir&;t t 19239s&@abs_builddir@&$ac_abs_builddir&;t t 19240s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19241s&@INSTALL@&$ac_INSTALL&;t t 19242s&@MKDIR_P@&$ac_MKDIR_P&;t t 19243$ac_datarootdir_hack 19244" 19245eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19246 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19247 19248test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19249 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19250 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19251 "$ac_tmp/out"`; test -z "$ac_out"; } && 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19253which seems to be undefined. Please make sure it is defined" >&5 19254$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19255which seems to be undefined. Please make sure it is defined" >&2;} 19256 19257 rm -f "$ac_tmp/stdin" 19258 case $ac_file in 19259 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19260 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19261 esac \ 19262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19263 ;; 19264 19265 19266 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19267$as_echo "$as_me: executing $ac_file commands" >&6;} 19268 ;; 19269 esac 19270 19271 19272 case $ac_file$ac_mode in 19273 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19274 # Older Autoconf quotes --file arguments for eval, but not when files 19275 # are listed without --file. Let's play safe and only enable the eval 19276 # if we detect the quoting. 19277 case $CONFIG_FILES in 19278 *\'*) eval set x "$CONFIG_FILES" ;; 19279 *) set x $CONFIG_FILES ;; 19280 esac 19281 shift 19282 for mf 19283 do 19284 # Strip MF so we end up with the name of the file. 19285 mf=`echo "$mf" | sed -e 's/:.*$//'` 19286 # Check whether this is an Automake generated Makefile or not. 19287 # We used to match only the files named 'Makefile.in', but 19288 # some people rename them; so instead we look at the file content. 19289 # Grep'ing the first line is not enough: some people post-process 19290 # each Makefile.in and add a new line on top of each file to say so. 19291 # Grep'ing the whole file is not good either: AIX grep has a line 19292 # limit of 2048, but all sed's we know have understand at least 4000. 19293 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19294 dirpart=`$as_dirname -- "$mf" || 19295$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19296 X"$mf" : 'X\(//\)[^/]' \| \ 19297 X"$mf" : 'X\(//\)$' \| \ 19298 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19299$as_echo X"$mf" | 19300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19301 s//\1/ 19302 q 19303 } 19304 /^X\(\/\/\)[^/].*/{ 19305 s//\1/ 19306 q 19307 } 19308 /^X\(\/\/\)$/{ 19309 s//\1/ 19310 q 19311 } 19312 /^X\(\/\).*/{ 19313 s//\1/ 19314 q 19315 } 19316 s/.*/./; q'` 19317 else 19318 continue 19319 fi 19320 # Extract the definition of DEPDIR, am__include, and am__quote 19321 # from the Makefile without running 'make'. 19322 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19323 test -z "$DEPDIR" && continue 19324 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19325 test -z "$am__include" && continue 19326 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19327 # Find all dependency output files, they are included files with 19328 # $(DEPDIR) in their names. We invoke sed twice because it is the 19329 # simplest approach to changing $(DEPDIR) to its actual value in the 19330 # expansion. 19331 for file in `sed -n " 19332 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19333 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19334 # Make sure the directory exists. 19335 test -f "$dirpart/$file" && continue 19336 fdir=`$as_dirname -- "$file" || 19337$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19338 X"$file" : 'X\(//\)[^/]' \| \ 19339 X"$file" : 'X\(//\)$' \| \ 19340 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19341$as_echo X"$file" | 19342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19343 s//\1/ 19344 q 19345 } 19346 /^X\(\/\/\)[^/].*/{ 19347 s//\1/ 19348 q 19349 } 19350 /^X\(\/\/\)$/{ 19351 s//\1/ 19352 q 19353 } 19354 /^X\(\/\).*/{ 19355 s//\1/ 19356 q 19357 } 19358 s/.*/./; q'` 19359 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19360 # echo "creating $dirpart/$file" 19361 echo '# dummy' > "$dirpart/$file" 19362 done 19363 done 19364} 19365 ;; 19366 "libtool":C) 19367 19368 # See if we are running on zsh, and set the options that allow our 19369 # commands through without removal of \ escapes. 19370 if test -n "${ZSH_VERSION+set}"; then 19371 setopt NO_GLOB_SUBST 19372 fi 19373 19374 cfgfile=${ofile}T 19375 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19376 $RM "$cfgfile" 19377 19378 cat <<_LT_EOF >> "$cfgfile" 19379#! $SHELL 19380# Generated automatically by $as_me ($PACKAGE) $VERSION 19381# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19382 19383# Provide generalized library-building support services. 19384# Written by Gordon Matzigkeit, 1996 19385 19386# Copyright (C) 2014 Free Software Foundation, Inc. 19387# This is free software; see the source for copying conditions. There is NO 19388# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19389 19390# GNU Libtool is free software; you can redistribute it and/or modify 19391# it under the terms of the GNU General Public License as published by 19392# the Free Software Foundation; either version 2 of of the License, or 19393# (at your option) any later version. 19394# 19395# As a special exception to the GNU General Public License, if you 19396# distribute this file as part of a program or library that is built 19397# using GNU Libtool, you may include this file under the same 19398# distribution terms that you use for the rest of that program. 19399# 19400# GNU Libtool is distributed in the hope that it will be useful, but 19401# WITHOUT ANY WARRANTY; without even the implied warranty of 19402# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19403# GNU General Public License for more details. 19404# 19405# You should have received a copy of the GNU General Public License 19406# along with this program. If not, see <http://www.gnu.org/licenses/>. 19407 19408 19409# The names of the tagged configurations supported by this script. 19410available_tags='' 19411 19412# Configured defaults for sys_lib_dlsearch_path munging. 19413: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19414 19415# ### BEGIN LIBTOOL CONFIG 19416 19417# Which release of libtool.m4 was used? 19418macro_version=$macro_version 19419macro_revision=$macro_revision 19420 19421# Assembler program. 19422AS=$lt_AS 19423 19424# DLL creation program. 19425DLLTOOL=$lt_DLLTOOL 19426 19427# Object dumper program. 19428OBJDUMP=$lt_OBJDUMP 19429 19430# Whether or not to build shared libraries. 19431build_libtool_libs=$enable_shared 19432 19433# Whether or not to build static libraries. 19434build_old_libs=$enable_static 19435 19436# What type of objects to build. 19437pic_mode=$pic_mode 19438 19439# Whether or not to optimize for fast installation. 19440fast_install=$enable_fast_install 19441 19442# Shared archive member basename,for filename based shared library versioning on AIX. 19443shared_archive_member_spec=$shared_archive_member_spec 19444 19445# Shell to use when invoking shell scripts. 19446SHELL=$lt_SHELL 19447 19448# An echo program that protects backslashes. 19449ECHO=$lt_ECHO 19450 19451# The PATH separator for the build system. 19452PATH_SEPARATOR=$lt_PATH_SEPARATOR 19453 19454# The host system. 19455host_alias=$host_alias 19456host=$host 19457host_os=$host_os 19458 19459# The build system. 19460build_alias=$build_alias 19461build=$build 19462build_os=$build_os 19463 19464# A sed program that does not truncate output. 19465SED=$lt_SED 19466 19467# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19468Xsed="\$SED -e 1s/^X//" 19469 19470# A grep program that handles long lines. 19471GREP=$lt_GREP 19472 19473# An ERE matcher. 19474EGREP=$lt_EGREP 19475 19476# A literal string matcher. 19477FGREP=$lt_FGREP 19478 19479# A BSD- or MS-compatible name lister. 19480NM=$lt_NM 19481 19482# Whether we need soft or hard links. 19483LN_S=$lt_LN_S 19484 19485# What is the maximum length of a command? 19486max_cmd_len=$max_cmd_len 19487 19488# Object file suffix (normally "o"). 19489objext=$ac_objext 19490 19491# Executable file suffix (normally ""). 19492exeext=$exeext 19493 19494# whether the shell understands "unset". 19495lt_unset=$lt_unset 19496 19497# turn spaces into newlines. 19498SP2NL=$lt_lt_SP2NL 19499 19500# turn newlines into spaces. 19501NL2SP=$lt_lt_NL2SP 19502 19503# convert \$build file names to \$host format. 19504to_host_file_cmd=$lt_cv_to_host_file_cmd 19505 19506# convert \$build files to toolchain format. 19507to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19508 19509# Method to check whether dependent libraries are shared objects. 19510deplibs_check_method=$lt_deplibs_check_method 19511 19512# Command to use when deplibs_check_method = "file_magic". 19513file_magic_cmd=$lt_file_magic_cmd 19514 19515# How to find potential files when deplibs_check_method = "file_magic". 19516file_magic_glob=$lt_file_magic_glob 19517 19518# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19519want_nocaseglob=$lt_want_nocaseglob 19520 19521# Command to associate shared and link libraries. 19522sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19523 19524# The archiver. 19525AR=$lt_AR 19526 19527# Flags to create an archive. 19528AR_FLAGS=$lt_AR_FLAGS 19529 19530# How to feed a file listing to the archiver. 19531archiver_list_spec=$lt_archiver_list_spec 19532 19533# A symbol stripping program. 19534STRIP=$lt_STRIP 19535 19536# Commands used to install an old-style archive. 19537RANLIB=$lt_RANLIB 19538old_postinstall_cmds=$lt_old_postinstall_cmds 19539old_postuninstall_cmds=$lt_old_postuninstall_cmds 19540 19541# Whether to use a lock for old archive extraction. 19542lock_old_archive_extraction=$lock_old_archive_extraction 19543 19544# A C compiler. 19545LTCC=$lt_CC 19546 19547# LTCC compiler flags. 19548LTCFLAGS=$lt_CFLAGS 19549 19550# Take the output of nm and produce a listing of raw symbols and C names. 19551global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19552 19553# Transform the output of nm in a proper C declaration. 19554global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19555 19556# Transform the output of nm into a list of symbols to manually relocate. 19557global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19558 19559# Transform the output of nm in a C name address pair. 19560global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19561 19562# Transform the output of nm in a C name address pair when lib prefix is needed. 19563global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19564 19565# The name lister interface. 19566nm_interface=$lt_lt_cv_nm_interface 19567 19568# Specify filename containing input files for \$NM. 19569nm_file_list_spec=$lt_nm_file_list_spec 19570 19571# The root where to search for dependent libraries,and where our libraries should be installed. 19572lt_sysroot=$lt_sysroot 19573 19574# Command to truncate a binary pipe. 19575lt_truncate_bin=$lt_lt_cv_truncate_bin 19576 19577# The name of the directory that contains temporary libtool files. 19578objdir=$objdir 19579 19580# Used to examine libraries when file_magic_cmd begins with "file". 19581MAGIC_CMD=$MAGIC_CMD 19582 19583# Must we lock files when doing compilation? 19584need_locks=$lt_need_locks 19585 19586# Manifest tool. 19587MANIFEST_TOOL=$lt_MANIFEST_TOOL 19588 19589# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19590DSYMUTIL=$lt_DSYMUTIL 19591 19592# Tool to change global to local symbols on Mac OS X. 19593NMEDIT=$lt_NMEDIT 19594 19595# Tool to manipulate fat objects and archives on Mac OS X. 19596LIPO=$lt_LIPO 19597 19598# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19599OTOOL=$lt_OTOOL 19600 19601# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19602OTOOL64=$lt_OTOOL64 19603 19604# Old archive suffix (normally "a"). 19605libext=$libext 19606 19607# Shared library suffix (normally ".so"). 19608shrext_cmds=$lt_shrext_cmds 19609 19610# The commands to extract the exported symbol list from a shared archive. 19611extract_expsyms_cmds=$lt_extract_expsyms_cmds 19612 19613# Variables whose values should be saved in libtool wrapper scripts and 19614# restored at link time. 19615variables_saved_for_relink=$lt_variables_saved_for_relink 19616 19617# Do we need the "lib" prefix for modules? 19618need_lib_prefix=$need_lib_prefix 19619 19620# Do we need a version for libraries? 19621need_version=$need_version 19622 19623# Library versioning type. 19624version_type=$version_type 19625 19626# Shared library runtime path variable. 19627runpath_var=$runpath_var 19628 19629# Shared library path variable. 19630shlibpath_var=$shlibpath_var 19631 19632# Is shlibpath searched before the hard-coded library search path? 19633shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19634 19635# Format of library name prefix. 19636libname_spec=$lt_libname_spec 19637 19638# List of archive names. First name is the real one, the rest are links. 19639# The last name is the one that the linker finds with -lNAME 19640library_names_spec=$lt_library_names_spec 19641 19642# The coded name of the library, if different from the real name. 19643soname_spec=$lt_soname_spec 19644 19645# Permission mode override for installation of shared libraries. 19646install_override_mode=$lt_install_override_mode 19647 19648# Command to use after installation of a shared archive. 19649postinstall_cmds=$lt_postinstall_cmds 19650 19651# Command to use after uninstallation of a shared archive. 19652postuninstall_cmds=$lt_postuninstall_cmds 19653 19654# Commands used to finish a libtool library installation in a directory. 19655finish_cmds=$lt_finish_cmds 19656 19657# As "finish_cmds", except a single script fragment to be evaled but 19658# not shown. 19659finish_eval=$lt_finish_eval 19660 19661# Whether we should hardcode library paths into libraries. 19662hardcode_into_libs=$hardcode_into_libs 19663 19664# Compile-time system search path for libraries. 19665sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19666 19667# Detected run-time system search path for libraries. 19668sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19669 19670# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19671configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19672 19673# Whether dlopen is supported. 19674dlopen_support=$enable_dlopen 19675 19676# Whether dlopen of programs is supported. 19677dlopen_self=$enable_dlopen_self 19678 19679# Whether dlopen of statically linked programs is supported. 19680dlopen_self_static=$enable_dlopen_self_static 19681 19682# Commands to strip libraries. 19683old_striplib=$lt_old_striplib 19684striplib=$lt_striplib 19685 19686 19687# The linker used to build libraries. 19688LD=$lt_LD 19689 19690# How to create reloadable object files. 19691reload_flag=$lt_reload_flag 19692reload_cmds=$lt_reload_cmds 19693 19694# Commands used to build an old-style archive. 19695old_archive_cmds=$lt_old_archive_cmds 19696 19697# A language specific compiler. 19698CC=$lt_compiler 19699 19700# Is the compiler the GNU compiler? 19701with_gcc=$GCC 19702 19703# Compiler flag to turn off builtin functions. 19704no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19705 19706# Additional compiler flags for building library objects. 19707pic_flag=$lt_lt_prog_compiler_pic 19708 19709# How to pass a linker flag through the compiler. 19710wl=$lt_lt_prog_compiler_wl 19711 19712# Compiler flag to prevent dynamic linking. 19713link_static_flag=$lt_lt_prog_compiler_static 19714 19715# Does compiler simultaneously support -c and -o options? 19716compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19717 19718# Whether or not to add -lc for building shared libraries. 19719build_libtool_need_lc=$archive_cmds_need_lc 19720 19721# Whether or not to disallow shared libs when runtime libs are static. 19722allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19723 19724# Compiler flag to allow reflexive dlopens. 19725export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19726 19727# Compiler flag to generate shared objects directly from archives. 19728whole_archive_flag_spec=$lt_whole_archive_flag_spec 19729 19730# Whether the compiler copes with passing no objects directly. 19731compiler_needs_object=$lt_compiler_needs_object 19732 19733# Create an old-style archive from a shared archive. 19734old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19735 19736# Create a temporary old-style archive to link instead of a shared archive. 19737old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19738 19739# Commands used to build a shared archive. 19740archive_cmds=$lt_archive_cmds 19741archive_expsym_cmds=$lt_archive_expsym_cmds 19742 19743# Commands used to build a loadable module if different from building 19744# a shared archive. 19745module_cmds=$lt_module_cmds 19746module_expsym_cmds=$lt_module_expsym_cmds 19747 19748# Whether we are building with GNU ld or not. 19749with_gnu_ld=$lt_with_gnu_ld 19750 19751# Flag that allows shared libraries with undefined symbols to be built. 19752allow_undefined_flag=$lt_allow_undefined_flag 19753 19754# Flag that enforces no undefined symbols. 19755no_undefined_flag=$lt_no_undefined_flag 19756 19757# Flag to hardcode \$libdir into a binary during linking. 19758# This must work even if \$libdir does not exist 19759hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19760 19761# Whether we need a single "-rpath" flag with a separated argument. 19762hardcode_libdir_separator=$lt_hardcode_libdir_separator 19763 19764# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19765# DIR into the resulting binary. 19766hardcode_direct=$hardcode_direct 19767 19768# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19769# DIR into the resulting binary and the resulting library dependency is 19770# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19771# library is relocated. 19772hardcode_direct_absolute=$hardcode_direct_absolute 19773 19774# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19775# into the resulting binary. 19776hardcode_minus_L=$hardcode_minus_L 19777 19778# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19779# into the resulting binary. 19780hardcode_shlibpath_var=$hardcode_shlibpath_var 19781 19782# Set to "yes" if building a shared library automatically hardcodes DIR 19783# into the library and all subsequent libraries and executables linked 19784# against it. 19785hardcode_automatic=$hardcode_automatic 19786 19787# Set to yes if linker adds runtime paths of dependent libraries 19788# to runtime path list. 19789inherit_rpath=$inherit_rpath 19790 19791# Whether libtool must link a program against all its dependency libraries. 19792link_all_deplibs=$link_all_deplibs 19793 19794# Set to "yes" if exported symbols are required. 19795always_export_symbols=$always_export_symbols 19796 19797# The commands to list exported symbols. 19798export_symbols_cmds=$lt_export_symbols_cmds 19799 19800# Symbols that should not be listed in the preloaded symbols. 19801exclude_expsyms=$lt_exclude_expsyms 19802 19803# Symbols that must always be exported. 19804include_expsyms=$lt_include_expsyms 19805 19806# Commands necessary for linking programs (against libraries) with templates. 19807prelink_cmds=$lt_prelink_cmds 19808 19809# Commands necessary for finishing linking programs. 19810postlink_cmds=$lt_postlink_cmds 19811 19812# Specify filename containing input files. 19813file_list_spec=$lt_file_list_spec 19814 19815# How to hardcode a shared library path into an executable. 19816hardcode_action=$hardcode_action 19817 19818# ### END LIBTOOL CONFIG 19819 19820_LT_EOF 19821 19822 cat <<'_LT_EOF' >> "$cfgfile" 19823 19824# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19825 19826# func_munge_path_list VARIABLE PATH 19827# ----------------------------------- 19828# VARIABLE is name of variable containing _space_ separated list of 19829# directories to be munged by the contents of PATH, which is string 19830# having a format: 19831# "DIR[:DIR]:" 19832# string "DIR[ DIR]" will be prepended to VARIABLE 19833# ":DIR[:DIR]" 19834# string "DIR[ DIR]" will be appended to VARIABLE 19835# "DIRP[:DIRP]::[DIRA:]DIRA" 19836# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19837# "DIRA[ DIRA]" will be appended to VARIABLE 19838# "DIR[:DIR]" 19839# VARIABLE will be replaced by "DIR[ DIR]" 19840func_munge_path_list () 19841{ 19842 case x$2 in 19843 x) 19844 ;; 19845 *:) 19846 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19847 ;; 19848 x:*) 19849 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19850 ;; 19851 *::*) 19852 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19853 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19854 ;; 19855 *) 19856 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19857 ;; 19858 esac 19859} 19860 19861 19862# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19863func_cc_basename () 19864{ 19865 for cc_temp in $*""; do 19866 case $cc_temp in 19867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19869 \-*) ;; 19870 *) break;; 19871 esac 19872 done 19873 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19874} 19875 19876 19877# ### END FUNCTIONS SHARED WITH CONFIGURE 19878 19879_LT_EOF 19880 19881 case $host_os in 19882 aix3*) 19883 cat <<\_LT_EOF >> "$cfgfile" 19884# AIX sometimes has problems with the GCC collect2 program. For some 19885# reason, if we set the COLLECT_NAMES environment variable, the problems 19886# vanish in a puff of smoke. 19887if test set != "${COLLECT_NAMES+set}"; then 19888 COLLECT_NAMES= 19889 export COLLECT_NAMES 19890fi 19891_LT_EOF 19892 ;; 19893 esac 19894 19895 19896ltmain=$ac_aux_dir/ltmain.sh 19897 19898 19899 # We use sed instead of cat because bash on DJGPP gets confused if 19900 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19901 # text mode, it properly converts lines to CR/LF. This bash problem 19902 # is reportedly fixed, but why not run on old versions too? 19903 sed '$q' "$ltmain" >> "$cfgfile" \ 19904 || (rm -f "$cfgfile"; exit 1) 19905 19906 mv -f "$cfgfile" "$ofile" || 19907 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19908 chmod +x "$ofile" 19909 19910 ;; 19911 19912 esac 19913done # for ac_tag 19914 19915 19916as_fn_exit 0 19917_ACEOF 19918ac_clean_files=$ac_clean_files_save 19919 19920test $ac_write_fail = 0 || 19921 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19922 19923 19924# configure is writing to config.log, and then calls config.status. 19925# config.status does its own redirection, appending to config.log. 19926# Unfortunately, on DOS this fails, as config.log is still kept open 19927# by configure, so config.status won't be able to write to it; its 19928# output is simply discarded. So we exec the FD to /dev/null, 19929# effectively closing config.log, so it can be properly (re)opened and 19930# appended to by config.status. When coming back to configure, we 19931# need to make the FD available again. 19932if test "$no_create" != yes; then 19933 ac_cs_success=: 19934 ac_config_status_args= 19935 test "$silent" = yes && 19936 ac_config_status_args="$ac_config_status_args --quiet" 19937 exec 5>/dev/null 19938 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19939 exec 5>>config.log 19940 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19941 # would make configure fail if this is the last instruction. 19942 $ac_cs_success || as_fn_exit 1 19943fi 19944if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19946$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19947fi 19948 19949 19950