1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GNU Fortran Runtime Library 0.3. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='GNU Fortran Runtime Library' 589PACKAGE_TARNAME='libgfortran' 590PACKAGE_VERSION='0.3' 591PACKAGE_STRING='GNU Fortran Runtime Library 0.3' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='http://www.gnu.org/software/libgfortran/' 594 595# Factoring default headers for most tests. 596ac_includes_default="\ 597#include <stdio.h> 598#ifdef HAVE_SYS_TYPES_H 599# include <sys/types.h> 600#endif 601#ifdef HAVE_SYS_STAT_H 602# include <sys/stat.h> 603#endif 604#ifdef STDC_HEADERS 605# include <stdlib.h> 606# include <stddef.h> 607#else 608# ifdef HAVE_STDLIB_H 609# include <stdlib.h> 610# endif 611#endif 612#ifdef HAVE_STRING_H 613# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 614# include <memory.h> 615# endif 616# include <string.h> 617#endif 618#ifdef HAVE_STRINGS_H 619# include <strings.h> 620#endif 621#ifdef HAVE_INTTYPES_H 622# include <inttypes.h> 623#endif 624#ifdef HAVE_STDINT_H 625# include <stdint.h> 626#endif 627#ifdef HAVE_UNISTD_H 628# include <unistd.h> 629#endif" 630 631ac_header_list= 632ac_func_list= 633ac_c_werror_flag= 634ac_c_werror_flag= 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639get_gcc_base_ver 640HAVE_AVX128_FALSE 641HAVE_AVX128_TRUE 642IEEE_FLAGS 643IEEE_SUPPORT 644IEEE_SUPPORT_FALSE 645IEEE_SUPPORT_TRUE 646FPU_HOST_HEADER 647LIBGFOR_BUILD_QUAD_FALSE 648LIBGFOR_BUILD_QUAD_TRUE 649LIBQUADINCLUDE 650LIBQUADLIB_DEP 651LIBQUADLIB 652LIBQUADSPEC 653extra_ldflags_libgfortran 654ac_ct_FC 655FCFLAGS 656FC 657enable_static 658enable_shared 659lt_host_flags 660OTOOL64 661OTOOL 662LIPO 663NMEDIT 664DSYMUTIL 665OBJDUMP 666LN_S 667NM 668ac_ct_DUMPBIN 669DUMPBIN 670LIBTOOL 671RANLIB 672AR 673AS 674HAVE_HWCAP_FALSE 675HAVE_HWCAP_TRUE 676HWCAP_LDFLAGS 677LD 678FGREP 679SED 680SECTION_FLAGS 681LIBGFOR_MINIMAL_FALSE 682LIBGFOR_MINIMAL_TRUE 683LIBGFOR_USE_SYMVER_SUN_FALSE 684LIBGFOR_USE_SYMVER_SUN_TRUE 685LIBGFOR_USE_SYMVER_GNU_FALSE 686LIBGFOR_USE_SYMVER_GNU_TRUE 687LIBGFOR_USE_SYMVER_FALSE 688LIBGFOR_USE_SYMVER_TRUE 689AM_CFLAGS 690AM_FCFLAGS 691toolexeclibdir 692toolexecdir 693EGREP 694GREP 695CPP 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__quote 704am__include 705DEPDIR 706OBJEXT 707EXEEXT 708ac_ct_CC 709CPPFLAGS 710LDFLAGS 711CFLAGS 712CC 713multi_basedir 714MAINT 715MAINTAINER_MODE_FALSE 716MAINTAINER_MODE_TRUE 717AM_BACKSLASH 718AM_DEFAULT_VERBOSITY 719AM_DEFAULT_V 720AM_V 721am__untar 722am__tar 723AMTAR 724am__leading_dot 725SET_MAKE 726AWK 727mkdir_p 728MKDIR_P 729INSTALL_STRIP_PROGRAM 730STRIP 731install_sh 732MAKEINFO 733AUTOHEADER 734AUTOMAKE 735AUTOCONF 736ACLOCAL 737VERSION 738PACKAGE 739CYGPATH_W 740am__isrc 741INSTALL_DATA 742INSTALL_SCRIPT 743INSTALL_PROGRAM 744target_noncanonical 745target_os 746target_vendor 747target_cpu 748target 749host_os 750host_vendor 751host_cpu 752host 753onestep 754onestep_FALSE 755onestep_TRUE 756target_subdir 757host_subdir 758build_subdir 759build_libsubdir 760build_os 761build_vendor 762build_cpu 763build 764target_alias 765host_alias 766build_alias 767LIBS 768ECHO_T 769ECHO_N 770ECHO_C 771DEFS 772mandir 773localedir 774libdir 775psdir 776pdfdir 777dvidir 778htmldir 779infodir 780docdir 781oldincludedir 782includedir 783localstatedir 784sharedstatedir 785sysconfdir 786datadir 787datarootdir 788libexecdir 789sbindir 790bindir 791program_transform_name 792prefix 793exec_prefix 794PACKAGE_URL 795PACKAGE_BUGREPORT 796PACKAGE_STRING 797PACKAGE_VERSION 798PACKAGE_TARNAME 799PACKAGE_NAME 800PATH_SEPARATOR 801SHELL' 802ac_subst_files='' 803ac_user_opts=' 804enable_option_checking 805with_build_libsubdir 806enable_version_specific_runtime_libs 807enable_intermodule 808enable_silent_rules 809enable_maintainer_mode 810enable_multilib 811enable_dependency_tracking 812with_toolexeclibdir 813enable_cet 814enable_symvers 815with_gnu_ld 816enable_shared 817enable_static 818with_pic 819enable_fast_install 820enable_libtool_lock 821enable_largefile 822enable_libquadmath_support 823with_gcc_major_version_only 824' 825 ac_precious_vars='build_alias 826host_alias 827target_alias 828CC 829CFLAGS 830LDFLAGS 831LIBS 832CPPFLAGS 833CPP 834FC 835FCFLAGS' 836 837 838# Initialize some variables set by options. 839ac_init_help= 840ac_init_version=false 841ac_unrecognized_opts= 842ac_unrecognized_sep= 843# The variables have the same names as the options, with 844# dashes changed to underlines. 845cache_file=/dev/null 846exec_prefix=NONE 847no_create= 848no_recursion= 849prefix=NONE 850program_prefix=NONE 851program_suffix=NONE 852program_transform_name=s,x,x, 853silent= 854site= 855srcdir= 856verbose= 857x_includes=NONE 858x_libraries=NONE 859 860# Installation directory options. 861# These are left unexpanded so users can "make install exec_prefix=/foo" 862# and all the variables that are supposed to be based on exec_prefix 863# by default will actually change. 864# Use braces instead of parens because sh, perl, etc. also accept them. 865# (The list follows the same order as the GNU Coding Standards.) 866bindir='${exec_prefix}/bin' 867sbindir='${exec_prefix}/sbin' 868libexecdir='${exec_prefix}/libexec' 869datarootdir='${prefix}/share' 870datadir='${datarootdir}' 871sysconfdir='${prefix}/etc' 872sharedstatedir='${prefix}/com' 873localstatedir='${prefix}/var' 874includedir='${prefix}/include' 875oldincludedir='/usr/include' 876docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 877infodir='${datarootdir}/info' 878htmldir='${docdir}' 879dvidir='${docdir}' 880pdfdir='${docdir}' 881psdir='${docdir}' 882libdir='${exec_prefix}/lib' 883localedir='${datarootdir}/locale' 884mandir='${datarootdir}/man' 885 886ac_prev= 887ac_dashdash= 888for ac_option 889do 890 # If the previous option needs an argument, assign it. 891 if test -n "$ac_prev"; then 892 eval $ac_prev=\$ac_option 893 ac_prev= 894 continue 895 fi 896 897 case $ac_option in 898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 899 *=) ac_optarg= ;; 900 *) ac_optarg=yes ;; 901 esac 902 903 # Accept the important Cygnus configure options, so we can diagnose typos. 904 905 case $ac_dashdash$ac_option in 906 --) 907 ac_dashdash=yes ;; 908 909 -bindir | --bindir | --bindi | --bind | --bin | --bi) 910 ac_prev=bindir ;; 911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 912 bindir=$ac_optarg ;; 913 914 -build | --build | --buil | --bui | --bu) 915 ac_prev=build_alias ;; 916 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 917 build_alias=$ac_optarg ;; 918 919 -cache-file | --cache-file | --cache-fil | --cache-fi \ 920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 921 ac_prev=cache_file ;; 922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 924 cache_file=$ac_optarg ;; 925 926 --config-cache | -C) 927 cache_file=config.cache ;; 928 929 -datadir | --datadir | --datadi | --datad) 930 ac_prev=datadir ;; 931 -datadir=* | --datadir=* | --datadi=* | --datad=*) 932 datadir=$ac_optarg ;; 933 934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 935 | --dataroo | --dataro | --datar) 936 ac_prev=datarootdir ;; 937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 939 datarootdir=$ac_optarg ;; 940 941 -disable-* | --disable-*) 942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 943 # Reject names that are not valid shell variable names. 944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 945 as_fn_error $? "invalid feature name: $ac_useropt" 946 ac_useropt_orig=$ac_useropt 947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 948 case $ac_user_opts in 949 *" 950"enable_$ac_useropt" 951"*) ;; 952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 953 ac_unrecognized_sep=', ';; 954 esac 955 eval enable_$ac_useropt=no ;; 956 957 -docdir | --docdir | --docdi | --doc | --do) 958 ac_prev=docdir ;; 959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 960 docdir=$ac_optarg ;; 961 962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 963 ac_prev=dvidir ;; 964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 965 dvidir=$ac_optarg ;; 966 967 -enable-* | --enable-*) 968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 969 # Reject names that are not valid shell variable names. 970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 971 as_fn_error $? "invalid feature name: $ac_useropt" 972 ac_useropt_orig=$ac_useropt 973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 974 case $ac_user_opts in 975 *" 976"enable_$ac_useropt" 977"*) ;; 978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 979 ac_unrecognized_sep=', ';; 980 esac 981 eval enable_$ac_useropt=\$ac_optarg ;; 982 983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 985 | --exec | --exe | --ex) 986 ac_prev=exec_prefix ;; 987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 989 | --exec=* | --exe=* | --ex=*) 990 exec_prefix=$ac_optarg ;; 991 992 -gas | --gas | --ga | --g) 993 # Obsolete; use --with-gas. 994 with_gas=yes ;; 995 996 -help | --help | --hel | --he | -h) 997 ac_init_help=long ;; 998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 999 ac_init_help=recursive ;; 1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1001 ac_init_help=short ;; 1002 1003 -host | --host | --hos | --ho) 1004 ac_prev=host_alias ;; 1005 -host=* | --host=* | --hos=* | --ho=*) 1006 host_alias=$ac_optarg ;; 1007 1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1009 ac_prev=htmldir ;; 1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1011 | --ht=*) 1012 htmldir=$ac_optarg ;; 1013 1014 -includedir | --includedir | --includedi | --included | --include \ 1015 | --includ | --inclu | --incl | --inc) 1016 ac_prev=includedir ;; 1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1018 | --includ=* | --inclu=* | --incl=* | --inc=*) 1019 includedir=$ac_optarg ;; 1020 1021 -infodir | --infodir | --infodi | --infod | --info | --inf) 1022 ac_prev=infodir ;; 1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1024 infodir=$ac_optarg ;; 1025 1026 -libdir | --libdir | --libdi | --libd) 1027 ac_prev=libdir ;; 1028 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1029 libdir=$ac_optarg ;; 1030 1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1032 | --libexe | --libex | --libe) 1033 ac_prev=libexecdir ;; 1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1035 | --libexe=* | --libex=* | --libe=*) 1036 libexecdir=$ac_optarg ;; 1037 1038 -localedir | --localedir | --localedi | --localed | --locale) 1039 ac_prev=localedir ;; 1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1041 localedir=$ac_optarg ;; 1042 1043 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1044 | --localstate | --localstat | --localsta | --localst | --locals) 1045 ac_prev=localstatedir ;; 1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1048 localstatedir=$ac_optarg ;; 1049 1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1051 ac_prev=mandir ;; 1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1053 mandir=$ac_optarg ;; 1054 1055 -nfp | --nfp | --nf) 1056 # Obsolete; use --without-fp. 1057 with_fp=no ;; 1058 1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1060 | --no-cr | --no-c | -n) 1061 no_create=yes ;; 1062 1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1065 no_recursion=yes ;; 1066 1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1069 | --oldin | --oldi | --old | --ol | --o) 1070 ac_prev=oldincludedir ;; 1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1074 oldincludedir=$ac_optarg ;; 1075 1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1077 ac_prev=prefix ;; 1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1079 prefix=$ac_optarg ;; 1080 1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1082 | --program-pre | --program-pr | --program-p) 1083 ac_prev=program_prefix ;; 1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1086 program_prefix=$ac_optarg ;; 1087 1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1089 | --program-suf | --program-su | --program-s) 1090 ac_prev=program_suffix ;; 1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1093 program_suffix=$ac_optarg ;; 1094 1095 -program-transform-name | --program-transform-name \ 1096 | --program-transform-nam | --program-transform-na \ 1097 | --program-transform-n | --program-transform- \ 1098 | --program-transform | --program-transfor \ 1099 | --program-transfo | --program-transf \ 1100 | --program-trans | --program-tran \ 1101 | --progr-tra | --program-tr | --program-t) 1102 ac_prev=program_transform_name ;; 1103 -program-transform-name=* | --program-transform-name=* \ 1104 | --program-transform-nam=* | --program-transform-na=* \ 1105 | --program-transform-n=* | --program-transform-=* \ 1106 | --program-transform=* | --program-transfor=* \ 1107 | --program-transfo=* | --program-transf=* \ 1108 | --program-trans=* | --program-tran=* \ 1109 | --progr-tra=* | --program-tr=* | --program-t=*) 1110 program_transform_name=$ac_optarg ;; 1111 1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1113 ac_prev=pdfdir ;; 1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1115 pdfdir=$ac_optarg ;; 1116 1117 -psdir | --psdir | --psdi | --psd | --ps) 1118 ac_prev=psdir ;; 1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1120 psdir=$ac_optarg ;; 1121 1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1123 | -silent | --silent | --silen | --sile | --sil) 1124 silent=yes ;; 1125 1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1127 ac_prev=sbindir ;; 1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1129 | --sbi=* | --sb=*) 1130 sbindir=$ac_optarg ;; 1131 1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1134 | --sharedst | --shareds | --shared | --share | --shar \ 1135 | --sha | --sh) 1136 ac_prev=sharedstatedir ;; 1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1140 | --sha=* | --sh=*) 1141 sharedstatedir=$ac_optarg ;; 1142 1143 -site | --site | --sit) 1144 ac_prev=site ;; 1145 -site=* | --site=* | --sit=*) 1146 site=$ac_optarg ;; 1147 1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1149 ac_prev=srcdir ;; 1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1151 srcdir=$ac_optarg ;; 1152 1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1154 | --syscon | --sysco | --sysc | --sys | --sy) 1155 ac_prev=sysconfdir ;; 1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1158 sysconfdir=$ac_optarg ;; 1159 1160 -target | --target | --targe | --targ | --tar | --ta | --t) 1161 ac_prev=target_alias ;; 1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1163 target_alias=$ac_optarg ;; 1164 1165 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1166 verbose=yes ;; 1167 1168 -version | --version | --versio | --versi | --vers | -V) 1169 ac_init_version=: ;; 1170 1171 -with-* | --with-*) 1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1175 as_fn_error $? "invalid package name: $ac_useropt" 1176 ac_useropt_orig=$ac_useropt 1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1178 case $ac_user_opts in 1179 *" 1180"with_$ac_useropt" 1181"*) ;; 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1183 ac_unrecognized_sep=', ';; 1184 esac 1185 eval with_$ac_useropt=\$ac_optarg ;; 1186 1187 -without-* | --without-*) 1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1189 # Reject names that are not valid shell variable names. 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1191 as_fn_error $? "invalid package name: $ac_useropt" 1192 ac_useropt_orig=$ac_useropt 1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1194 case $ac_user_opts in 1195 *" 1196"with_$ac_useropt" 1197"*) ;; 1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1199 ac_unrecognized_sep=', ';; 1200 esac 1201 eval with_$ac_useropt=no ;; 1202 1203 --x) 1204 # Obsolete; use --with-x. 1205 with_x=yes ;; 1206 1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1208 | --x-incl | --x-inc | --x-in | --x-i) 1209 ac_prev=x_includes ;; 1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1212 x_includes=$ac_optarg ;; 1213 1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1216 ac_prev=x_libraries ;; 1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1219 x_libraries=$ac_optarg ;; 1220 1221 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1222Try \`$0 --help' for more information" 1223 ;; 1224 1225 *=*) 1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1227 # Reject names that are not valid shell variable names. 1228 case $ac_envvar in #( 1229 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1231 esac 1232 eval $ac_envvar=\$ac_optarg 1233 export $ac_envvar ;; 1234 1235 *) 1236 # FIXME: should be removed in autoconf 3.0. 1237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1241 ;; 1242 1243 esac 1244done 1245 1246if test -n "$ac_prev"; then 1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1248 as_fn_error $? "missing argument to $ac_option" 1249fi 1250 1251if test -n "$ac_unrecognized_opts"; then 1252 case $enable_option_checking in 1253 no) ;; 1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1256 esac 1257fi 1258 1259# Check all directory arguments for consistency. 1260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1261 datadir sysconfdir sharedstatedir localstatedir includedir \ 1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1263 libdir localedir mandir 1264do 1265 eval ac_val=\$$ac_var 1266 # Remove trailing slashes. 1267 case $ac_val in 1268 */ ) 1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1270 eval $ac_var=\$ac_val;; 1271 esac 1272 # Be sure to have absolute directory names. 1273 case $ac_val in 1274 [\\/$]* | ?:[\\/]* ) continue;; 1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1276 esac 1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1278done 1279 1280# There might be people who depend on the old broken behavior: `$host' 1281# used to hold the argument of --host etc. 1282# FIXME: To remove some day. 1283build=$build_alias 1284host=$host_alias 1285target=$target_alias 1286 1287# FIXME: To remove some day. 1288if test "x$host_alias" != x; then 1289 if test "x$build_alias" = x; then 1290 cross_compiling=maybe 1291 elif test "x$build_alias" != "x$host_alias"; then 1292 cross_compiling=yes 1293 fi 1294fi 1295 1296ac_tool_prefix= 1297test -n "$host_alias" && ac_tool_prefix=$host_alias- 1298 1299test "$silent" = yes && exec 6>/dev/null 1300 1301 1302ac_pwd=`pwd` && test -n "$ac_pwd" && 1303ac_ls_di=`ls -di .` && 1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1305 as_fn_error $? "working directory cannot be determined" 1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1307 as_fn_error $? "pwd does not report name of working directory" 1308 1309 1310# Find the source files, if location was not specified. 1311if test -z "$srcdir"; then 1312 ac_srcdir_defaulted=yes 1313 # Try the directory containing this script, then the parent directory. 1314 ac_confdir=`$as_dirname -- "$as_myself" || 1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1316 X"$as_myself" : 'X\(//\)[^/]' \| \ 1317 X"$as_myself" : 'X\(//\)$' \| \ 1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1319$as_echo X"$as_myself" | 1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\/\)[^/].*/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\/\)$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\).*/{ 1333 s//\1/ 1334 q 1335 } 1336 s/.*/./; q'` 1337 srcdir=$ac_confdir 1338 if test ! -r "$srcdir/$ac_unique_file"; then 1339 srcdir=.. 1340 fi 1341else 1342 ac_srcdir_defaulted=no 1343fi 1344if test ! -r "$srcdir/$ac_unique_file"; then 1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1347fi 1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1349ac_abs_confdir=`( 1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1351 pwd)` 1352# When building in place, set srcdir=. 1353if test "$ac_abs_confdir" = "$ac_pwd"; then 1354 srcdir=. 1355fi 1356# Remove unnecessary trailing slashes from srcdir. 1357# Double slashes in file names in object file debugging info 1358# mess up M-x gdb in Emacs. 1359case $srcdir in 1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1361esac 1362for ac_var in $ac_precious_vars; do 1363 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_env_${ac_var}_value=\$${ac_var} 1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1366 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1367done 1368 1369# 1370# Report the --help message. 1371# 1372if test "$ac_init_help" = "long"; then 1373 # Omit some internal or obsolete options to make the list less imposing. 1374 # This message is too long to be a string in the A/UX 3.1 sh. 1375 cat <<_ACEOF 1376\`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems. 1377 1378Usage: $0 [OPTION]... [VAR=VALUE]... 1379 1380To assign environment variables (e.g., CC, CFLAGS...), specify them as 1381VAR=VALUE. See below for descriptions of some of the useful variables. 1382 1383Defaults for the options are specified in brackets. 1384 1385Configuration: 1386 -h, --help display this help and exit 1387 --help=short display options specific to this package 1388 --help=recursive display the short help of all the included packages 1389 -V, --version display version information and exit 1390 -q, --quiet, --silent do not print \`checking ...' messages 1391 --cache-file=FILE cache test results in FILE [disabled] 1392 -C, --config-cache alias for \`--cache-file=config.cache' 1393 -n, --no-create do not create output files 1394 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1395 1396Installation directories: 1397 --prefix=PREFIX install architecture-independent files in PREFIX 1398 [$ac_default_prefix] 1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1400 [PREFIX] 1401 1402By default, \`make install' will install all the files in 1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1404an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1405for instance \`--prefix=\$HOME'. 1406 1407For better control, use the options below. 1408 1409Fine tuning of the installation directories: 1410 --bindir=DIR user executables [EPREFIX/bin] 1411 --sbindir=DIR system admin executables [EPREFIX/sbin] 1412 --libexecdir=DIR program executables [EPREFIX/libexec] 1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1416 --libdir=DIR object code libraries [EPREFIX/lib] 1417 --includedir=DIR C header files [PREFIX/include] 1418 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1421 --infodir=DIR info documentation [DATAROOTDIR/info] 1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1423 --mandir=DIR man documentation [DATAROOTDIR/man] 1424 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran] 1425 --htmldir=DIR html documentation [DOCDIR] 1426 --dvidir=DIR dvi documentation [DOCDIR] 1427 --pdfdir=DIR pdf documentation [DOCDIR] 1428 --psdir=DIR ps documentation [DOCDIR] 1429_ACEOF 1430 1431 cat <<\_ACEOF 1432 1433Program names: 1434 --program-prefix=PREFIX prepend PREFIX to installed program names 1435 --program-suffix=SUFFIX append SUFFIX to installed program names 1436 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1437 1438System types: 1439 --build=BUILD configure for building on BUILD [guessed] 1440 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1441 --target=TARGET configure for building compilers for TARGET [HOST] 1442_ACEOF 1443fi 1444 1445if test -n "$ac_init_help"; then 1446 case $ac_init_help in 1447 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";; 1448 esac 1449 cat <<\_ACEOF 1450 1451Optional Features: 1452 --disable-option-checking ignore unrecognized --enable/--with options 1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1455 --enable-version-specific-runtime-libs 1456 specify that runtime libraries should be installed 1457 in a compiler-specific directory 1458 --enable-intermodule build the library in one step 1459 --enable-silent-rules less verbose build output (undo: "make V=1") 1460 --disable-silent-rules verbose build output (undo: "make V=0") 1461 --enable-maintainer-mode 1462 enable make rules and dependencies not useful (and 1463 sometimes confusing) to the casual installer 1464 --enable-multilib build many library versions (default) 1465 --enable-dependency-tracking 1466 do not reject slow dependency extractors 1467 --disable-dependency-tracking 1468 speeds up one-time build 1469 --enable-cet enable Intel CET in target libraries [default=no] 1470 --disable-symvers disable symbol versioning for libgfortran 1471 --enable-shared[=PKGS] build shared libraries [default=yes] 1472 --enable-static[=PKGS] build static libraries [default=yes] 1473 --enable-fast-install[=PKGS] 1474 optimize for fast installation [default=yes] 1475 --disable-libtool-lock avoid locking (might break parallel builds) 1476 --disable-largefile omit support for large files 1477 --disable-libquadmath-support 1478 disable libquadmath support for Fortran 1479 1480Optional Packages: 1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1483 --with-build-libsubdir=DIR Directory where to find libraries for build system 1484 --with-toolexeclibdir=DIR 1485 install libraries built with a cross compiler within 1486 DIR 1487 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1488 --with-pic try to use only PIC/non-PIC objects [default=use 1489 both] 1490 --with-gcc-major-version-only 1491 use only GCC major number in filesystem paths 1492 1493Some influential environment variables: 1494 CC C compiler command 1495 CFLAGS C compiler flags 1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1497 nonstandard directory <lib dir> 1498 LIBS libraries to pass to the linker, e.g. -l<library> 1499 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1500 you have headers in a nonstandard directory <include dir> 1501 CPP C preprocessor 1502 FC Fortran compiler command 1503 FCFLAGS Fortran compiler flags 1504 1505Use these variables to override the choices made by `configure' or to help 1506it to find libraries and programs with nonstandard names/locations. 1507 1508Report bugs to the package provider. 1509GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. 1510General help using GNU software: <http://www.gnu.org/gethelp/>. 1511_ACEOF 1512ac_status=$? 1513fi 1514 1515if test "$ac_init_help" = "recursive"; then 1516 # If there are subdirs, report their specific --help. 1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1518 test -d "$ac_dir" || 1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1520 continue 1521 ac_builddir=. 1522 1523case "$ac_dir" in 1524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525*) 1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1527 # A ".." for each directory in $ac_dir_suffix. 1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1529 case $ac_top_builddir_sub in 1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1532 esac ;; 1533esac 1534ac_abs_top_builddir=$ac_pwd 1535ac_abs_builddir=$ac_pwd$ac_dir_suffix 1536# for backward compatibility: 1537ac_top_builddir=$ac_top_build_prefix 1538 1539case $srcdir in 1540 .) # We are building in place. 1541 ac_srcdir=. 1542 ac_top_srcdir=$ac_top_builddir_sub 1543 ac_abs_top_srcdir=$ac_pwd ;; 1544 [\\/]* | ?:[\\/]* ) # Absolute name. 1545 ac_srcdir=$srcdir$ac_dir_suffix; 1546 ac_top_srcdir=$srcdir 1547 ac_abs_top_srcdir=$srcdir ;; 1548 *) # Relative name. 1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1550 ac_top_srcdir=$ac_top_build_prefix$srcdir 1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1552esac 1553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1554 1555 cd "$ac_dir" || { ac_status=$?; continue; } 1556 # Check for guested configure. 1557 if test -f "$ac_srcdir/configure.gnu"; then 1558 echo && 1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1560 elif test -f "$ac_srcdir/configure"; then 1561 echo && 1562 $SHELL "$ac_srcdir/configure" --help=recursive 1563 else 1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1565 fi || ac_status=$? 1566 cd "$ac_pwd" || { ac_status=$?; break; } 1567 done 1568fi 1569 1570test -n "$ac_init_help" && exit $ac_status 1571if $ac_init_version; then 1572 cat <<\_ACEOF 1573GNU Fortran Runtime Library configure 0.3 1574generated by GNU Autoconf 2.69 1575 1576Copyright (C) 2012 Free Software Foundation, Inc. 1577This configure script is free software; the Free Software Foundation 1578gives unlimited permission to copy, distribute and modify it. 1579_ACEOF 1580 exit 1581fi 1582 1583## ------------------------ ## 1584## Autoconf initialization. ## 1585## ------------------------ ## 1586 1587# ac_fn_c_try_compile LINENO 1588# -------------------------- 1589# Try to compile conftest.$ac_ext, and return whether this succeeded. 1590ac_fn_c_try_compile () 1591{ 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1593 rm -f conftest.$ac_objext 1594 if { { ac_try="$ac_compile" 1595case "(($ac_try" in 1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1597 *) ac_try_echo=$ac_try;; 1598esac 1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1600$as_echo "$ac_try_echo"; } >&5 1601 (eval "$ac_compile") 2>conftest.err 1602 ac_status=$? 1603 if test -s conftest.err; then 1604 grep -v '^ *+' conftest.err >conftest.er1 1605 cat conftest.er1 >&5 1606 mv -f conftest.er1 conftest.err 1607 fi 1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1609 test $ac_status = 0; } && { 1610 test -z "$ac_c_werror_flag" || 1611 test ! -s conftest.err 1612 } && test -s conftest.$ac_objext; then : 1613 ac_retval=0 1614else 1615 $as_echo "$as_me: failed program was:" >&5 1616sed 's/^/| /' conftest.$ac_ext >&5 1617 1618 ac_retval=1 1619fi 1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621 as_fn_set_status $ac_retval 1622 1623} # ac_fn_c_try_compile 1624 1625# ac_fn_c_try_cpp LINENO 1626# ---------------------- 1627# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1628ac_fn_c_try_cpp () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 if { { ac_try="$ac_cpp conftest.$ac_ext" 1632case "(($ac_try" in 1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1634 *) ac_try_echo=$ac_try;; 1635esac 1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1637$as_echo "$ac_try_echo"; } >&5 1638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1639 ac_status=$? 1640 if test -s conftest.err; then 1641 grep -v '^ *+' conftest.err >conftest.er1 1642 cat conftest.er1 >&5 1643 mv -f conftest.er1 conftest.err 1644 fi 1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1646 test $ac_status = 0; } > conftest.i && { 1647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1648 test ! -s conftest.err 1649 }; then : 1650 ac_retval=0 1651else 1652 $as_echo "$as_me: failed program was:" >&5 1653sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=1 1656fi 1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1658 as_fn_set_status $ac_retval 1659 1660} # ac_fn_c_try_cpp 1661 1662# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1663# ------------------------------------------------------- 1664# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1665# the include files in INCLUDES and setting the cache variable VAR 1666# accordingly. 1667ac_fn_c_check_header_mongrel () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 if eval \${$3+:} false; then : 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1672$as_echo_n "checking for $2... " >&6; } 1673if eval \${$3+:} false; then : 1674 $as_echo_n "(cached) " >&6 1675fi 1676eval ac_res=\$$3 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1678$as_echo "$ac_res" >&6; } 1679else 1680 # Is the header compilable? 1681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1682$as_echo_n "checking $2 usability... " >&6; } 1683cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684/* end confdefs.h. */ 1685$4 1686#include <$2> 1687_ACEOF 1688if ac_fn_c_try_compile "$LINENO"; then : 1689 ac_header_compiler=yes 1690else 1691 ac_header_compiler=no 1692fi 1693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1695$as_echo "$ac_header_compiler" >&6; } 1696 1697# Is the header present? 1698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1699$as_echo_n "checking $2 presence... " >&6; } 1700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1701/* end confdefs.h. */ 1702#include <$2> 1703_ACEOF 1704if ac_fn_c_try_cpp "$LINENO"; then : 1705 ac_header_preproc=yes 1706else 1707 ac_header_preproc=no 1708fi 1709rm -f conftest.err conftest.i conftest.$ac_ext 1710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1711$as_echo "$ac_header_preproc" >&6; } 1712 1713# So? What about this header? 1714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1715 yes:no: ) 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1717$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1719$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1720 ;; 1721 no:yes:* ) 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1723$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1725$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1727$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1729$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1731$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1732 ;; 1733esac 1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1735$as_echo_n "checking for $2... " >&6; } 1736if eval \${$3+:} false; then : 1737 $as_echo_n "(cached) " >&6 1738else 1739 eval "$3=\$ac_header_compiler" 1740fi 1741eval ac_res=\$$3 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1743$as_echo "$ac_res" >&6; } 1744fi 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 1747} # ac_fn_c_check_header_mongrel 1748 1749# ac_fn_c_try_run LINENO 1750# ---------------------- 1751# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1752# that executables *can* be run. 1753ac_fn_c_try_run () 1754{ 1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1756 if { { ac_try="$ac_link" 1757case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760esac 1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1762$as_echo "$ac_try_echo"; } >&5 1763 (eval "$ac_link") 2>&5 1764 ac_status=$? 1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1766 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1767 { { case "(($ac_try" in 1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1769 *) ac_try_echo=$ac_try;; 1770esac 1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1772$as_echo "$ac_try_echo"; } >&5 1773 (eval "$ac_try") 2>&5 1774 ac_status=$? 1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776 test $ac_status = 0; }; }; then : 1777 ac_retval=0 1778else 1779 $as_echo "$as_me: program exited with status $ac_status" >&5 1780 $as_echo "$as_me: failed program was:" >&5 1781sed 's/^/| /' conftest.$ac_ext >&5 1782 1783 ac_retval=$ac_status 1784fi 1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 as_fn_set_status $ac_retval 1788 1789} # ac_fn_c_try_run 1790 1791# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1792# ------------------------------------------------------- 1793# Tests whether HEADER exists and can be compiled using the include files in 1794# INCLUDES, setting the cache variable VAR accordingly. 1795ac_fn_c_check_header_compile () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1799$as_echo_n "checking for $2... " >&6; } 1800if eval \${$3+:} false; then : 1801 $as_echo_n "(cached) " >&6 1802else 1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1804/* end confdefs.h. */ 1805$4 1806#include <$2> 1807_ACEOF 1808if ac_fn_c_try_compile "$LINENO"; then : 1809 eval "$3=yes" 1810else 1811 eval "$3=no" 1812fi 1813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1814fi 1815eval ac_res=\$$3 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1817$as_echo "$ac_res" >&6; } 1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1819 1820} # ac_fn_c_check_header_compile 1821 1822# ac_fn_c_try_link LINENO 1823# ----------------------- 1824# Try to link conftest.$ac_ext, and return whether this succeeded. 1825ac_fn_c_try_link () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 rm -f conftest.$ac_objext conftest$ac_exeext 1829 if { { ac_try="$ac_link" 1830case "(($ac_try" in 1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1832 *) ac_try_echo=$ac_try;; 1833esac 1834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1835$as_echo "$ac_try_echo"; } >&5 1836 (eval "$ac_link") 2>conftest.err 1837 ac_status=$? 1838 if test -s conftest.err; then 1839 grep -v '^ *+' conftest.err >conftest.er1 1840 cat conftest.er1 >&5 1841 mv -f conftest.er1 conftest.err 1842 fi 1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1844 test $ac_status = 0; } && { 1845 test -z "$ac_c_werror_flag" || 1846 test ! -s conftest.err 1847 } && test -s conftest$ac_exeext && { 1848 test "$cross_compiling" = yes || 1849 test -x conftest$ac_exeext 1850 }; then : 1851 ac_retval=0 1852else 1853 $as_echo "$as_me: failed program was:" >&5 1854sed 's/^/| /' conftest.$ac_ext >&5 1855 1856 ac_retval=1 1857fi 1858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1860 # interfere with the next link command; also delete a directory that is 1861 # left behind by Apple's compiler. We do this before executing the actions. 1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1864 as_fn_set_status $ac_retval 1865 1866} # ac_fn_c_try_link 1867 1868# ac_fn_c_check_func LINENO FUNC VAR 1869# ---------------------------------- 1870# Tests whether FUNC exists, setting the cache variable VAR accordingly 1871ac_fn_c_check_func () 1872{ 1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1875$as_echo_n "checking for $2... " >&6; } 1876if eval \${$3+:} false; then : 1877 $as_echo_n "(cached) " >&6 1878else 1879 if test x$gcc_no_link = xyes; then 1880 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 1881fi 1882cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1883/* end confdefs.h. */ 1884/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1886#define $2 innocuous_$2 1887 1888/* System header to define __stub macros and hopefully few prototypes, 1889 which can conflict with char $2 (); below. 1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1891 <limits.h> exists even on freestanding compilers. */ 1892 1893#ifdef __STDC__ 1894# include <limits.h> 1895#else 1896# include <assert.h> 1897#endif 1898 1899#undef $2 1900 1901/* Override any GCC internal prototype to avoid an error. 1902 Use char because int might match the return type of a GCC 1903 builtin and then its argument prototype would still apply. */ 1904#ifdef __cplusplus 1905extern "C" 1906#endif 1907char $2 (); 1908/* The GNU C library defines this for functions which it implements 1909 to always fail with ENOSYS. Some functions are actually named 1910 something starting with __ and the normal name is an alias. */ 1911#if defined __stub_$2 || defined __stub___$2 1912choke me 1913#endif 1914 1915int 1916main () 1917{ 1918return $2 (); 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_link "$LINENO"; then : 1924 eval "$3=yes" 1925else 1926 eval "$3=no" 1927fi 1928rm -f core conftest.err conftest.$ac_objext \ 1929 conftest$ac_exeext conftest.$ac_ext 1930fi 1931eval ac_res=\$$3 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1933$as_echo "$ac_res" >&6; } 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 1936} # ac_fn_c_check_func 1937 1938# ac_fn_fc_try_compile LINENO 1939# --------------------------- 1940# Try to compile conftest.$ac_ext, and return whether this succeeded. 1941ac_fn_fc_try_compile () 1942{ 1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1944 rm -f conftest.$ac_objext 1945 if { { ac_try="$ac_compile" 1946case "(($ac_try" in 1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1948 *) ac_try_echo=$ac_try;; 1949esac 1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1951$as_echo "$ac_try_echo"; } >&5 1952 (eval "$ac_compile") 2>conftest.err 1953 ac_status=$? 1954 if test -s conftest.err; then 1955 grep -v '^ *+' conftest.err >conftest.er1 1956 cat conftest.er1 >&5 1957 mv -f conftest.er1 conftest.err 1958 fi 1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1960 test $ac_status = 0; } && { 1961 test -z "$ac_fc_werror_flag" || 1962 test ! -s conftest.err 1963 } && test -s conftest.$ac_objext; then : 1964 ac_retval=0 1965else 1966 $as_echo "$as_me: failed program was:" >&5 1967sed 's/^/| /' conftest.$ac_ext >&5 1968 1969 ac_retval=1 1970fi 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 as_fn_set_status $ac_retval 1973 1974} # ac_fn_fc_try_compile 1975 1976# ac_fn_fc_try_link LINENO 1977# ------------------------ 1978# Try to link conftest.$ac_ext, and return whether this succeeded. 1979ac_fn_fc_try_link () 1980{ 1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1982 rm -f conftest.$ac_objext conftest$ac_exeext 1983 if { { ac_try="$ac_link" 1984case "(($ac_try" in 1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1986 *) ac_try_echo=$ac_try;; 1987esac 1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1989$as_echo "$ac_try_echo"; } >&5 1990 (eval "$ac_link") 2>conftest.err 1991 ac_status=$? 1992 if test -s conftest.err; then 1993 grep -v '^ *+' conftest.err >conftest.er1 1994 cat conftest.er1 >&5 1995 mv -f conftest.er1 conftest.err 1996 fi 1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1998 test $ac_status = 0; } && { 1999 test -z "$ac_fc_werror_flag" || 2000 test ! -s conftest.err 2001 } && test -s conftest$ac_exeext && { 2002 test "$cross_compiling" = yes || 2003 test -x conftest$ac_exeext 2004 }; then : 2005 ac_retval=0 2006else 2007 $as_echo "$as_me: failed program was:" >&5 2008sed 's/^/| /' conftest.$ac_ext >&5 2009 2010 ac_retval=1 2011fi 2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2014 # interfere with the next link command; also delete a directory that is 2015 # left behind by Apple's compiler. We do this before executing the actions. 2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2018 as_fn_set_status $ac_retval 2019 2020} # ac_fn_fc_try_link 2021 2022# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2023# ------------------------------------------- 2024# Tests whether TYPE exists after having included INCLUDES, setting cache 2025# variable VAR accordingly. 2026ac_fn_c_check_type () 2027{ 2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2030$as_echo_n "checking for $2... " >&6; } 2031if eval \${$3+:} false; then : 2032 $as_echo_n "(cached) " >&6 2033else 2034 eval "$3=no" 2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2036/* end confdefs.h. */ 2037$4 2038int 2039main () 2040{ 2041if (sizeof ($2)) 2042 return 0; 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047if ac_fn_c_try_compile "$LINENO"; then : 2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2049/* end confdefs.h. */ 2050$4 2051int 2052main () 2053{ 2054if (sizeof (($2))) 2055 return 0; 2056 ; 2057 return 0; 2058} 2059_ACEOF 2060if ac_fn_c_try_compile "$LINENO"; then : 2061 2062else 2063 eval "$3=yes" 2064fi 2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2066fi 2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2068fi 2069eval ac_res=\$$3 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2071$as_echo "$ac_res" >&6; } 2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2073 2074} # ac_fn_c_check_type 2075 2076# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2077# -------------------------------------------- 2078# Tries to find the compile-time value of EXPR in a program that includes 2079# INCLUDES, setting VAR accordingly. Returns whether the value could be 2080# computed 2081ac_fn_c_compute_int () 2082{ 2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2084 if test "$cross_compiling" = yes; then 2085 # Depending upon the size, compute the lo and hi bounds. 2086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088$4 2089int 2090main () 2091{ 2092static int test_array [1 - 2 * !(($2) >= 0)]; 2093test_array [0] = 0; 2094return test_array [0]; 2095 2096 ; 2097 return 0; 2098} 2099_ACEOF 2100if ac_fn_c_try_compile "$LINENO"; then : 2101 ac_lo=0 ac_mid=0 2102 while :; do 2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2104/* end confdefs.h. */ 2105$4 2106int 2107main () 2108{ 2109static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2110test_array [0] = 0; 2111return test_array [0]; 2112 2113 ; 2114 return 0; 2115} 2116_ACEOF 2117if ac_fn_c_try_compile "$LINENO"; then : 2118 ac_hi=$ac_mid; break 2119else 2120 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2121 if test $ac_lo -le $ac_mid; then 2122 ac_lo= ac_hi= 2123 break 2124 fi 2125 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2126fi 2127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2128 done 2129else 2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2131/* end confdefs.h. */ 2132$4 2133int 2134main () 2135{ 2136static int test_array [1 - 2 * !(($2) < 0)]; 2137test_array [0] = 0; 2138return test_array [0]; 2139 2140 ; 2141 return 0; 2142} 2143_ACEOF 2144if ac_fn_c_try_compile "$LINENO"; then : 2145 ac_hi=-1 ac_mid=-1 2146 while :; do 2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2148/* end confdefs.h. */ 2149$4 2150int 2151main () 2152{ 2153static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2154test_array [0] = 0; 2155return test_array [0]; 2156 2157 ; 2158 return 0; 2159} 2160_ACEOF 2161if ac_fn_c_try_compile "$LINENO"; then : 2162 ac_lo=$ac_mid; break 2163else 2164 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2165 if test $ac_mid -le $ac_hi; then 2166 ac_lo= ac_hi= 2167 break 2168 fi 2169 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2170fi 2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2172 done 2173else 2174 ac_lo= ac_hi= 2175fi 2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2177fi 2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2179# Binary search between lo and hi bounds. 2180while test "x$ac_lo" != "x$ac_hi"; do 2181 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2183/* end confdefs.h. */ 2184$4 2185int 2186main () 2187{ 2188static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2189test_array [0] = 0; 2190return test_array [0]; 2191 2192 ; 2193 return 0; 2194} 2195_ACEOF 2196if ac_fn_c_try_compile "$LINENO"; then : 2197 ac_hi=$ac_mid 2198else 2199 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2200fi 2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2202done 2203case $ac_lo in #(( 2204?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2205'') ac_retval=1 ;; 2206esac 2207 else 2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2209/* end confdefs.h. */ 2210$4 2211static long int longval () { return $2; } 2212static unsigned long int ulongval () { return $2; } 2213#include <stdio.h> 2214#include <stdlib.h> 2215int 2216main () 2217{ 2218 2219 FILE *f = fopen ("conftest.val", "w"); 2220 if (! f) 2221 return 1; 2222 if (($2) < 0) 2223 { 2224 long int i = longval (); 2225 if (i != ($2)) 2226 return 1; 2227 fprintf (f, "%ld", i); 2228 } 2229 else 2230 { 2231 unsigned long int i = ulongval (); 2232 if (i != ($2)) 2233 return 1; 2234 fprintf (f, "%lu", i); 2235 } 2236 /* Do not output a trailing newline, as this causes \r\n confusion 2237 on some platforms. */ 2238 return ferror (f) || fclose (f) != 0; 2239 2240 ; 2241 return 0; 2242} 2243_ACEOF 2244if ac_fn_c_try_run "$LINENO"; then : 2245 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2246else 2247 ac_retval=1 2248fi 2249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2250 conftest.$ac_objext conftest.beam conftest.$ac_ext 2251rm -f conftest.val 2252 2253 fi 2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2255 as_fn_set_status $ac_retval 2256 2257} # ac_fn_c_compute_int 2258 2259# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2260# ---------------------------------------------------- 2261# Tries to find if the field MEMBER exists in type AGGR, after including 2262# INCLUDES, setting cache variable VAR accordingly. 2263ac_fn_c_check_member () 2264{ 2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2267$as_echo_n "checking for $2.$3... " >&6; } 2268if eval \${$4+:} false; then : 2269 $as_echo_n "(cached) " >&6 2270else 2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2272/* end confdefs.h. */ 2273$5 2274int 2275main () 2276{ 2277static $2 ac_aggr; 2278if (ac_aggr.$3) 2279return 0; 2280 ; 2281 return 0; 2282} 2283_ACEOF 2284if ac_fn_c_try_compile "$LINENO"; then : 2285 eval "$4=yes" 2286else 2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2288/* end confdefs.h. */ 2289$5 2290int 2291main () 2292{ 2293static $2 ac_aggr; 2294if (sizeof ac_aggr.$3) 2295return 0; 2296 ; 2297 return 0; 2298} 2299_ACEOF 2300if ac_fn_c_try_compile "$LINENO"; then : 2301 eval "$4=yes" 2302else 2303 eval "$4=no" 2304fi 2305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2306fi 2307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2308fi 2309eval ac_res=\$$4 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2311$as_echo "$ac_res" >&6; } 2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2313 2314} # ac_fn_c_check_member 2315cat >config.log <<_ACEOF 2316This file contains any messages produced by compilers while 2317running configure, to aid debugging if configure makes a mistake. 2318 2319It was created by GNU Fortran Runtime Library $as_me 0.3, which was 2320generated by GNU Autoconf 2.69. Invocation command line was 2321 2322 $ $0 $@ 2323 2324_ACEOF 2325exec 5>>config.log 2326{ 2327cat <<_ASUNAME 2328## --------- ## 2329## Platform. ## 2330## --------- ## 2331 2332hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2333uname -m = `(uname -m) 2>/dev/null || echo unknown` 2334uname -r = `(uname -r) 2>/dev/null || echo unknown` 2335uname -s = `(uname -s) 2>/dev/null || echo unknown` 2336uname -v = `(uname -v) 2>/dev/null || echo unknown` 2337 2338/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2339/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2340 2341/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2342/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2343/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2344/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2345/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2346/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2347/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2348 2349_ASUNAME 2350 2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352for as_dir in $PATH 2353do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 $as_echo "PATH: $as_dir" 2357 done 2358IFS=$as_save_IFS 2359 2360} >&5 2361 2362cat >&5 <<_ACEOF 2363 2364 2365## ----------- ## 2366## Core tests. ## 2367## ----------- ## 2368 2369_ACEOF 2370 2371 2372# Keep a trace of the command line. 2373# Strip out --no-create and --no-recursion so they do not pile up. 2374# Strip out --silent because we don't want to record it for future runs. 2375# Also quote any args containing shell meta-characters. 2376# Make two passes to allow for proper duplicate-argument suppression. 2377ac_configure_args= 2378ac_configure_args0= 2379ac_configure_args1= 2380ac_must_keep_next=false 2381for ac_pass in 1 2 2382do 2383 for ac_arg 2384 do 2385 case $ac_arg in 2386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2388 | -silent | --silent | --silen | --sile | --sil) 2389 continue ;; 2390 *\'*) 2391 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2392 esac 2393 case $ac_pass in 2394 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2395 2) 2396 as_fn_append ac_configure_args1 " '$ac_arg'" 2397 if test $ac_must_keep_next = true; then 2398 ac_must_keep_next=false # Got value, back to normal. 2399 else 2400 case $ac_arg in 2401 *=* | --config-cache | -C | -disable-* | --disable-* \ 2402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2404 | -with-* | --with-* | -without-* | --without-* | --x) 2405 case "$ac_configure_args0 " in 2406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2407 esac 2408 ;; 2409 -* ) ac_must_keep_next=true ;; 2410 esac 2411 fi 2412 as_fn_append ac_configure_args " '$ac_arg'" 2413 ;; 2414 esac 2415 done 2416done 2417{ ac_configure_args0=; unset ac_configure_args0;} 2418{ ac_configure_args1=; unset ac_configure_args1;} 2419 2420# When interrupted or exit'd, cleanup temporary files, and complete 2421# config.log. We remove comments because anyway the quotes in there 2422# would cause problems or look ugly. 2423# WARNING: Use '\'' to represent an apostrophe within the trap. 2424# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2425trap 'exit_status=$? 2426 # Save into config.log some information that might help in debugging. 2427 { 2428 echo 2429 2430 $as_echo "## ---------------- ## 2431## Cache variables. ## 2432## ---------------- ##" 2433 echo 2434 # The following way of writing the cache mishandles newlines in values, 2435( 2436 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2437 eval ac_val=\$$ac_var 2438 case $ac_val in #( 2439 *${as_nl}*) 2440 case $ac_var in #( 2441 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2442$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2443 esac 2444 case $ac_var in #( 2445 _ | IFS | as_nl) ;; #( 2446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2447 *) { eval $ac_var=; unset $ac_var;} ;; 2448 esac ;; 2449 esac 2450 done 2451 (set) 2>&1 | 2452 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2453 *${as_nl}ac_space=\ *) 2454 sed -n \ 2455 "s/'\''/'\''\\\\'\'''\''/g; 2456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2457 ;; #( 2458 *) 2459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2460 ;; 2461 esac | 2462 sort 2463) 2464 echo 2465 2466 $as_echo "## ----------------- ## 2467## Output variables. ## 2468## ----------------- ##" 2469 echo 2470 for ac_var in $ac_subst_vars 2471 do 2472 eval ac_val=\$$ac_var 2473 case $ac_val in 2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2475 esac 2476 $as_echo "$ac_var='\''$ac_val'\''" 2477 done | sort 2478 echo 2479 2480 if test -n "$ac_subst_files"; then 2481 $as_echo "## ------------------- ## 2482## File substitutions. ## 2483## ------------------- ##" 2484 echo 2485 for ac_var in $ac_subst_files 2486 do 2487 eval ac_val=\$$ac_var 2488 case $ac_val in 2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2490 esac 2491 $as_echo "$ac_var='\''$ac_val'\''" 2492 done | sort 2493 echo 2494 fi 2495 2496 if test -s confdefs.h; then 2497 $as_echo "## ----------- ## 2498## confdefs.h. ## 2499## ----------- ##" 2500 echo 2501 cat confdefs.h 2502 echo 2503 fi 2504 test "$ac_signal" != 0 && 2505 $as_echo "$as_me: caught signal $ac_signal" 2506 $as_echo "$as_me: exit $exit_status" 2507 } >&5 2508 rm -f core *.core core.conftest.* && 2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2510 exit $exit_status 2511' 0 2512for ac_signal in 1 2 13 15; do 2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2514done 2515ac_signal=0 2516 2517# confdefs.h avoids OS command line length limits that DEFS can exceed. 2518rm -f -r conftest* confdefs.h 2519 2520$as_echo "/* confdefs.h */" > confdefs.h 2521 2522# Predefined preprocessor variables. 2523 2524cat >>confdefs.h <<_ACEOF 2525#define PACKAGE_NAME "$PACKAGE_NAME" 2526_ACEOF 2527 2528cat >>confdefs.h <<_ACEOF 2529#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2530_ACEOF 2531 2532cat >>confdefs.h <<_ACEOF 2533#define PACKAGE_VERSION "$PACKAGE_VERSION" 2534_ACEOF 2535 2536cat >>confdefs.h <<_ACEOF 2537#define PACKAGE_STRING "$PACKAGE_STRING" 2538_ACEOF 2539 2540cat >>confdefs.h <<_ACEOF 2541#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2542_ACEOF 2543 2544cat >>confdefs.h <<_ACEOF 2545#define PACKAGE_URL "$PACKAGE_URL" 2546_ACEOF 2547 2548 2549# Let the site file select an alternate cache file if it wants to. 2550# Prefer an explicitly selected file to automatically selected ones. 2551ac_site_file1=NONE 2552ac_site_file2=NONE 2553if test -n "$CONFIG_SITE"; then 2554 # We do not want a PATH search for config.site. 2555 case $CONFIG_SITE in #(( 2556 -*) ac_site_file1=./$CONFIG_SITE;; 2557 */*) ac_site_file1=$CONFIG_SITE;; 2558 *) ac_site_file1=./$CONFIG_SITE;; 2559 esac 2560elif test "x$prefix" != xNONE; then 2561 ac_site_file1=$prefix/share/config.site 2562 ac_site_file2=$prefix/etc/config.site 2563else 2564 ac_site_file1=$ac_default_prefix/share/config.site 2565 ac_site_file2=$ac_default_prefix/etc/config.site 2566fi 2567for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2568do 2569 test "x$ac_site_file" = xNONE && continue 2570 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2572$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2573 sed 's/^/| /' "$ac_site_file" >&5 2574 . "$ac_site_file" \ 2575 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2577as_fn_error $? "failed to load site script $ac_site_file 2578See \`config.log' for more details" "$LINENO" 5; } 2579 fi 2580done 2581 2582if test -r "$cache_file"; then 2583 # Some versions of bash will fail to source /dev/null (special files 2584 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2585 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2587$as_echo "$as_me: loading cache $cache_file" >&6;} 2588 case $cache_file in 2589 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2590 *) . "./$cache_file";; 2591 esac 2592 fi 2593else 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2595$as_echo "$as_me: creating cache $cache_file" >&6;} 2596 >$cache_file 2597fi 2598 2599as_fn_append ac_header_list " unistd.h" 2600as_fn_append ac_header_list " sys/random.h" 2601as_fn_append ac_header_list " sys/time.h" 2602as_fn_append ac_header_list " sys/times.h" 2603as_fn_append ac_header_list " sys/resource.h" 2604as_fn_append ac_header_list " sys/types.h" 2605as_fn_append ac_header_list " sys/stat.h" 2606as_fn_append ac_header_list " sys/uio.h" 2607as_fn_append ac_header_list " sys/wait.h" 2608as_fn_append ac_header_list " floatingpoint.h" 2609as_fn_append ac_header_list " ieeefp.h" 2610as_fn_append ac_header_list " fenv.h" 2611as_fn_append ac_header_list " fptrap.h" 2612as_fn_append ac_header_list " fpxcp.h" 2613as_fn_append ac_header_list " pwd.h" 2614as_fn_append ac_header_list " complex.h" 2615as_fn_append ac_header_list " xlocale.h" 2616as_fn_append ac_func_list " getrusage" 2617as_fn_append ac_func_list " times" 2618as_fn_append ac_func_list " mkstemp" 2619as_fn_append ac_func_list " strtof" 2620as_fn_append ac_func_list " strtold" 2621as_fn_append ac_func_list " snprintf" 2622as_fn_append ac_func_list " ftruncate" 2623as_fn_append ac_func_list " chsize" 2624as_fn_append ac_func_list " chdir" 2625as_fn_append ac_func_list " getentropy" 2626as_fn_append ac_func_list " getlogin" 2627as_fn_append ac_func_list " gethostname" 2628as_fn_append ac_func_list " kill" 2629as_fn_append ac_func_list " link" 2630as_fn_append ac_func_list " symlink" 2631as_fn_append ac_func_list " sleep" 2632as_fn_append ac_func_list " ttyname" 2633as_fn_append ac_func_list " sigaction" 2634as_fn_append ac_func_list " waitpid" 2635as_fn_append ac_func_list " alarm" 2636as_fn_append ac_func_list " access" 2637as_fn_append ac_func_list " fork" 2638as_fn_append ac_func_list " posix_spawn" 2639as_fn_append ac_func_list " setmode" 2640as_fn_append ac_func_list " fcntl" 2641as_fn_append ac_func_list " writev" 2642as_fn_append ac_func_list " gettimeofday" 2643as_fn_append ac_func_list " stat" 2644as_fn_append ac_func_list " fstat" 2645as_fn_append ac_func_list " lstat" 2646as_fn_append ac_func_list " getpwuid" 2647as_fn_append ac_func_list " vsnprintf" 2648as_fn_append ac_func_list " dup" 2649as_fn_append ac_func_list " getcwd" 2650as_fn_append ac_func_list " localtime_r" 2651as_fn_append ac_func_list " gmtime_r" 2652as_fn_append ac_func_list " getpwuid_r" 2653as_fn_append ac_func_list " ttyname_r" 2654as_fn_append ac_func_list " clock_gettime" 2655as_fn_append ac_func_list " getgid" 2656as_fn_append ac_func_list " getpid" 2657as_fn_append ac_func_list " getuid" 2658as_fn_append ac_func_list " geteuid" 2659as_fn_append ac_func_list " umask" 2660as_fn_append ac_func_list " getegid" 2661as_fn_append ac_func_list " secure_getenv" 2662as_fn_append ac_func_list " __secure_getenv" 2663as_fn_append ac_func_list " mkostemp" 2664as_fn_append ac_func_list " strnlen" 2665as_fn_append ac_func_list " strndup" 2666as_fn_append ac_func_list " newlocale" 2667as_fn_append ac_func_list " freelocale" 2668as_fn_append ac_func_list " uselocale" 2669as_fn_append ac_func_list " strerror_l" 2670as_fn_append ac_header_list " math.h" 2671# Check that the precious variables saved in the cache have kept the same 2672# value. 2673ac_cache_corrupted=false 2674for ac_var in $ac_precious_vars; do 2675 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2676 eval ac_new_set=\$ac_env_${ac_var}_set 2677 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2678 eval ac_new_val=\$ac_env_${ac_var}_value 2679 case $ac_old_set,$ac_new_set in 2680 set,) 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2682$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2683 ac_cache_corrupted=: ;; 2684 ,set) 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2686$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2687 ac_cache_corrupted=: ;; 2688 ,);; 2689 *) 2690 if test "x$ac_old_val" != "x$ac_new_val"; then 2691 # differences in whitespace do not lead to failure. 2692 ac_old_val_w=`echo x $ac_old_val` 2693 ac_new_val_w=`echo x $ac_new_val` 2694 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2696$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2697 ac_cache_corrupted=: 2698 else 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2700$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2701 eval $ac_var=\$ac_old_val 2702 fi 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2704$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2706$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2707 fi;; 2708 esac 2709 # Pass precious variables to config.status. 2710 if test "$ac_new_set" = set; then 2711 case $ac_new_val in 2712 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2713 *) ac_arg=$ac_var=$ac_new_val ;; 2714 esac 2715 case " $ac_configure_args " in 2716 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2717 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2718 esac 2719 fi 2720done 2721if $ac_cache_corrupted; then 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2725$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2726 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2727fi 2728## -------------------- ## 2729## Main body of script. ## 2730## -------------------- ## 2731 2732ac_ext=c 2733ac_cpp='$CPP $CPPFLAGS' 2734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2736ac_compiler_gnu=$ac_cv_c_compiler_gnu 2737 2738 2739 2740 2741 2742ac_config_headers="$ac_config_headers config.h" 2743 2744ac_aux_dir= 2745for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2746 if test -f "$ac_dir/install-sh"; then 2747 ac_aux_dir=$ac_dir 2748 ac_install_sh="$ac_aux_dir/install-sh -c" 2749 break 2750 elif test -f "$ac_dir/install.sh"; then 2751 ac_aux_dir=$ac_dir 2752 ac_install_sh="$ac_aux_dir/install.sh -c" 2753 break 2754 elif test -f "$ac_dir/shtool"; then 2755 ac_aux_dir=$ac_dir 2756 ac_install_sh="$ac_aux_dir/shtool install -c" 2757 break 2758 fi 2759done 2760if test -z "$ac_aux_dir"; then 2761 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2762fi 2763 2764# These three variables are undocumented and unsupported, 2765# and are intended to be withdrawn in a future Autoconf release. 2766# They can cause serious problems if a builder's source tree is in a directory 2767# whose full name contains unusual characters. 2768ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2769ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2770ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2771 2772 2773# Make sure we can run config.sub. 2774$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2776 2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2778$as_echo_n "checking build system type... " >&6; } 2779if ${ac_cv_build+:} false; then : 2780 $as_echo_n "(cached) " >&6 2781else 2782 ac_build_alias=$build_alias 2783test "x$ac_build_alias" = x && 2784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2785test "x$ac_build_alias" = x && 2786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2787ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2789 2790fi 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2792$as_echo "$ac_cv_build" >&6; } 2793case $ac_cv_build in 2794*-*-*) ;; 2795*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2796esac 2797build=$ac_cv_build 2798ac_save_IFS=$IFS; IFS='-' 2799set x $ac_cv_build 2800shift 2801build_cpu=$1 2802build_vendor=$2 2803shift; shift 2804# Remember, the first character of IFS is used to create $*, 2805# except with old shells: 2806build_os=$* 2807IFS=$ac_save_IFS 2808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2809 2810 2811 case ${build_alias} in 2812 "") build_noncanonical=${build} ;; 2813 *) build_noncanonical=${build_alias} ;; 2814esac 2815 2816 case ${host_alias} in 2817 "") host_noncanonical=${build_noncanonical} ;; 2818 *) host_noncanonical=${host_alias} ;; 2819esac 2820 2821 case ${target_alias} in 2822 "") target_noncanonical=${host_noncanonical} ;; 2823 *) target_noncanonical=${target_alias} ;; 2824esac 2825 2826 2827# post-stage1 host modules use a different CC_FOR_BUILD so, in order to 2828# have matching libraries, they should use host libraries: Makefile.tpl 2829# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). 2830# However, they still use the build modules, because the corresponding 2831# host modules (e.g. bison) are only built for the host when bootstrap 2832# finishes. So: 2833# - build_subdir is where we find build modules, and never changes. 2834# - build_libsubdir is where we find build libraries, and can be overridden. 2835 2836# Prefix 'build-' so this never conflicts with target_subdir. 2837build_subdir="build-${build_noncanonical}" 2838 2839# Check whether --with-build-libsubdir was given. 2840if test "${with_build_libsubdir+set}" = set; then : 2841 withval=$with_build_libsubdir; build_libsubdir="$withval" 2842else 2843 build_libsubdir="$build_subdir" 2844fi 2845 2846# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories 2847if ( test $srcdir = . && test -d gcc ) \ 2848 || test -d $srcdir/../host-${host_noncanonical}; then 2849 host_subdir="host-${host_noncanonical}" 2850else 2851 host_subdir=. 2852fi 2853# No prefix. 2854target_subdir=${target_noncanonical} 2855 2856 2857# ------- 2858# Options 2859# ------- 2860 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2862$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2863# Check whether --enable-version-specific-runtime-libs was given. 2864if test "${enable_version_specific_runtime_libs+set}" = set; then : 2865 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 2866 yes) version_specific_libs=yes ;; 2867 no) version_specific_libs=no ;; 2868 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 2869 esac 2870else 2871 version_specific_libs=no 2872fi 2873 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 2875$as_echo "$version_specific_libs" >&6; } 2876 2877# Build with intermodule optimisations 2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5 2879$as_echo_n "checking for --enable-intermodule... " >&6; } 2880# Check whether --enable-intermodule was given. 2881if test "${enable_intermodule+set}" = set; then : 2882 enableval=$enable_intermodule; case "$enable_intermodule" in 2883 yes) onestep="-onestep";; 2884 *) onestep="";; 2885esac 2886else 2887 onestep="" 2888fi 2889 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5 2891$as_echo "$enable_intermodule" >&6; } 2892 if test x$onestep = x-onestep; then 2893 onestep_TRUE= 2894 onestep_FALSE='#' 2895else 2896 onestep_TRUE='#' 2897 onestep_FALSE= 2898fi 2899 2900 2901 2902# Gets build, host, target, *_vendor, *_cpu, *_os, etc. 2903# 2904# You will slowly go insane if you do not grok the following fact: when 2905# building this library, the top-level /target/ becomes the library's /host/. 2906# 2907# configure then causes --target to default to --host, exactly like any 2908# other package using autoconf. Therefore, 'target' and 'host' will 2909# always be the same. This makes sense both for native and cross compilers 2910# just think about it for a little while. :-) 2911# 2912# Also, if this library is being configured as part of a cross compiler, the 2913# top-level configure script will pass the "real" host as $with_cross_host. 2914# 2915# Do not delete or change the following two lines. For why, see 2916# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2918$as_echo_n "checking host system type... " >&6; } 2919if ${ac_cv_host+:} false; then : 2920 $as_echo_n "(cached) " >&6 2921else 2922 if test "x$host_alias" = x; then 2923 ac_cv_host=$ac_cv_build 2924else 2925 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2926 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2927fi 2928 2929fi 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2931$as_echo "$ac_cv_host" >&6; } 2932case $ac_cv_host in 2933*-*-*) ;; 2934*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2935esac 2936host=$ac_cv_host 2937ac_save_IFS=$IFS; IFS='-' 2938set x $ac_cv_host 2939shift 2940host_cpu=$1 2941host_vendor=$2 2942shift; shift 2943# Remember, the first character of IFS is used to create $*, 2944# except with old shells: 2945host_os=$* 2946IFS=$ac_save_IFS 2947case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2948 2949 2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2951$as_echo_n "checking target system type... " >&6; } 2952if ${ac_cv_target+:} false; then : 2953 $as_echo_n "(cached) " >&6 2954else 2955 if test "x$target_alias" = x; then 2956 ac_cv_target=$ac_cv_host 2957else 2958 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2959 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2960fi 2961 2962fi 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2964$as_echo "$ac_cv_target" >&6; } 2965case $ac_cv_target in 2966*-*-*) ;; 2967*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2968esac 2969target=$ac_cv_target 2970ac_save_IFS=$IFS; IFS='-' 2971set x $ac_cv_target 2972shift 2973target_cpu=$1 2974target_vendor=$2 2975shift; shift 2976# Remember, the first character of IFS is used to create $*, 2977# except with old shells: 2978target_os=$* 2979IFS=$ac_save_IFS 2980case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2981 2982 2983# The aliases save the names the user supplied, while $host etc. 2984# will get canonicalized. 2985test -n "$target_alias" && 2986 test "$program_prefix$program_suffix$program_transform_name" = \ 2987 NONENONEs,x,x, && 2988 program_prefix=${target_alias}- 2989 2990 2991 2992 2993target_alias=${target_alias-$host_alias} 2994 2995 2996# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the 2997# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. 2998# 1.9.6: minimum required version 2999# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch 3000# of other PACKAGE_* variables will, however, and there's nothing 3001# we can do about that; they come from AC_INIT). 3002# foreign: we don't follow the normal rules for GNU packages (no COPYING 3003# file in the top srcdir, etc, etc), so stop complaining. 3004# no-dist: we don't want 'dist' and related rules. 3005# -Wall: turns on all automake warnings... 3006# -Wno-portability: ...except this one, since GNU make is required. 3007am__api_version='1.15' 3008 3009# Find a good install program. We prefer a C program (faster), 3010# so one script is as good as another. But avoid the broken or 3011# incompatible versions: 3012# SysV /etc/install, /usr/sbin/install 3013# SunOS /usr/etc/install 3014# IRIX /sbin/install 3015# AIX /bin/install 3016# AmigaOS /C/install, which installs bootblocks on floppy discs 3017# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3018# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3019# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3020# OS/2's system install, which has a completely different semantic 3021# ./install, which can be erroneously created by make from ./install.sh. 3022# Reject install programs that cannot install multiple files. 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3024$as_echo_n "checking for a BSD-compatible install... " >&6; } 3025if test -z "$INSTALL"; then 3026if ${ac_cv_path_install+:} false; then : 3027 $as_echo_n "(cached) " >&6 3028else 3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3030for as_dir in $PATH 3031do 3032 IFS=$as_save_IFS 3033 test -z "$as_dir" && as_dir=. 3034 # Account for people who put trailing slashes in PATH elements. 3035case $as_dir/ in #(( 3036 ./ | .// | /[cC]/* | \ 3037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3038 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3039 /usr/ucb/* ) ;; 3040 *) 3041 # OSF1 and SCO ODT 3.0 have their own names for install. 3042 # Don't use installbsd from OSF since it installs stuff as root 3043 # by default. 3044 for ac_prog in ginstall scoinst install; do 3045 for ac_exec_ext in '' $ac_executable_extensions; do 3046 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3047 if test $ac_prog = install && 3048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3049 # AIX install. It has an incompatible calling convention. 3050 : 3051 elif test $ac_prog = install && 3052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3053 # program-specific install script used by HP pwplus--don't use. 3054 : 3055 else 3056 rm -rf conftest.one conftest.two conftest.dir 3057 echo one > conftest.one 3058 echo two > conftest.two 3059 mkdir conftest.dir 3060 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3061 test -s conftest.one && test -s conftest.two && 3062 test -s conftest.dir/conftest.one && 3063 test -s conftest.dir/conftest.two 3064 then 3065 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3066 break 3 3067 fi 3068 fi 3069 fi 3070 done 3071 done 3072 ;; 3073esac 3074 3075 done 3076IFS=$as_save_IFS 3077 3078rm -rf conftest.one conftest.two conftest.dir 3079 3080fi 3081 if test "${ac_cv_path_install+set}" = set; then 3082 INSTALL=$ac_cv_path_install 3083 else 3084 # As a last resort, use the slow shell script. Don't cache a 3085 # value for INSTALL within a source directory, because that will 3086 # break other packages using the cache if that directory is 3087 # removed, or if the value is a relative name. 3088 INSTALL=$ac_install_sh 3089 fi 3090fi 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3092$as_echo "$INSTALL" >&6; } 3093 3094# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3095# It thinks the first close brace ends the variable substitution. 3096test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3097 3098test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3099 3100test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3101 3102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3103$as_echo_n "checking whether build environment is sane... " >&6; } 3104# Reject unsafe characters in $srcdir or the absolute working directory 3105# name. Accept space and tab only in the latter. 3106am_lf=' 3107' 3108case `pwd` in 3109 *[\\\"\#\$\&\'\`$am_lf]*) 3110 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3111esac 3112case $srcdir in 3113 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3114 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3115esac 3116 3117# Do 'set' in a subshell so we don't clobber the current shell's 3118# arguments. Must try -L first in case configure is actually a 3119# symlink; some systems play weird games with the mod time of symlinks 3120# (eg FreeBSD returns the mod time of the symlink's containing 3121# directory). 3122if ( 3123 am_has_slept=no 3124 for am_try in 1 2; do 3125 echo "timestamp, slept: $am_has_slept" > conftest.file 3126 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3127 if test "$*" = "X"; then 3128 # -L didn't work. 3129 set X `ls -t "$srcdir/configure" conftest.file` 3130 fi 3131 if test "$*" != "X $srcdir/configure conftest.file" \ 3132 && test "$*" != "X conftest.file $srcdir/configure"; then 3133 3134 # If neither matched, then we have a broken ls. This can happen 3135 # if, for instance, CONFIG_SHELL is bash and it inherits a 3136 # broken ls alias from the environment. This has actually 3137 # happened. Such a system could not be considered "sane". 3138 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3139 alias in your environment" "$LINENO" 5 3140 fi 3141 if test "$2" = conftest.file || test $am_try -eq 2; then 3142 break 3143 fi 3144 # Just in case. 3145 sleep 1 3146 am_has_slept=yes 3147 done 3148 test "$2" = conftest.file 3149 ) 3150then 3151 # Ok. 3152 : 3153else 3154 as_fn_error $? "newly created file is older than distributed files! 3155Check your system clock" "$LINENO" 5 3156fi 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3158$as_echo "yes" >&6; } 3159# If we didn't sleep, we still need to ensure time stamps of config.status and 3160# generated files are strictly newer. 3161am_sleep_pid= 3162if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3163 ( sleep 1 ) & 3164 am_sleep_pid=$! 3165fi 3166 3167rm -f conftest.file 3168 3169test "$program_prefix" != NONE && 3170 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3171# Use a double $ so make ignores it. 3172test "$program_suffix" != NONE && 3173 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3174# Double any \ or $. 3175# By default was `s,x,x', remove it if useless. 3176ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3177program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3178 3179# Expand $ac_aux_dir to an absolute path. 3180am_aux_dir=`cd "$ac_aux_dir" && pwd` 3181 3182if test x"${MISSING+set}" != xset; then 3183 case $am_aux_dir in 3184 *\ * | *\ *) 3185 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3186 *) 3187 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3188 esac 3189fi 3190# Use eval to expand $SHELL 3191if eval "$MISSING --is-lightweight"; then 3192 am_missing_run="$MISSING " 3193else 3194 am_missing_run= 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3196$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3197fi 3198 3199if test x"${install_sh+set}" != xset; then 3200 case $am_aux_dir in 3201 *\ * | *\ *) 3202 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3203 *) 3204 install_sh="\${SHELL} $am_aux_dir/install-sh" 3205 esac 3206fi 3207 3208# Installed binaries are usually stripped using 'strip' when the user 3209# run "make install-strip". However 'strip' might not be the right 3210# tool to use in cross-compilation environments, therefore Automake 3211# will honor the 'STRIP' environment variable to overrule this program. 3212if test "$cross_compiling" != no; then 3213 if test -n "$ac_tool_prefix"; then 3214 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3215set dummy ${ac_tool_prefix}strip; ac_word=$2 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3217$as_echo_n "checking for $ac_word... " >&6; } 3218if ${ac_cv_prog_STRIP+:} false; then : 3219 $as_echo_n "(cached) " >&6 3220else 3221 if test -n "$STRIP"; then 3222 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3223else 3224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3225for as_dir in $PATH 3226do 3227 IFS=$as_save_IFS 3228 test -z "$as_dir" && as_dir=. 3229 for ac_exec_ext in '' $ac_executable_extensions; do 3230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3231 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3233 break 2 3234 fi 3235done 3236 done 3237IFS=$as_save_IFS 3238 3239fi 3240fi 3241STRIP=$ac_cv_prog_STRIP 3242if test -n "$STRIP"; then 3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3244$as_echo "$STRIP" >&6; } 3245else 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3247$as_echo "no" >&6; } 3248fi 3249 3250 3251fi 3252if test -z "$ac_cv_prog_STRIP"; then 3253 ac_ct_STRIP=$STRIP 3254 # Extract the first word of "strip", so it can be a program name with args. 3255set dummy strip; ac_word=$2 3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3257$as_echo_n "checking for $ac_word... " >&6; } 3258if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3259 $as_echo_n "(cached) " >&6 3260else 3261 if test -n "$ac_ct_STRIP"; then 3262 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3263else 3264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3265for as_dir in $PATH 3266do 3267 IFS=$as_save_IFS 3268 test -z "$as_dir" && as_dir=. 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3271 ac_cv_prog_ac_ct_STRIP="strip" 3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3282if test -n "$ac_ct_STRIP"; then 3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3284$as_echo "$ac_ct_STRIP" >&6; } 3285else 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287$as_echo "no" >&6; } 3288fi 3289 3290 if test "x$ac_ct_STRIP" = x; then 3291 STRIP=":" 3292 else 3293 case $cross_compiling:$ac_tool_warned in 3294yes:) 3295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3297ac_tool_warned=yes ;; 3298esac 3299 STRIP=$ac_ct_STRIP 3300 fi 3301else 3302 STRIP="$ac_cv_prog_STRIP" 3303fi 3304 3305fi 3306INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3307 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3309$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3310if test -z "$MKDIR_P"; then 3311 if ${ac_cv_path_mkdir+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3315for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3316do 3317 IFS=$as_save_IFS 3318 test -z "$as_dir" && as_dir=. 3319 for ac_prog in mkdir gmkdir; do 3320 for ac_exec_ext in '' $ac_executable_extensions; do 3321 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3322 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3323 'mkdir (GNU coreutils) '* | \ 3324 'mkdir (coreutils) '* | \ 3325 'mkdir (fileutils) '4.1*) 3326 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3327 break 3;; 3328 esac 3329 done 3330 done 3331 done 3332IFS=$as_save_IFS 3333 3334fi 3335 3336 test -d ./--version && rmdir ./--version 3337 if test "${ac_cv_path_mkdir+set}" = set; then 3338 MKDIR_P="$ac_cv_path_mkdir -p" 3339 else 3340 # As a last resort, use the slow shell script. Don't cache a 3341 # value for MKDIR_P within a source directory, because that will 3342 # break other packages using the cache if that directory is 3343 # removed, or if the value is a relative name. 3344 MKDIR_P="$ac_install_sh -d" 3345 fi 3346fi 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3348$as_echo "$MKDIR_P" >&6; } 3349 3350for ac_prog in gawk mawk nawk awk 3351do 3352 # Extract the first word of "$ac_prog", so it can be a program name with args. 3353set dummy $ac_prog; ac_word=$2 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3355$as_echo_n "checking for $ac_word... " >&6; } 3356if ${ac_cv_prog_AWK+:} false; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 if test -n "$AWK"; then 3360 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3361else 3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3363for as_dir in $PATH 3364do 3365 IFS=$as_save_IFS 3366 test -z "$as_dir" && as_dir=. 3367 for ac_exec_ext in '' $ac_executable_extensions; do 3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3369 ac_cv_prog_AWK="$ac_prog" 3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3371 break 2 3372 fi 3373done 3374 done 3375IFS=$as_save_IFS 3376 3377fi 3378fi 3379AWK=$ac_cv_prog_AWK 3380if test -n "$AWK"; then 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3382$as_echo "$AWK" >&6; } 3383else 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3385$as_echo "no" >&6; } 3386fi 3387 3388 3389 test -n "$AWK" && break 3390done 3391 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3393$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3394set x ${MAKE-make} 3395ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3396if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3397 $as_echo_n "(cached) " >&6 3398else 3399 cat >conftest.make <<\_ACEOF 3400SHELL = /bin/sh 3401all: 3402 @echo '@@@%%%=$(MAKE)=@@@%%%' 3403_ACEOF 3404# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3405case `${MAKE-make} -f conftest.make 2>/dev/null` in 3406 *@@@%%%=?*=@@@%%%*) 3407 eval ac_cv_prog_make_${ac_make}_set=yes;; 3408 *) 3409 eval ac_cv_prog_make_${ac_make}_set=no;; 3410esac 3411rm -f conftest.make 3412fi 3413if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3415$as_echo "yes" >&6; } 3416 SET_MAKE= 3417else 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3419$as_echo "no" >&6; } 3420 SET_MAKE="MAKE=${MAKE-make}" 3421fi 3422 3423rm -rf .tst 2>/dev/null 3424mkdir .tst 2>/dev/null 3425if test -d .tst; then 3426 am__leading_dot=. 3427else 3428 am__leading_dot=_ 3429fi 3430rmdir .tst 2>/dev/null 3431 3432# Check whether --enable-silent-rules was given. 3433if test "${enable_silent_rules+set}" = set; then : 3434 enableval=$enable_silent_rules; 3435fi 3436 3437case $enable_silent_rules in # ((( 3438 yes) AM_DEFAULT_VERBOSITY=0;; 3439 no) AM_DEFAULT_VERBOSITY=1;; 3440 *) AM_DEFAULT_VERBOSITY=1;; 3441esac 3442am_make=${MAKE-make} 3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3444$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3445if ${am_cv_make_support_nested_variables+:} false; then : 3446 $as_echo_n "(cached) " >&6 3447else 3448 if $as_echo 'TRUE=$(BAR$(V)) 3449BAR0=false 3450BAR1=true 3451V=1 3452am__doit: 3453 @$(TRUE) 3454.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3455 am_cv_make_support_nested_variables=yes 3456else 3457 am_cv_make_support_nested_variables=no 3458fi 3459fi 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3461$as_echo "$am_cv_make_support_nested_variables" >&6; } 3462if test $am_cv_make_support_nested_variables = yes; then 3463 AM_V='$(V)' 3464 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3465else 3466 AM_V=$AM_DEFAULT_VERBOSITY 3467 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3468fi 3469AM_BACKSLASH='\' 3470 3471if test "`cd $srcdir && pwd`" != "`pwd`"; then 3472 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3473 # is not polluted with repeated "-I." 3474 am__isrc=' -I$(srcdir)' 3475 # test to see if srcdir already configured 3476 if test -f $srcdir/config.status; then 3477 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3478 fi 3479fi 3480 3481# test whether we have cygpath 3482if test -z "$CYGPATH_W"; then 3483 if (cygpath --version) >/dev/null 2>/dev/null; then 3484 CYGPATH_W='cygpath -w' 3485 else 3486 CYGPATH_W=echo 3487 fi 3488fi 3489 3490 3491# Define the identity of the package. 3492 PACKAGE='libgfortran' 3493 VERSION='0.3' 3494 3495 3496# Some tools Automake needs. 3497 3498ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3499 3500 3501AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3502 3503 3504AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3505 3506 3507AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3508 3509 3510MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3511 3512# For better backward compatibility. To be removed once Automake 1.9.x 3513# dies out for good. For more background, see: 3514# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3515# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3516mkdir_p='$(MKDIR_P)' 3517 3518# We need awk for the "check" target (and possibly the TAP driver). The 3519# system "awk" is bad on some platforms. 3520# Always define AMTAR for backward compatibility. Yes, it's still used 3521# in the wild :-( We should find a proper way to deprecate it ... 3522AMTAR='$${TAR-tar}' 3523 3524 3525# We'll loop over all known methods to create a tar archive until one works. 3526_am_tools='gnutar pax cpio none' 3527 3528am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3529 3530 3531 3532 3533 3534 3535# POSIX will say in a future version that running "rm -f" with no argument 3536# is OK; and we want to be able to make that assumption in our Makefile 3537# recipes. So use an aggressive probe to check that the usage we want is 3538# actually supported "in the wild" to an acceptable degree. 3539# See automake bug#10828. 3540# To make any issue more visible, cause the running configure to be aborted 3541# by default if the 'rm' program in use doesn't match our expectations; the 3542# user can still override this though. 3543if rm -f && rm -fr && rm -rf; then : OK; else 3544 cat >&2 <<'END' 3545Oops! 3546 3547Your 'rm' program seems unable to run without file operands specified 3548on the command line, even when the '-f' option is present. This is contrary 3549to the behaviour of most rm programs out there, and not conforming with 3550the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3551 3552Please tell bug-automake@gnu.org about your system, including the value 3553of your $PATH and any error possibly output before this message. This 3554can help us improve future automake versions. 3555 3556END 3557 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3558 echo 'Configuration will proceed anyway, since you have set the' >&2 3559 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3560 echo >&2 3561 else 3562 cat >&2 <<'END' 3563Aborting the configuration process, to ensure you take notice of the issue. 3564 3565You can download and install GNU coreutils to get an 'rm' implementation 3566that behaves properly: <http://www.gnu.org/software/coreutils/>. 3567 3568If you want to complete the configuration process using your problematic 3569'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3570to "yes", and re-run configure. 3571 3572END 3573 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3574 fi 3575fi 3576 3577 3578 3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3580$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3581 # Check whether --enable-maintainer-mode was given. 3582if test "${enable_maintainer_mode+set}" = set; then : 3583 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3584else 3585 USE_MAINTAINER_MODE=no 3586fi 3587 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3589$as_echo "$USE_MAINTAINER_MODE" >&6; } 3590 if test $USE_MAINTAINER_MODE = yes; then 3591 MAINTAINER_MODE_TRUE= 3592 MAINTAINER_MODE_FALSE='#' 3593else 3594 MAINTAINER_MODE_TRUE='#' 3595 MAINTAINER_MODE_FALSE= 3596fi 3597 3598 MAINT=$MAINTAINER_MODE_TRUE 3599 3600 3601# Default to --enable-multilib 3602# Check whether --enable-multilib was given. 3603if test "${enable_multilib+set}" = set; then : 3604 enableval=$enable_multilib; case "$enableval" in 3605 yes) multilib=yes ;; 3606 no) multilib=no ;; 3607 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;; 3608 esac 3609else 3610 multilib=yes 3611fi 3612 3613 3614# We may get other options which we leave undocumented: 3615# --with-target-subdir, --with-multisrctop, --with-multisubdir 3616# See config-ml.in if you want the gory details. 3617 3618if test "$srcdir" = "."; then 3619 if test "$with_target_subdir" != "."; then 3620 multi_basedir="$srcdir/$with_multisrctop../.." 3621 else 3622 multi_basedir="$srcdir/$with_multisrctop.." 3623 fi 3624else 3625 multi_basedir="$srcdir/.." 3626fi 3627 3628 3629# Even if the default multilib is not a cross compilation, 3630# it may be that some of the other multilibs are. 3631if test $cross_compiling = no && test $multilib = yes \ 3632 && test "x${with_multisubdir}" != x ; then 3633 cross_compiling=maybe 3634fi 3635 3636ac_config_commands="$ac_config_commands default-1" 3637 3638 3639# Handy for debugging: 3640#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 3641 3642# Are we being configured with some form of cross compiler? 3643# NB: We don't actually need to know this just now, but when, say, a test 3644# suite is included, we'll have to know. 3645if test "$build" != "$host"; then 3646 LIBGFOR_IS_NATIVE=false 3647 3648else 3649 LIBGFOR_IS_NATIVE=true 3650fi 3651 3652DEPDIR="${am__leading_dot}deps" 3653 3654ac_config_commands="$ac_config_commands depfiles" 3655 3656 3657am_make=${MAKE-make} 3658cat > confinc << 'END' 3659am__doit: 3660 @echo this is the am__doit target 3661.PHONY: am__doit 3662END 3663# If we don't find an include directive, just comment out the code. 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3665$as_echo_n "checking for style of include used by $am_make... " >&6; } 3666am__include="#" 3667am__quote= 3668_am_result=none 3669# First try GNU make style include. 3670echo "include confinc" > confmf 3671# Ignore all kinds of additional output from 'make'. 3672case `$am_make -s -f confmf 2> /dev/null` in #( 3673*the\ am__doit\ target*) 3674 am__include=include 3675 am__quote= 3676 _am_result=GNU 3677 ;; 3678esac 3679# Now try BSD make style include. 3680if test "$am__include" = "#"; then 3681 echo '.include "confinc"' > confmf 3682 case `$am_make -s -f confmf 2> /dev/null` in #( 3683 *the\ am__doit\ target*) 3684 am__include=.include 3685 am__quote="\"" 3686 _am_result=BSD 3687 ;; 3688 esac 3689fi 3690 3691 3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3693$as_echo "$_am_result" >&6; } 3694rm -f confinc confmf 3695 3696# Check whether --enable-dependency-tracking was given. 3697if test "${enable_dependency_tracking+set}" = set; then : 3698 enableval=$enable_dependency_tracking; 3699fi 3700 3701if test "x$enable_dependency_tracking" != xno; then 3702 am_depcomp="$ac_aux_dir/depcomp" 3703 AMDEPBACKSLASH='\' 3704 am__nodep='_no' 3705fi 3706 if test "x$enable_dependency_tracking" != xno; then 3707 AMDEP_TRUE= 3708 AMDEP_FALSE='#' 3709else 3710 AMDEP_TRUE='#' 3711 AMDEP_FALSE= 3712fi 3713 3714 3715ac_ext=c 3716ac_cpp='$CPP $CPPFLAGS' 3717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3719ac_compiler_gnu=$ac_cv_c_compiler_gnu 3720if test -n "$ac_tool_prefix"; then 3721 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3722set dummy ${ac_tool_prefix}gcc; ac_word=$2 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3724$as_echo_n "checking for $ac_word... " >&6; } 3725if ${ac_cv_prog_CC+:} false; then : 3726 $as_echo_n "(cached) " >&6 3727else 3728 if test -n "$CC"; then 3729 ac_cv_prog_CC="$CC" # Let the user override the test. 3730else 3731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3732for as_dir in $PATH 3733do 3734 IFS=$as_save_IFS 3735 test -z "$as_dir" && as_dir=. 3736 for ac_exec_ext in '' $ac_executable_extensions; do 3737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3738 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3740 break 2 3741 fi 3742done 3743 done 3744IFS=$as_save_IFS 3745 3746fi 3747fi 3748CC=$ac_cv_prog_CC 3749if test -n "$CC"; then 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3751$as_echo "$CC" >&6; } 3752else 3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3754$as_echo "no" >&6; } 3755fi 3756 3757 3758fi 3759if test -z "$ac_cv_prog_CC"; then 3760 ac_ct_CC=$CC 3761 # Extract the first word of "gcc", so it can be a program name with args. 3762set dummy gcc; ac_word=$2 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3764$as_echo_n "checking for $ac_word... " >&6; } 3765if ${ac_cv_prog_ac_ct_CC+:} false; then : 3766 $as_echo_n "(cached) " >&6 3767else 3768 if test -n "$ac_ct_CC"; then 3769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3770else 3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3772for as_dir in $PATH 3773do 3774 IFS=$as_save_IFS 3775 test -z "$as_dir" && as_dir=. 3776 for ac_exec_ext in '' $ac_executable_extensions; do 3777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3778 ac_cv_prog_ac_ct_CC="gcc" 3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3780 break 2 3781 fi 3782done 3783 done 3784IFS=$as_save_IFS 3785 3786fi 3787fi 3788ac_ct_CC=$ac_cv_prog_ac_ct_CC 3789if test -n "$ac_ct_CC"; then 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3791$as_echo "$ac_ct_CC" >&6; } 3792else 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3794$as_echo "no" >&6; } 3795fi 3796 3797 if test "x$ac_ct_CC" = x; then 3798 CC="" 3799 else 3800 case $cross_compiling:$ac_tool_warned in 3801yes:) 3802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3804ac_tool_warned=yes ;; 3805esac 3806 CC=$ac_ct_CC 3807 fi 3808else 3809 CC="$ac_cv_prog_CC" 3810fi 3811 3812if test -z "$CC"; then 3813 if test -n "$ac_tool_prefix"; then 3814 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3815set dummy ${ac_tool_prefix}cc; ac_word=$2 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3817$as_echo_n "checking for $ac_word... " >&6; } 3818if ${ac_cv_prog_CC+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820else 3821 if test -n "$CC"; then 3822 ac_cv_prog_CC="$CC" # Let the user override the test. 3823else 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH 3826do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for ac_exec_ext in '' $ac_executable_extensions; do 3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3831 ac_cv_prog_CC="${ac_tool_prefix}cc" 3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3833 break 2 3834 fi 3835done 3836 done 3837IFS=$as_save_IFS 3838 3839fi 3840fi 3841CC=$ac_cv_prog_CC 3842if test -n "$CC"; then 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3844$as_echo "$CC" >&6; } 3845else 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847$as_echo "no" >&6; } 3848fi 3849 3850 3851 fi 3852fi 3853if test -z "$CC"; then 3854 # Extract the first word of "cc", so it can be a program name with args. 3855set dummy cc; ac_word=$2 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3857$as_echo_n "checking for $ac_word... " >&6; } 3858if ${ac_cv_prog_CC+:} false; then : 3859 $as_echo_n "(cached) " >&6 3860else 3861 if test -n "$CC"; then 3862 ac_cv_prog_CC="$CC" # Let the user override the test. 3863else 3864 ac_prog_rejected=no 3865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3866for as_dir in $PATH 3867do 3868 IFS=$as_save_IFS 3869 test -z "$as_dir" && as_dir=. 3870 for ac_exec_ext in '' $ac_executable_extensions; do 3871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3873 ac_prog_rejected=yes 3874 continue 3875 fi 3876 ac_cv_prog_CC="cc" 3877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3878 break 2 3879 fi 3880done 3881 done 3882IFS=$as_save_IFS 3883 3884if test $ac_prog_rejected = yes; then 3885 # We found a bogon in the path, so make sure we never use it. 3886 set dummy $ac_cv_prog_CC 3887 shift 3888 if test $# != 0; then 3889 # We chose a different compiler from the bogus one. 3890 # However, it has the same basename, so the bogon will be chosen 3891 # first if we set CC to just the basename; use the full file name. 3892 shift 3893 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3894 fi 3895fi 3896fi 3897fi 3898CC=$ac_cv_prog_CC 3899if test -n "$CC"; then 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3901$as_echo "$CC" >&6; } 3902else 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3904$as_echo "no" >&6; } 3905fi 3906 3907 3908fi 3909if test -z "$CC"; then 3910 if test -n "$ac_tool_prefix"; then 3911 for ac_prog in cl.exe 3912 do 3913 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3914set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3916$as_echo_n "checking for $ac_word... " >&6; } 3917if ${ac_cv_prog_CC+:} false; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 if test -n "$CC"; then 3921 ac_cv_prog_CC="$CC" # Let the user override the test. 3922else 3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3924for as_dir in $PATH 3925do 3926 IFS=$as_save_IFS 3927 test -z "$as_dir" && as_dir=. 3928 for ac_exec_ext in '' $ac_executable_extensions; do 3929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3930 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3932 break 2 3933 fi 3934done 3935 done 3936IFS=$as_save_IFS 3937 3938fi 3939fi 3940CC=$ac_cv_prog_CC 3941if test -n "$CC"; then 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3943$as_echo "$CC" >&6; } 3944else 3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3946$as_echo "no" >&6; } 3947fi 3948 3949 3950 test -n "$CC" && break 3951 done 3952fi 3953if test -z "$CC"; then 3954 ac_ct_CC=$CC 3955 for ac_prog in cl.exe 3956do 3957 # Extract the first word of "$ac_prog", so it can be a program name with args. 3958set dummy $ac_prog; ac_word=$2 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3960$as_echo_n "checking for $ac_word... " >&6; } 3961if ${ac_cv_prog_ac_ct_CC+:} false; then : 3962 $as_echo_n "(cached) " >&6 3963else 3964 if test -n "$ac_ct_CC"; then 3965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3966else 3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3968for as_dir in $PATH 3969do 3970 IFS=$as_save_IFS 3971 test -z "$as_dir" && as_dir=. 3972 for ac_exec_ext in '' $ac_executable_extensions; do 3973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3974 ac_cv_prog_ac_ct_CC="$ac_prog" 3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3976 break 2 3977 fi 3978done 3979 done 3980IFS=$as_save_IFS 3981 3982fi 3983fi 3984ac_ct_CC=$ac_cv_prog_ac_ct_CC 3985if test -n "$ac_ct_CC"; then 3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3987$as_echo "$ac_ct_CC" >&6; } 3988else 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3990$as_echo "no" >&6; } 3991fi 3992 3993 3994 test -n "$ac_ct_CC" && break 3995done 3996 3997 if test "x$ac_ct_CC" = x; then 3998 CC="" 3999 else 4000 case $cross_compiling:$ac_tool_warned in 4001yes:) 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4004ac_tool_warned=yes ;; 4005esac 4006 CC=$ac_ct_CC 4007 fi 4008fi 4009 4010fi 4011 4012 4013test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4015as_fn_error $? "no acceptable C compiler found in \$PATH 4016See \`config.log' for more details" "$LINENO" 5; } 4017 4018# Provide some information about the compiler. 4019$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4020set X $ac_compile 4021ac_compiler=$2 4022for ac_option in --version -v -V -qversion; do 4023 { { ac_try="$ac_compiler $ac_option >&5" 4024case "(($ac_try" in 4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4026 *) ac_try_echo=$ac_try;; 4027esac 4028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4029$as_echo "$ac_try_echo"; } >&5 4030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4031 ac_status=$? 4032 if test -s conftest.err; then 4033 sed '10a\ 4034... rest of stderr output deleted ... 4035 10q' conftest.err >conftest.er1 4036 cat conftest.er1 >&5 4037 fi 4038 rm -f conftest.er1 conftest.err 4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4040 test $ac_status = 0; } 4041done 4042 4043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045#include <stdio.h> 4046int 4047main () 4048{ 4049printf ("hello world\n"); 4050 ; 4051 return 0; 4052} 4053_ACEOF 4054# FIXME: Cleanup? 4055if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 4056 (eval $ac_link) 2>&5 4057 ac_status=$? 4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4059 test $ac_status = 0; }; then : 4060 gcc_no_link=no 4061else 4062 gcc_no_link=yes 4063fi 4064if test x$gcc_no_link = xyes; then 4065 # Setting cross_compile will disable run tests; it will 4066 # also disable AC_CHECK_FILE but that's generally 4067 # correct if we can't link. 4068 cross_compiling=yes 4069 EXEEXT= 4070else 4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4072/* end confdefs.h. */ 4073 4074int 4075main () 4076{ 4077 4078 ; 4079 return 0; 4080} 4081_ACEOF 4082ac_clean_files_save=$ac_clean_files 4083ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4084# Try to create an executable without -o first, disregard a.out. 4085# It will help us diagnose broken compilers, and finding out an intuition 4086# of exeext. 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4088$as_echo_n "checking whether the C compiler works... " >&6; } 4089ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4090 4091# The possible output files: 4092ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4093 4094ac_rmfiles= 4095for ac_file in $ac_files 4096do 4097 case $ac_file in 4098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4099 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4100 esac 4101done 4102rm -f $ac_rmfiles 4103 4104if { { ac_try="$ac_link_default" 4105case "(($ac_try" in 4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4107 *) ac_try_echo=$ac_try;; 4108esac 4109eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4110$as_echo "$ac_try_echo"; } >&5 4111 (eval "$ac_link_default") 2>&5 4112 ac_status=$? 4113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4114 test $ac_status = 0; }; then : 4115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4116# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4117# in a Makefile. We should not override ac_cv_exeext if it was cached, 4118# so that the user can short-circuit this test for compilers unknown to 4119# Autoconf. 4120for ac_file in $ac_files '' 4121do 4122 test -f "$ac_file" || continue 4123 case $ac_file in 4124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4125 ;; 4126 [ab].out ) 4127 # We found the default executable, but exeext='' is most 4128 # certainly right. 4129 break;; 4130 *.* ) 4131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4132 then :; else 4133 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4134 fi 4135 # We set ac_cv_exeext here because the later test for it is not 4136 # safe: cross compilers may not add the suffix if given an `-o' 4137 # argument, so we may need to know it at that point already. 4138 # Even if this section looks crufty: it has the advantage of 4139 # actually working. 4140 break;; 4141 * ) 4142 break;; 4143 esac 4144done 4145test "$ac_cv_exeext" = no && ac_cv_exeext= 4146 4147else 4148 ac_file='' 4149fi 4150if test -z "$ac_file"; then : 4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4152$as_echo "no" >&6; } 4153$as_echo "$as_me: failed program was:" >&5 4154sed 's/^/| /' conftest.$ac_ext >&5 4155 4156{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4158as_fn_error 77 "C compiler cannot create executables 4159See \`config.log' for more details" "$LINENO" 5; } 4160else 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4162$as_echo "yes" >&6; } 4163fi 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4165$as_echo_n "checking for C compiler default output file name... " >&6; } 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4167$as_echo "$ac_file" >&6; } 4168ac_exeext=$ac_cv_exeext 4169 4170rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4171ac_clean_files=$ac_clean_files_save 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4173$as_echo_n "checking for suffix of executables... " >&6; } 4174if { { ac_try="$ac_link" 4175case "(($ac_try" in 4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4177 *) ac_try_echo=$ac_try;; 4178esac 4179eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4180$as_echo "$ac_try_echo"; } >&5 4181 (eval "$ac_link") 2>&5 4182 ac_status=$? 4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4184 test $ac_status = 0; }; then : 4185 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4186# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4187# work properly (i.e., refer to `conftest.exe'), while it won't with 4188# `rm'. 4189for ac_file in conftest.exe conftest conftest.*; do 4190 test -f "$ac_file" || continue 4191 case $ac_file in 4192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4193 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4194 break;; 4195 * ) break;; 4196 esac 4197done 4198else 4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4201as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4202See \`config.log' for more details" "$LINENO" 5; } 4203fi 4204rm -f conftest conftest$ac_cv_exeext 4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4206$as_echo "$ac_cv_exeext" >&6; } 4207 4208rm -f conftest.$ac_ext 4209EXEEXT=$ac_cv_exeext 4210ac_exeext=$EXEEXT 4211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4212/* end confdefs.h. */ 4213#include <stdio.h> 4214int 4215main () 4216{ 4217FILE *f = fopen ("conftest.out", "w"); 4218 return ferror (f) || fclose (f) != 0; 4219 4220 ; 4221 return 0; 4222} 4223_ACEOF 4224ac_clean_files="$ac_clean_files conftest.out" 4225# Check that the compiler produces executables we can run. If not, either 4226# the compiler is broken, or we cross compile. 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4228$as_echo_n "checking whether we are cross compiling... " >&6; } 4229if test "$cross_compiling" != yes; then 4230 { { ac_try="$ac_link" 4231case "(($ac_try" in 4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4233 *) ac_try_echo=$ac_try;; 4234esac 4235eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4236$as_echo "$ac_try_echo"; } >&5 4237 (eval "$ac_link") 2>&5 4238 ac_status=$? 4239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4240 test $ac_status = 0; } 4241 if { ac_try='./conftest$ac_cv_exeext' 4242 { { case "(($ac_try" in 4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4244 *) ac_try_echo=$ac_try;; 4245esac 4246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4247$as_echo "$ac_try_echo"; } >&5 4248 (eval "$ac_try") 2>&5 4249 ac_status=$? 4250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4251 test $ac_status = 0; }; }; then 4252 cross_compiling=no 4253 else 4254 if test "$cross_compiling" = maybe; then 4255 cross_compiling=yes 4256 else 4257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4259as_fn_error $? "cannot run C compiled programs. 4260If you meant to cross compile, use \`--host'. 4261See \`config.log' for more details" "$LINENO" 5; } 4262 fi 4263 fi 4264fi 4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4266$as_echo "$cross_compiling" >&6; } 4267 4268rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4269ac_clean_files=$ac_clean_files_save 4270fi 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4272$as_echo_n "checking for suffix of object files... " >&6; } 4273if ${ac_cv_objext+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275else 4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277/* end confdefs.h. */ 4278 4279int 4280main () 4281{ 4282 4283 ; 4284 return 0; 4285} 4286_ACEOF 4287rm -f conftest.o conftest.obj 4288if { { ac_try="$ac_compile" 4289case "(($ac_try" in 4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4291 *) ac_try_echo=$ac_try;; 4292esac 4293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4294$as_echo "$ac_try_echo"; } >&5 4295 (eval "$ac_compile") 2>&5 4296 ac_status=$? 4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4298 test $ac_status = 0; }; then : 4299 for ac_file in conftest.o conftest.obj conftest.*; do 4300 test -f "$ac_file" || continue; 4301 case $ac_file in 4302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4304 break;; 4305 esac 4306done 4307else 4308 $as_echo "$as_me: failed program was:" >&5 4309sed 's/^/| /' conftest.$ac_ext >&5 4310 4311{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4313as_fn_error $? "cannot compute suffix of object files: cannot compile 4314See \`config.log' for more details" "$LINENO" 5; } 4315fi 4316rm -f conftest.$ac_cv_objext conftest.$ac_ext 4317fi 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4319$as_echo "$ac_cv_objext" >&6; } 4320OBJEXT=$ac_cv_objext 4321ac_objext=$OBJEXT 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4323$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4324if ${ac_cv_c_compiler_gnu+:} false; then : 4325 $as_echo_n "(cached) " >&6 4326else 4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4328/* end confdefs.h. */ 4329 4330int 4331main () 4332{ 4333#ifndef __GNUC__ 4334 choke me 4335#endif 4336 4337 ; 4338 return 0; 4339} 4340_ACEOF 4341if ac_fn_c_try_compile "$LINENO"; then : 4342 ac_compiler_gnu=yes 4343else 4344 ac_compiler_gnu=no 4345fi 4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4347ac_cv_c_compiler_gnu=$ac_compiler_gnu 4348 4349fi 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4351$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4352if test $ac_compiler_gnu = yes; then 4353 GCC=yes 4354else 4355 GCC= 4356fi 4357ac_test_CFLAGS=${CFLAGS+set} 4358ac_save_CFLAGS=$CFLAGS 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4360$as_echo_n "checking whether $CC accepts -g... " >&6; } 4361if ${ac_cv_prog_cc_g+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 ac_save_c_werror_flag=$ac_c_werror_flag 4365 ac_c_werror_flag=yes 4366 ac_cv_prog_cc_g=no 4367 CFLAGS="-g" 4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4369/* end confdefs.h. */ 4370 4371int 4372main () 4373{ 4374 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379if ac_fn_c_try_compile "$LINENO"; then : 4380 ac_cv_prog_cc_g=yes 4381else 4382 CFLAGS="" 4383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4384/* end confdefs.h. */ 4385 4386int 4387main () 4388{ 4389 4390 ; 4391 return 0; 4392} 4393_ACEOF 4394if ac_fn_c_try_compile "$LINENO"; then : 4395 4396else 4397 ac_c_werror_flag=$ac_save_c_werror_flag 4398 CFLAGS="-g" 4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4400/* end confdefs.h. */ 4401 4402int 4403main () 4404{ 4405 4406 ; 4407 return 0; 4408} 4409_ACEOF 4410if ac_fn_c_try_compile "$LINENO"; then : 4411 ac_cv_prog_cc_g=yes 4412fi 4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4414fi 4415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4416fi 4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4418 ac_c_werror_flag=$ac_save_c_werror_flag 4419fi 4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4421$as_echo "$ac_cv_prog_cc_g" >&6; } 4422if test "$ac_test_CFLAGS" = set; then 4423 CFLAGS=$ac_save_CFLAGS 4424elif test $ac_cv_prog_cc_g = yes; then 4425 if test "$GCC" = yes; then 4426 CFLAGS="-g -O2" 4427 else 4428 CFLAGS="-g" 4429 fi 4430else 4431 if test "$GCC" = yes; then 4432 CFLAGS="-O2" 4433 else 4434 CFLAGS= 4435 fi 4436fi 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4438$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4439if ${ac_cv_prog_cc_c89+:} false; then : 4440 $as_echo_n "(cached) " >&6 4441else 4442 ac_cv_prog_cc_c89=no 4443ac_save_CC=$CC 4444cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4445/* end confdefs.h. */ 4446#include <stdarg.h> 4447#include <stdio.h> 4448struct stat; 4449/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4450struct buf { int x; }; 4451FILE * (*rcsopen) (struct buf *, struct stat *, int); 4452static char *e (p, i) 4453 char **p; 4454 int i; 4455{ 4456 return p[i]; 4457} 4458static char *f (char * (*g) (char **, int), char **p, ...) 4459{ 4460 char *s; 4461 va_list v; 4462 va_start (v,p); 4463 s = g (p, va_arg (v,int)); 4464 va_end (v); 4465 return s; 4466} 4467 4468/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4469 function prototypes and stuff, but not '\xHH' hex character constants. 4470 These don't provoke an error unfortunately, instead are silently treated 4471 as 'x'. The following induces an error, until -std is added to get 4472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4473 array size at least. It's necessary to write '\x00'==0 to get something 4474 that's true only with -std. */ 4475int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4476 4477/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4478 inside strings and character constants. */ 4479#define FOO(x) 'x' 4480int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4481 4482int test (int i, double x); 4483struct s1 {int (*f) (int a);}; 4484struct s2 {int (*f) (double a);}; 4485int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4486int argc; 4487char **argv; 4488int 4489main () 4490{ 4491return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4492 ; 4493 return 0; 4494} 4495_ACEOF 4496for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4498do 4499 CC="$ac_save_CC $ac_arg" 4500 if ac_fn_c_try_compile "$LINENO"; then : 4501 ac_cv_prog_cc_c89=$ac_arg 4502fi 4503rm -f core conftest.err conftest.$ac_objext 4504 test "x$ac_cv_prog_cc_c89" != "xno" && break 4505done 4506rm -f conftest.$ac_ext 4507CC=$ac_save_CC 4508 4509fi 4510# AC_CACHE_VAL 4511case "x$ac_cv_prog_cc_c89" in 4512 x) 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4514$as_echo "none needed" >&6; } ;; 4515 xno) 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4517$as_echo "unsupported" >&6; } ;; 4518 *) 4519 CC="$CC $ac_cv_prog_cc_c89" 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4521$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4522esac 4523if test "x$ac_cv_prog_cc_c89" != xno; then : 4524 4525fi 4526 4527ac_ext=c 4528ac_cpp='$CPP $CPPFLAGS' 4529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4531ac_compiler_gnu=$ac_cv_c_compiler_gnu 4532 4533ac_ext=c 4534ac_cpp='$CPP $CPPFLAGS' 4535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4537ac_compiler_gnu=$ac_cv_c_compiler_gnu 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4539$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4540if ${am_cv_prog_cc_c_o+:} false; then : 4541 $as_echo_n "(cached) " >&6 4542else 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4544/* end confdefs.h. */ 4545 4546int 4547main () 4548{ 4549 4550 ; 4551 return 0; 4552} 4553_ACEOF 4554 # Make sure it works both with $CC and with simple cc. 4555 # Following AC_PROG_CC_C_O, we do the test twice because some 4556 # compilers refuse to overwrite an existing .o file with -o, 4557 # though they will create one. 4558 am_cv_prog_cc_c_o=yes 4559 for am_i in 1 2; do 4560 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4561 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4562 ac_status=$? 4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4564 (exit $ac_status); } \ 4565 && test -f conftest2.$ac_objext; then 4566 : OK 4567 else 4568 am_cv_prog_cc_c_o=no 4569 break 4570 fi 4571 done 4572 rm -f core conftest* 4573 unset am_i 4574fi 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4576$as_echo "$am_cv_prog_cc_c_o" >&6; } 4577if test "$am_cv_prog_cc_c_o" != yes; then 4578 # Losing compiler, so override with the script. 4579 # FIXME: It is wrong to rewrite CC. 4580 # But if we don't then we get into trouble of one sort or another. 4581 # A longer-term fix would be to have automake use am__CC in this case, 4582 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4583 CC="$am_aux_dir/compile $CC" 4584fi 4585ac_ext=c 4586ac_cpp='$CPP $CPPFLAGS' 4587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4589ac_compiler_gnu=$ac_cv_c_compiler_gnu 4590 4591 4592depcc="$CC" am_compiler_list= 4593 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4595$as_echo_n "checking dependency style of $depcc... " >&6; } 4596if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4597 $as_echo_n "(cached) " >&6 4598else 4599 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4600 # We make a subdir and do the tests there. Otherwise we can end up 4601 # making bogus files that we don't know about and never remove. For 4602 # instance it was reported that on HP-UX the gcc test will end up 4603 # making a dummy file named 'D' -- because '-MD' means "put the output 4604 # in D". 4605 rm -rf conftest.dir 4606 mkdir conftest.dir 4607 # Copy depcomp to subdir because otherwise we won't find it if we're 4608 # using a relative directory. 4609 cp "$am_depcomp" conftest.dir 4610 cd conftest.dir 4611 # We will build objects and dependencies in a subdirectory because 4612 # it helps to detect inapplicable dependency modes. For instance 4613 # both Tru64's cc and ICC support -MD to output dependencies as a 4614 # side effect of compilation, but ICC will put the dependencies in 4615 # the current directory while Tru64 will put them in the object 4616 # directory. 4617 mkdir sub 4618 4619 am_cv_CC_dependencies_compiler_type=none 4620 if test "$am_compiler_list" = ""; then 4621 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4622 fi 4623 am__universal=false 4624 case " $depcc " in #( 4625 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4626 esac 4627 4628 for depmode in $am_compiler_list; do 4629 # Setup a source with many dependencies, because some compilers 4630 # like to wrap large dependency lists on column 80 (with \), and 4631 # we should not choose a depcomp mode which is confused by this. 4632 # 4633 # We need to recreate these files for each test, as the compiler may 4634 # overwrite some of them when testing with obscure command lines. 4635 # This happens at least with the AIX C compiler. 4636 : > sub/conftest.c 4637 for i in 1 2 3 4 5 6; do 4638 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4639 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4640 # Solaris 10 /bin/sh. 4641 echo '/* dummy */' > sub/conftst$i.h 4642 done 4643 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4644 4645 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4646 # mode. It turns out that the SunPro C++ compiler does not properly 4647 # handle '-M -o', and we need to detect this. Also, some Intel 4648 # versions had trouble with output in subdirs. 4649 am__obj=sub/conftest.${OBJEXT-o} 4650 am__minus_obj="-o $am__obj" 4651 case $depmode in 4652 gcc) 4653 # This depmode causes a compiler race in universal mode. 4654 test "$am__universal" = false || continue 4655 ;; 4656 nosideeffect) 4657 # After this tag, mechanisms are not by side-effect, so they'll 4658 # only be used when explicitly requested. 4659 if test "x$enable_dependency_tracking" = xyes; then 4660 continue 4661 else 4662 break 4663 fi 4664 ;; 4665 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4666 # This compiler won't grok '-c -o', but also, the minuso test has 4667 # not run yet. These depmodes are late enough in the game, and 4668 # so weak that their functioning should not be impacted. 4669 am__obj=conftest.${OBJEXT-o} 4670 am__minus_obj= 4671 ;; 4672 none) break ;; 4673 esac 4674 if depmode=$depmode \ 4675 source=sub/conftest.c object=$am__obj \ 4676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4677 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4678 >/dev/null 2>conftest.err && 4679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4681 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4683 # icc doesn't choke on unknown options, it will just issue warnings 4684 # or remarks (even with -Werror). So we grep stderr for any message 4685 # that says an option was ignored or not supported. 4686 # When given -MP, icc 7.0 and 7.1 complain thusly: 4687 # icc: Command line warning: ignoring option '-M'; no argument required 4688 # The diagnosis changed in icc 8.0: 4689 # icc: Command line remark: option '-MP' not supported 4690 if (grep 'ignoring option' conftest.err || 4691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4692 am_cv_CC_dependencies_compiler_type=$depmode 4693 break 4694 fi 4695 fi 4696 done 4697 4698 cd .. 4699 rm -rf conftest.dir 4700else 4701 am_cv_CC_dependencies_compiler_type=none 4702fi 4703 4704fi 4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4706$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4707CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4708 4709 if 4710 test "x$enable_dependency_tracking" != xno \ 4711 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4712 am__fastdepCC_TRUE= 4713 am__fastdepCC_FALSE='#' 4714else 4715 am__fastdepCC_TRUE='#' 4716 am__fastdepCC_FALSE= 4717fi 4718 4719 4720 4721ac_ext=c 4722ac_cpp='$CPP $CPPFLAGS' 4723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4725ac_compiler_gnu=$ac_cv_c_compiler_gnu 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4727$as_echo_n "checking how to run the C preprocessor... " >&6; } 4728# On Suns, sometimes $CPP names a directory. 4729if test -n "$CPP" && test -d "$CPP"; then 4730 CPP= 4731fi 4732if test -z "$CPP"; then 4733 if ${ac_cv_prog_CPP+:} false; then : 4734 $as_echo_n "(cached) " >&6 4735else 4736 # Double quotes because CPP needs to be expanded 4737 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4738 do 4739 ac_preproc_ok=false 4740for ac_c_preproc_warn_flag in '' yes 4741do 4742 # Use a header file that comes with gcc, so configuring glibc 4743 # with a fresh cross-compiler works. 4744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4745 # <limits.h> exists even on freestanding compilers. 4746 # On the NeXT, cc -E runs the code through the compiler's parser, 4747 # not just through cpp. "Syntax error" is here to catch this case. 4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4749/* end confdefs.h. */ 4750#ifdef __STDC__ 4751# include <limits.h> 4752#else 4753# include <assert.h> 4754#endif 4755 Syntax error 4756_ACEOF 4757if ac_fn_c_try_cpp "$LINENO"; then : 4758 4759else 4760 # Broken: fails on valid input. 4761continue 4762fi 4763rm -f conftest.err conftest.i conftest.$ac_ext 4764 4765 # OK, works on sane cases. Now check whether nonexistent headers 4766 # can be detected and how. 4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768/* end confdefs.h. */ 4769#include <ac_nonexistent.h> 4770_ACEOF 4771if ac_fn_c_try_cpp "$LINENO"; then : 4772 # Broken: success on invalid input. 4773continue 4774else 4775 # Passes both tests. 4776ac_preproc_ok=: 4777break 4778fi 4779rm -f conftest.err conftest.i conftest.$ac_ext 4780 4781done 4782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4783rm -f conftest.i conftest.err conftest.$ac_ext 4784if $ac_preproc_ok; then : 4785 break 4786fi 4787 4788 done 4789 ac_cv_prog_CPP=$CPP 4790 4791fi 4792 CPP=$ac_cv_prog_CPP 4793else 4794 ac_cv_prog_CPP=$CPP 4795fi 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4797$as_echo "$CPP" >&6; } 4798ac_preproc_ok=false 4799for ac_c_preproc_warn_flag in '' yes 4800do 4801 # Use a header file that comes with gcc, so configuring glibc 4802 # with a fresh cross-compiler works. 4803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4804 # <limits.h> exists even on freestanding compilers. 4805 # On the NeXT, cc -E runs the code through the compiler's parser, 4806 # not just through cpp. "Syntax error" is here to catch this case. 4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4808/* end confdefs.h. */ 4809#ifdef __STDC__ 4810# include <limits.h> 4811#else 4812# include <assert.h> 4813#endif 4814 Syntax error 4815_ACEOF 4816if ac_fn_c_try_cpp "$LINENO"; then : 4817 4818else 4819 # Broken: fails on valid input. 4820continue 4821fi 4822rm -f conftest.err conftest.i conftest.$ac_ext 4823 4824 # OK, works on sane cases. Now check whether nonexistent headers 4825 # can be detected and how. 4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4827/* end confdefs.h. */ 4828#include <ac_nonexistent.h> 4829_ACEOF 4830if ac_fn_c_try_cpp "$LINENO"; then : 4831 # Broken: success on invalid input. 4832continue 4833else 4834 # Passes both tests. 4835ac_preproc_ok=: 4836break 4837fi 4838rm -f conftest.err conftest.i conftest.$ac_ext 4839 4840done 4841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4842rm -f conftest.i conftest.err conftest.$ac_ext 4843if $ac_preproc_ok; then : 4844 4845else 4846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4848as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4849See \`config.log' for more details" "$LINENO" 5; } 4850fi 4851 4852ac_ext=c 4853ac_cpp='$CPP $CPPFLAGS' 4854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4856ac_compiler_gnu=$ac_cv_c_compiler_gnu 4857 4858 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4860$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4861if ${ac_cv_path_GREP+:} false; then : 4862 $as_echo_n "(cached) " >&6 4863else 4864 if test -z "$GREP"; then 4865 ac_path_GREP_found=false 4866 # Loop through the user's path and test for each of PROGNAME-LIST 4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4868for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4869do 4870 IFS=$as_save_IFS 4871 test -z "$as_dir" && as_dir=. 4872 for ac_prog in grep ggrep; do 4873 for ac_exec_ext in '' $ac_executable_extensions; do 4874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4875 as_fn_executable_p "$ac_path_GREP" || continue 4876# Check for GNU ac_path_GREP and select it if it is found. 4877 # Check for GNU $ac_path_GREP 4878case `"$ac_path_GREP" --version 2>&1` in 4879*GNU*) 4880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4881*) 4882 ac_count=0 4883 $as_echo_n 0123456789 >"conftest.in" 4884 while : 4885 do 4886 cat "conftest.in" "conftest.in" >"conftest.tmp" 4887 mv "conftest.tmp" "conftest.in" 4888 cp "conftest.in" "conftest.nl" 4889 $as_echo 'GREP' >> "conftest.nl" 4890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4892 as_fn_arith $ac_count + 1 && ac_count=$as_val 4893 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4894 # Best one so far, save it but keep looking for a better one 4895 ac_cv_path_GREP="$ac_path_GREP" 4896 ac_path_GREP_max=$ac_count 4897 fi 4898 # 10*(2^10) chars as input seems more than enough 4899 test $ac_count -gt 10 && break 4900 done 4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4902esac 4903 4904 $ac_path_GREP_found && break 3 4905 done 4906 done 4907 done 4908IFS=$as_save_IFS 4909 if test -z "$ac_cv_path_GREP"; then 4910 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4911 fi 4912else 4913 ac_cv_path_GREP=$GREP 4914fi 4915 4916fi 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4918$as_echo "$ac_cv_path_GREP" >&6; } 4919 GREP="$ac_cv_path_GREP" 4920 4921 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4923$as_echo_n "checking for egrep... " >&6; } 4924if ${ac_cv_path_EGREP+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 4927 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4928 then ac_cv_path_EGREP="$GREP -E" 4929 else 4930 if test -z "$EGREP"; then 4931 ac_path_EGREP_found=false 4932 # Loop through the user's path and test for each of PROGNAME-LIST 4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4934for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4935do 4936 IFS=$as_save_IFS 4937 test -z "$as_dir" && as_dir=. 4938 for ac_prog in egrep; do 4939 for ac_exec_ext in '' $ac_executable_extensions; do 4940 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4941 as_fn_executable_p "$ac_path_EGREP" || continue 4942# Check for GNU ac_path_EGREP and select it if it is found. 4943 # Check for GNU $ac_path_EGREP 4944case `"$ac_path_EGREP" --version 2>&1` in 4945*GNU*) 4946 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4947*) 4948 ac_count=0 4949 $as_echo_n 0123456789 >"conftest.in" 4950 while : 4951 do 4952 cat "conftest.in" "conftest.in" >"conftest.tmp" 4953 mv "conftest.tmp" "conftest.in" 4954 cp "conftest.in" "conftest.nl" 4955 $as_echo 'EGREP' >> "conftest.nl" 4956 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4958 as_fn_arith $ac_count + 1 && ac_count=$as_val 4959 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4960 # Best one so far, save it but keep looking for a better one 4961 ac_cv_path_EGREP="$ac_path_EGREP" 4962 ac_path_EGREP_max=$ac_count 4963 fi 4964 # 10*(2^10) chars as input seems more than enough 4965 test $ac_count -gt 10 && break 4966 done 4967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4968esac 4969 4970 $ac_path_EGREP_found && break 3 4971 done 4972 done 4973 done 4974IFS=$as_save_IFS 4975 if test -z "$ac_cv_path_EGREP"; then 4976 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4977 fi 4978else 4979 ac_cv_path_EGREP=$EGREP 4980fi 4981 4982 fi 4983fi 4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4985$as_echo "$ac_cv_path_EGREP" >&6; } 4986 EGREP="$ac_cv_path_EGREP" 4987 4988 4989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4990$as_echo_n "checking for ANSI C header files... " >&6; } 4991if ${ac_cv_header_stdc+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993else 4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995/* end confdefs.h. */ 4996#include <stdlib.h> 4997#include <stdarg.h> 4998#include <string.h> 4999#include <float.h> 5000 5001int 5002main () 5003{ 5004 5005 ; 5006 return 0; 5007} 5008_ACEOF 5009if ac_fn_c_try_compile "$LINENO"; then : 5010 ac_cv_header_stdc=yes 5011else 5012 ac_cv_header_stdc=no 5013fi 5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5015 5016if test $ac_cv_header_stdc = yes; then 5017 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019/* end confdefs.h. */ 5020#include <string.h> 5021 5022_ACEOF 5023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5024 $EGREP "memchr" >/dev/null 2>&1; then : 5025 5026else 5027 ac_cv_header_stdc=no 5028fi 5029rm -f conftest* 5030 5031fi 5032 5033if test $ac_cv_header_stdc = yes; then 5034 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5036/* end confdefs.h. */ 5037#include <stdlib.h> 5038 5039_ACEOF 5040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5041 $EGREP "free" >/dev/null 2>&1; then : 5042 5043else 5044 ac_cv_header_stdc=no 5045fi 5046rm -f conftest* 5047 5048fi 5049 5050if test $ac_cv_header_stdc = yes; then 5051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5052 if test "$cross_compiling" = yes; then : 5053 : 5054else 5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5056/* end confdefs.h. */ 5057#include <ctype.h> 5058#include <stdlib.h> 5059#if ((' ' & 0x0FF) == 0x020) 5060# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5061# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5062#else 5063# define ISLOWER(c) \ 5064 (('a' <= (c) && (c) <= 'i') \ 5065 || ('j' <= (c) && (c) <= 'r') \ 5066 || ('s' <= (c) && (c) <= 'z')) 5067# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5068#endif 5069 5070#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5071int 5072main () 5073{ 5074 int i; 5075 for (i = 0; i < 256; i++) 5076 if (XOR (islower (i), ISLOWER (i)) 5077 || toupper (i) != TOUPPER (i)) 5078 return 2; 5079 return 0; 5080} 5081_ACEOF 5082if ac_fn_c_try_run "$LINENO"; then : 5083 5084else 5085 ac_cv_header_stdc=no 5086fi 5087rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5088 conftest.$ac_objext conftest.beam conftest.$ac_ext 5089fi 5090 5091fi 5092fi 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5094$as_echo "$ac_cv_header_stdc" >&6; } 5095if test $ac_cv_header_stdc = yes; then 5096 5097$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5098 5099fi 5100 5101# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5102for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5103 inttypes.h stdint.h unistd.h 5104do : 5105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5106ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5107" 5108if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5109 cat >>confdefs.h <<_ACEOF 5110#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5111_ACEOF 5112 5113fi 5114 5115done 5116 5117 5118 5119 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5120if test "x$ac_cv_header_minix_config_h" = xyes; then : 5121 MINIX=yes 5122else 5123 MINIX= 5124fi 5125 5126 5127 if test "$MINIX" = yes; then 5128 5129$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5130 5131 5132$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5133 5134 5135$as_echo "#define _MINIX 1" >>confdefs.h 5136 5137 fi 5138 5139 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5141$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5142if ${ac_cv_safe_to_define___extensions__+:} false; then : 5143 $as_echo_n "(cached) " >&6 5144else 5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5146/* end confdefs.h. */ 5147 5148# define __EXTENSIONS__ 1 5149 $ac_includes_default 5150int 5151main () 5152{ 5153 5154 ; 5155 return 0; 5156} 5157_ACEOF 5158if ac_fn_c_try_compile "$LINENO"; then : 5159 ac_cv_safe_to_define___extensions__=yes 5160else 5161 ac_cv_safe_to_define___extensions__=no 5162fi 5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5164fi 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5166$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5167 test $ac_cv_safe_to_define___extensions__ = yes && 5168 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5169 5170 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5171 5172 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5173 5174 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5175 5176 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5177 5178 5179 5180 5181# Check whether --with-toolexeclibdir was given. 5182if test "${with_toolexeclibdir+set}" = set; then : 5183 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in 5184 /) 5185 ;; 5186 */) 5187 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'` 5188 ;; 5189esac 5190else 5191 with_toolexeclibdir=no 5192fi 5193 5194 5195 5196# Calculate toolexeclibdir 5197# Also toolexecdir, though it's only used in toolexeclibdir 5198case ${version_specific_libs} in 5199 yes) 5200 # Need the gcc compiler version to know where to install libraries 5201 # and header files if --enable-version-specific-runtime-libs option 5202 # is selected. 5203 toolexecdir='$(libdir)/gcc/$(target_alias)' 5204 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 5205 ;; 5206 no) 5207 if test -n "$with_cross_host" && 5208 test x"$with_cross_host" != x"no"; then 5209 # Install a library built with a cross compiler in tooldir, not libdir. 5210 toolexecdir='$(exec_prefix)/$(target_alias)' 5211 case ${with_toolexeclibdir} in 5212 no) 5213 toolexeclibdir='$(toolexecdir)/lib' 5214 ;; 5215 *) 5216 toolexeclibdir=${with_toolexeclibdir} 5217 ;; 5218 esac 5219 else 5220 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 5221 toolexeclibdir='$(libdir)' 5222 fi 5223 multi_os_directory=`$CC -print-multi-os-directory` 5224 case $multi_os_directory in 5225 .) ;; # Avoid trailing /. 5226 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 5227 esac 5228 ;; 5229esac 5230 5231 5232 5233# Create a spec file, so that compile/link tests don't fail 5234test -f libgfortran.spec || touch libgfortran.spec 5235 5236ac_ext=c 5237ac_cpp='$CPP $CPPFLAGS' 5238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5240ac_compiler_gnu=$ac_cv_c_compiler_gnu 5241 5242# Check the compiler. 5243# The same as in boehm-gc and libstdc++. Have to borrow it from there. 5244# We must force CC to /not/ be precious variables; otherwise 5245# the wrong, non-multilib-adjusted value will be used in multilibs. 5246# As a side effect, we have to subst CFLAGS ourselves. 5247 5248 5249 5250ac_ext=c 5251ac_cpp='$CPP $CPPFLAGS' 5252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5254ac_compiler_gnu=$ac_cv_c_compiler_gnu 5255if test -n "$ac_tool_prefix"; then 5256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5257set dummy ${ac_tool_prefix}gcc; ac_word=$2 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5259$as_echo_n "checking for $ac_word... " >&6; } 5260if ${ac_cv_prog_CC+:} false; then : 5261 $as_echo_n "(cached) " >&6 5262else 5263 if test -n "$CC"; then 5264 ac_cv_prog_CC="$CC" # Let the user override the test. 5265else 5266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5267for as_dir in $PATH 5268do 5269 IFS=$as_save_IFS 5270 test -z "$as_dir" && as_dir=. 5271 for ac_exec_ext in '' $ac_executable_extensions; do 5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5273 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5275 break 2 5276 fi 5277done 5278 done 5279IFS=$as_save_IFS 5280 5281fi 5282fi 5283CC=$ac_cv_prog_CC 5284if test -n "$CC"; then 5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5286$as_echo "$CC" >&6; } 5287else 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5289$as_echo "no" >&6; } 5290fi 5291 5292 5293fi 5294if test -z "$ac_cv_prog_CC"; then 5295 ac_ct_CC=$CC 5296 # Extract the first word of "gcc", so it can be a program name with args. 5297set dummy gcc; ac_word=$2 5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5299$as_echo_n "checking for $ac_word... " >&6; } 5300if ${ac_cv_prog_ac_ct_CC+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302else 5303 if test -n "$ac_ct_CC"; then 5304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5305else 5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5307for as_dir in $PATH 5308do 5309 IFS=$as_save_IFS 5310 test -z "$as_dir" && as_dir=. 5311 for ac_exec_ext in '' $ac_executable_extensions; do 5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5313 ac_cv_prog_ac_ct_CC="gcc" 5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5315 break 2 5316 fi 5317done 5318 done 5319IFS=$as_save_IFS 5320 5321fi 5322fi 5323ac_ct_CC=$ac_cv_prog_ac_ct_CC 5324if test -n "$ac_ct_CC"; then 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5326$as_echo "$ac_ct_CC" >&6; } 5327else 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5329$as_echo "no" >&6; } 5330fi 5331 5332 if test "x$ac_ct_CC" = x; then 5333 CC="" 5334 else 5335 case $cross_compiling:$ac_tool_warned in 5336yes:) 5337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5339ac_tool_warned=yes ;; 5340esac 5341 CC=$ac_ct_CC 5342 fi 5343else 5344 CC="$ac_cv_prog_CC" 5345fi 5346 5347if test -z "$CC"; then 5348 if test -n "$ac_tool_prefix"; then 5349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5350set dummy ${ac_tool_prefix}cc; ac_word=$2 5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5352$as_echo_n "checking for $ac_word... " >&6; } 5353if ${ac_cv_prog_CC+:} false; then : 5354 $as_echo_n "(cached) " >&6 5355else 5356 if test -n "$CC"; then 5357 ac_cv_prog_CC="$CC" # Let the user override the test. 5358else 5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5360for as_dir in $PATH 5361do 5362 IFS=$as_save_IFS 5363 test -z "$as_dir" && as_dir=. 5364 for ac_exec_ext in '' $ac_executable_extensions; do 5365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5366 ac_cv_prog_CC="${ac_tool_prefix}cc" 5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5368 break 2 5369 fi 5370done 5371 done 5372IFS=$as_save_IFS 5373 5374fi 5375fi 5376CC=$ac_cv_prog_CC 5377if test -n "$CC"; then 5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5379$as_echo "$CC" >&6; } 5380else 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5382$as_echo "no" >&6; } 5383fi 5384 5385 5386 fi 5387fi 5388if test -z "$CC"; then 5389 # Extract the first word of "cc", so it can be a program name with args. 5390set dummy cc; ac_word=$2 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5392$as_echo_n "checking for $ac_word... " >&6; } 5393if ${ac_cv_prog_CC+:} false; then : 5394 $as_echo_n "(cached) " >&6 5395else 5396 if test -n "$CC"; then 5397 ac_cv_prog_CC="$CC" # Let the user override the test. 5398else 5399 ac_prog_rejected=no 5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401for as_dir in $PATH 5402do 5403 IFS=$as_save_IFS 5404 test -z "$as_dir" && as_dir=. 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5408 ac_prog_rejected=yes 5409 continue 5410 fi 5411 ac_cv_prog_CC="cc" 5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5413 break 2 5414 fi 5415done 5416 done 5417IFS=$as_save_IFS 5418 5419if test $ac_prog_rejected = yes; then 5420 # We found a bogon in the path, so make sure we never use it. 5421 set dummy $ac_cv_prog_CC 5422 shift 5423 if test $# != 0; then 5424 # We chose a different compiler from the bogus one. 5425 # However, it has the same basename, so the bogon will be chosen 5426 # first if we set CC to just the basename; use the full file name. 5427 shift 5428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5429 fi 5430fi 5431fi 5432fi 5433CC=$ac_cv_prog_CC 5434if test -n "$CC"; then 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5436$as_echo "$CC" >&6; } 5437else 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5439$as_echo "no" >&6; } 5440fi 5441 5442 5443fi 5444if test -z "$CC"; then 5445 if test -n "$ac_tool_prefix"; then 5446 for ac_prog in cl.exe 5447 do 5448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5449set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5451$as_echo_n "checking for $ac_word... " >&6; } 5452if ${ac_cv_prog_CC+:} false; then : 5453 $as_echo_n "(cached) " >&6 5454else 5455 if test -n "$CC"; then 5456 ac_cv_prog_CC="$CC" # Let the user override the test. 5457else 5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5459for as_dir in $PATH 5460do 5461 IFS=$as_save_IFS 5462 test -z "$as_dir" && as_dir=. 5463 for ac_exec_ext in '' $ac_executable_extensions; do 5464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5467 break 2 5468 fi 5469done 5470 done 5471IFS=$as_save_IFS 5472 5473fi 5474fi 5475CC=$ac_cv_prog_CC 5476if test -n "$CC"; then 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5478$as_echo "$CC" >&6; } 5479else 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5481$as_echo "no" >&6; } 5482fi 5483 5484 5485 test -n "$CC" && break 5486 done 5487fi 5488if test -z "$CC"; then 5489 ac_ct_CC=$CC 5490 for ac_prog in cl.exe 5491do 5492 # Extract the first word of "$ac_prog", so it can be a program name with args. 5493set dummy $ac_prog; ac_word=$2 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5495$as_echo_n "checking for $ac_word... " >&6; } 5496if ${ac_cv_prog_ac_ct_CC+:} false; then : 5497 $as_echo_n "(cached) " >&6 5498else 5499 if test -n "$ac_ct_CC"; then 5500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5501else 5502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5503for as_dir in $PATH 5504do 5505 IFS=$as_save_IFS 5506 test -z "$as_dir" && as_dir=. 5507 for ac_exec_ext in '' $ac_executable_extensions; do 5508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5509 ac_cv_prog_ac_ct_CC="$ac_prog" 5510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5511 break 2 5512 fi 5513done 5514 done 5515IFS=$as_save_IFS 5516 5517fi 5518fi 5519ac_ct_CC=$ac_cv_prog_ac_ct_CC 5520if test -n "$ac_ct_CC"; then 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5522$as_echo "$ac_ct_CC" >&6; } 5523else 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5525$as_echo "no" >&6; } 5526fi 5527 5528 5529 test -n "$ac_ct_CC" && break 5530done 5531 5532 if test "x$ac_ct_CC" = x; then 5533 CC="" 5534 else 5535 case $cross_compiling:$ac_tool_warned in 5536yes:) 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5539ac_tool_warned=yes ;; 5540esac 5541 CC=$ac_ct_CC 5542 fi 5543fi 5544 5545fi 5546 5547 5548test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5550as_fn_error $? "no acceptable C compiler found in \$PATH 5551See \`config.log' for more details" "$LINENO" 5; } 5552 5553# Provide some information about the compiler. 5554$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5555set X $ac_compile 5556ac_compiler=$2 5557for ac_option in --version -v -V -qversion; do 5558 { { ac_try="$ac_compiler $ac_option >&5" 5559case "(($ac_try" in 5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5561 *) ac_try_echo=$ac_try;; 5562esac 5563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5564$as_echo "$ac_try_echo"; } >&5 5565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5566 ac_status=$? 5567 if test -s conftest.err; then 5568 sed '10a\ 5569... rest of stderr output deleted ... 5570 10q' conftest.err >conftest.er1 5571 cat conftest.er1 >&5 5572 fi 5573 rm -f conftest.er1 conftest.err 5574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5575 test $ac_status = 0; } 5576done 5577 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5579$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5580if ${ac_cv_c_compiler_gnu+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5584/* end confdefs.h. */ 5585 5586int 5587main () 5588{ 5589#ifndef __GNUC__ 5590 choke me 5591#endif 5592 5593 ; 5594 return 0; 5595} 5596_ACEOF 5597if ac_fn_c_try_compile "$LINENO"; then : 5598 ac_compiler_gnu=yes 5599else 5600 ac_compiler_gnu=no 5601fi 5602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5603ac_cv_c_compiler_gnu=$ac_compiler_gnu 5604 5605fi 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5607$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5608if test $ac_compiler_gnu = yes; then 5609 GCC=yes 5610else 5611 GCC= 5612fi 5613ac_test_CFLAGS=${CFLAGS+set} 5614ac_save_CFLAGS=$CFLAGS 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5616$as_echo_n "checking whether $CC accepts -g... " >&6; } 5617if ${ac_cv_prog_cc_g+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619else 5620 ac_save_c_werror_flag=$ac_c_werror_flag 5621 ac_c_werror_flag=yes 5622 ac_cv_prog_cc_g=no 5623 CFLAGS="-g" 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626 5627int 5628main () 5629{ 5630 5631 ; 5632 return 0; 5633} 5634_ACEOF 5635if ac_fn_c_try_compile "$LINENO"; then : 5636 ac_cv_prog_cc_g=yes 5637else 5638 CFLAGS="" 5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5640/* end confdefs.h. */ 5641 5642int 5643main () 5644{ 5645 5646 ; 5647 return 0; 5648} 5649_ACEOF 5650if ac_fn_c_try_compile "$LINENO"; then : 5651 5652else 5653 ac_c_werror_flag=$ac_save_c_werror_flag 5654 CFLAGS="-g" 5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5656/* end confdefs.h. */ 5657 5658int 5659main () 5660{ 5661 5662 ; 5663 return 0; 5664} 5665_ACEOF 5666if ac_fn_c_try_compile "$LINENO"; then : 5667 ac_cv_prog_cc_g=yes 5668fi 5669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5670fi 5671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5672fi 5673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5674 ac_c_werror_flag=$ac_save_c_werror_flag 5675fi 5676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5677$as_echo "$ac_cv_prog_cc_g" >&6; } 5678if test "$ac_test_CFLAGS" = set; then 5679 CFLAGS=$ac_save_CFLAGS 5680elif test $ac_cv_prog_cc_g = yes; then 5681 if test "$GCC" = yes; then 5682 CFLAGS="-g -O2" 5683 else 5684 CFLAGS="-g" 5685 fi 5686else 5687 if test "$GCC" = yes; then 5688 CFLAGS="-O2" 5689 else 5690 CFLAGS= 5691 fi 5692fi 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5694$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5695if ${ac_cv_prog_cc_c89+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 ac_cv_prog_cc_c89=no 5699ac_save_CC=$CC 5700cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5701/* end confdefs.h. */ 5702#include <stdarg.h> 5703#include <stdio.h> 5704struct stat; 5705/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5706struct buf { int x; }; 5707FILE * (*rcsopen) (struct buf *, struct stat *, int); 5708static char *e (p, i) 5709 char **p; 5710 int i; 5711{ 5712 return p[i]; 5713} 5714static char *f (char * (*g) (char **, int), char **p, ...) 5715{ 5716 char *s; 5717 va_list v; 5718 va_start (v,p); 5719 s = g (p, va_arg (v,int)); 5720 va_end (v); 5721 return s; 5722} 5723 5724/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5725 function prototypes and stuff, but not '\xHH' hex character constants. 5726 These don't provoke an error unfortunately, instead are silently treated 5727 as 'x'. The following induces an error, until -std is added to get 5728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5729 array size at least. It's necessary to write '\x00'==0 to get something 5730 that's true only with -std. */ 5731int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5732 5733/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5734 inside strings and character constants. */ 5735#define FOO(x) 'x' 5736int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5737 5738int test (int i, double x); 5739struct s1 {int (*f) (int a);}; 5740struct s2 {int (*f) (double a);}; 5741int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5742int argc; 5743char **argv; 5744int 5745main () 5746{ 5747return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5748 ; 5749 return 0; 5750} 5751_ACEOF 5752for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5754do 5755 CC="$ac_save_CC $ac_arg" 5756 if ac_fn_c_try_compile "$LINENO"; then : 5757 ac_cv_prog_cc_c89=$ac_arg 5758fi 5759rm -f core conftest.err conftest.$ac_objext 5760 test "x$ac_cv_prog_cc_c89" != "xno" && break 5761done 5762rm -f conftest.$ac_ext 5763CC=$ac_save_CC 5764 5765fi 5766# AC_CACHE_VAL 5767case "x$ac_cv_prog_cc_c89" in 5768 x) 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5770$as_echo "none needed" >&6; } ;; 5771 xno) 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5773$as_echo "unsupported" >&6; } ;; 5774 *) 5775 CC="$CC $ac_cv_prog_cc_c89" 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5777$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5778esac 5779if test "x$ac_cv_prog_cc_c89" != xno; then : 5780 5781fi 5782 5783ac_ext=c 5784ac_cpp='$CPP $CPPFLAGS' 5785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5787ac_compiler_gnu=$ac_cv_c_compiler_gnu 5788 5789ac_ext=c 5790ac_cpp='$CPP $CPPFLAGS' 5791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5793ac_compiler_gnu=$ac_cv_c_compiler_gnu 5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5795$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5796if ${am_cv_prog_cc_c_o+:} false; then : 5797 $as_echo_n "(cached) " >&6 5798else 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800/* end confdefs.h. */ 5801 5802int 5803main () 5804{ 5805 5806 ; 5807 return 0; 5808} 5809_ACEOF 5810 # Make sure it works both with $CC and with simple cc. 5811 # Following AC_PROG_CC_C_O, we do the test twice because some 5812 # compilers refuse to overwrite an existing .o file with -o, 5813 # though they will create one. 5814 am_cv_prog_cc_c_o=yes 5815 for am_i in 1 2; do 5816 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5817 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5818 ac_status=$? 5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5820 (exit $ac_status); } \ 5821 && test -f conftest2.$ac_objext; then 5822 : OK 5823 else 5824 am_cv_prog_cc_c_o=no 5825 break 5826 fi 5827 done 5828 rm -f core conftest* 5829 unset am_i 5830fi 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5832$as_echo "$am_cv_prog_cc_c_o" >&6; } 5833if test "$am_cv_prog_cc_c_o" != yes; then 5834 # Losing compiler, so override with the script. 5835 # FIXME: It is wrong to rewrite CC. 5836 # But if we don't then we get into trouble of one sort or another. 5837 # A longer-term fix would be to have automake use am__CC in this case, 5838 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5839 CC="$am_aux_dir/compile $CC" 5840fi 5841ac_ext=c 5842ac_cpp='$CPP $CPPFLAGS' 5843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5845ac_compiler_gnu=$ac_cv_c_compiler_gnu 5846 5847 5848depcc="$CC" am_compiler_list= 5849 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5851$as_echo_n "checking dependency style of $depcc... " >&6; } 5852if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5853 $as_echo_n "(cached) " >&6 5854else 5855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5856 # We make a subdir and do the tests there. Otherwise we can end up 5857 # making bogus files that we don't know about and never remove. For 5858 # instance it was reported that on HP-UX the gcc test will end up 5859 # making a dummy file named 'D' -- because '-MD' means "put the output 5860 # in D". 5861 rm -rf conftest.dir 5862 mkdir conftest.dir 5863 # Copy depcomp to subdir because otherwise we won't find it if we're 5864 # using a relative directory. 5865 cp "$am_depcomp" conftest.dir 5866 cd conftest.dir 5867 # We will build objects and dependencies in a subdirectory because 5868 # it helps to detect inapplicable dependency modes. For instance 5869 # both Tru64's cc and ICC support -MD to output dependencies as a 5870 # side effect of compilation, but ICC will put the dependencies in 5871 # the current directory while Tru64 will put them in the object 5872 # directory. 5873 mkdir sub 5874 5875 am_cv_CC_dependencies_compiler_type=none 5876 if test "$am_compiler_list" = ""; then 5877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5878 fi 5879 am__universal=false 5880 case " $depcc " in #( 5881 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5882 esac 5883 5884 for depmode in $am_compiler_list; do 5885 # Setup a source with many dependencies, because some compilers 5886 # like to wrap large dependency lists on column 80 (with \), and 5887 # we should not choose a depcomp mode which is confused by this. 5888 # 5889 # We need to recreate these files for each test, as the compiler may 5890 # overwrite some of them when testing with obscure command lines. 5891 # This happens at least with the AIX C compiler. 5892 : > sub/conftest.c 5893 for i in 1 2 3 4 5 6; do 5894 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5895 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5896 # Solaris 10 /bin/sh. 5897 echo '/* dummy */' > sub/conftst$i.h 5898 done 5899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5900 5901 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5902 # mode. It turns out that the SunPro C++ compiler does not properly 5903 # handle '-M -o', and we need to detect this. Also, some Intel 5904 # versions had trouble with output in subdirs. 5905 am__obj=sub/conftest.${OBJEXT-o} 5906 am__minus_obj="-o $am__obj" 5907 case $depmode in 5908 gcc) 5909 # This depmode causes a compiler race in universal mode. 5910 test "$am__universal" = false || continue 5911 ;; 5912 nosideeffect) 5913 # After this tag, mechanisms are not by side-effect, so they'll 5914 # only be used when explicitly requested. 5915 if test "x$enable_dependency_tracking" = xyes; then 5916 continue 5917 else 5918 break 5919 fi 5920 ;; 5921 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5922 # This compiler won't grok '-c -o', but also, the minuso test has 5923 # not run yet. These depmodes are late enough in the game, and 5924 # so weak that their functioning should not be impacted. 5925 am__obj=conftest.${OBJEXT-o} 5926 am__minus_obj= 5927 ;; 5928 none) break ;; 5929 esac 5930 if depmode=$depmode \ 5931 source=sub/conftest.c object=$am__obj \ 5932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5934 >/dev/null 2>conftest.err && 5935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5939 # icc doesn't choke on unknown options, it will just issue warnings 5940 # or remarks (even with -Werror). So we grep stderr for any message 5941 # that says an option was ignored or not supported. 5942 # When given -MP, icc 7.0 and 7.1 complain thusly: 5943 # icc: Command line warning: ignoring option '-M'; no argument required 5944 # The diagnosis changed in icc 8.0: 5945 # icc: Command line remark: option '-MP' not supported 5946 if (grep 'ignoring option' conftest.err || 5947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5948 am_cv_CC_dependencies_compiler_type=$depmode 5949 break 5950 fi 5951 fi 5952 done 5953 5954 cd .. 5955 rm -rf conftest.dir 5956else 5957 am_cv_CC_dependencies_compiler_type=none 5958fi 5959 5960fi 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5962$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5963CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5964 5965 if 5966 test "x$enable_dependency_tracking" != xno \ 5967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5968 am__fastdepCC_TRUE= 5969 am__fastdepCC_FALSE='#' 5970else 5971 am__fastdepCC_TRUE='#' 5972 am__fastdepCC_FALSE= 5973fi 5974 5975 5976 5977 5978 5979 5980 5981 5982# Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. 5983if test "x$GCC" = "xyes"; then 5984 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring" 5985 ## We like to use C11 and C99 routines when available. This makes 5986 ## sure that 5987 ## __STDC_VERSION__ is set such that libc includes make them available. 5988 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla" 5989 ## Compile the following tests with the same system header contents 5990 ## that we'll encounter when compiling our own source files. 5991 CFLAGS="-std=gnu11 $CFLAGS" 5992fi 5993 5994# Add CET specific flags if CET is enabled 5995 # Check whether --enable-cet was given. 5996if test "${enable_cet+set}" = set; then : 5997 enableval=$enable_cet; 5998 case "$enableval" in 5999 yes|no|auto) ;; 6000 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 6001 esac 6002 6003else 6004 enable_cet=no 6005fi 6006 6007 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 6009$as_echo_n "checking for CET support... " >&6; } 6010 6011case "$host" in 6012 i[34567]86-*-linux* | x86_64-*-linux*) 6013 case "$enable_cet" in 6014 auto) 6015 # Check if target supports multi-byte NOPs 6016 # and if assembler supports CET insn. 6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6018/* end confdefs.h. */ 6019 6020int 6021main () 6022{ 6023 6024#if !defined(__SSE2__) 6025#error target does not support multi-byte NOPs 6026#else 6027asm ("setssbsy"); 6028#endif 6029 6030 ; 6031 return 0; 6032} 6033_ACEOF 6034if ac_fn_c_try_compile "$LINENO"; then : 6035 enable_cet=yes 6036else 6037 enable_cet=no 6038fi 6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6040 ;; 6041 yes) 6042 # Check if assembler supports CET. 6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6044/* end confdefs.h. */ 6045 6046int 6047main () 6048{ 6049asm ("setssbsy"); 6050 ; 6051 return 0; 6052} 6053_ACEOF 6054if ac_fn_c_try_compile "$LINENO"; then : 6055 6056else 6057 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5 6058fi 6059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6060 ;; 6061 esac 6062 ;; 6063 *) 6064 enable_cet=no 6065 ;; 6066esac 6067if test x$enable_cet = xyes; then 6068 CET_FLAGS="-fcf-protection -mshstk" 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6070$as_echo "yes" >&6; } 6071else 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6073$as_echo "no" >&6; } 6074fi 6075 6076AM_FCFLAGS="$AM_FCFLAGS $CET_FLAGS" 6077AM_CFLAGS="$AM_CFLAGS $CET_FLAGS" 6078CFLAGS="$CFLAGS $CET_FLAGS" 6079 6080 6081 6082 6083 6084# Check for symbol versioning (copied from libssp). 6085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 6086$as_echo_n "checking whether symbol versioning is supported... " >&6; } 6087# Check whether --enable-symvers was given. 6088if test "${enable_symvers+set}" = set; then : 6089 enableval=$enable_symvers; gfortran_use_symver=$enableval 6090else 6091 gfortran_use_symver=yes 6092fi 6093 6094if test "x$gfortran_use_symver" != xno; then 6095 save_LDFLAGS="$LDFLAGS" 6096 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" 6097 cat > conftest.map <<EOF 6098FOO_1.0 { 6099 global: *foo*; bar; local: *; 6100}; 6101EOF 6102 if test x$gcc_no_link = xyes; then 6103 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6104fi 6105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6106/* end confdefs.h. */ 6107int foo; 6108int 6109main () 6110{ 6111 6112 ; 6113 return 0; 6114} 6115_ACEOF 6116if ac_fn_c_try_link "$LINENO"; then : 6117 gfortran_use_symver=gnu 6118else 6119 gfortran_use_symver=no 6120fi 6121rm -f core conftest.err conftest.$ac_objext \ 6122 conftest$ac_exeext conftest.$ac_ext 6123 if test x$gfortran_use_symver = xno; then 6124 case "$target_os" in 6125 solaris2*) 6126 LDFLAGS="$save_LDFLAGS" 6127 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" 6128 # Sun ld cannot handle wildcards and treats all entries as undefined. 6129 cat > conftest.map <<EOF 6130FOO_1.0 { 6131 global: foo; local: *; 6132}; 6133EOF 6134 if test x$gcc_no_link = xyes; then 6135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6136fi 6137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138/* end confdefs.h. */ 6139int foo; 6140int 6141main () 6142{ 6143 6144 ; 6145 return 0; 6146} 6147_ACEOF 6148if ac_fn_c_try_link "$LINENO"; then : 6149 gfortran_use_symver=sun 6150else 6151 gfortran_use_symver=no 6152fi 6153rm -f core conftest.err conftest.$ac_objext \ 6154 conftest$ac_exeext conftest.$ac_ext 6155 ;; 6156 esac 6157 fi 6158 LDFLAGS="$save_LDFLAGS" 6159fi 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5 6161$as_echo "$gfortran_use_symver" >&6; } 6162 if test "x$gfortran_use_symver" != xno; then 6163 LIBGFOR_USE_SYMVER_TRUE= 6164 LIBGFOR_USE_SYMVER_FALSE='#' 6165else 6166 LIBGFOR_USE_SYMVER_TRUE='#' 6167 LIBGFOR_USE_SYMVER_FALSE= 6168fi 6169 6170 if test "x$gfortran_use_symver" = xgnu; then 6171 LIBGFOR_USE_SYMVER_GNU_TRUE= 6172 LIBGFOR_USE_SYMVER_GNU_FALSE='#' 6173else 6174 LIBGFOR_USE_SYMVER_GNU_TRUE='#' 6175 LIBGFOR_USE_SYMVER_GNU_FALSE= 6176fi 6177 6178 if test "x$gfortran_use_symver" = xsun; then 6179 LIBGFOR_USE_SYMVER_SUN_TRUE= 6180 LIBGFOR_USE_SYMVER_SUN_FALSE='#' 6181else 6182 LIBGFOR_USE_SYMVER_SUN_TRUE='#' 6183 LIBGFOR_USE_SYMVER_SUN_FALSE= 6184fi 6185 6186 6187# For GPU offloading, not everything in libfortran can be supported. 6188# Currently, the only target that has this problem is nvptx. The 6189# following is a (partial) list of features that are unsupportable on 6190# this particular target: 6191# * Constructors 6192# * alloca 6193# * C library support for I/O, with printf as the one notable exception 6194# * C library support for other features such as signal, environment 6195# variables, time functions 6196 6197 if test "x${target_cpu}" = xnvptx; then 6198 LIBGFOR_MINIMAL_TRUE= 6199 LIBGFOR_MINIMAL_FALSE='#' 6200else 6201 LIBGFOR_MINIMAL_TRUE='#' 6202 LIBGFOR_MINIMAL_FALSE= 6203fi 6204 6205 6206# Figure out whether the compiler supports "-ffunction-sections -fdata-sections", 6207# similarly to how libstdc++ does it 6208ac_test_CFLAGS="${CFLAGS+set}" 6209ac_save_CFLAGS="$CFLAGS" 6210 6211# Check for -ffunction-sections -fdata-sections 6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 6213$as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; } 6214CFLAGS='-Werror -ffunction-sections -fdata-sections' 6215cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6216/* end confdefs.h. */ 6217 6218int 6219main () 6220{ 6221int foo; 6222 ; 6223 return 0; 6224} 6225_ACEOF 6226if ac_fn_c_try_compile "$LINENO"; then : 6227 ac_fdsections=yes 6228else 6229 ac_fdsections=no 6230fi 6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6232if test "$ac_test_CFLAGS" = set; then 6233 CFLAGS="$ac_save_CFLAGS" 6234else 6235 # this is the suspicious part 6236 CFLAGS="" 6237fi 6238if test x"$ac_fdsections" = x"yes"; then 6239 SECTION_FLAGS='-ffunction-sections -fdata-sections' 6240fi 6241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5 6242$as_echo "$ac_fdsections" >&6; } 6243 6244 6245# Check linker hardware capability support. 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6247$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6248if ${ac_cv_path_SED+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6252 for ac_i in 1 2 3 4 5 6 7; do 6253 ac_script="$ac_script$as_nl$ac_script" 6254 done 6255 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6256 { ac_script=; unset ac_script;} 6257 if test -z "$SED"; then 6258 ac_path_SED_found=false 6259 # Loop through the user's path and test for each of PROGNAME-LIST 6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6261for as_dir in $PATH 6262do 6263 IFS=$as_save_IFS 6264 test -z "$as_dir" && as_dir=. 6265 for ac_prog in sed gsed; do 6266 for ac_exec_ext in '' $ac_executable_extensions; do 6267 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6268 as_fn_executable_p "$ac_path_SED" || continue 6269# Check for GNU ac_path_SED and select it if it is found. 6270 # Check for GNU $ac_path_SED 6271case `"$ac_path_SED" --version 2>&1` in 6272*GNU*) 6273 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6274*) 6275 ac_count=0 6276 $as_echo_n 0123456789 >"conftest.in" 6277 while : 6278 do 6279 cat "conftest.in" "conftest.in" >"conftest.tmp" 6280 mv "conftest.tmp" "conftest.in" 6281 cp "conftest.in" "conftest.nl" 6282 $as_echo '' >> "conftest.nl" 6283 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6285 as_fn_arith $ac_count + 1 && ac_count=$as_val 6286 if test $ac_count -gt ${ac_path_SED_max-0}; then 6287 # Best one so far, save it but keep looking for a better one 6288 ac_cv_path_SED="$ac_path_SED" 6289 ac_path_SED_max=$ac_count 6290 fi 6291 # 10*(2^10) chars as input seems more than enough 6292 test $ac_count -gt 10 && break 6293 done 6294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6295esac 6296 6297 $ac_path_SED_found && break 3 6298 done 6299 done 6300 done 6301IFS=$as_save_IFS 6302 if test -z "$ac_cv_path_SED"; then 6303 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6304 fi 6305else 6306 ac_cv_path_SED=$SED 6307fi 6308 6309fi 6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6311$as_echo "$ac_cv_path_SED" >&6; } 6312 SED="$ac_cv_path_SED" 6313 rm -f conftest.sed 6314 6315test -z "$SED" && SED=sed 6316Xsed="$SED -e 1s/^X//" 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6329$as_echo_n "checking for fgrep... " >&6; } 6330if ${ac_cv_path_FGREP+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332else 6333 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6334 then ac_cv_path_FGREP="$GREP -F" 6335 else 6336 if test -z "$FGREP"; then 6337 ac_path_FGREP_found=false 6338 # Loop through the user's path and test for each of PROGNAME-LIST 6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6340for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6341do 6342 IFS=$as_save_IFS 6343 test -z "$as_dir" && as_dir=. 6344 for ac_prog in fgrep; do 6345 for ac_exec_ext in '' $ac_executable_extensions; do 6346 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6347 as_fn_executable_p "$ac_path_FGREP" || continue 6348# Check for GNU ac_path_FGREP and select it if it is found. 6349 # Check for GNU $ac_path_FGREP 6350case `"$ac_path_FGREP" --version 2>&1` in 6351*GNU*) 6352 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6353*) 6354 ac_count=0 6355 $as_echo_n 0123456789 >"conftest.in" 6356 while : 6357 do 6358 cat "conftest.in" "conftest.in" >"conftest.tmp" 6359 mv "conftest.tmp" "conftest.in" 6360 cp "conftest.in" "conftest.nl" 6361 $as_echo 'FGREP' >> "conftest.nl" 6362 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6364 as_fn_arith $ac_count + 1 && ac_count=$as_val 6365 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6366 # Best one so far, save it but keep looking for a better one 6367 ac_cv_path_FGREP="$ac_path_FGREP" 6368 ac_path_FGREP_max=$ac_count 6369 fi 6370 # 10*(2^10) chars as input seems more than enough 6371 test $ac_count -gt 10 && break 6372 done 6373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6374esac 6375 6376 $ac_path_FGREP_found && break 3 6377 done 6378 done 6379 done 6380IFS=$as_save_IFS 6381 if test -z "$ac_cv_path_FGREP"; then 6382 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6383 fi 6384else 6385 ac_cv_path_FGREP=$FGREP 6386fi 6387 6388 fi 6389fi 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6391$as_echo "$ac_cv_path_FGREP" >&6; } 6392 FGREP="$ac_cv_path_FGREP" 6393 6394 6395test -z "$GREP" && GREP=grep 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6414ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6415ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6416 6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6418$as_echo_n "checking how to print strings... " >&6; } 6419# Test print first, because it will be a builtin if present. 6420if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 6421 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6422 ECHO='print -r --' 6423elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6424 ECHO='printf %s\n' 6425else 6426 # Use this function as a fallback that always works. 6427 func_fallback_echo () 6428 { 6429 eval 'cat <<_LTECHO_EOF 6430$1 6431_LTECHO_EOF' 6432 } 6433 ECHO='func_fallback_echo' 6434fi 6435 6436# func_echo_all arg... 6437# Invoke $ECHO with all args, space-separated. 6438func_echo_all () 6439{ 6440 $ECHO "" 6441} 6442 6443case "$ECHO" in 6444 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6445$as_echo "printf" >&6; } ;; 6446 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6447$as_echo "print -r" >&6; } ;; 6448 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6449$as_echo "cat" >&6; } ;; 6450esac 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467# Check whether --with-gnu-ld was given. 6468if test "${with_gnu_ld+set}" = set; then : 6469 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6470else 6471 with_gnu_ld=no 6472fi 6473 6474ac_prog=ld 6475if test "$GCC" = yes; then 6476 # Check if gcc -print-prog-name=ld gives a path. 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6478$as_echo_n "checking for ld used by $CC... " >&6; } 6479 case $host in 6480 *-*-mingw*) 6481 # gcc leaves a trailing carriage return which upsets mingw 6482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6483 *) 6484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6485 esac 6486 case $ac_prog in 6487 # Accept absolute paths. 6488 [\\/]* | ?:[\\/]*) 6489 re_direlt='/[^/][^/]*/\.\./' 6490 # Canonicalize the pathname of ld 6491 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6492 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6493 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6494 done 6495 test -z "$LD" && LD="$ac_prog" 6496 ;; 6497 "") 6498 # If it fails, then pretend we aren't using GCC. 6499 ac_prog=ld 6500 ;; 6501 *) 6502 # If it is relative, then search for the first ld in PATH. 6503 with_gnu_ld=unknown 6504 ;; 6505 esac 6506elif test "$with_gnu_ld" = yes; then 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6508$as_echo_n "checking for GNU ld... " >&6; } 6509else 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6511$as_echo_n "checking for non-GNU ld... " >&6; } 6512fi 6513if ${lt_cv_path_LD+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 if test -z "$LD"; then 6517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6518 for ac_dir in $PATH; do 6519 IFS="$lt_save_ifs" 6520 test -z "$ac_dir" && ac_dir=. 6521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6522 lt_cv_path_LD="$ac_dir/$ac_prog" 6523 # Check to see if the program is GNU ld. I'd rather use --version, 6524 # but apparently some variants of GNU ld only accept -v. 6525 # Break only if it was the GNU/non-GNU ld that we prefer. 6526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6527 *GNU* | *'with BFD'*) 6528 test "$with_gnu_ld" != no && break 6529 ;; 6530 *) 6531 test "$with_gnu_ld" != yes && break 6532 ;; 6533 esac 6534 fi 6535 done 6536 IFS="$lt_save_ifs" 6537else 6538 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6539fi 6540fi 6541 6542LD="$lt_cv_path_LD" 6543if test -n "$LD"; then 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6545$as_echo "$LD" >&6; } 6546else 6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6548$as_echo "no" >&6; } 6549fi 6550test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6552$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6553if ${lt_cv_prog_gnu_ld+:} false; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6557case `$LD -v 2>&1 </dev/null` in 6558*GNU* | *'with BFD'*) 6559 lt_cv_prog_gnu_ld=yes 6560 ;; 6561*) 6562 lt_cv_prog_gnu_ld=no 6563 ;; 6564esac 6565fi 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6567$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6568with_gnu_ld=$lt_cv_prog_gnu_ld 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS='' 6580 6581 6582 ac_save_LDFLAGS="$LDFLAGS" 6583 LDFLAGS="$LFLAGS -mclear-hwcap" 6584 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5 6586$as_echo_n "checking for -mclear-hwcap... " >&6; } 6587 if test x$gcc_no_link = xyes; then 6588 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6589fi 6590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6591/* end confdefs.h. */ 6592 6593int 6594main () 6595{ 6596return 0; 6597 ; 6598 return 0; 6599} 6600_ACEOF 6601if ac_fn_c_try_link "$LINENO"; then : 6602 ac_hwcap_ldflags=yes 6603else 6604 ac_hwcap_ldflags=no 6605fi 6606rm -f core conftest.err conftest.$ac_objext \ 6607 conftest$ac_exeext conftest.$ac_ext 6608 if test "$ac_hwcap_ldflags" = "yes"; then 6609 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" 6610 fi 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5 6612$as_echo "$ac_hwcap_ldflags" >&6; } 6613 6614 LDFLAGS="$ac_save_LDFLAGS" 6615 6616 6617 6618 if test $ac_hwcap_ldflags != no; then 6619 HAVE_HWCAP_TRUE= 6620 HAVE_HWCAP_FALSE='#' 6621else 6622 HAVE_HWCAP_TRUE='#' 6623 HAVE_HWCAP_FALSE= 6624fi 6625 6626 6627 6628# Find other programs we need. 6629if test -n "$ac_tool_prefix"; then 6630 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6631set dummy ${ac_tool_prefix}as; ac_word=$2 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6633$as_echo_n "checking for $ac_word... " >&6; } 6634if ${ac_cv_prog_AS+:} false; then : 6635 $as_echo_n "(cached) " >&6 6636else 6637 if test -n "$AS"; then 6638 ac_cv_prog_AS="$AS" # Let the user override the test. 6639else 6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641for as_dir in $PATH 6642do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6647 ac_cv_prog_AS="${ac_tool_prefix}as" 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651done 6652 done 6653IFS=$as_save_IFS 6654 6655fi 6656fi 6657AS=$ac_cv_prog_AS 6658if test -n "$AS"; then 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6660$as_echo "$AS" >&6; } 6661else 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6663$as_echo "no" >&6; } 6664fi 6665 6666 6667fi 6668if test -z "$ac_cv_prog_AS"; then 6669 ac_ct_AS=$AS 6670 # Extract the first word of "as", so it can be a program name with args. 6671set dummy as; ac_word=$2 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6673$as_echo_n "checking for $ac_word... " >&6; } 6674if ${ac_cv_prog_ac_ct_AS+:} false; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 if test -n "$ac_ct_AS"; then 6678 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6679else 6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681for as_dir in $PATH 6682do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6687 ac_cv_prog_ac_ct_AS="as" 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691done 6692 done 6693IFS=$as_save_IFS 6694 6695fi 6696fi 6697ac_ct_AS=$ac_cv_prog_ac_ct_AS 6698if test -n "$ac_ct_AS"; then 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6700$as_echo "$ac_ct_AS" >&6; } 6701else 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6703$as_echo "no" >&6; } 6704fi 6705 6706 if test "x$ac_ct_AS" = x; then 6707 AS="" 6708 else 6709 case $cross_compiling:$ac_tool_warned in 6710yes:) 6711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6713ac_tool_warned=yes ;; 6714esac 6715 AS=$ac_ct_AS 6716 fi 6717else 6718 AS="$ac_cv_prog_AS" 6719fi 6720 6721if test -n "$ac_tool_prefix"; then 6722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6723set dummy ${ac_tool_prefix}ar; ac_word=$2 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6725$as_echo_n "checking for $ac_word... " >&6; } 6726if ${ac_cv_prog_AR+:} false; then : 6727 $as_echo_n "(cached) " >&6 6728else 6729 if test -n "$AR"; then 6730 ac_cv_prog_AR="$AR" # Let the user override the test. 6731else 6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6733for as_dir in $PATH 6734do 6735 IFS=$as_save_IFS 6736 test -z "$as_dir" && as_dir=. 6737 for ac_exec_ext in '' $ac_executable_extensions; do 6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6739 ac_cv_prog_AR="${ac_tool_prefix}ar" 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6741 break 2 6742 fi 6743done 6744 done 6745IFS=$as_save_IFS 6746 6747fi 6748fi 6749AR=$ac_cv_prog_AR 6750if test -n "$AR"; then 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6752$as_echo "$AR" >&6; } 6753else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6755$as_echo "no" >&6; } 6756fi 6757 6758 6759fi 6760if test -z "$ac_cv_prog_AR"; then 6761 ac_ct_AR=$AR 6762 # Extract the first word of "ar", so it can be a program name with args. 6763set dummy ar; ac_word=$2 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765$as_echo_n "checking for $ac_word... " >&6; } 6766if ${ac_cv_prog_ac_ct_AR+:} false; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 if test -n "$ac_ct_AR"; then 6770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6771else 6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6779 ac_cv_prog_ac_ct_AR="ar" 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784 done 6785IFS=$as_save_IFS 6786 6787fi 6788fi 6789ac_ct_AR=$ac_cv_prog_ac_ct_AR 6790if test -n "$ac_ct_AR"; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6792$as_echo "$ac_ct_AR" >&6; } 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6795$as_echo "no" >&6; } 6796fi 6797 6798 if test "x$ac_ct_AR" = x; then 6799 AR="" 6800 else 6801 case $cross_compiling:$ac_tool_warned in 6802yes:) 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6805ac_tool_warned=yes ;; 6806esac 6807 AR=$ac_ct_AR 6808 fi 6809else 6810 AR="$ac_cv_prog_AR" 6811fi 6812 6813if test -n "$ac_tool_prefix"; then 6814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6815set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6817$as_echo_n "checking for $ac_word... " >&6; } 6818if ${ac_cv_prog_RANLIB+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 if test -n "$RANLIB"; then 6822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6823else 6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825for as_dir in $PATH 6826do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835done 6836 done 6837IFS=$as_save_IFS 6838 6839fi 6840fi 6841RANLIB=$ac_cv_prog_RANLIB 6842if test -n "$RANLIB"; then 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6844$as_echo "$RANLIB" >&6; } 6845else 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6847$as_echo "no" >&6; } 6848fi 6849 6850 6851fi 6852if test -z "$ac_cv_prog_RANLIB"; then 6853 ac_ct_RANLIB=$RANLIB 6854 # Extract the first word of "ranlib", so it can be a program name with args. 6855set dummy ranlib; ac_word=$2 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6857$as_echo_n "checking for $ac_word... " >&6; } 6858if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 if test -n "$ac_ct_RANLIB"; then 6862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6863else 6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865for as_dir in $PATH 6866do 6867 IFS=$as_save_IFS 6868 test -z "$as_dir" && as_dir=. 6869 for ac_exec_ext in '' $ac_executable_extensions; do 6870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6871 ac_cv_prog_ac_ct_RANLIB="ranlib" 6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6873 break 2 6874 fi 6875done 6876 done 6877IFS=$as_save_IFS 6878 6879fi 6880fi 6881ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6882if test -n "$ac_ct_RANLIB"; then 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6884$as_echo "$ac_ct_RANLIB" >&6; } 6885else 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6887$as_echo "no" >&6; } 6888fi 6889 6890 if test "x$ac_ct_RANLIB" = x; then 6891 RANLIB="ranlib-not-found-in-path-error" 6892 else 6893 case $cross_compiling:$ac_tool_warned in 6894yes:) 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6897ac_tool_warned=yes ;; 6898esac 6899 RANLIB=$ac_ct_RANLIB 6900 fi 6901else 6902 RANLIB="$ac_cv_prog_RANLIB" 6903fi 6904 6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6906$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6907set x ${MAKE-make} 6908ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6909if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 cat >conftest.make <<\_ACEOF 6913SHELL = /bin/sh 6914all: 6915 @echo '@@@%%%=$(MAKE)=@@@%%%' 6916_ACEOF 6917# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6918case `${MAKE-make} -f conftest.make 2>/dev/null` in 6919 *@@@%%%=?*=@@@%%%*) 6920 eval ac_cv_prog_make_${ac_make}_set=yes;; 6921 *) 6922 eval ac_cv_prog_make_${ac_make}_set=no;; 6923esac 6924rm -f conftest.make 6925fi 6926if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6928$as_echo "yes" >&6; } 6929 SET_MAKE= 6930else 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6932$as_echo "no" >&6; } 6933 SET_MAKE="MAKE=${MAKE-make}" 6934fi 6935 6936 6937 6938# Configure libtool 6939#AC_MSG_NOTICE([====== Starting libtool configuration]) 6940enable_dlopen=yes 6941 6942 6943 6944case `pwd` in 6945 *\ * | *\ *) 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6947$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6948esac 6949 6950 6951 6952macro_version='2.2.7a' 6953macro_revision='1.3134' 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967ltmain="$ac_aux_dir/ltmain.sh" 6968 6969# Backslashify metacharacters that are still active within 6970# double-quoted strings. 6971sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6972 6973# Same as above, but do not quote variable references. 6974double_quote_subst='s/\(["`\\]\)/\\\1/g' 6975 6976# Sed substitution to delay expansion of an escaped shell variable in a 6977# double_quote_subst'ed string. 6978delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6979 6980# Sed substitution to delay expansion of an escaped single quote. 6981delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6982 6983# Sed substitution to avoid accidental globbing in evaled expressions 6984no_glob_subst='s/\*/\\\*/g' 6985 6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6987$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6988if ${lt_cv_path_NM+:} false; then : 6989 $as_echo_n "(cached) " >&6 6990else 6991 if test -n "$NM"; then 6992 # Let the user override the test. 6993 lt_cv_path_NM="$NM" 6994else 6995 lt_nm_to_check="${ac_tool_prefix}nm" 6996 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6997 lt_nm_to_check="$lt_nm_to_check nm" 6998 fi 6999 for lt_tmp_nm in $lt_nm_to_check; do 7000 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7001 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7002 IFS="$lt_save_ifs" 7003 test -z "$ac_dir" && ac_dir=. 7004 tmp_nm="$ac_dir/$lt_tmp_nm" 7005 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 7006 # Check to see if the nm accepts a BSD-compat flag. 7007 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7008 # nm: unknown option "B" ignored 7009 # Tru64's nm complains that /dev/null is an invalid object file 7010 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 7011 */dev/null* | *'Invalid file or object type'*) 7012 lt_cv_path_NM="$tmp_nm -B" 7013 break 7014 ;; 7015 *) 7016 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 7017 */dev/null*) 7018 lt_cv_path_NM="$tmp_nm -p" 7019 break 7020 ;; 7021 *) 7022 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7023 continue # so that we can try to find one that supports BSD flags 7024 ;; 7025 esac 7026 ;; 7027 esac 7028 fi 7029 done 7030 IFS="$lt_save_ifs" 7031 done 7032 : ${lt_cv_path_NM=no} 7033fi 7034fi 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7036$as_echo "$lt_cv_path_NM" >&6; } 7037if test "$lt_cv_path_NM" != "no"; then 7038 NM="$lt_cv_path_NM" 7039else 7040 # Didn't find any BSD compatible name lister, look for dumpbin. 7041 if test -n "$DUMPBIN"; then : 7042 # Let the user override the test. 7043 else 7044 if test -n "$ac_tool_prefix"; then 7045 for ac_prog in dumpbin "link -dump" 7046 do 7047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7048set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7050$as_echo_n "checking for $ac_word... " >&6; } 7051if ${ac_cv_prog_DUMPBIN+:} false; then : 7052 $as_echo_n "(cached) " >&6 7053else 7054 if test -n "$DUMPBIN"; then 7055 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7056else 7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7058for as_dir in $PATH 7059do 7060 IFS=$as_save_IFS 7061 test -z "$as_dir" && as_dir=. 7062 for ac_exec_ext in '' $ac_executable_extensions; do 7063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7064 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7066 break 2 7067 fi 7068done 7069 done 7070IFS=$as_save_IFS 7071 7072fi 7073fi 7074DUMPBIN=$ac_cv_prog_DUMPBIN 7075if test -n "$DUMPBIN"; then 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7077$as_echo "$DUMPBIN" >&6; } 7078else 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7080$as_echo "no" >&6; } 7081fi 7082 7083 7084 test -n "$DUMPBIN" && break 7085 done 7086fi 7087if test -z "$DUMPBIN"; then 7088 ac_ct_DUMPBIN=$DUMPBIN 7089 for ac_prog in dumpbin "link -dump" 7090do 7091 # Extract the first word of "$ac_prog", so it can be a program name with args. 7092set dummy $ac_prog; ac_word=$2 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7094$as_echo_n "checking for $ac_word... " >&6; } 7095if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7096 $as_echo_n "(cached) " >&6 7097else 7098 if test -n "$ac_ct_DUMPBIN"; then 7099 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7100else 7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7102for as_dir in $PATH 7103do 7104 IFS=$as_save_IFS 7105 test -z "$as_dir" && as_dir=. 7106 for ac_exec_ext in '' $ac_executable_extensions; do 7107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7108 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7110 break 2 7111 fi 7112done 7113 done 7114IFS=$as_save_IFS 7115 7116fi 7117fi 7118ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 7119if test -n "$ac_ct_DUMPBIN"; then 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 7121$as_echo "$ac_ct_DUMPBIN" >&6; } 7122else 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7124$as_echo "no" >&6; } 7125fi 7126 7127 7128 test -n "$ac_ct_DUMPBIN" && break 7129done 7130 7131 if test "x$ac_ct_DUMPBIN" = x; then 7132 DUMPBIN=":" 7133 else 7134 case $cross_compiling:$ac_tool_warned in 7135yes:) 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7137$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7138ac_tool_warned=yes ;; 7139esac 7140 DUMPBIN=$ac_ct_DUMPBIN 7141 fi 7142fi 7143 7144 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 7145 *COFF*) 7146 DUMPBIN="$DUMPBIN -symbols" 7147 ;; 7148 *) 7149 DUMPBIN=: 7150 ;; 7151 esac 7152 fi 7153 7154 if test "$DUMPBIN" != ":"; then 7155 NM="$DUMPBIN" 7156 fi 7157fi 7158test -z "$NM" && NM=nm 7159 7160 7161 7162 7163 7164 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 7166$as_echo_n "checking the name lister ($NM) interface... " >&6; } 7167if ${lt_cv_nm_interface+:} false; then : 7168 $as_echo_n "(cached) " >&6 7169else 7170 lt_cv_nm_interface="BSD nm" 7171 echo "int some_variable = 0;" > conftest.$ac_ext 7172 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 7173 (eval "$ac_compile" 2>conftest.err) 7174 cat conftest.err >&5 7175 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 7176 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 7177 cat conftest.err >&5 7178 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 7179 cat conftest.out >&5 7180 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 7181 lt_cv_nm_interface="MS dumpbin" 7182 fi 7183 rm -f conftest* 7184fi 7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 7186$as_echo "$lt_cv_nm_interface" >&6; } 7187 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7189$as_echo_n "checking whether ln -s works... " >&6; } 7190LN_S=$as_ln_s 7191if test "$LN_S" = "ln -s"; then 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7193$as_echo "yes" >&6; } 7194else 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7196$as_echo "no, using $LN_S" >&6; } 7197fi 7198 7199# find the maximum length of command line arguments 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 7201$as_echo_n "checking the maximum length of command line arguments... " >&6; } 7202if ${lt_cv_sys_max_cmd_len+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 i=0 7206 teststring="ABCD" 7207 7208 case $build_os in 7209 msdosdjgpp*) 7210 # On DJGPP, this test can blow up pretty badly due to problems in libc 7211 # (any single argument exceeding 2000 bytes causes a buffer overrun 7212 # during glob expansion). Even if it were fixed, the result of this 7213 # check would be larger than it should be. 7214 lt_cv_sys_max_cmd_len=12288; # 12K is about right 7215 ;; 7216 7217 gnu*) 7218 # Under GNU Hurd, this test is not required because there is 7219 # no limit to the length of command line arguments. 7220 # Libtool will interpret -1 as no limit whatsoever 7221 lt_cv_sys_max_cmd_len=-1; 7222 ;; 7223 7224 cygwin* | mingw* | cegcc*) 7225 # On Win9x/ME, this test blows up -- it succeeds, but takes 7226 # about 5 minutes as the teststring grows exponentially. 7227 # Worse, since 9x/ME are not pre-emptively multitasking, 7228 # you end up with a "frozen" computer, even though with patience 7229 # the test eventually succeeds (with a max line length of 256k). 7230 # Instead, let's just punt: use the minimum linelength reported by 7231 # all of the supported platforms: 8192 (on NT/2K/XP). 7232 lt_cv_sys_max_cmd_len=8192; 7233 ;; 7234 7235 mint*) 7236 # On MiNT this can take a long time and run out of memory. 7237 lt_cv_sys_max_cmd_len=8192; 7238 ;; 7239 7240 amigaos*) 7241 # On AmigaOS with pdksh, this test takes hours, literally. 7242 # So we just punt and use a minimum line length of 8192. 7243 lt_cv_sys_max_cmd_len=8192; 7244 ;; 7245 7246 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7247 # This has been around since 386BSD, at least. Likely further. 7248 if test -x /sbin/sysctl; then 7249 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7250 elif test -x /usr/sbin/sysctl; then 7251 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7252 else 7253 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7254 fi 7255 # And add a safety zone 7256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7258 ;; 7259 7260 interix*) 7261 # We know the value 262144 and hardcode it with a safety zone (like BSD) 7262 lt_cv_sys_max_cmd_len=196608 7263 ;; 7264 7265 osf*) 7266 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7267 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7268 # nice to cause kernel panics so lets avoid the loop below. 7269 # First set a reasonable default. 7270 lt_cv_sys_max_cmd_len=16384 7271 # 7272 if test -x /sbin/sysconfig; then 7273 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7274 *1*) lt_cv_sys_max_cmd_len=-1 ;; 7275 esac 7276 fi 7277 ;; 7278 sco3.2v5*) 7279 lt_cv_sys_max_cmd_len=102400 7280 ;; 7281 sysv5* | sco5v6* | sysv4.2uw2*) 7282 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7283 if test -n "$kargmax"; then 7284 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 7285 else 7286 lt_cv_sys_max_cmd_len=32768 7287 fi 7288 ;; 7289 *) 7290 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 7291 if test -n "$lt_cv_sys_max_cmd_len"; then 7292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7293 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7294 else 7295 # Make teststring a little bigger before we do anything with it. 7296 # a 1K string should be a reasonable start. 7297 for i in 1 2 3 4 5 6 7 8 ; do 7298 teststring=$teststring$teststring 7299 done 7300 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7301 # If test is not a shell built-in, we'll probably end up computing a 7302 # maximum length that is only half of the actual maximum length, but 7303 # we can't tell. 7304 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 7305 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7306 test $i != 17 # 1/2 MB should be enough 7307 do 7308 i=`expr $i + 1` 7309 teststring=$teststring$teststring 7310 done 7311 # Only check the string length outside the loop. 7312 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7313 teststring= 7314 # Add a significant safety factor because C++ compilers can tack on 7315 # massive amounts of additional arguments before passing them to the 7316 # linker. It appears as though 1/2 is a usable value. 7317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7318 fi 7319 ;; 7320 esac 7321 7322fi 7323 7324if test -n $lt_cv_sys_max_cmd_len ; then 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7326$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7327else 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7329$as_echo "none" >&6; } 7330fi 7331max_cmd_len=$lt_cv_sys_max_cmd_len 7332 7333 7334 7335 7336 7337 7338: ${CP="cp -f"} 7339: ${MV="mv -f"} 7340: ${RM="rm -f"} 7341 7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7343$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7344# Try some XSI features 7345xsi_shell=no 7346( _lt_dummy="a/b/c" 7347 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 7348 = c,a/b,, \ 7349 && eval 'test $(( 1 + 1 )) -eq 2 \ 7350 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7351 && xsi_shell=yes 7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7353$as_echo "$xsi_shell" >&6; } 7354 7355 7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7357$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7358lt_shell_append=no 7359( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7360 >/dev/null 2>&1 \ 7361 && lt_shell_append=yes 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7363$as_echo "$lt_shell_append" >&6; } 7364 7365 7366if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7367 lt_unset=unset 7368else 7369 lt_unset=false 7370fi 7371 7372 7373 7374 7375 7376# test EBCDIC or ASCII 7377case `echo X|tr X '\101'` in 7378 A) # ASCII based system 7379 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7380 lt_SP2NL='tr \040 \012' 7381 lt_NL2SP='tr \015\012 \040\040' 7382 ;; 7383 *) # EBCDIC based system 7384 lt_SP2NL='tr \100 \n' 7385 lt_NL2SP='tr \r\n \100\100' 7386 ;; 7387esac 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7398$as_echo_n "checking for $LD option to reload object files... " >&6; } 7399if ${lt_cv_ld_reload_flag+:} false; then : 7400 $as_echo_n "(cached) " >&6 7401else 7402 lt_cv_ld_reload_flag='-r' 7403fi 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7405$as_echo "$lt_cv_ld_reload_flag" >&6; } 7406reload_flag=$lt_cv_ld_reload_flag 7407case $reload_flag in 7408"" | " "*) ;; 7409*) reload_flag=" $reload_flag" ;; 7410esac 7411reload_cmds='$LD$reload_flag -o $output$reload_objs' 7412case $host_os in 7413 darwin*) 7414 if test "$GCC" = yes; then 7415 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7416 else 7417 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7418 fi 7419 ;; 7420esac 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430if test -n "$ac_tool_prefix"; then 7431 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7432set dummy ${ac_tool_prefix}objdump; ac_word=$2 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7434$as_echo_n "checking for $ac_word... " >&6; } 7435if ${ac_cv_prog_OBJDUMP+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 if test -n "$OBJDUMP"; then 7439 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7440else 7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7442for as_dir in $PATH 7443do 7444 IFS=$as_save_IFS 7445 test -z "$as_dir" && as_dir=. 7446 for ac_exec_ext in '' $ac_executable_extensions; do 7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7448 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7450 break 2 7451 fi 7452done 7453 done 7454IFS=$as_save_IFS 7455 7456fi 7457fi 7458OBJDUMP=$ac_cv_prog_OBJDUMP 7459if test -n "$OBJDUMP"; then 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7461$as_echo "$OBJDUMP" >&6; } 7462else 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7464$as_echo "no" >&6; } 7465fi 7466 7467 7468fi 7469if test -z "$ac_cv_prog_OBJDUMP"; then 7470 ac_ct_OBJDUMP=$OBJDUMP 7471 # Extract the first word of "objdump", so it can be a program name with args. 7472set dummy objdump; ac_word=$2 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474$as_echo_n "checking for $ac_word... " >&6; } 7475if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477else 7478 if test -n "$ac_ct_OBJDUMP"; then 7479 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7480else 7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7482for as_dir in $PATH 7483do 7484 IFS=$as_save_IFS 7485 test -z "$as_dir" && as_dir=. 7486 for ac_exec_ext in '' $ac_executable_extensions; do 7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7488 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7490 break 2 7491 fi 7492done 7493 done 7494IFS=$as_save_IFS 7495 7496fi 7497fi 7498ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7499if test -n "$ac_ct_OBJDUMP"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7501$as_echo "$ac_ct_OBJDUMP" >&6; } 7502else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504$as_echo "no" >&6; } 7505fi 7506 7507 if test "x$ac_ct_OBJDUMP" = x; then 7508 OBJDUMP="false" 7509 else 7510 case $cross_compiling:$ac_tool_warned in 7511yes:) 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7514ac_tool_warned=yes ;; 7515esac 7516 OBJDUMP=$ac_ct_OBJDUMP 7517 fi 7518else 7519 OBJDUMP="$ac_cv_prog_OBJDUMP" 7520fi 7521 7522test -z "$OBJDUMP" && OBJDUMP=objdump 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7533$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7534if ${lt_cv_deplibs_check_method+:} false; then : 7535 $as_echo_n "(cached) " >&6 7536else 7537 lt_cv_file_magic_cmd='$MAGIC_CMD' 7538lt_cv_file_magic_test_file= 7539lt_cv_deplibs_check_method='unknown' 7540# Need to set the preceding variable on all platforms that support 7541# interlibrary dependencies. 7542# 'none' -- dependencies not supported. 7543# `unknown' -- same as none, but documents that we really don't know. 7544# 'pass_all' -- all dependencies passed with no checks. 7545# 'test_compile' -- check by making test program. 7546# 'file_magic [[regex]]' -- check by looking for files in library path 7547# which responds to the $file_magic_cmd with a given extended regex. 7548# If you have `file' or equivalent on your system and you're not sure 7549# whether `pass_all' will *always* work, you probably want this one. 7550 7551case $host_os in 7552aix[4-9]*) 7553 lt_cv_deplibs_check_method=pass_all 7554 ;; 7555 7556beos*) 7557 lt_cv_deplibs_check_method=pass_all 7558 ;; 7559 7560bsdi[45]*) 7561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7562 lt_cv_file_magic_cmd='/usr/bin/file -L' 7563 lt_cv_file_magic_test_file=/shlib/libc.so 7564 ;; 7565 7566cygwin*) 7567 # func_win32_libid is a shell function defined in ltmain.sh 7568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7569 lt_cv_file_magic_cmd='func_win32_libid' 7570 ;; 7571 7572mingw* | pw32*) 7573 # Base MSYS/MinGW do not provide the 'file' command needed by 7574 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7575 # unless we find 'file', for example because we are cross-compiling. 7576 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7577 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7578 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7579 lt_cv_file_magic_cmd='func_win32_libid' 7580 else 7581 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 7582 lt_cv_file_magic_cmd='$OBJDUMP -f' 7583 fi 7584 ;; 7585 7586cegcc*) 7587 # use the weaker test based on 'objdump'. See mingw*. 7588 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7589 lt_cv_file_magic_cmd='$OBJDUMP -f' 7590 ;; 7591 7592darwin* | rhapsody*) 7593 lt_cv_deplibs_check_method=pass_all 7594 ;; 7595 7596freebsd* | dragonfly*) 7597 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7598 case $host_cpu in 7599 i*86 ) 7600 # Not sure whether the presence of OpenBSD here was a mistake. 7601 # Let's accept both of them until this is cleared up. 7602 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7603 lt_cv_file_magic_cmd=/usr/bin/file 7604 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7605 ;; 7606 esac 7607 else 7608 lt_cv_deplibs_check_method=pass_all 7609 fi 7610 ;; 7611 7612gnu*) 7613 lt_cv_deplibs_check_method=pass_all 7614 ;; 7615 7616haiku*) 7617 lt_cv_deplibs_check_method=pass_all 7618 ;; 7619 7620hpux10.20* | hpux11*) 7621 lt_cv_file_magic_cmd=/usr/bin/file 7622 case $host_cpu in 7623 ia64*) 7624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7625 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7626 ;; 7627 hppa*64*) 7628 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]' 7629 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7630 ;; 7631 *) 7632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7633 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7634 ;; 7635 esac 7636 ;; 7637 7638interix[3-9]*) 7639 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7641 ;; 7642 7643irix5* | irix6* | nonstopux*) 7644 case $LD in 7645 *-32|*"-32 ") libmagic=32-bit;; 7646 *-n32|*"-n32 ") libmagic=N32;; 7647 *-64|*"-64 ") libmagic=64-bit;; 7648 *) libmagic=never-match;; 7649 esac 7650 lt_cv_deplibs_check_method=pass_all 7651 ;; 7652 7653# This must be Linux ELF. 7654linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 7655 lt_cv_deplibs_check_method=pass_all 7656 ;; 7657 7658netbsd*) 7659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7661 else 7662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7663 fi 7664 ;; 7665 7666newos6*) 7667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7668 lt_cv_file_magic_cmd=/usr/bin/file 7669 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7670 ;; 7671 7672*nto* | *qnx*) 7673 lt_cv_deplibs_check_method=pass_all 7674 ;; 7675 7676openbsd*) 7677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7679 else 7680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7681 fi 7682 ;; 7683 7684osf3* | osf4* | osf5*) 7685 lt_cv_deplibs_check_method=pass_all 7686 ;; 7687 7688rdos*) 7689 lt_cv_deplibs_check_method=pass_all 7690 ;; 7691 7692solaris*) 7693 lt_cv_deplibs_check_method=pass_all 7694 ;; 7695 7696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7697 lt_cv_deplibs_check_method=pass_all 7698 ;; 7699 7700sysv4 | sysv4.3*) 7701 case $host_vendor in 7702 motorola) 7703 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]' 7704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7705 ;; 7706 ncr) 7707 lt_cv_deplibs_check_method=pass_all 7708 ;; 7709 sequent) 7710 lt_cv_file_magic_cmd='/bin/file' 7711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7712 ;; 7713 sni) 7714 lt_cv_file_magic_cmd='/bin/file' 7715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7716 lt_cv_file_magic_test_file=/lib/libc.so 7717 ;; 7718 siemens) 7719 lt_cv_deplibs_check_method=pass_all 7720 ;; 7721 pc) 7722 lt_cv_deplibs_check_method=pass_all 7723 ;; 7724 esac 7725 ;; 7726 7727tpf*) 7728 lt_cv_deplibs_check_method=pass_all 7729 ;; 7730esac 7731 7732fi 7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7734$as_echo "$lt_cv_deplibs_check_method" >&6; } 7735file_magic_cmd=$lt_cv_file_magic_cmd 7736deplibs_check_method=$lt_cv_deplibs_check_method 7737test -z "$deplibs_check_method" && deplibs_check_method=unknown 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750if test -n "$ac_tool_prefix"; then 7751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7752set dummy ${ac_tool_prefix}ar; ac_word=$2 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7754$as_echo_n "checking for $ac_word... " >&6; } 7755if ${ac_cv_prog_AR+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757else 7758 if test -n "$AR"; then 7759 ac_cv_prog_AR="$AR" # Let the user override the test. 7760else 7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7762for as_dir in $PATH 7763do 7764 IFS=$as_save_IFS 7765 test -z "$as_dir" && as_dir=. 7766 for ac_exec_ext in '' $ac_executable_extensions; do 7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7768 ac_cv_prog_AR="${ac_tool_prefix}ar" 7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7770 break 2 7771 fi 7772done 7773 done 7774IFS=$as_save_IFS 7775 7776fi 7777fi 7778AR=$ac_cv_prog_AR 7779if test -n "$AR"; then 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7781$as_echo "$AR" >&6; } 7782else 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7784$as_echo "no" >&6; } 7785fi 7786 7787 7788fi 7789if test -z "$ac_cv_prog_AR"; then 7790 ac_ct_AR=$AR 7791 # Extract the first word of "ar", so it can be a program name with args. 7792set dummy ar; ac_word=$2 7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7794$as_echo_n "checking for $ac_word... " >&6; } 7795if ${ac_cv_prog_ac_ct_AR+:} false; then : 7796 $as_echo_n "(cached) " >&6 7797else 7798 if test -n "$ac_ct_AR"; then 7799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7800else 7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7802for as_dir in $PATH 7803do 7804 IFS=$as_save_IFS 7805 test -z "$as_dir" && as_dir=. 7806 for ac_exec_ext in '' $ac_executable_extensions; do 7807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7808 ac_cv_prog_ac_ct_AR="ar" 7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7810 break 2 7811 fi 7812done 7813 done 7814IFS=$as_save_IFS 7815 7816fi 7817fi 7818ac_ct_AR=$ac_cv_prog_ac_ct_AR 7819if test -n "$ac_ct_AR"; then 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7821$as_echo "$ac_ct_AR" >&6; } 7822else 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7824$as_echo "no" >&6; } 7825fi 7826 7827 if test "x$ac_ct_AR" = x; then 7828 AR="false" 7829 else 7830 case $cross_compiling:$ac_tool_warned in 7831yes:) 7832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7834ac_tool_warned=yes ;; 7835esac 7836 AR=$ac_ct_AR 7837 fi 7838else 7839 AR="$ac_cv_prog_AR" 7840fi 7841 7842test -z "$AR" && AR=ar 7843test -z "$AR_FLAGS" && AR_FLAGS=cru 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855if test -n "$ac_tool_prefix"; then 7856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7857set dummy ${ac_tool_prefix}strip; ac_word=$2 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7859$as_echo_n "checking for $ac_word... " >&6; } 7860if ${ac_cv_prog_STRIP+:} false; then : 7861 $as_echo_n "(cached) " >&6 7862else 7863 if test -n "$STRIP"; then 7864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7865else 7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7867for as_dir in $PATH 7868do 7869 IFS=$as_save_IFS 7870 test -z "$as_dir" && as_dir=. 7871 for ac_exec_ext in '' $ac_executable_extensions; do 7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7873 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7875 break 2 7876 fi 7877done 7878 done 7879IFS=$as_save_IFS 7880 7881fi 7882fi 7883STRIP=$ac_cv_prog_STRIP 7884if test -n "$STRIP"; then 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7886$as_echo "$STRIP" >&6; } 7887else 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7889$as_echo "no" >&6; } 7890fi 7891 7892 7893fi 7894if test -z "$ac_cv_prog_STRIP"; then 7895 ac_ct_STRIP=$STRIP 7896 # Extract the first word of "strip", so it can be a program name with args. 7897set dummy strip; ac_word=$2 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7899$as_echo_n "checking for $ac_word... " >&6; } 7900if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7901 $as_echo_n "(cached) " >&6 7902else 7903 if test -n "$ac_ct_STRIP"; then 7904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7905else 7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7907for as_dir in $PATH 7908do 7909 IFS=$as_save_IFS 7910 test -z "$as_dir" && as_dir=. 7911 for ac_exec_ext in '' $ac_executable_extensions; do 7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7913 ac_cv_prog_ac_ct_STRIP="strip" 7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7915 break 2 7916 fi 7917done 7918 done 7919IFS=$as_save_IFS 7920 7921fi 7922fi 7923ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7924if test -n "$ac_ct_STRIP"; then 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7926$as_echo "$ac_ct_STRIP" >&6; } 7927else 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7929$as_echo "no" >&6; } 7930fi 7931 7932 if test "x$ac_ct_STRIP" = x; then 7933 STRIP=":" 7934 else 7935 case $cross_compiling:$ac_tool_warned in 7936yes:) 7937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7939ac_tool_warned=yes ;; 7940esac 7941 STRIP=$ac_ct_STRIP 7942 fi 7943else 7944 STRIP="$ac_cv_prog_STRIP" 7945fi 7946 7947test -z "$STRIP" && STRIP=: 7948 7949 7950 7951 7952 7953 7954if test -n "$ac_tool_prefix"; then 7955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7956set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7958$as_echo_n "checking for $ac_word... " >&6; } 7959if ${ac_cv_prog_RANLIB+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961else 7962 if test -n "$RANLIB"; then 7963 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7964else 7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7966for as_dir in $PATH 7967do 7968 IFS=$as_save_IFS 7969 test -z "$as_dir" && as_dir=. 7970 for ac_exec_ext in '' $ac_executable_extensions; do 7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7972 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7974 break 2 7975 fi 7976done 7977 done 7978IFS=$as_save_IFS 7979 7980fi 7981fi 7982RANLIB=$ac_cv_prog_RANLIB 7983if test -n "$RANLIB"; then 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7985$as_echo "$RANLIB" >&6; } 7986else 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7988$as_echo "no" >&6; } 7989fi 7990 7991 7992fi 7993if test -z "$ac_cv_prog_RANLIB"; then 7994 ac_ct_RANLIB=$RANLIB 7995 # Extract the first word of "ranlib", so it can be a program name with args. 7996set dummy ranlib; ac_word=$2 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7998$as_echo_n "checking for $ac_word... " >&6; } 7999if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 if test -n "$ac_ct_RANLIB"; then 8003 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8004else 8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8006for as_dir in $PATH 8007do 8008 IFS=$as_save_IFS 8009 test -z "$as_dir" && as_dir=. 8010 for ac_exec_ext in '' $ac_executable_extensions; do 8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8012 ac_cv_prog_ac_ct_RANLIB="ranlib" 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8014 break 2 8015 fi 8016done 8017 done 8018IFS=$as_save_IFS 8019 8020fi 8021fi 8022ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8023if test -n "$ac_ct_RANLIB"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8025$as_echo "$ac_ct_RANLIB" >&6; } 8026else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028$as_echo "no" >&6; } 8029fi 8030 8031 if test "x$ac_ct_RANLIB" = x; then 8032 RANLIB=":" 8033 else 8034 case $cross_compiling:$ac_tool_warned in 8035yes:) 8036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8038ac_tool_warned=yes ;; 8039esac 8040 RANLIB=$ac_ct_RANLIB 8041 fi 8042else 8043 RANLIB="$ac_cv_prog_RANLIB" 8044fi 8045 8046test -z "$RANLIB" && RANLIB=: 8047 8048 8049 8050 8051 8052 8053# Determine commands to create old-style static archives. 8054old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8055old_postinstall_cmds='chmod 644 $oldlib' 8056old_postuninstall_cmds= 8057 8058if test -n "$RANLIB"; then 8059 case $host_os in 8060 openbsd*) 8061 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 8062 ;; 8063 *) 8064 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 8065 ;; 8066 esac 8067 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 8068fi 8069 8070case $host_os in 8071 darwin*) 8072 lock_old_archive_extraction=yes ;; 8073 *) 8074 lock_old_archive_extraction=no ;; 8075esac 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115# If no C compiler was specified, use CC. 8116LTCC=${LTCC-"$CC"} 8117 8118# If no C compiler flags were specified, use CFLAGS. 8119LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8120 8121# Allow CC to be a program name with arguments. 8122compiler=$CC 8123 8124 8125# Check for command to grab the raw symbol name followed by C symbol from nm. 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8127$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8128if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8129 $as_echo_n "(cached) " >&6 8130else 8131 8132# These are sane defaults that work on at least a few old systems. 8133# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8134 8135# Character class describing NM global symbol codes. 8136symcode='[BCDEGRST]' 8137 8138# Regexp to match symbols that can be accessed directly from C. 8139sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8140 8141# Define system-specific variables. 8142case $host_os in 8143aix*) 8144 symcode='[BCDT]' 8145 ;; 8146cygwin* | mingw* | pw32* | cegcc*) 8147 symcode='[ABCDGISTW]' 8148 ;; 8149hpux*) 8150 if test "$host_cpu" = ia64; then 8151 symcode='[ABCDEGRST]' 8152 fi 8153 ;; 8154irix* | nonstopux*) 8155 symcode='[BCDEGRST]' 8156 ;; 8157osf*) 8158 symcode='[BCDEGQRST]' 8159 ;; 8160solaris*) 8161 symcode='[BDRT]' 8162 ;; 8163sco3.2v5*) 8164 symcode='[DT]' 8165 ;; 8166sysv4.2uw2*) 8167 symcode='[DT]' 8168 ;; 8169sysv5* | sco5v6* | unixware* | OpenUNIX*) 8170 symcode='[ABDT]' 8171 ;; 8172sysv4) 8173 symcode='[DFNSTU]' 8174 ;; 8175esac 8176 8177# If we're using GNU nm, then use its standard symbol codes. 8178case `$NM -V 2>&1` in 8179*GNU* | *'with BFD'*) 8180 symcode='[ABCDGIRSTW]' ;; 8181esac 8182 8183# Transform an extracted symbol line into a proper C declaration. 8184# Some systems (esp. on ia64) link data and code symbols differently, 8185# so use this general approach. 8186lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8187 8188# Transform an extracted symbol line into symbol name and symbol address 8189lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8190lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 8191 8192# Handle CRLF in mingw tool chain 8193opt_cr= 8194case $build_os in 8195mingw*) 8196 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8197 ;; 8198esac 8199 8200# Try without a prefix underscore, then with it. 8201for ac_symprfx in "" "_"; do 8202 8203 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8204 symxfrm="\\1 $ac_symprfx\\2 \\2" 8205 8206 # Write the raw and C identifiers. 8207 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8208 # Fake it for dumpbin and say T for any non-static function 8209 # and D for any global variable. 8210 # Also find C++ and __fastcall symbols from MSVC++, 8211 # which start with @ or ?. 8212 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8213" {last_section=section; section=\$ 3};"\ 8214" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8215" \$ 0!~/External *\|/{next};"\ 8216" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8217" {if(hide[section]) next};"\ 8218" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8219" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8220" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8221" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8222" ' prfx=^$ac_symprfx" 8223 else 8224 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8225 fi 8226 8227 # Check to see that the pipe works correctly. 8228 pipe_works=no 8229 8230 rm -f conftest* 8231 cat > conftest.$ac_ext <<_LT_EOF 8232#ifdef __cplusplus 8233extern "C" { 8234#endif 8235char nm_test_var; 8236void nm_test_func(void); 8237void nm_test_func(void){} 8238#ifdef __cplusplus 8239} 8240#endif 8241int main(){nm_test_var='a';nm_test_func();return(0);} 8242_LT_EOF 8243 8244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8245 (eval $ac_compile) 2>&5 8246 ac_status=$? 8247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8248 test $ac_status = 0; }; then 8249 # Now try to grab the symbols. 8250 nlist=conftest.nm 8251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8252 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8253 ac_status=$? 8254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8255 test $ac_status = 0; } && test -s "$nlist"; then 8256 # Try sorting and uniquifying the output. 8257 if sort "$nlist" | uniq > "$nlist"T; then 8258 mv -f "$nlist"T "$nlist" 8259 else 8260 rm -f "$nlist"T 8261 fi 8262 8263 # Make sure that we snagged all the symbols we need. 8264 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8265 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8266 cat <<_LT_EOF > conftest.$ac_ext 8267#ifdef __cplusplus 8268extern "C" { 8269#endif 8270 8271_LT_EOF 8272 # Now generate the symbol file. 8273 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8274 8275 cat <<_LT_EOF >> conftest.$ac_ext 8276 8277/* The mapping between symbol names and symbols. */ 8278const struct { 8279 const char *name; 8280 void *address; 8281} 8282lt__PROGRAM__LTX_preloaded_symbols[] = 8283{ 8284 { "@PROGRAM@", (void *) 0 }, 8285_LT_EOF 8286 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8287 cat <<\_LT_EOF >> conftest.$ac_ext 8288 {0, (void *) 0} 8289}; 8290 8291/* This works around a problem in FreeBSD linker */ 8292#ifdef FREEBSD_WORKAROUND 8293static const void *lt_preloaded_setup() { 8294 return lt__PROGRAM__LTX_preloaded_symbols; 8295} 8296#endif 8297 8298#ifdef __cplusplus 8299} 8300#endif 8301_LT_EOF 8302 # Now try linking the two files. 8303 mv conftest.$ac_objext conftstm.$ac_objext 8304 lt_save_LIBS="$LIBS" 8305 lt_save_CFLAGS="$CFLAGS" 8306 LIBS="conftstm.$ac_objext" 8307 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8309 (eval $ac_link) 2>&5 8310 ac_status=$? 8311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8312 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8313 pipe_works=yes 8314 fi 8315 LIBS="$lt_save_LIBS" 8316 CFLAGS="$lt_save_CFLAGS" 8317 else 8318 echo "cannot find nm_test_func in $nlist" >&5 8319 fi 8320 else 8321 echo "cannot find nm_test_var in $nlist" >&5 8322 fi 8323 else 8324 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8325 fi 8326 else 8327 echo "$progname: failed program was:" >&5 8328 cat conftest.$ac_ext >&5 8329 fi 8330 rm -rf conftest* conftst* 8331 8332 # Do not use the global_symbol_pipe unless it works. 8333 if test "$pipe_works" = yes; then 8334 break 8335 else 8336 lt_cv_sys_global_symbol_pipe= 8337 fi 8338done 8339 8340fi 8341 8342if test -z "$lt_cv_sys_global_symbol_pipe"; then 8343 lt_cv_sys_global_symbol_to_cdecl= 8344fi 8345if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8347$as_echo "failed" >&6; } 8348else 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8350$as_echo "ok" >&6; } 8351fi 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374# Check whether --enable-libtool-lock was given. 8375if test "${enable_libtool_lock+set}" = set; then : 8376 enableval=$enable_libtool_lock; 8377fi 8378 8379test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8380 8381# Some flags need to be propagated to the compiler or linker for good 8382# libtool support. 8383case $host in 8384ia64-*-hpux*) 8385 # Find out which ABI we are using. 8386 echo 'int i;' > conftest.$ac_ext 8387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8388 (eval $ac_compile) 2>&5 8389 ac_status=$? 8390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8391 test $ac_status = 0; }; then 8392 case `/usr/bin/file conftest.$ac_objext` in 8393 *ELF-32*) 8394 HPUX_IA64_MODE="32" 8395 ;; 8396 *ELF-64*) 8397 HPUX_IA64_MODE="64" 8398 ;; 8399 esac 8400 fi 8401 rm -rf conftest* 8402 ;; 8403*-*-irix6*) 8404 # Find out which ABI we are using. 8405 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8407 (eval $ac_compile) 2>&5 8408 ac_status=$? 8409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8410 test $ac_status = 0; }; then 8411 if test "$lt_cv_prog_gnu_ld" = yes; then 8412 case `/usr/bin/file conftest.$ac_objext` in 8413 *32-bit*) 8414 LD="${LD-ld} -melf32bsmip" 8415 ;; 8416 *N32*) 8417 LD="${LD-ld} -melf32bmipn32" 8418 ;; 8419 *64-bit*) 8420 LD="${LD-ld} -melf64bmip" 8421 ;; 8422 esac 8423 else 8424 case `/usr/bin/file conftest.$ac_objext` in 8425 *32-bit*) 8426 LD="${LD-ld} -32" 8427 ;; 8428 *N32*) 8429 LD="${LD-ld} -n32" 8430 ;; 8431 *64-bit*) 8432 LD="${LD-ld} -64" 8433 ;; 8434 esac 8435 fi 8436 fi 8437 rm -rf conftest* 8438 ;; 8439 8440x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8441s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8442 # Find out which ABI we are using. 8443 echo 'int i;' > conftest.$ac_ext 8444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8445 (eval $ac_compile) 2>&5 8446 ac_status=$? 8447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8448 test $ac_status = 0; }; then 8449 case `/usr/bin/file conftest.o` in 8450 *32-bit*) 8451 case $host in 8452 x86_64-*kfreebsd*-gnu) 8453 LD="${LD-ld} -m elf_i386_fbsd" 8454 ;; 8455 x86_64-*linux*) 8456 case `/usr/bin/file conftest.o` in 8457 *x86-64*) 8458 LD="${LD-ld} -m elf32_x86_64" 8459 ;; 8460 *) 8461 LD="${LD-ld} -m elf_i386" 8462 ;; 8463 esac 8464 ;; 8465 powerpc64le-*linux*) 8466 LD="${LD-ld} -m elf32lppclinux" 8467 ;; 8468 powerpc64-*linux*) 8469 LD="${LD-ld} -m elf32ppclinux" 8470 ;; 8471 s390x-*linux*) 8472 LD="${LD-ld} -m elf_s390" 8473 ;; 8474 sparc64-*linux*) 8475 LD="${LD-ld} -m elf32_sparc" 8476 ;; 8477 esac 8478 ;; 8479 *64-bit*) 8480 case $host in 8481 x86_64-*kfreebsd*-gnu) 8482 LD="${LD-ld} -m elf_x86_64_fbsd" 8483 ;; 8484 x86_64-*linux*) 8485 LD="${LD-ld} -m elf_x86_64" 8486 ;; 8487 powerpcle-*linux*) 8488 LD="${LD-ld} -m elf64lppc" 8489 ;; 8490 powerpc-*linux*) 8491 LD="${LD-ld} -m elf64ppc" 8492 ;; 8493 s390*-*linux*|s390*-*tpf*) 8494 LD="${LD-ld} -m elf64_s390" 8495 ;; 8496 sparc*-*linux*) 8497 LD="${LD-ld} -m elf64_sparc" 8498 ;; 8499 esac 8500 ;; 8501 esac 8502 fi 8503 rm -rf conftest* 8504 ;; 8505 8506*-*-sco3.2v5*) 8507 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8508 SAVE_CFLAGS="$CFLAGS" 8509 CFLAGS="$CFLAGS -belf" 8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8511$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8512if ${lt_cv_cc_needs_belf+:} false; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 ac_ext=c 8516ac_cpp='$CPP $CPPFLAGS' 8517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8519ac_compiler_gnu=$ac_cv_c_compiler_gnu 8520 8521 if test x$gcc_no_link = xyes; then 8522 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8523fi 8524cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8525/* end confdefs.h. */ 8526 8527int 8528main () 8529{ 8530 8531 ; 8532 return 0; 8533} 8534_ACEOF 8535if ac_fn_c_try_link "$LINENO"; then : 8536 lt_cv_cc_needs_belf=yes 8537else 8538 lt_cv_cc_needs_belf=no 8539fi 8540rm -f core conftest.err conftest.$ac_objext \ 8541 conftest$ac_exeext conftest.$ac_ext 8542 ac_ext=c 8543ac_cpp='$CPP $CPPFLAGS' 8544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8546ac_compiler_gnu=$ac_cv_c_compiler_gnu 8547 8548fi 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8550$as_echo "$lt_cv_cc_needs_belf" >&6; } 8551 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8552 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8553 CFLAGS="$SAVE_CFLAGS" 8554 fi 8555 ;; 8556sparc*-*solaris*) 8557 # Find out which ABI we are using. 8558 echo 'int i;' > conftest.$ac_ext 8559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8560 (eval $ac_compile) 2>&5 8561 ac_status=$? 8562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8563 test $ac_status = 0; }; then 8564 case `/usr/bin/file conftest.o` in 8565 *64-bit*) 8566 case $lt_cv_prog_gnu_ld in 8567 yes*) LD="${LD-ld} -m elf64_sparc" ;; 8568 *) 8569 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8570 LD="${LD-ld} -64" 8571 fi 8572 ;; 8573 esac 8574 ;; 8575 esac 8576 fi 8577 rm -rf conftest* 8578 ;; 8579esac 8580 8581need_locks="$enable_libtool_lock" 8582 8583 8584 case $host_os in 8585 rhapsody* | darwin*) 8586 if test -n "$ac_tool_prefix"; then 8587 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8588set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8590$as_echo_n "checking for $ac_word... " >&6; } 8591if ${ac_cv_prog_DSYMUTIL+:} false; then : 8592 $as_echo_n "(cached) " >&6 8593else 8594 if test -n "$DSYMUTIL"; then 8595 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8596else 8597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8598for as_dir in $PATH 8599do 8600 IFS=$as_save_IFS 8601 test -z "$as_dir" && as_dir=. 8602 for ac_exec_ext in '' $ac_executable_extensions; do 8603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8604 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8606 break 2 8607 fi 8608done 8609 done 8610IFS=$as_save_IFS 8611 8612fi 8613fi 8614DSYMUTIL=$ac_cv_prog_DSYMUTIL 8615if test -n "$DSYMUTIL"; then 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8617$as_echo "$DSYMUTIL" >&6; } 8618else 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8620$as_echo "no" >&6; } 8621fi 8622 8623 8624fi 8625if test -z "$ac_cv_prog_DSYMUTIL"; then 8626 ac_ct_DSYMUTIL=$DSYMUTIL 8627 # Extract the first word of "dsymutil", so it can be a program name with args. 8628set dummy dsymutil; ac_word=$2 8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8630$as_echo_n "checking for $ac_word... " >&6; } 8631if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8632 $as_echo_n "(cached) " >&6 8633else 8634 if test -n "$ac_ct_DSYMUTIL"; then 8635 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8636else 8637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8638for as_dir in $PATH 8639do 8640 IFS=$as_save_IFS 8641 test -z "$as_dir" && as_dir=. 8642 for ac_exec_ext in '' $ac_executable_extensions; do 8643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8644 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8646 break 2 8647 fi 8648done 8649 done 8650IFS=$as_save_IFS 8651 8652fi 8653fi 8654ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8655if test -n "$ac_ct_DSYMUTIL"; then 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8657$as_echo "$ac_ct_DSYMUTIL" >&6; } 8658else 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8660$as_echo "no" >&6; } 8661fi 8662 8663 if test "x$ac_ct_DSYMUTIL" = x; then 8664 DSYMUTIL=":" 8665 else 8666 case $cross_compiling:$ac_tool_warned in 8667yes:) 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8670ac_tool_warned=yes ;; 8671esac 8672 DSYMUTIL=$ac_ct_DSYMUTIL 8673 fi 8674else 8675 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8676fi 8677 8678 if test -n "$ac_tool_prefix"; then 8679 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8680set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8682$as_echo_n "checking for $ac_word... " >&6; } 8683if ${ac_cv_prog_NMEDIT+:} false; then : 8684 $as_echo_n "(cached) " >&6 8685else 8686 if test -n "$NMEDIT"; then 8687 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8688else 8689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8690for as_dir in $PATH 8691do 8692 IFS=$as_save_IFS 8693 test -z "$as_dir" && as_dir=. 8694 for ac_exec_ext in '' $ac_executable_extensions; do 8695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8696 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8698 break 2 8699 fi 8700done 8701 done 8702IFS=$as_save_IFS 8703 8704fi 8705fi 8706NMEDIT=$ac_cv_prog_NMEDIT 8707if test -n "$NMEDIT"; then 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8709$as_echo "$NMEDIT" >&6; } 8710else 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8712$as_echo "no" >&6; } 8713fi 8714 8715 8716fi 8717if test -z "$ac_cv_prog_NMEDIT"; then 8718 ac_ct_NMEDIT=$NMEDIT 8719 # Extract the first word of "nmedit", so it can be a program name with args. 8720set dummy nmedit; ac_word=$2 8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8722$as_echo_n "checking for $ac_word... " >&6; } 8723if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725else 8726 if test -n "$ac_ct_NMEDIT"; then 8727 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8728else 8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8730for as_dir in $PATH 8731do 8732 IFS=$as_save_IFS 8733 test -z "$as_dir" && as_dir=. 8734 for ac_exec_ext in '' $ac_executable_extensions; do 8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8736 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8738 break 2 8739 fi 8740done 8741 done 8742IFS=$as_save_IFS 8743 8744fi 8745fi 8746ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8747if test -n "$ac_ct_NMEDIT"; then 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8749$as_echo "$ac_ct_NMEDIT" >&6; } 8750else 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8752$as_echo "no" >&6; } 8753fi 8754 8755 if test "x$ac_ct_NMEDIT" = x; then 8756 NMEDIT=":" 8757 else 8758 case $cross_compiling:$ac_tool_warned in 8759yes:) 8760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8762ac_tool_warned=yes ;; 8763esac 8764 NMEDIT=$ac_ct_NMEDIT 8765 fi 8766else 8767 NMEDIT="$ac_cv_prog_NMEDIT" 8768fi 8769 8770 if test -n "$ac_tool_prefix"; then 8771 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8772set dummy ${ac_tool_prefix}lipo; ac_word=$2 8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8774$as_echo_n "checking for $ac_word... " >&6; } 8775if ${ac_cv_prog_LIPO+:} false; then : 8776 $as_echo_n "(cached) " >&6 8777else 8778 if test -n "$LIPO"; then 8779 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8780else 8781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8782for as_dir in $PATH 8783do 8784 IFS=$as_save_IFS 8785 test -z "$as_dir" && as_dir=. 8786 for ac_exec_ext in '' $ac_executable_extensions; do 8787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8788 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8790 break 2 8791 fi 8792done 8793 done 8794IFS=$as_save_IFS 8795 8796fi 8797fi 8798LIPO=$ac_cv_prog_LIPO 8799if test -n "$LIPO"; then 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8801$as_echo "$LIPO" >&6; } 8802else 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8804$as_echo "no" >&6; } 8805fi 8806 8807 8808fi 8809if test -z "$ac_cv_prog_LIPO"; then 8810 ac_ct_LIPO=$LIPO 8811 # Extract the first word of "lipo", so it can be a program name with args. 8812set dummy lipo; ac_word=$2 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8814$as_echo_n "checking for $ac_word... " >&6; } 8815if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 if test -n "$ac_ct_LIPO"; then 8819 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8820else 8821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8822for as_dir in $PATH 8823do 8824 IFS=$as_save_IFS 8825 test -z "$as_dir" && as_dir=. 8826 for ac_exec_ext in '' $ac_executable_extensions; do 8827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8828 ac_cv_prog_ac_ct_LIPO="lipo" 8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8830 break 2 8831 fi 8832done 8833 done 8834IFS=$as_save_IFS 8835 8836fi 8837fi 8838ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8839if test -n "$ac_ct_LIPO"; then 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8841$as_echo "$ac_ct_LIPO" >&6; } 8842else 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8844$as_echo "no" >&6; } 8845fi 8846 8847 if test "x$ac_ct_LIPO" = x; then 8848 LIPO=":" 8849 else 8850 case $cross_compiling:$ac_tool_warned in 8851yes:) 8852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8854ac_tool_warned=yes ;; 8855esac 8856 LIPO=$ac_ct_LIPO 8857 fi 8858else 8859 LIPO="$ac_cv_prog_LIPO" 8860fi 8861 8862 if test -n "$ac_tool_prefix"; then 8863 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8864set dummy ${ac_tool_prefix}otool; ac_word=$2 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8866$as_echo_n "checking for $ac_word... " >&6; } 8867if ${ac_cv_prog_OTOOL+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869else 8870 if test -n "$OTOOL"; then 8871 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8872else 8873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8874for as_dir in $PATH 8875do 8876 IFS=$as_save_IFS 8877 test -z "$as_dir" && as_dir=. 8878 for ac_exec_ext in '' $ac_executable_extensions; do 8879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8880 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8882 break 2 8883 fi 8884done 8885 done 8886IFS=$as_save_IFS 8887 8888fi 8889fi 8890OTOOL=$ac_cv_prog_OTOOL 8891if test -n "$OTOOL"; then 8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8893$as_echo "$OTOOL" >&6; } 8894else 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8896$as_echo "no" >&6; } 8897fi 8898 8899 8900fi 8901if test -z "$ac_cv_prog_OTOOL"; then 8902 ac_ct_OTOOL=$OTOOL 8903 # Extract the first word of "otool", so it can be a program name with args. 8904set dummy otool; ac_word=$2 8905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8906$as_echo_n "checking for $ac_word... " >&6; } 8907if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8908 $as_echo_n "(cached) " >&6 8909else 8910 if test -n "$ac_ct_OTOOL"; then 8911 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8912else 8913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8914for as_dir in $PATH 8915do 8916 IFS=$as_save_IFS 8917 test -z "$as_dir" && as_dir=. 8918 for ac_exec_ext in '' $ac_executable_extensions; do 8919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8920 ac_cv_prog_ac_ct_OTOOL="otool" 8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8922 break 2 8923 fi 8924done 8925 done 8926IFS=$as_save_IFS 8927 8928fi 8929fi 8930ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8931if test -n "$ac_ct_OTOOL"; then 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8933$as_echo "$ac_ct_OTOOL" >&6; } 8934else 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8936$as_echo "no" >&6; } 8937fi 8938 8939 if test "x$ac_ct_OTOOL" = x; then 8940 OTOOL=":" 8941 else 8942 case $cross_compiling:$ac_tool_warned in 8943yes:) 8944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8946ac_tool_warned=yes ;; 8947esac 8948 OTOOL=$ac_ct_OTOOL 8949 fi 8950else 8951 OTOOL="$ac_cv_prog_OTOOL" 8952fi 8953 8954 if test -n "$ac_tool_prefix"; then 8955 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8956set dummy ${ac_tool_prefix}otool64; ac_word=$2 8957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8958$as_echo_n "checking for $ac_word... " >&6; } 8959if ${ac_cv_prog_OTOOL64+:} false; then : 8960 $as_echo_n "(cached) " >&6 8961else 8962 if test -n "$OTOOL64"; then 8963 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8964else 8965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8966for as_dir in $PATH 8967do 8968 IFS=$as_save_IFS 8969 test -z "$as_dir" && as_dir=. 8970 for ac_exec_ext in '' $ac_executable_extensions; do 8971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8972 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8974 break 2 8975 fi 8976done 8977 done 8978IFS=$as_save_IFS 8979 8980fi 8981fi 8982OTOOL64=$ac_cv_prog_OTOOL64 8983if test -n "$OTOOL64"; then 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8985$as_echo "$OTOOL64" >&6; } 8986else 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8988$as_echo "no" >&6; } 8989fi 8990 8991 8992fi 8993if test -z "$ac_cv_prog_OTOOL64"; then 8994 ac_ct_OTOOL64=$OTOOL64 8995 # Extract the first word of "otool64", so it can be a program name with args. 8996set dummy otool64; ac_word=$2 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8998$as_echo_n "checking for $ac_word... " >&6; } 8999if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 if test -n "$ac_ct_OTOOL64"; then 9003 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9004else 9005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9006for as_dir in $PATH 9007do 9008 IFS=$as_save_IFS 9009 test -z "$as_dir" && as_dir=. 9010 for ac_exec_ext in '' $ac_executable_extensions; do 9011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9012 ac_cv_prog_ac_ct_OTOOL64="otool64" 9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9014 break 2 9015 fi 9016done 9017 done 9018IFS=$as_save_IFS 9019 9020fi 9021fi 9022ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9023if test -n "$ac_ct_OTOOL64"; then 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9025$as_echo "$ac_ct_OTOOL64" >&6; } 9026else 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9028$as_echo "no" >&6; } 9029fi 9030 9031 if test "x$ac_ct_OTOOL64" = x; then 9032 OTOOL64=":" 9033 else 9034 case $cross_compiling:$ac_tool_warned in 9035yes:) 9036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9038ac_tool_warned=yes ;; 9039esac 9040 OTOOL64=$ac_ct_OTOOL64 9041 fi 9042else 9043 OTOOL64="$ac_cv_prog_OTOOL64" 9044fi 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9073$as_echo_n "checking for -single_module linker flag... " >&6; } 9074if ${lt_cv_apple_cc_single_mod+:} false; then : 9075 $as_echo_n "(cached) " >&6 9076else 9077 lt_cv_apple_cc_single_mod=no 9078 if test -z "${LT_MULTI_MODULE}"; then 9079 # By default we will add the -single_module flag. You can override 9080 # by either setting the environment variable LT_MULTI_MODULE 9081 # non-empty at configure time, or by adding -multi_module to the 9082 # link flags. 9083 rm -rf libconftest.dylib* 9084 echo "int foo(void){return 1;}" > conftest.c 9085 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9086-dynamiclib -Wl,-single_module conftest.c" >&5 9087 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9088 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9089 _lt_result=$? 9090 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 9091 lt_cv_apple_cc_single_mod=yes 9092 else 9093 cat conftest.err >&5 9094 fi 9095 rm -rf libconftest.dylib* 9096 rm -f conftest.* 9097 fi 9098fi 9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9100$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9102$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9103if ${lt_cv_ld_exported_symbols_list+:} false; then : 9104 $as_echo_n "(cached) " >&6 9105else 9106 lt_cv_ld_exported_symbols_list=no 9107 save_LDFLAGS=$LDFLAGS 9108 echo "_main" > conftest.sym 9109 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9110 if test x$gcc_no_link = xyes; then 9111 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 9112fi 9113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9114/* end confdefs.h. */ 9115 9116int 9117main () 9118{ 9119 9120 ; 9121 return 0; 9122} 9123_ACEOF 9124if ac_fn_c_try_link "$LINENO"; then : 9125 lt_cv_ld_exported_symbols_list=yes 9126else 9127 lt_cv_ld_exported_symbols_list=no 9128fi 9129rm -f core conftest.err conftest.$ac_objext \ 9130 conftest$ac_exeext conftest.$ac_ext 9131 LDFLAGS="$save_LDFLAGS" 9132 9133fi 9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9135$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9137$as_echo_n "checking for -force_load linker flag... " >&6; } 9138if ${lt_cv_ld_force_load+:} false; then : 9139 $as_echo_n "(cached) " >&6 9140else 9141 lt_cv_ld_force_load=no 9142 cat > conftest.c << _LT_EOF 9143int forced_loaded() { return 2;} 9144_LT_EOF 9145 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9146 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9147 echo "$AR cru libconftest.a conftest.o" >&5 9148 $AR cru libconftest.a conftest.o 2>&5 9149 cat > conftest.c << _LT_EOF 9150int main() { return 0;} 9151_LT_EOF 9152 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9153 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9154 _lt_result=$? 9155 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 9156 lt_cv_ld_force_load=yes 9157 else 9158 cat conftest.err >&5 9159 fi 9160 rm -f conftest.err libconftest.a conftest conftest.c 9161 rm -rf conftest.dSYM 9162 9163fi 9164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9165$as_echo "$lt_cv_ld_force_load" >&6; } 9166 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 9167 # build without first building modern cctools / linker. 9168 case $host_cpu-$host_os in 9169 *-rhapsody* | *-darwin1.[012]) 9170 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9171 *-darwin1.*) 9172 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9173 *-darwin*) 9174 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 9175 # deployment target is forced to an earlier version. 9176 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 9177 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 9178 ;; 9179 10.[012][,.]*) 9180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 9181 ;; 9182 *) 9183 ;; 9184 esac 9185 ;; 9186 esac 9187 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9188 _lt_dar_single_mod='$single_module' 9189 fi 9190 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9191 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9192 else 9193 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9194 fi 9195 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9196 _lt_dsymutil='~$DSYMUTIL $lib || :' 9197 else 9198 _lt_dsymutil= 9199 fi 9200 ;; 9201 esac 9202 9203for ac_header in dlfcn.h 9204do : 9205 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9206" 9207if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9208 cat >>confdefs.h <<_ACEOF 9209#define HAVE_DLFCN_H 1 9210_ACEOF 9211 9212fi 9213 9214done 9215 9216 9217 9218 9219 9220# Set options 9221 9222 9223 9224 9225 enable_win32_dll=no 9226 9227 9228 # Check whether --enable-shared was given. 9229if test "${enable_shared+set}" = set; then : 9230 enableval=$enable_shared; p=${PACKAGE-default} 9231 case $enableval in 9232 yes) enable_shared=yes ;; 9233 no) enable_shared=no ;; 9234 *) 9235 enable_shared=no 9236 # Look at the argument we got. We use all the common list separators. 9237 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9238 for pkg in $enableval; do 9239 IFS="$lt_save_ifs" 9240 if test "X$pkg" = "X$p"; then 9241 enable_shared=yes 9242 fi 9243 done 9244 IFS="$lt_save_ifs" 9245 ;; 9246 esac 9247else 9248 enable_shared=yes 9249fi 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 # Check whether --enable-static was given. 9260if test "${enable_static+set}" = set; then : 9261 enableval=$enable_static; p=${PACKAGE-default} 9262 case $enableval in 9263 yes) enable_static=yes ;; 9264 no) enable_static=no ;; 9265 *) 9266 enable_static=no 9267 # Look at the argument we got. We use all the common list separators. 9268 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9269 for pkg in $enableval; do 9270 IFS="$lt_save_ifs" 9271 if test "X$pkg" = "X$p"; then 9272 enable_static=yes 9273 fi 9274 done 9275 IFS="$lt_save_ifs" 9276 ;; 9277 esac 9278else 9279 enable_static=yes 9280fi 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291# Check whether --with-pic was given. 9292if test "${with_pic+set}" = set; then : 9293 withval=$with_pic; pic_mode="$withval" 9294else 9295 pic_mode=default 9296fi 9297 9298 9299test -z "$pic_mode" && pic_mode=default 9300 9301 9302 9303 9304 9305 9306 9307 # Check whether --enable-fast-install was given. 9308if test "${enable_fast_install+set}" = set; then : 9309 enableval=$enable_fast_install; p=${PACKAGE-default} 9310 case $enableval in 9311 yes) enable_fast_install=yes ;; 9312 no) enable_fast_install=no ;; 9313 *) 9314 enable_fast_install=no 9315 # Look at the argument we got. We use all the common list separators. 9316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9317 for pkg in $enableval; do 9318 IFS="$lt_save_ifs" 9319 if test "X$pkg" = "X$p"; then 9320 enable_fast_install=yes 9321 fi 9322 done 9323 IFS="$lt_save_ifs" 9324 ;; 9325 esac 9326else 9327 enable_fast_install=yes 9328fi 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340# This can be used to rebuild libtool when needed 9341LIBTOOL_DEPS="$ltmain" 9342 9343# Always use our own libtool. 9344LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371test -z "$LN_S" && LN_S="ln -s" 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386if test -n "${ZSH_VERSION+set}" ; then 9387 setopt NO_GLOB_SUBST 9388fi 9389 9390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9391$as_echo_n "checking for objdir... " >&6; } 9392if ${lt_cv_objdir+:} false; then : 9393 $as_echo_n "(cached) " >&6 9394else 9395 rm -f .libs 2>/dev/null 9396mkdir .libs 2>/dev/null 9397if test -d .libs; then 9398 lt_cv_objdir=.libs 9399else 9400 # MS-DOS does not allow filenames that begin with a dot. 9401 lt_cv_objdir=_libs 9402fi 9403rmdir .libs 2>/dev/null 9404fi 9405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9406$as_echo "$lt_cv_objdir" >&6; } 9407objdir=$lt_cv_objdir 9408 9409 9410 9411 9412 9413cat >>confdefs.h <<_ACEOF 9414#define LT_OBJDIR "$lt_cv_objdir/" 9415_ACEOF 9416 9417 9418 9419 9420case $host_os in 9421aix3*) 9422 # AIX sometimes has problems with the GCC collect2 program. For some 9423 # reason, if we set the COLLECT_NAMES environment variable, the problems 9424 # vanish in a puff of smoke. 9425 if test "X${COLLECT_NAMES+set}" != Xset; then 9426 COLLECT_NAMES= 9427 export COLLECT_NAMES 9428 fi 9429 ;; 9430esac 9431 9432# Global variables: 9433ofile=libtool 9434can_build_shared=yes 9435 9436# All known linkers require a `.a' archive for static linking (except MSVC, 9437# which needs '.lib'). 9438libext=a 9439 9440with_gnu_ld="$lt_cv_prog_gnu_ld" 9441 9442old_CC="$CC" 9443old_CFLAGS="$CFLAGS" 9444 9445# Set sane defaults for various variables 9446test -z "$CC" && CC=cc 9447test -z "$LTCC" && LTCC=$CC 9448test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9449test -z "$LD" && LD=ld 9450test -z "$ac_objext" && ac_objext=o 9451 9452for cc_temp in $compiler""; do 9453 case $cc_temp in 9454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9456 \-*) ;; 9457 *) break;; 9458 esac 9459done 9460cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9461 9462 9463# Only perform the check for file, if the check method requires it 9464test -z "$MAGIC_CMD" && MAGIC_CMD=file 9465case $deplibs_check_method in 9466file_magic*) 9467 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9469$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9470if ${lt_cv_path_MAGIC_CMD+:} false; then : 9471 $as_echo_n "(cached) " >&6 9472else 9473 case $MAGIC_CMD in 9474[\\/*] | ?:[\\/]*) 9475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9476 ;; 9477*) 9478 lt_save_MAGIC_CMD="$MAGIC_CMD" 9479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9481 for ac_dir in $ac_dummy; do 9482 IFS="$lt_save_ifs" 9483 test -z "$ac_dir" && ac_dir=. 9484 if test -f $ac_dir/${ac_tool_prefix}file; then 9485 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9486 if test -n "$file_magic_test_file"; then 9487 case $deplibs_check_method in 9488 "file_magic "*) 9489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9492 $EGREP "$file_magic_regex" > /dev/null; then 9493 : 9494 else 9495 cat <<_LT_EOF 1>&2 9496 9497*** Warning: the command libtool uses to detect shared libraries, 9498*** $file_magic_cmd, produces output that libtool cannot recognize. 9499*** The result is that libtool may fail to recognize shared libraries 9500*** as such. This will affect the creation of libtool libraries that 9501*** depend on shared libraries, but programs linked with such libtool 9502*** libraries will work regardless of this problem. Nevertheless, you 9503*** may want to report the problem to your system manager and/or to 9504*** bug-libtool@gnu.org 9505 9506_LT_EOF 9507 fi ;; 9508 esac 9509 fi 9510 break 9511 fi 9512 done 9513 IFS="$lt_save_ifs" 9514 MAGIC_CMD="$lt_save_MAGIC_CMD" 9515 ;; 9516esac 9517fi 9518 9519MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9520if test -n "$MAGIC_CMD"; then 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9522$as_echo "$MAGIC_CMD" >&6; } 9523else 9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9525$as_echo "no" >&6; } 9526fi 9527 9528 9529 9530 9531 9532if test -z "$lt_cv_path_MAGIC_CMD"; then 9533 if test -n "$ac_tool_prefix"; then 9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9535$as_echo_n "checking for file... " >&6; } 9536if ${lt_cv_path_MAGIC_CMD+:} false; then : 9537 $as_echo_n "(cached) " >&6 9538else 9539 case $MAGIC_CMD in 9540[\\/*] | ?:[\\/]*) 9541 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9542 ;; 9543*) 9544 lt_save_MAGIC_CMD="$MAGIC_CMD" 9545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9546 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9547 for ac_dir in $ac_dummy; do 9548 IFS="$lt_save_ifs" 9549 test -z "$ac_dir" && ac_dir=. 9550 if test -f $ac_dir/file; then 9551 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9552 if test -n "$file_magic_test_file"; then 9553 case $deplibs_check_method in 9554 "file_magic "*) 9555 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9557 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9558 $EGREP "$file_magic_regex" > /dev/null; then 9559 : 9560 else 9561 cat <<_LT_EOF 1>&2 9562 9563*** Warning: the command libtool uses to detect shared libraries, 9564*** $file_magic_cmd, produces output that libtool cannot recognize. 9565*** The result is that libtool may fail to recognize shared libraries 9566*** as such. This will affect the creation of libtool libraries that 9567*** depend on shared libraries, but programs linked with such libtool 9568*** libraries will work regardless of this problem. Nevertheless, you 9569*** may want to report the problem to your system manager and/or to 9570*** bug-libtool@gnu.org 9571 9572_LT_EOF 9573 fi ;; 9574 esac 9575 fi 9576 break 9577 fi 9578 done 9579 IFS="$lt_save_ifs" 9580 MAGIC_CMD="$lt_save_MAGIC_CMD" 9581 ;; 9582esac 9583fi 9584 9585MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9586if test -n "$MAGIC_CMD"; then 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9588$as_echo "$MAGIC_CMD" >&6; } 9589else 9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9591$as_echo "no" >&6; } 9592fi 9593 9594 9595 else 9596 MAGIC_CMD=: 9597 fi 9598fi 9599 9600 fi 9601 ;; 9602esac 9603 9604# Use C for the default configuration in the libtool script 9605 9606lt_save_CC="$CC" 9607ac_ext=c 9608ac_cpp='$CPP $CPPFLAGS' 9609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9611ac_compiler_gnu=$ac_cv_c_compiler_gnu 9612 9613 9614# Source file extension for C test sources. 9615ac_ext=c 9616 9617# Object file extension for compiled C test sources. 9618objext=o 9619objext=$objext 9620 9621# Code to be used in simple compile tests 9622lt_simple_compile_test_code="int some_variable = 0;" 9623 9624# Code to be used in simple link tests 9625lt_simple_link_test_code='int main(){return(0);}' 9626 9627 9628 9629 9630 9631 9632 9633# If no C compiler was specified, use CC. 9634LTCC=${LTCC-"$CC"} 9635 9636# If no C compiler flags were specified, use CFLAGS. 9637LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9638 9639# Allow CC to be a program name with arguments. 9640compiler=$CC 9641 9642# Save the default compiler, since it gets overwritten when the other 9643# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9644compiler_DEFAULT=$CC 9645 9646# save warnings/boilerplate of simple test code 9647ac_outfile=conftest.$ac_objext 9648echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9649eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9650_lt_compiler_boilerplate=`cat conftest.err` 9651$RM conftest* 9652 9653ac_outfile=conftest.$ac_objext 9654echo "$lt_simple_link_test_code" >conftest.$ac_ext 9655eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9656_lt_linker_boilerplate=`cat conftest.err` 9657$RM -r conftest* 9658 9659 9660## CAVEAT EMPTOR: 9661## There is no encapsulation within the following macros, do not change 9662## the running order or otherwise move them around unless you know exactly 9663## what you are doing... 9664if test -n "$compiler"; then 9665 9666lt_prog_compiler_no_builtin_flag= 9667 9668if test "$GCC" = yes; then 9669 case $cc_basename in 9670 nvcc*) 9671 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9672 *) 9673 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9674 esac 9675 9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9677$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9678if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9679 $as_echo_n "(cached) " >&6 9680else 9681 lt_cv_prog_compiler_rtti_exceptions=no 9682 ac_outfile=conftest.$ac_objext 9683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9684 lt_compiler_flag="-fno-rtti -fno-exceptions" 9685 # Insert the option either (1) after the last *FLAGS variable, or 9686 # (2) before a word containing "conftest.", or (3) at the end. 9687 # Note that $ac_compile itself does not contain backslashes and begins 9688 # with a dollar sign (not a hyphen), so the echo should work correctly. 9689 # The option is referenced via a variable to avoid confusing sed. 9690 lt_compile=`echo "$ac_compile" | $SED \ 9691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9693 -e 's:$: $lt_compiler_flag:'` 9694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9695 (eval "$lt_compile" 2>conftest.err) 9696 ac_status=$? 9697 cat conftest.err >&5 9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9699 if (exit $ac_status) && test -s "$ac_outfile"; then 9700 # The compiler can only warn and ignore the option if not recognized 9701 # So say no if there are warnings other than the usual output. 9702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9704 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9705 lt_cv_prog_compiler_rtti_exceptions=yes 9706 fi 9707 fi 9708 $RM conftest* 9709 9710fi 9711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9712$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9713 9714if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9715 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9716else 9717 : 9718fi 9719 9720fi 9721 9722 9723 9724 9725 9726 9727 lt_prog_compiler_wl= 9728lt_prog_compiler_pic= 9729lt_prog_compiler_static= 9730 9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9732$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9733 9734 if test "$GCC" = yes; then 9735 lt_prog_compiler_wl='-Wl,' 9736 lt_prog_compiler_static='-static' 9737 9738 case $host_os in 9739 aix*) 9740 # All AIX code is PIC. 9741 if test "$host_cpu" = ia64; then 9742 # AIX 5 now supports IA64 processor 9743 lt_prog_compiler_static='-Bstatic' 9744 fi 9745 lt_prog_compiler_pic='-fPIC' 9746 ;; 9747 9748 amigaos*) 9749 case $host_cpu in 9750 powerpc) 9751 # see comment about AmigaOS4 .so support 9752 lt_prog_compiler_pic='-fPIC' 9753 ;; 9754 m68k) 9755 # FIXME: we need at least 68020 code to build shared libraries, but 9756 # adding the `-m68020' flag to GCC prevents building anything better, 9757 # like `-m68040'. 9758 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9759 ;; 9760 esac 9761 ;; 9762 9763 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9764 # PIC is the default for these OSes. 9765 ;; 9766 9767 mingw* | cygwin* | pw32* | os2* | cegcc*) 9768 # This hack is so that the source file can tell whether it is being 9769 # built for inclusion in a dll (and should export symbols for example). 9770 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9771 # (--disable-auto-import) libraries 9772 lt_prog_compiler_pic='-DDLL_EXPORT' 9773 ;; 9774 9775 darwin* | rhapsody*) 9776 # PIC is the default on this platform 9777 # Common symbols not allowed in MH_DYLIB files 9778 lt_prog_compiler_pic='-fno-common' 9779 ;; 9780 9781 haiku*) 9782 # PIC is the default for Haiku. 9783 # The "-static" flag exists, but is broken. 9784 lt_prog_compiler_static= 9785 ;; 9786 9787 hpux*) 9788 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9789 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9790 # sets the default TLS model and affects inlining. 9791 case $host_cpu in 9792 hppa*64*) 9793 # +Z the default 9794 ;; 9795 *) 9796 lt_prog_compiler_pic='-fPIC' 9797 ;; 9798 esac 9799 ;; 9800 9801 interix[3-9]*) 9802 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9803 # Instead, we relocate shared libraries at runtime. 9804 ;; 9805 9806 msdosdjgpp*) 9807 # Just because we use GCC doesn't mean we suddenly get shared libraries 9808 # on systems that don't support them. 9809 lt_prog_compiler_can_build_shared=no 9810 enable_shared=no 9811 ;; 9812 9813 *nto* | *qnx*) 9814 # QNX uses GNU C++, but need to define -shared option too, otherwise 9815 # it will coredump. 9816 lt_prog_compiler_pic='-fPIC -shared' 9817 ;; 9818 9819 sysv4*MP*) 9820 if test -d /usr/nec; then 9821 lt_prog_compiler_pic=-Kconform_pic 9822 fi 9823 ;; 9824 9825 *) 9826 lt_prog_compiler_pic='-fPIC' 9827 ;; 9828 esac 9829 9830 case $cc_basename in 9831 nvcc*) # Cuda Compiler Driver 2.2 9832 lt_prog_compiler_wl='-Xlinker ' 9833 lt_prog_compiler_pic='-Xcompiler -fPIC' 9834 ;; 9835 esac 9836 else 9837 # PORTME Check for flag to pass linker flags through the system compiler. 9838 case $host_os in 9839 aix*) 9840 lt_prog_compiler_wl='-Wl,' 9841 if test "$host_cpu" = ia64; then 9842 # AIX 5 now supports IA64 processor 9843 lt_prog_compiler_static='-Bstatic' 9844 else 9845 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9846 fi 9847 ;; 9848 9849 mingw* | cygwin* | pw32* | os2* | cegcc*) 9850 # This hack is so that the source file can tell whether it is being 9851 # built for inclusion in a dll (and should export symbols for example). 9852 lt_prog_compiler_pic='-DDLL_EXPORT' 9853 ;; 9854 9855 hpux9* | hpux10* | hpux11*) 9856 lt_prog_compiler_wl='-Wl,' 9857 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9858 # not for PA HP-UX. 9859 case $host_cpu in 9860 hppa*64*|ia64*) 9861 # +Z the default 9862 ;; 9863 *) 9864 lt_prog_compiler_pic='+Z' 9865 ;; 9866 esac 9867 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9868 lt_prog_compiler_static='${wl}-a ${wl}archive' 9869 ;; 9870 9871 irix5* | irix6* | nonstopux*) 9872 lt_prog_compiler_wl='-Wl,' 9873 # PIC (with -KPIC) is the default. 9874 lt_prog_compiler_static='-non_shared' 9875 ;; 9876 9877 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9878 case $cc_basename in 9879 # old Intel for x86_64 which still supported -KPIC. 9880 ecc*) 9881 lt_prog_compiler_wl='-Wl,' 9882 lt_prog_compiler_pic='-KPIC' 9883 lt_prog_compiler_static='-static' 9884 ;; 9885 # icc used to be incompatible with GCC. 9886 # ICC 10 doesn't accept -KPIC any more. 9887 icc* | ifort*) 9888 lt_prog_compiler_wl='-Wl,' 9889 lt_prog_compiler_pic='-fPIC' 9890 lt_prog_compiler_static='-static' 9891 ;; 9892 # Lahey Fortran 8.1. 9893 lf95*) 9894 lt_prog_compiler_wl='-Wl,' 9895 lt_prog_compiler_pic='--shared' 9896 lt_prog_compiler_static='--static' 9897 ;; 9898 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9899 # Portland Group compilers (*not* the Pentium gcc compiler, 9900 # which looks to be a dead project) 9901 lt_prog_compiler_wl='-Wl,' 9902 lt_prog_compiler_pic='-fpic' 9903 lt_prog_compiler_static='-Bstatic' 9904 ;; 9905 ccc*) 9906 lt_prog_compiler_wl='-Wl,' 9907 # All Alpha code is PIC. 9908 lt_prog_compiler_static='-non_shared' 9909 ;; 9910 xl* | bgxl* | bgf* | mpixl*) 9911 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9912 lt_prog_compiler_wl='-Wl,' 9913 lt_prog_compiler_pic='-qpic' 9914 lt_prog_compiler_static='-qstaticlink' 9915 ;; 9916 *) 9917 case `$CC -V 2>&1 | sed 5q` in 9918 *Sun\ F* | *Sun*Fortran*) 9919 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9920 lt_prog_compiler_pic='-KPIC' 9921 lt_prog_compiler_static='-Bstatic' 9922 lt_prog_compiler_wl='' 9923 ;; 9924 *Sun\ C*) 9925 # Sun C 5.9 9926 lt_prog_compiler_pic='-KPIC' 9927 lt_prog_compiler_static='-Bstatic' 9928 lt_prog_compiler_wl='-Wl,' 9929 ;; 9930 esac 9931 ;; 9932 esac 9933 ;; 9934 9935 newsos6) 9936 lt_prog_compiler_pic='-KPIC' 9937 lt_prog_compiler_static='-Bstatic' 9938 ;; 9939 9940 *nto* | *qnx*) 9941 # QNX uses GNU C++, but need to define -shared option too, otherwise 9942 # it will coredump. 9943 lt_prog_compiler_pic='-fPIC -shared' 9944 ;; 9945 9946 osf3* | osf4* | osf5*) 9947 lt_prog_compiler_wl='-Wl,' 9948 # All OSF/1 code is PIC. 9949 lt_prog_compiler_static='-non_shared' 9950 ;; 9951 9952 rdos*) 9953 lt_prog_compiler_static='-non_shared' 9954 ;; 9955 9956 solaris*) 9957 lt_prog_compiler_pic='-KPIC' 9958 lt_prog_compiler_static='-Bstatic' 9959 case $cc_basename in 9960 f77* | f90* | f95*) 9961 lt_prog_compiler_wl='-Qoption ld ';; 9962 *) 9963 lt_prog_compiler_wl='-Wl,';; 9964 esac 9965 ;; 9966 9967 sunos4*) 9968 lt_prog_compiler_wl='-Qoption ld ' 9969 lt_prog_compiler_pic='-PIC' 9970 lt_prog_compiler_static='-Bstatic' 9971 ;; 9972 9973 sysv4 | sysv4.2uw2* | sysv4.3*) 9974 lt_prog_compiler_wl='-Wl,' 9975 lt_prog_compiler_pic='-KPIC' 9976 lt_prog_compiler_static='-Bstatic' 9977 ;; 9978 9979 sysv4*MP*) 9980 if test -d /usr/nec ;then 9981 lt_prog_compiler_pic='-Kconform_pic' 9982 lt_prog_compiler_static='-Bstatic' 9983 fi 9984 ;; 9985 9986 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9987 lt_prog_compiler_wl='-Wl,' 9988 lt_prog_compiler_pic='-KPIC' 9989 lt_prog_compiler_static='-Bstatic' 9990 ;; 9991 9992 unicos*) 9993 lt_prog_compiler_wl='-Wl,' 9994 lt_prog_compiler_can_build_shared=no 9995 ;; 9996 9997 uts4*) 9998 lt_prog_compiler_pic='-pic' 9999 lt_prog_compiler_static='-Bstatic' 10000 ;; 10001 10002 *) 10003 lt_prog_compiler_can_build_shared=no 10004 ;; 10005 esac 10006 fi 10007 10008case $host_os in 10009 # For platforms which do not support PIC, -DPIC is meaningless: 10010 *djgpp*) 10011 lt_prog_compiler_pic= 10012 ;; 10013 *) 10014 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10015 ;; 10016esac 10017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 10018$as_echo "$lt_prog_compiler_pic" >&6; } 10019 10020 10021 10022 10023 10024 10025# 10026# Check to make sure the PIC flag actually works. 10027# 10028if test -n "$lt_prog_compiler_pic"; then 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10030$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10031if ${lt_cv_prog_compiler_pic_works+:} false; then : 10032 $as_echo_n "(cached) " >&6 10033else 10034 lt_cv_prog_compiler_pic_works=no 10035 ac_outfile=conftest.$ac_objext 10036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10037 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10038 # Insert the option either (1) after the last *FLAGS variable, or 10039 # (2) before a word containing "conftest.", or (3) at the end. 10040 # Note that $ac_compile itself does not contain backslashes and begins 10041 # with a dollar sign (not a hyphen), so the echo should work correctly. 10042 # The option is referenced via a variable to avoid confusing sed. 10043 lt_compile=`echo "$ac_compile" | $SED \ 10044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10046 -e 's:$: $lt_compiler_flag:'` 10047 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10048 (eval "$lt_compile" 2>conftest.err) 10049 ac_status=$? 10050 cat conftest.err >&5 10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10052 if (exit $ac_status) && test -s "$ac_outfile"; then 10053 # The compiler can only warn and ignore the option if not recognized 10054 # So say no if there are warnings other than the usual output. 10055 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10058 lt_cv_prog_compiler_pic_works=yes 10059 fi 10060 fi 10061 $RM conftest* 10062 10063fi 10064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10065$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10066 10067if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10068 case $lt_prog_compiler_pic in 10069 "" | " "*) ;; 10070 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10071 esac 10072else 10073 lt_prog_compiler_pic= 10074 lt_prog_compiler_can_build_shared=no 10075fi 10076 10077fi 10078 10079 10080 10081 10082 10083 10084# 10085# Check to make sure the static flag actually works. 10086# 10087wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10089$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10090if ${lt_cv_prog_compiler_static_works+:} false; then : 10091 $as_echo_n "(cached) " >&6 10092else 10093 lt_cv_prog_compiler_static_works=no 10094 save_LDFLAGS="$LDFLAGS" 10095 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10096 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10097 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10098 # The linker can only warn and ignore the option if not recognized 10099 # So say no if there are warnings 10100 if test -s conftest.err; then 10101 # Append any errors to the config.log. 10102 cat conftest.err 1>&5 10103 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10105 if diff conftest.exp conftest.er2 >/dev/null; then 10106 lt_cv_prog_compiler_static_works=yes 10107 fi 10108 else 10109 lt_cv_prog_compiler_static_works=yes 10110 fi 10111 fi 10112 $RM -r conftest* 10113 LDFLAGS="$save_LDFLAGS" 10114 10115fi 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10117$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10118 10119if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10120 : 10121else 10122 lt_prog_compiler_static= 10123fi 10124 10125 10126 10127 10128 10129 10130 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10132$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10133if ${lt_cv_prog_compiler_c_o+:} false; then : 10134 $as_echo_n "(cached) " >&6 10135else 10136 lt_cv_prog_compiler_c_o=no 10137 $RM -r conftest 2>/dev/null 10138 mkdir conftest 10139 cd conftest 10140 mkdir out 10141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10142 10143 lt_compiler_flag="-o out/conftest2.$ac_objext" 10144 # Insert the option either (1) after the last *FLAGS variable, or 10145 # (2) before a word containing "conftest.", or (3) at the end. 10146 # Note that $ac_compile itself does not contain backslashes and begins 10147 # with a dollar sign (not a hyphen), so the echo should work correctly. 10148 lt_compile=`echo "$ac_compile" | $SED \ 10149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10151 -e 's:$: $lt_compiler_flag:'` 10152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10153 (eval "$lt_compile" 2>out/conftest.err) 10154 ac_status=$? 10155 cat out/conftest.err >&5 10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10157 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10158 then 10159 # The compiler can only warn and ignore the option if not recognized 10160 # So say no if there are warnings 10161 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10162 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10163 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10164 lt_cv_prog_compiler_c_o=yes 10165 fi 10166 fi 10167 chmod u+w . 2>&5 10168 $RM conftest* 10169 # SGI C++ compiler will create directory out/ii_files/ for 10170 # template instantiation 10171 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10172 $RM out/* && rmdir out 10173 cd .. 10174 $RM -r conftest 10175 $RM conftest* 10176 10177fi 10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10179$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10180 10181 10182 10183 10184 10185 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10187$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10188if ${lt_cv_prog_compiler_c_o+:} false; then : 10189 $as_echo_n "(cached) " >&6 10190else 10191 lt_cv_prog_compiler_c_o=no 10192 $RM -r conftest 2>/dev/null 10193 mkdir conftest 10194 cd conftest 10195 mkdir out 10196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10197 10198 lt_compiler_flag="-o out/conftest2.$ac_objext" 10199 # Insert the option either (1) after the last *FLAGS variable, or 10200 # (2) before a word containing "conftest.", or (3) at the end. 10201 # Note that $ac_compile itself does not contain backslashes and begins 10202 # with a dollar sign (not a hyphen), so the echo should work correctly. 10203 lt_compile=`echo "$ac_compile" | $SED \ 10204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10206 -e 's:$: $lt_compiler_flag:'` 10207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10208 (eval "$lt_compile" 2>out/conftest.err) 10209 ac_status=$? 10210 cat out/conftest.err >&5 10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10212 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10213 then 10214 # The compiler can only warn and ignore the option if not recognized 10215 # So say no if there are warnings 10216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10217 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10218 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10219 lt_cv_prog_compiler_c_o=yes 10220 fi 10221 fi 10222 chmod u+w . 2>&5 10223 $RM conftest* 10224 # SGI C++ compiler will create directory out/ii_files/ for 10225 # template instantiation 10226 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10227 $RM out/* && rmdir out 10228 cd .. 10229 $RM -r conftest 10230 $RM conftest* 10231 10232fi 10233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10234$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10235 10236 10237 10238 10239hard_links="nottested" 10240if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10241 # do not overwrite the value of need_locks provided by the user 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10243$as_echo_n "checking if we can lock with hard links... " >&6; } 10244 hard_links=yes 10245 $RM conftest* 10246 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10247 touch conftest.a 10248 ln conftest.a conftest.b 2>&5 || hard_links=no 10249 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10251$as_echo "$hard_links" >&6; } 10252 if test "$hard_links" = no; then 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10254$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10255 need_locks=warn 10256 fi 10257else 10258 need_locks=no 10259fi 10260 10261 10262 10263 10264 10265 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10267$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10268 10269 runpath_var= 10270 allow_undefined_flag= 10271 always_export_symbols=no 10272 archive_cmds= 10273 archive_expsym_cmds= 10274 compiler_needs_object=no 10275 enable_shared_with_static_runtimes=no 10276 export_dynamic_flag_spec= 10277 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10278 hardcode_automatic=no 10279 hardcode_direct=no 10280 hardcode_direct_absolute=no 10281 hardcode_libdir_flag_spec= 10282 hardcode_libdir_flag_spec_ld= 10283 hardcode_libdir_separator= 10284 hardcode_minus_L=no 10285 hardcode_shlibpath_var=unsupported 10286 inherit_rpath=no 10287 link_all_deplibs=unknown 10288 module_cmds= 10289 module_expsym_cmds= 10290 old_archive_from_new_cmds= 10291 old_archive_from_expsyms_cmds= 10292 thread_safe_flag_spec= 10293 whole_archive_flag_spec= 10294 # include_expsyms should be a list of space-separated symbols to be *always* 10295 # included in the symbol list 10296 include_expsyms= 10297 # exclude_expsyms can be an extended regexp of symbols to exclude 10298 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10299 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10300 # as well as any symbol that contains `d'. 10301 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10302 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10303 # platforms (ab)use it in PIC code, but their linkers get confused if 10304 # the symbol is explicitly referenced. Since portable code cannot 10305 # rely on this symbol name, it's probably fine to never include it in 10306 # preloaded symbol tables. 10307 # Exclude shared library initialization/finalization symbols. 10308 extract_expsyms_cmds= 10309 10310 case $host_os in 10311 cygwin* | mingw* | pw32* | cegcc*) 10312 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10313 # When not using gcc, we currently assume that we are using 10314 # Microsoft Visual C++. 10315 if test "$GCC" != yes; then 10316 with_gnu_ld=no 10317 fi 10318 ;; 10319 interix*) 10320 # we just hope/assume this is gcc and not c89 (= MSVC++) 10321 with_gnu_ld=yes 10322 ;; 10323 openbsd*) 10324 with_gnu_ld=no 10325 ;; 10326 esac 10327 10328 ld_shlibs=yes 10329 10330 # On some targets, GNU ld is compatible enough with the native linker 10331 # that we're better off using the native interface for both. 10332 lt_use_gnu_ld_interface=no 10333 if test "$with_gnu_ld" = yes; then 10334 case $host_os in 10335 aix*) 10336 # The AIX port of GNU ld has always aspired to compatibility 10337 # with the native linker. However, as the warning in the GNU ld 10338 # block says, versions before 2.19.5* couldn't really create working 10339 # shared libraries, regardless of the interface used. 10340 case `$LD -v 2>&1` in 10341 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10342 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10343 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10344 *) 10345 lt_use_gnu_ld_interface=yes 10346 ;; 10347 esac 10348 ;; 10349 *) 10350 lt_use_gnu_ld_interface=yes 10351 ;; 10352 esac 10353 fi 10354 10355 if test "$lt_use_gnu_ld_interface" = yes; then 10356 # If archive_cmds runs LD, not CC, wlarc should be empty 10357 wlarc='${wl}' 10358 10359 # Set some defaults for GNU ld with shared library support. These 10360 # are reset later if shared libraries are not supported. Putting them 10361 # here allows them to be overridden if necessary. 10362 runpath_var=LD_RUN_PATH 10363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10364 export_dynamic_flag_spec='${wl}--export-dynamic' 10365 # ancient GNU ld didn't support --whole-archive et. al. 10366 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10367 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10368 else 10369 whole_archive_flag_spec= 10370 fi 10371 supports_anon_versioning=no 10372 case `$LD -v 2>&1` in 10373 *GNU\ gold*) supports_anon_versioning=yes ;; 10374 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10375 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10376 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10377 *\ 2.11.*) ;; # other 2.11 versions 10378 *) supports_anon_versioning=yes ;; 10379 esac 10380 10381 # See if GNU ld supports shared libraries. 10382 case $host_os in 10383 aix[3-9]*) 10384 # On AIX/PPC, the GNU linker is very broken 10385 if test "$host_cpu" != ia64; then 10386 ld_shlibs=no 10387 cat <<_LT_EOF 1>&2 10388 10389*** Warning: the GNU linker, at least up to release 2.19, is reported 10390*** to be unable to reliably create shared libraries on AIX. 10391*** Therefore, libtool is disabling shared libraries support. If you 10392*** really care for shared libraries, you may want to install binutils 10393*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10394*** You will then need to restart the configuration process. 10395 10396_LT_EOF 10397 fi 10398 ;; 10399 10400 amigaos*) 10401 case $host_cpu in 10402 powerpc) 10403 # see comment about AmigaOS4 .so support 10404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10405 archive_expsym_cmds='' 10406 ;; 10407 m68k) 10408 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)' 10409 hardcode_libdir_flag_spec='-L$libdir' 10410 hardcode_minus_L=yes 10411 ;; 10412 esac 10413 ;; 10414 10415 beos*) 10416 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10417 allow_undefined_flag=unsupported 10418 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10419 # support --undefined. This deserves some investigation. FIXME 10420 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10421 else 10422 ld_shlibs=no 10423 fi 10424 ;; 10425 10426 cygwin* | mingw* | pw32* | cegcc*) 10427 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10428 # as there is no search path for DLLs. 10429 hardcode_libdir_flag_spec='-L$libdir' 10430 export_dynamic_flag_spec='${wl}--export-all-symbols' 10431 allow_undefined_flag=unsupported 10432 always_export_symbols=no 10433 enable_shared_with_static_runtimes=yes 10434 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10435 10436 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10438 # If the export-symbols file already is a .def file (1st line 10439 # is EXPORTS), use it as is; otherwise, prepend... 10440 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10441 cp $export_symbols $output_objdir/$soname.def; 10442 else 10443 echo EXPORTS > $output_objdir/$soname.def; 10444 cat $export_symbols >> $output_objdir/$soname.def; 10445 fi~ 10446 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10447 else 10448 ld_shlibs=no 10449 fi 10450 ;; 10451 10452 haiku*) 10453 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10454 link_all_deplibs=yes 10455 ;; 10456 10457 interix[3-9]*) 10458 hardcode_direct=no 10459 hardcode_shlibpath_var=no 10460 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10461 export_dynamic_flag_spec='${wl}-E' 10462 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10463 # Instead, shared libraries are loaded at an image base (0x10000000 by 10464 # default) and relocated if they conflict, which is a slow very memory 10465 # consuming and fragmenting process. To avoid this, we pick a random, 10466 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10467 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10468 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10469 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' 10470 ;; 10471 10472 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 10473 tmp_diet=no 10474 if test "$host_os" = linux-dietlibc; then 10475 case $cc_basename in 10476 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10477 esac 10478 fi 10479 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10480 && test "$tmp_diet" = no 10481 then 10482 tmp_addflag=' $pic_flag' 10483 tmp_sharedflag='-shared' 10484 case $cc_basename,$host_cpu in 10485 pgcc*) # Portland Group C compiler 10486 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' 10487 tmp_addflag=' $pic_flag' 10488 ;; 10489 pgf77* | pgf90* | pgf95* | pgfortran*) 10490 # Portland Group f77 and f90 compilers 10491 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' 10492 tmp_addflag=' $pic_flag -Mnomain' ;; 10493 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10494 tmp_addflag=' -i_dynamic' ;; 10495 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10496 tmp_addflag=' -i_dynamic -nofor_main' ;; 10497 ifc* | ifort*) # Intel Fortran compiler 10498 tmp_addflag=' -nofor_main' ;; 10499 lf95*) # Lahey Fortran 8.1 10500 whole_archive_flag_spec= 10501 tmp_sharedflag='--shared' ;; 10502 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10503 tmp_sharedflag='-qmkshrobj' 10504 tmp_addflag= ;; 10505 nvcc*) # Cuda Compiler Driver 2.2 10506 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' 10507 compiler_needs_object=yes 10508 ;; 10509 esac 10510 case `$CC -V 2>&1 | sed 5q` in 10511 *Sun\ C*) # Sun C 5.9 10512 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' 10513 compiler_needs_object=yes 10514 tmp_sharedflag='-G' ;; 10515 *Sun\ F*) # Sun Fortran 8.3 10516 tmp_sharedflag='-G' ;; 10517 esac 10518 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10519 10520 if test "x$supports_anon_versioning" = xyes; then 10521 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10522 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10523 echo "local: *; };" >> $output_objdir/$libname.ver~ 10524 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10525 fi 10526 10527 case $cc_basename in 10528 xlf* | bgf* | bgxlf* | mpixlf*) 10529 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10530 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10531 hardcode_libdir_flag_spec= 10532 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10533 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 10534 if test "x$supports_anon_versioning" = xyes; then 10535 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10536 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10537 echo "local: *; };" >> $output_objdir/$libname.ver~ 10538 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10539 fi 10540 ;; 10541 esac 10542 else 10543 ld_shlibs=no 10544 fi 10545 ;; 10546 10547 netbsd*) 10548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10549 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10550 wlarc= 10551 else 10552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10554 fi 10555 ;; 10556 10557 solaris*) 10558 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10559 ld_shlibs=no 10560 cat <<_LT_EOF 1>&2 10561 10562*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10563*** create shared libraries on Solaris systems. Therefore, libtool 10564*** is disabling shared libraries support. We urge you to upgrade GNU 10565*** binutils to release 2.9.1 or newer. Another option is to modify 10566*** your PATH or compiler configuration so that the native linker is 10567*** used, and then restart. 10568 10569_LT_EOF 10570 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10573 else 10574 ld_shlibs=no 10575 fi 10576 ;; 10577 10578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10579 case `$LD -v 2>&1` in 10580 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10581 ld_shlibs=no 10582 cat <<_LT_EOF 1>&2 10583 10584*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10585*** reliably create shared libraries on SCO systems. Therefore, libtool 10586*** is disabling shared libraries support. We urge you to upgrade GNU 10587*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10588*** your PATH or compiler configuration so that the native linker is 10589*** used, and then restart. 10590 10591_LT_EOF 10592 ;; 10593 *) 10594 # For security reasons, it is highly recommended that you always 10595 # use absolute paths for naming shared libraries, and exclude the 10596 # DT_RUNPATH tag from executables and libraries. But doing so 10597 # requires that you compile everything twice, which is a pain. 10598 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10601 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10602 else 10603 ld_shlibs=no 10604 fi 10605 ;; 10606 esac 10607 ;; 10608 10609 sunos4*) 10610 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10611 wlarc= 10612 hardcode_direct=yes 10613 hardcode_shlibpath_var=no 10614 ;; 10615 10616 *) 10617 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10619 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10620 else 10621 ld_shlibs=no 10622 fi 10623 ;; 10624 esac 10625 10626 if test "$ld_shlibs" = no; then 10627 runpath_var= 10628 hardcode_libdir_flag_spec= 10629 export_dynamic_flag_spec= 10630 whole_archive_flag_spec= 10631 fi 10632 else 10633 # PORTME fill in a description of your system's linker (not GNU ld) 10634 case $host_os in 10635 aix3*) 10636 allow_undefined_flag=unsupported 10637 always_export_symbols=yes 10638 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' 10639 # Note: this linker hardcodes the directories in LIBPATH if there 10640 # are no directories specified by -L. 10641 hardcode_minus_L=yes 10642 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10643 # Neither direct hardcoding nor static linking is supported with a 10644 # broken collect2. 10645 hardcode_direct=unsupported 10646 fi 10647 ;; 10648 10649 aix[4-9]*) 10650 if test "$host_cpu" = ia64; then 10651 # On IA64, the linker does run time linking by default, so we don't 10652 # have to do anything special. 10653 aix_use_runtimelinking=no 10654 exp_sym_flag='-Bexport' 10655 no_entry_flag="" 10656 else 10657 # If we're using GNU nm, then we don't want the "-C" option. 10658 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10659 # Also, AIX nm treats weak defined symbols like other global 10660 # defined symbols, whereas GNU nm marks them as "W". 10661 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10662 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10663 else 10664 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10665 fi 10666 aix_use_runtimelinking=no 10667 10668 # Test if we are trying to use run time linking or normal 10669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10670 # need to do runtime linking. 10671 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10672 for ld_flag in $LDFLAGS; do 10673 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10674 aix_use_runtimelinking=yes 10675 break 10676 fi 10677 done 10678 ;; 10679 esac 10680 10681 exp_sym_flag='-bexport' 10682 no_entry_flag='-bnoentry' 10683 fi 10684 10685 # When large executables or shared objects are built, AIX ld can 10686 # have problems creating the table of contents. If linking a library 10687 # or program results in "error TOC overflow" add -mminimal-toc to 10688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10690 10691 archive_cmds='' 10692 hardcode_direct=yes 10693 hardcode_direct_absolute=yes 10694 hardcode_libdir_separator=':' 10695 link_all_deplibs=yes 10696 file_list_spec='${wl}-f,' 10697 10698 if test "$GCC" = yes; then 10699 case $host_os in aix4.[012]|aix4.[012].*) 10700 # We only want to do this on AIX 4.2 and lower, the check 10701 # below for broken collect2 doesn't work under 4.3+ 10702 collect2name=`${CC} -print-prog-name=collect2` 10703 if test -f "$collect2name" && 10704 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10705 then 10706 # We have reworked collect2 10707 : 10708 else 10709 # We have old collect2 10710 hardcode_direct=unsupported 10711 # It fails to find uninstalled libraries when the uninstalled 10712 # path is not listed in the libpath. Setting hardcode_minus_L 10713 # to unsupported forces relinking 10714 hardcode_minus_L=yes 10715 hardcode_libdir_flag_spec='-L$libdir' 10716 hardcode_libdir_separator= 10717 fi 10718 ;; 10719 esac 10720 shared_flag='-shared' 10721 if test "$aix_use_runtimelinking" = yes; then 10722 shared_flag="$shared_flag "'${wl}-G' 10723 fi 10724 else 10725 # not using gcc 10726 if test "$host_cpu" = ia64; then 10727 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10728 # chokes on -Wl,-G. The following line is correct: 10729 shared_flag='-G' 10730 else 10731 if test "$aix_use_runtimelinking" = yes; then 10732 shared_flag='${wl}-G' 10733 else 10734 shared_flag='${wl}-bM:SRE' 10735 fi 10736 fi 10737 fi 10738 10739 export_dynamic_flag_spec='${wl}-bexpall' 10740 # It seems that -bexpall does not export symbols beginning with 10741 # underscore (_), so it is better to generate a list of symbols to export. 10742 always_export_symbols=yes 10743 if test "$aix_use_runtimelinking" = yes; then 10744 # Warning - without using the other runtime loading flags (-brtl), 10745 # -berok will link without error, but may produce a broken library. 10746 allow_undefined_flag='-berok' 10747 # Determine the default libpath from the value encoded in an 10748 # empty executable. 10749 if test x$gcc_no_link = xyes; then 10750 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10751fi 10752cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10753/* end confdefs.h. */ 10754 10755int 10756main () 10757{ 10758 10759 ; 10760 return 0; 10761} 10762_ACEOF 10763if ac_fn_c_try_link "$LINENO"; then : 10764 10765lt_aix_libpath_sed=' 10766 /Import File Strings/,/^$/ { 10767 /^0/ { 10768 s/^0 *\(.*\)$/\1/ 10769 p 10770 } 10771 }' 10772aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10773# Check for a 64-bit object if we didn't find anything. 10774if test -z "$aix_libpath"; then 10775 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10776fi 10777fi 10778rm -f core conftest.err conftest.$ac_objext \ 10779 conftest$ac_exeext conftest.$ac_ext 10780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10781 10782 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10783 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10784 else 10785 if test "$host_cpu" = ia64; then 10786 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10787 allow_undefined_flag="-z nodefs" 10788 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" 10789 else 10790 # Determine the default libpath from the value encoded in an 10791 # empty executable. 10792 if test x$gcc_no_link = xyes; then 10793 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10794fi 10795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10796/* end confdefs.h. */ 10797 10798int 10799main () 10800{ 10801 10802 ; 10803 return 0; 10804} 10805_ACEOF 10806if ac_fn_c_try_link "$LINENO"; then : 10807 10808lt_aix_libpath_sed=' 10809 /Import File Strings/,/^$/ { 10810 /^0/ { 10811 s/^0 *\(.*\)$/\1/ 10812 p 10813 } 10814 }' 10815aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10816# Check for a 64-bit object if we didn't find anything. 10817if test -z "$aix_libpath"; then 10818 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10819fi 10820fi 10821rm -f core conftest.err conftest.$ac_objext \ 10822 conftest$ac_exeext conftest.$ac_ext 10823if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10824 10825 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10826 # Warning - without using the other run time loading flags, 10827 # -berok will link without error, but may produce a broken library. 10828 no_undefined_flag=' ${wl}-bernotok' 10829 allow_undefined_flag=' ${wl}-berok' 10830 if test "$with_gnu_ld" = yes; then 10831 # We only use this code for GNU lds that support --whole-archive. 10832 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10833 else 10834 # Exported symbols can be pulled into shared objects from archives 10835 whole_archive_flag_spec='$convenience' 10836 fi 10837 archive_cmds_need_lc=yes 10838 # This is similar to how AIX traditionally builds its shared libraries. 10839 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10840 fi 10841 fi 10842 ;; 10843 10844 amigaos*) 10845 case $host_cpu in 10846 powerpc) 10847 # see comment about AmigaOS4 .so support 10848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10849 archive_expsym_cmds='' 10850 ;; 10851 m68k) 10852 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)' 10853 hardcode_libdir_flag_spec='-L$libdir' 10854 hardcode_minus_L=yes 10855 ;; 10856 esac 10857 ;; 10858 10859 bsdi[45]*) 10860 export_dynamic_flag_spec=-rdynamic 10861 ;; 10862 10863 cygwin* | mingw* | pw32* | cegcc*) 10864 # When not using gcc, we currently assume that we are using 10865 # Microsoft Visual C++. 10866 # hardcode_libdir_flag_spec is actually meaningless, as there is 10867 # no search path for DLLs. 10868 hardcode_libdir_flag_spec=' ' 10869 allow_undefined_flag=unsupported 10870 # Tell ltmain to make .lib files, not .a files. 10871 libext=lib 10872 # Tell ltmain to make .dll files, not .so files. 10873 shrext_cmds=".dll" 10874 # FIXME: Setting linknames here is a bad hack. 10875 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10876 # The linker will automatically build a .lib file if we build a DLL. 10877 old_archive_from_new_cmds='true' 10878 # FIXME: Should let the user specify the lib program. 10879 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10880 fix_srcfile_path='`cygpath -w "$srcfile"`' 10881 enable_shared_with_static_runtimes=yes 10882 ;; 10883 10884 darwin* | rhapsody*) 10885 10886 10887 archive_cmds_need_lc=no 10888 hardcode_direct=no 10889 hardcode_automatic=yes 10890 hardcode_shlibpath_var=unsupported 10891 if test "$lt_cv_ld_force_load" = "yes"; then 10892 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\"`' 10893 else 10894 whole_archive_flag_spec='' 10895 fi 10896 link_all_deplibs=yes 10897 allow_undefined_flag="$_lt_dar_allow_undefined" 10898 case $cc_basename in 10899 ifort*) _lt_dar_can_shared=yes ;; 10900 *) _lt_dar_can_shared=$GCC ;; 10901 esac 10902 if test "$_lt_dar_can_shared" = "yes"; then 10903 output_verbose_link_cmd=func_echo_all 10904 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10905 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10906 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}" 10907 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}" 10908 10909 else 10910 ld_shlibs=no 10911 fi 10912 10913 ;; 10914 10915 dgux*) 10916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10917 hardcode_libdir_flag_spec='-L$libdir' 10918 hardcode_shlibpath_var=no 10919 ;; 10920 10921 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10922 # support. Future versions do this automatically, but an explicit c++rt0.o 10923 # does not break anything, and helps significantly (at the cost of a little 10924 # extra space). 10925 freebsd2.2*) 10926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10927 hardcode_libdir_flag_spec='-R$libdir' 10928 hardcode_direct=yes 10929 hardcode_shlibpath_var=no 10930 ;; 10931 10932 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10933 freebsd2.*) 10934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10935 hardcode_direct=yes 10936 hardcode_minus_L=yes 10937 hardcode_shlibpath_var=no 10938 ;; 10939 10940 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10941 freebsd* | dragonfly*) 10942 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10943 hardcode_libdir_flag_spec='-R$libdir' 10944 hardcode_direct=yes 10945 hardcode_shlibpath_var=no 10946 ;; 10947 10948 hpux9*) 10949 if test "$GCC" = yes; then 10950 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10951 else 10952 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10953 fi 10954 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10955 hardcode_libdir_separator=: 10956 hardcode_direct=yes 10957 10958 # hardcode_minus_L: Not really in the search PATH, 10959 # but as the default location of the library. 10960 hardcode_minus_L=yes 10961 export_dynamic_flag_spec='${wl}-E' 10962 ;; 10963 10964 hpux10*) 10965 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10966 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10967 else 10968 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10969 fi 10970 if test "$with_gnu_ld" = no; then 10971 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10972 hardcode_libdir_flag_spec_ld='+b $libdir' 10973 hardcode_libdir_separator=: 10974 hardcode_direct=yes 10975 hardcode_direct_absolute=yes 10976 export_dynamic_flag_spec='${wl}-E' 10977 # hardcode_minus_L: Not really in the search PATH, 10978 # but as the default location of the library. 10979 hardcode_minus_L=yes 10980 fi 10981 ;; 10982 10983 hpux11*) 10984 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10985 case $host_cpu in 10986 hppa*64*) 10987 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10988 ;; 10989 ia64*) 10990 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10991 ;; 10992 *) 10993 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10994 ;; 10995 esac 10996 else 10997 case $host_cpu in 10998 hppa*64*) 10999 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11000 ;; 11001 ia64*) 11002 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11003 ;; 11004 *) 11005 11006 # Older versions of the 11.00 compiler do not understand -b yet 11007 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11009$as_echo_n "checking if $CC understands -b... " >&6; } 11010if ${lt_cv_prog_compiler__b+:} false; then : 11011 $as_echo_n "(cached) " >&6 11012else 11013 lt_cv_prog_compiler__b=no 11014 save_LDFLAGS="$LDFLAGS" 11015 LDFLAGS="$LDFLAGS -b" 11016 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11017 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11018 # The linker can only warn and ignore the option if not recognized 11019 # So say no if there are warnings 11020 if test -s conftest.err; then 11021 # Append any errors to the config.log. 11022 cat conftest.err 1>&5 11023 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11025 if diff conftest.exp conftest.er2 >/dev/null; then 11026 lt_cv_prog_compiler__b=yes 11027 fi 11028 else 11029 lt_cv_prog_compiler__b=yes 11030 fi 11031 fi 11032 $RM -r conftest* 11033 LDFLAGS="$save_LDFLAGS" 11034 11035fi 11036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11037$as_echo "$lt_cv_prog_compiler__b" >&6; } 11038 11039if test x"$lt_cv_prog_compiler__b" = xyes; then 11040 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11041else 11042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11043fi 11044 11045 ;; 11046 esac 11047 fi 11048 if test "$with_gnu_ld" = no; then 11049 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11050 hardcode_libdir_separator=: 11051 11052 case $host_cpu in 11053 hppa*64*|ia64*) 11054 hardcode_direct=no 11055 hardcode_shlibpath_var=no 11056 ;; 11057 *) 11058 hardcode_direct=yes 11059 hardcode_direct_absolute=yes 11060 export_dynamic_flag_spec='${wl}-E' 11061 11062 # hardcode_minus_L: Not really in the search PATH, 11063 # but as the default location of the library. 11064 hardcode_minus_L=yes 11065 ;; 11066 esac 11067 fi 11068 ;; 11069 11070 irix5* | irix6* | nonstopux*) 11071 if test "$GCC" = yes; then 11072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11073 # Try to use the -exported_symbol ld option, if it does not 11074 # work, assume that -exports_file does not work either and 11075 # implicitly export all symbols. 11076 save_LDFLAGS="$LDFLAGS" 11077 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11078 if test x$gcc_no_link = xyes; then 11079 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11080fi 11081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11082/* end confdefs.h. */ 11083int foo(void) {} 11084_ACEOF 11085if ac_fn_c_try_link "$LINENO"; then : 11086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 11087 11088fi 11089rm -f core conftest.err conftest.$ac_objext \ 11090 conftest$ac_exeext conftest.$ac_ext 11091 LDFLAGS="$save_LDFLAGS" 11092 else 11093 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' 11094 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' 11095 fi 11096 archive_cmds_need_lc='no' 11097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11098 hardcode_libdir_separator=: 11099 inherit_rpath=yes 11100 link_all_deplibs=yes 11101 ;; 11102 11103 netbsd*) 11104 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11106 else 11107 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11108 fi 11109 hardcode_libdir_flag_spec='-R$libdir' 11110 hardcode_direct=yes 11111 hardcode_shlibpath_var=no 11112 ;; 11113 11114 newsos6) 11115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11116 hardcode_direct=yes 11117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11118 hardcode_libdir_separator=: 11119 hardcode_shlibpath_var=no 11120 ;; 11121 11122 *nto* | *qnx*) 11123 ;; 11124 11125 openbsd*) 11126 if test -f /usr/libexec/ld.so; then 11127 hardcode_direct=yes 11128 hardcode_shlibpath_var=no 11129 hardcode_direct_absolute=yes 11130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11131 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11132 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11133 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11134 export_dynamic_flag_spec='${wl}-E' 11135 else 11136 case $host_os in 11137 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11139 hardcode_libdir_flag_spec='-R$libdir' 11140 ;; 11141 *) 11142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11143 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11144 ;; 11145 esac 11146 fi 11147 else 11148 ld_shlibs=no 11149 fi 11150 ;; 11151 11152 os2*) 11153 hardcode_libdir_flag_spec='-L$libdir' 11154 hardcode_minus_L=yes 11155 allow_undefined_flag=unsupported 11156 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11157 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11158 ;; 11159 11160 osf3*) 11161 if test "$GCC" = yes; then 11162 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11163 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' 11164 else 11165 allow_undefined_flag=' -expect_unresolved \*' 11166 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' 11167 fi 11168 archive_cmds_need_lc='no' 11169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11170 hardcode_libdir_separator=: 11171 ;; 11172 11173 osf4* | osf5*) # as osf3* with the addition of -msym flag 11174 if test "$GCC" = yes; then 11175 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11176 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11178 else 11179 allow_undefined_flag=' -expect_unresolved \*' 11180 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' 11181 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~ 11182 $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' 11183 11184 # Both c and cxx compiler support -rpath directly 11185 hardcode_libdir_flag_spec='-rpath $libdir' 11186 fi 11187 archive_cmds_need_lc='no' 11188 hardcode_libdir_separator=: 11189 ;; 11190 11191 solaris*) 11192 no_undefined_flag=' -z defs' 11193 if test "$GCC" = yes; then 11194 wlarc='${wl}' 11195 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11196 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11197 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11198 else 11199 case `$CC -V 2>&1` in 11200 *"Compilers 5.0"*) 11201 wlarc='' 11202 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11203 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11204 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11205 ;; 11206 *) 11207 wlarc='${wl}' 11208 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11209 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11210 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11211 ;; 11212 esac 11213 fi 11214 hardcode_libdir_flag_spec='-R$libdir' 11215 hardcode_shlibpath_var=no 11216 case $host_os in 11217 solaris2.[0-5] | solaris2.[0-5].*) ;; 11218 *) 11219 # The compiler driver will combine and reorder linker options, 11220 # but understands `-z linker_flag'. GCC discards it without `$wl', 11221 # but is careful enough not to reorder. 11222 # Supported since Solaris 2.6 (maybe 2.5.1?) 11223 if test "$GCC" = yes; then 11224 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11225 else 11226 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11227 fi 11228 ;; 11229 esac 11230 link_all_deplibs=yes 11231 ;; 11232 11233 sunos4*) 11234 if test "x$host_vendor" = xsequent; then 11235 # Use $CC to link under sequent, because it throws in some extra .o 11236 # files that make .init and .fini sections work. 11237 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11238 else 11239 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11240 fi 11241 hardcode_libdir_flag_spec='-L$libdir' 11242 hardcode_direct=yes 11243 hardcode_minus_L=yes 11244 hardcode_shlibpath_var=no 11245 ;; 11246 11247 sysv4) 11248 case $host_vendor in 11249 sni) 11250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11251 hardcode_direct=yes # is this really true??? 11252 ;; 11253 siemens) 11254 ## LD is ld it makes a PLAMLIB 11255 ## CC just makes a GrossModule. 11256 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11257 reload_cmds='$CC -r -o $output$reload_objs' 11258 hardcode_direct=no 11259 ;; 11260 motorola) 11261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11262 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11263 ;; 11264 esac 11265 runpath_var='LD_RUN_PATH' 11266 hardcode_shlibpath_var=no 11267 ;; 11268 11269 sysv4.3*) 11270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11271 hardcode_shlibpath_var=no 11272 export_dynamic_flag_spec='-Bexport' 11273 ;; 11274 11275 sysv4*MP*) 11276 if test -d /usr/nec; then 11277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11278 hardcode_shlibpath_var=no 11279 runpath_var=LD_RUN_PATH 11280 hardcode_runpath_var=yes 11281 ld_shlibs=yes 11282 fi 11283 ;; 11284 11285 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11286 no_undefined_flag='${wl}-z,text' 11287 archive_cmds_need_lc=no 11288 hardcode_shlibpath_var=no 11289 runpath_var='LD_RUN_PATH' 11290 11291 if test "$GCC" = yes; then 11292 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11293 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11294 else 11295 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11296 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11297 fi 11298 ;; 11299 11300 sysv5* | sco3.2v5* | sco5v6*) 11301 # Note: We can NOT use -z defs as we might desire, because we do not 11302 # link with -lc, and that would cause any symbols used from libc to 11303 # always be unresolved, which means just about no library would 11304 # ever link correctly. If we're not using GNU ld we use -z text 11305 # though, which does catch some bad symbols but isn't as heavy-handed 11306 # as -z defs. 11307 no_undefined_flag='${wl}-z,text' 11308 allow_undefined_flag='${wl}-z,nodefs' 11309 archive_cmds_need_lc=no 11310 hardcode_shlibpath_var=no 11311 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11312 hardcode_libdir_separator=':' 11313 link_all_deplibs=yes 11314 export_dynamic_flag_spec='${wl}-Bexport' 11315 runpath_var='LD_RUN_PATH' 11316 11317 if test "$GCC" = yes; then 11318 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11319 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11320 else 11321 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11322 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11323 fi 11324 ;; 11325 11326 uts4*) 11327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11328 hardcode_libdir_flag_spec='-L$libdir' 11329 hardcode_shlibpath_var=no 11330 ;; 11331 11332 *) 11333 ld_shlibs=no 11334 ;; 11335 esac 11336 11337 if test x$host_vendor = xsni; then 11338 case $host in 11339 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11340 export_dynamic_flag_spec='${wl}-Blargedynsym' 11341 ;; 11342 esac 11343 fi 11344 fi 11345 11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11347$as_echo "$ld_shlibs" >&6; } 11348test "$ld_shlibs" = no && can_build_shared=no 11349 11350with_gnu_ld=$with_gnu_ld 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366# 11367# Do we need to explicitly link libc? 11368# 11369case "x$archive_cmds_need_lc" in 11370x|xyes) 11371 # Assume -lc should be added 11372 archive_cmds_need_lc=yes 11373 11374 if test "$enable_shared" = yes && test "$GCC" = yes; then 11375 case $archive_cmds in 11376 *'~'*) 11377 # FIXME: we may have to deal with multi-command sequences. 11378 ;; 11379 '$CC '*) 11380 # Test whether the compiler implicitly links with -lc since on some 11381 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11382 # to ld, don't add -lc before -lgcc. 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11384$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11385if ${lt_cv_archive_cmds_need_lc+:} false; then : 11386 $as_echo_n "(cached) " >&6 11387else 11388 $RM conftest* 11389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11390 11391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11392 (eval $ac_compile) 2>&5 11393 ac_status=$? 11394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11395 test $ac_status = 0; } 2>conftest.err; then 11396 soname=conftest 11397 lib=conftest 11398 libobjs=conftest.$ac_objext 11399 deplibs= 11400 wl=$lt_prog_compiler_wl 11401 pic_flag=$lt_prog_compiler_pic 11402 compiler_flags=-v 11403 linker_flags=-v 11404 verstring= 11405 output_objdir=. 11406 libname=conftest 11407 lt_save_allow_undefined_flag=$allow_undefined_flag 11408 allow_undefined_flag= 11409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11410 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11411 ac_status=$? 11412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11413 test $ac_status = 0; } 11414 then 11415 lt_cv_archive_cmds_need_lc=no 11416 else 11417 lt_cv_archive_cmds_need_lc=yes 11418 fi 11419 allow_undefined_flag=$lt_save_allow_undefined_flag 11420 else 11421 cat conftest.err 1>&5 11422 fi 11423 $RM conftest* 11424 11425fi 11426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11427$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11428 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11429 ;; 11430 esac 11431 fi 11432 ;; 11433esac 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11592$as_echo_n "checking dynamic linker characteristics... " >&6; } 11593 11594if test "$GCC" = yes; then 11595 case $host_os in 11596 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11597 *) lt_awk_arg="/^libraries:/" ;; 11598 esac 11599 case $host_os in 11600 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11601 *) lt_sed_strip_eq="s,=/,/,g" ;; 11602 esac 11603 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11604 case $lt_search_path_spec in 11605 *\;*) 11606 # if the path contains ";" then we assume it to be the separator 11607 # otherwise default to the standard path separator (i.e. ":") - it is 11608 # assumed that no part of a normal pathname contains ";" but that should 11609 # okay in the real world where ";" in dirpaths is itself problematic. 11610 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11611 ;; 11612 *) 11613 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11614 ;; 11615 esac 11616 # Ok, now we have the path, separated by spaces, we can step through it 11617 # and add multilib dir if necessary. 11618 lt_tmp_lt_search_path_spec= 11619 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11620 for lt_sys_path in $lt_search_path_spec; do 11621 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11623 else 11624 test -d "$lt_sys_path" && \ 11625 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11626 fi 11627 done 11628 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11629BEGIN {RS=" "; FS="/|\n";} { 11630 lt_foo=""; 11631 lt_count=0; 11632 for (lt_i = NF; lt_i > 0; lt_i--) { 11633 if ($lt_i != "" && $lt_i != ".") { 11634 if ($lt_i == "..") { 11635 lt_count++; 11636 } else { 11637 if (lt_count == 0) { 11638 lt_foo="/" $lt_i lt_foo; 11639 } else { 11640 lt_count--; 11641 } 11642 } 11643 } 11644 } 11645 if (lt_foo != "") { lt_freq[lt_foo]++; } 11646 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11647}'` 11648 # AWK program above erroneously prepends '/' to C:/dos/paths 11649 # for these hosts. 11650 case $host_os in 11651 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11652 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11653 esac 11654 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11655else 11656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11657fi 11658library_names_spec= 11659libname_spec='lib$name' 11660soname_spec= 11661shrext_cmds=".so" 11662postinstall_cmds= 11663postuninstall_cmds= 11664finish_cmds= 11665finish_eval= 11666shlibpath_var= 11667shlibpath_overrides_runpath=unknown 11668version_type=none 11669dynamic_linker="$host_os ld.so" 11670sys_lib_dlsearch_path_spec="/lib /usr/lib" 11671need_lib_prefix=unknown 11672hardcode_into_libs=no 11673 11674# when you set need_version to no, make sure it does not cause -set_version 11675# flags to be left without arguments 11676need_version=unknown 11677 11678case $host_os in 11679aix3*) 11680 version_type=linux 11681 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11682 shlibpath_var=LIBPATH 11683 11684 # AIX 3 has no versioning support, so we append a major version to the name. 11685 soname_spec='${libname}${release}${shared_ext}$major' 11686 ;; 11687 11688aix[4-9]*) 11689 version_type=linux 11690 need_lib_prefix=no 11691 need_version=no 11692 hardcode_into_libs=yes 11693 if test "$host_cpu" = ia64; then 11694 # AIX 5 supports IA64 11695 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11696 shlibpath_var=LD_LIBRARY_PATH 11697 else 11698 # With GCC up to 2.95.x, collect2 would create an import file 11699 # for dependence libraries. The import file would start with 11700 # the line `#! .'. This would cause the generated library to 11701 # depend on `.', always an invalid library. This was fixed in 11702 # development snapshots of GCC prior to 3.0. 11703 case $host_os in 11704 aix4 | aix4.[01] | aix4.[01].*) 11705 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11706 echo ' yes ' 11707 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11708 : 11709 else 11710 can_build_shared=no 11711 fi 11712 ;; 11713 esac 11714 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11715 # soname into executable. Probably we can add versioning support to 11716 # collect2, so additional links can be useful in future. 11717 if test "$aix_use_runtimelinking" = yes; then 11718 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11719 # instead of lib<name>.a to let people know that these are not 11720 # typical AIX shared libraries. 11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11722 else 11723 # We preserve .a as extension for shared libraries through AIX4.2 11724 # and later when we are not doing run time linking. 11725 library_names_spec='${libname}${release}.a $libname.a' 11726 soname_spec='${libname}${release}${shared_ext}$major' 11727 fi 11728 shlibpath_var=LIBPATH 11729 fi 11730 ;; 11731 11732amigaos*) 11733 case $host_cpu in 11734 powerpc) 11735 # Since July 2007 AmigaOS4 officially supports .so libraries. 11736 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11738 ;; 11739 m68k) 11740 library_names_spec='$libname.ixlibrary $libname.a' 11741 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11742 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11743 ;; 11744 esac 11745 ;; 11746 11747beos*) 11748 library_names_spec='${libname}${shared_ext}' 11749 dynamic_linker="$host_os ld.so" 11750 shlibpath_var=LIBRARY_PATH 11751 ;; 11752 11753bsdi[45]*) 11754 version_type=linux 11755 need_version=no 11756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11757 soname_spec='${libname}${release}${shared_ext}$major' 11758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11759 shlibpath_var=LD_LIBRARY_PATH 11760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11762 # the default ld.so.conf also contains /usr/contrib/lib and 11763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11764 # libtool to hard-code these into programs 11765 ;; 11766 11767cygwin* | mingw* | pw32* | cegcc*) 11768 version_type=windows 11769 shrext_cmds=".dll" 11770 need_version=no 11771 need_lib_prefix=no 11772 11773 case $GCC,$host_os in 11774 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 11775 library_names_spec='$libname.dll.a' 11776 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11777 postinstall_cmds='base_file=`basename \${file}`~ 11778 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11779 dldir=$destdir/`dirname \$dlpath`~ 11780 test -d \$dldir || mkdir -p \$dldir~ 11781 $install_prog $dir/$dlname \$dldir/$dlname~ 11782 chmod a+x \$dldir/$dlname~ 11783 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11784 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11785 fi' 11786 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11787 dlpath=$dir/\$dldll~ 11788 $RM \$dlpath' 11789 shlibpath_overrides_runpath=yes 11790 11791 case $host_os in 11792 cygwin*) 11793 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11794 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11795 11796 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11797 ;; 11798 mingw* | cegcc*) 11799 # MinGW DLLs use traditional 'lib' prefix 11800 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11801 ;; 11802 pw32*) 11803 # pw32 DLLs use 'pw' prefix rather than 'lib' 11804 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11805 ;; 11806 esac 11807 ;; 11808 11809 *) 11810 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11811 ;; 11812 esac 11813 dynamic_linker='Win32 ld.exe' 11814 # FIXME: first we should search . and the directory the executable is in 11815 shlibpath_var=PATH 11816 ;; 11817 11818darwin* | rhapsody*) 11819 dynamic_linker="$host_os dyld" 11820 version_type=darwin 11821 need_lib_prefix=no 11822 need_version=no 11823 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11824 soname_spec='${libname}${release}${major}$shared_ext' 11825 shlibpath_overrides_runpath=yes 11826 shlibpath_var=DYLD_LIBRARY_PATH 11827 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11828 11829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11830 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11831 ;; 11832 11833dgux*) 11834 version_type=linux 11835 need_lib_prefix=no 11836 need_version=no 11837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11838 soname_spec='${libname}${release}${shared_ext}$major' 11839 shlibpath_var=LD_LIBRARY_PATH 11840 ;; 11841 11842freebsd* | dragonfly*) 11843 # DragonFly does not have aout. When/if they implement a new 11844 # versioning mechanism, adjust this. 11845 if test -x /usr/bin/objformat; then 11846 objformat=`/usr/bin/objformat` 11847 else 11848 case $host_os in 11849 freebsd[23].*) objformat=aout ;; 11850 *) objformat=elf ;; 11851 esac 11852 fi 11853 version_type=freebsd-$objformat 11854 case $version_type in 11855 freebsd-elf*) 11856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11857 need_version=no 11858 need_lib_prefix=no 11859 ;; 11860 freebsd-*) 11861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11862 need_version=yes 11863 ;; 11864 esac 11865 shlibpath_var=LD_LIBRARY_PATH 11866 case $host_os in 11867 freebsd2.*) 11868 shlibpath_overrides_runpath=yes 11869 ;; 11870 freebsd3.[01]* | freebsdelf3.[01]*) 11871 shlibpath_overrides_runpath=yes 11872 hardcode_into_libs=yes 11873 ;; 11874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11876 shlibpath_overrides_runpath=no 11877 hardcode_into_libs=yes 11878 ;; 11879 *) # from 4.6 on, and DragonFly 11880 shlibpath_overrides_runpath=yes 11881 hardcode_into_libs=yes 11882 ;; 11883 esac 11884 ;; 11885 11886gnu*) 11887 version_type=linux 11888 need_lib_prefix=no 11889 need_version=no 11890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11891 soname_spec='${libname}${release}${shared_ext}$major' 11892 shlibpath_var=LD_LIBRARY_PATH 11893 hardcode_into_libs=yes 11894 ;; 11895 11896haiku*) 11897 version_type=linux 11898 need_lib_prefix=no 11899 need_version=no 11900 dynamic_linker="$host_os runtime_loader" 11901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11902 soname_spec='${libname}${release}${shared_ext}$major' 11903 shlibpath_var=LIBRARY_PATH 11904 shlibpath_overrides_runpath=yes 11905 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 11906 hardcode_into_libs=yes 11907 ;; 11908 11909hpux9* | hpux10* | hpux11*) 11910 # Give a soname corresponding to the major version so that dld.sl refuses to 11911 # link against other versions. 11912 version_type=sunos 11913 need_lib_prefix=no 11914 need_version=no 11915 case $host_cpu in 11916 ia64*) 11917 shrext_cmds='.so' 11918 hardcode_into_libs=yes 11919 dynamic_linker="$host_os dld.so" 11920 shlibpath_var=LD_LIBRARY_PATH 11921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11923 soname_spec='${libname}${release}${shared_ext}$major' 11924 if test "X$HPUX_IA64_MODE" = X32; then 11925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11926 else 11927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11928 fi 11929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11930 ;; 11931 hppa*64*) 11932 shrext_cmds='.sl' 11933 hardcode_into_libs=yes 11934 dynamic_linker="$host_os dld.sl" 11935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11938 soname_spec='${libname}${release}${shared_ext}$major' 11939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11941 ;; 11942 *) 11943 shrext_cmds='.sl' 11944 dynamic_linker="$host_os dld.sl" 11945 shlibpath_var=SHLIB_PATH 11946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11948 soname_spec='${libname}${release}${shared_ext}$major' 11949 ;; 11950 esac 11951 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11952 postinstall_cmds='chmod 555 $lib' 11953 # or fails outright, so override atomically: 11954 install_override_mode=555 11955 ;; 11956 11957interix[3-9]*) 11958 version_type=linux 11959 need_lib_prefix=no 11960 need_version=no 11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11962 soname_spec='${libname}${release}${shared_ext}$major' 11963 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11964 shlibpath_var=LD_LIBRARY_PATH 11965 shlibpath_overrides_runpath=no 11966 hardcode_into_libs=yes 11967 ;; 11968 11969irix5* | irix6* | nonstopux*) 11970 case $host_os in 11971 nonstopux*) version_type=nonstopux ;; 11972 *) 11973 if test "$lt_cv_prog_gnu_ld" = yes; then 11974 version_type=linux 11975 else 11976 version_type=irix 11977 fi ;; 11978 esac 11979 need_lib_prefix=no 11980 need_version=no 11981 soname_spec='${libname}${release}${shared_ext}$major' 11982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11983 case $host_os in 11984 irix5* | nonstopux*) 11985 libsuff= shlibsuff= 11986 ;; 11987 *) 11988 case $LD in # libtool.m4 will add one of these switches to LD 11989 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11990 libsuff= shlibsuff= libmagic=32-bit;; 11991 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11992 libsuff=32 shlibsuff=N32 libmagic=N32;; 11993 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11994 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11995 *) libsuff= shlibsuff= libmagic=never-match;; 11996 esac 11997 ;; 11998 esac 11999 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12000 shlibpath_overrides_runpath=no 12001 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12002 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12003 hardcode_into_libs=yes 12004 ;; 12005 12006# No shared lib support for Linux oldld, aout, or coff. 12007linux*oldld* | linux*aout* | linux*coff*) 12008 dynamic_linker=no 12009 ;; 12010 12011# This must be Linux ELF. 12012 12013# uclinux* changes (here and below) have been submitted to the libtool 12014# project, but have not yet been accepted: they are GCC-local changes 12015# for the time being. (See 12016# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 12017linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 12018 version_type=linux 12019 need_lib_prefix=no 12020 need_version=no 12021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12022 soname_spec='${libname}${release}${shared_ext}$major' 12023 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12024 shlibpath_var=LD_LIBRARY_PATH 12025 shlibpath_overrides_runpath=no 12026 12027 # Some binutils ld are patched to set DT_RUNPATH 12028 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12029 $as_echo_n "(cached) " >&6 12030else 12031 lt_cv_shlibpath_overrides_runpath=no 12032 save_LDFLAGS=$LDFLAGS 12033 save_libdir=$libdir 12034 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12035 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12036 if test x$gcc_no_link = xyes; then 12037 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12038fi 12039cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12040/* end confdefs.h. */ 12041 12042int 12043main () 12044{ 12045 12046 ; 12047 return 0; 12048} 12049_ACEOF 12050if ac_fn_c_try_link "$LINENO"; then : 12051 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12052 lt_cv_shlibpath_overrides_runpath=yes 12053fi 12054fi 12055rm -f core conftest.err conftest.$ac_objext \ 12056 conftest$ac_exeext conftest.$ac_ext 12057 LDFLAGS=$save_LDFLAGS 12058 libdir=$save_libdir 12059 12060fi 12061 12062 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12063 12064 # This implies no fast_install, which is unacceptable. 12065 # Some rework will be needed to allow for fast_install 12066 # before this can be enabled. 12067 hardcode_into_libs=yes 12068 12069 # Append ld.so.conf contents to the search path 12070 if test -f /etc/ld.so.conf; then 12071 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' ' '` 12072 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12073 fi 12074 12075 # We used to test for /lib/ld.so.1 and disable shared libraries on 12076 # powerpc, because MkLinux only supported shared libraries with the 12077 # GNU dynamic linker. Since this was broken with cross compilers, 12078 # most powerpc-linux boxes support dynamic linking these days and 12079 # people can always --disable-shared, the test was removed, and we 12080 # assume the GNU/Linux dynamic linker is in use. 12081 dynamic_linker='GNU/Linux ld.so' 12082 ;; 12083 12084netbsd*) 12085 version_type=sunos 12086 need_lib_prefix=no 12087 need_version=no 12088 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12091 dynamic_linker='NetBSD (a.out) ld.so' 12092 else 12093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12094 soname_spec='${libname}${release}${shared_ext}$major' 12095 dynamic_linker='NetBSD ld.elf_so' 12096 fi 12097 shlibpath_var=LD_LIBRARY_PATH 12098 shlibpath_overrides_runpath=yes 12099 hardcode_into_libs=yes 12100 ;; 12101 12102newsos6) 12103 version_type=linux 12104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12105 shlibpath_var=LD_LIBRARY_PATH 12106 shlibpath_overrides_runpath=yes 12107 ;; 12108 12109*nto* | *qnx*) 12110 version_type=qnx 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 shlibpath_var=LD_LIBRARY_PATH 12116 shlibpath_overrides_runpath=no 12117 hardcode_into_libs=yes 12118 dynamic_linker='ldqnx.so' 12119 ;; 12120 12121openbsd*) 12122 version_type=sunos 12123 sys_lib_dlsearch_path_spec="/usr/lib" 12124 need_lib_prefix=no 12125 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12126 case $host_os in 12127 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12128 *) need_version=no ;; 12129 esac 12130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12132 shlibpath_var=LD_LIBRARY_PATH 12133 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12134 case $host_os in 12135 openbsd2.[89] | openbsd2.[89].*) 12136 shlibpath_overrides_runpath=no 12137 ;; 12138 *) 12139 shlibpath_overrides_runpath=yes 12140 ;; 12141 esac 12142 else 12143 shlibpath_overrides_runpath=yes 12144 fi 12145 ;; 12146 12147os2*) 12148 libname_spec='$name' 12149 shrext_cmds=".dll" 12150 need_lib_prefix=no 12151 library_names_spec='$libname${shared_ext} $libname.a' 12152 dynamic_linker='OS/2 ld.exe' 12153 shlibpath_var=LIBPATH 12154 ;; 12155 12156osf3* | osf4* | osf5*) 12157 version_type=osf 12158 need_lib_prefix=no 12159 need_version=no 12160 soname_spec='${libname}${release}${shared_ext}$major' 12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12162 shlibpath_var=LD_LIBRARY_PATH 12163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12164 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12165 ;; 12166 12167rdos*) 12168 dynamic_linker=no 12169 ;; 12170 12171solaris*) 12172 version_type=linux 12173 need_lib_prefix=no 12174 need_version=no 12175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12176 soname_spec='${libname}${release}${shared_ext}$major' 12177 shlibpath_var=LD_LIBRARY_PATH 12178 shlibpath_overrides_runpath=yes 12179 hardcode_into_libs=yes 12180 # ldd complains unless libraries are executable 12181 postinstall_cmds='chmod +x $lib' 12182 ;; 12183 12184sunos4*) 12185 version_type=sunos 12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12187 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12188 shlibpath_var=LD_LIBRARY_PATH 12189 shlibpath_overrides_runpath=yes 12190 if test "$with_gnu_ld" = yes; then 12191 need_lib_prefix=no 12192 fi 12193 need_version=yes 12194 ;; 12195 12196sysv4 | sysv4.3*) 12197 version_type=linux 12198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12199 soname_spec='${libname}${release}${shared_ext}$major' 12200 shlibpath_var=LD_LIBRARY_PATH 12201 case $host_vendor in 12202 sni) 12203 shlibpath_overrides_runpath=no 12204 need_lib_prefix=no 12205 runpath_var=LD_RUN_PATH 12206 ;; 12207 siemens) 12208 need_lib_prefix=no 12209 ;; 12210 motorola) 12211 need_lib_prefix=no 12212 need_version=no 12213 shlibpath_overrides_runpath=no 12214 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12215 ;; 12216 esac 12217 ;; 12218 12219sysv4*MP*) 12220 if test -d /usr/nec ;then 12221 version_type=linux 12222 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12223 soname_spec='$libname${shared_ext}.$major' 12224 shlibpath_var=LD_LIBRARY_PATH 12225 fi 12226 ;; 12227 12228sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12229 version_type=freebsd-elf 12230 need_lib_prefix=no 12231 need_version=no 12232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12233 soname_spec='${libname}${release}${shared_ext}$major' 12234 shlibpath_var=LD_LIBRARY_PATH 12235 shlibpath_overrides_runpath=yes 12236 hardcode_into_libs=yes 12237 if test "$with_gnu_ld" = yes; then 12238 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12239 else 12240 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12241 case $host_os in 12242 sco3.2v5*) 12243 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12244 ;; 12245 esac 12246 fi 12247 sys_lib_dlsearch_path_spec='/usr/lib' 12248 ;; 12249 12250tpf*) 12251 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12252 version_type=linux 12253 need_lib_prefix=no 12254 need_version=no 12255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12256 shlibpath_var=LD_LIBRARY_PATH 12257 shlibpath_overrides_runpath=no 12258 hardcode_into_libs=yes 12259 ;; 12260 12261uts4*) 12262 version_type=linux 12263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12264 soname_spec='${libname}${release}${shared_ext}$major' 12265 shlibpath_var=LD_LIBRARY_PATH 12266 ;; 12267 12268*) 12269 dynamic_linker=no 12270 ;; 12271esac 12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12273$as_echo "$dynamic_linker" >&6; } 12274test "$dynamic_linker" = no && can_build_shared=no 12275 12276variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12277if test "$GCC" = yes; then 12278 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12279fi 12280 12281if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12282 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12283fi 12284if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12285 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12286fi 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12380$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12381hardcode_action= 12382if test -n "$hardcode_libdir_flag_spec" || 12383 test -n "$runpath_var" || 12384 test "X$hardcode_automatic" = "Xyes" ; then 12385 12386 # We can hardcode non-existent directories. 12387 if test "$hardcode_direct" != no && 12388 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12389 # have to relink, otherwise we might link with an installed library 12390 # when we should be linking with a yet-to-be-installed one 12391 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12392 test "$hardcode_minus_L" != no; then 12393 # Linking always hardcodes the temporary library directory. 12394 hardcode_action=relink 12395 else 12396 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12397 hardcode_action=immediate 12398 fi 12399else 12400 # We cannot hardcode anything, or else we can only hardcode existing 12401 # directories. 12402 hardcode_action=unsupported 12403fi 12404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12405$as_echo "$hardcode_action" >&6; } 12406 12407if test "$hardcode_action" = relink || 12408 test "$inherit_rpath" = yes; then 12409 # Fast installation is not supported 12410 enable_fast_install=no 12411elif test "$shlibpath_overrides_runpath" = yes || 12412 test "$enable_shared" = no; then 12413 # Fast installation is not necessary 12414 enable_fast_install=needless 12415fi 12416 12417 12418 12419 12420 12421 12422 if test "x$enable_dlopen" != xyes; then 12423 enable_dlopen=unknown 12424 enable_dlopen_self=unknown 12425 enable_dlopen_self_static=unknown 12426else 12427 lt_cv_dlopen=no 12428 lt_cv_dlopen_libs= 12429 12430 case $host_os in 12431 beos*) 12432 lt_cv_dlopen="load_add_on" 12433 lt_cv_dlopen_libs= 12434 lt_cv_dlopen_self=yes 12435 ;; 12436 12437 mingw* | pw32* | cegcc*) 12438 lt_cv_dlopen="LoadLibrary" 12439 lt_cv_dlopen_libs= 12440 ;; 12441 12442 cygwin*) 12443 lt_cv_dlopen="dlopen" 12444 lt_cv_dlopen_libs= 12445 ;; 12446 12447 darwin*) 12448 # if libdl is installed we need to link against it 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12450$as_echo_n "checking for dlopen in -ldl... " >&6; } 12451if ${ac_cv_lib_dl_dlopen+:} false; then : 12452 $as_echo_n "(cached) " >&6 12453else 12454 ac_check_lib_save_LIBS=$LIBS 12455LIBS="-ldl $LIBS" 12456if test x$gcc_no_link = xyes; then 12457 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12458fi 12459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12460/* end confdefs.h. */ 12461 12462/* Override any GCC internal prototype to avoid an error. 12463 Use char because int might match the return type of a GCC 12464 builtin and then its argument prototype would still apply. */ 12465#ifdef __cplusplus 12466extern "C" 12467#endif 12468char dlopen (); 12469int 12470main () 12471{ 12472return dlopen (); 12473 ; 12474 return 0; 12475} 12476_ACEOF 12477if ac_fn_c_try_link "$LINENO"; then : 12478 ac_cv_lib_dl_dlopen=yes 12479else 12480 ac_cv_lib_dl_dlopen=no 12481fi 12482rm -f core conftest.err conftest.$ac_objext \ 12483 conftest$ac_exeext conftest.$ac_ext 12484LIBS=$ac_check_lib_save_LIBS 12485fi 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12487$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12488if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12489 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12490else 12491 12492 lt_cv_dlopen="dyld" 12493 lt_cv_dlopen_libs= 12494 lt_cv_dlopen_self=yes 12495 12496fi 12497 12498 ;; 12499 12500 *) 12501 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12502if test "x$ac_cv_func_shl_load" = xyes; then : 12503 lt_cv_dlopen="shl_load" 12504else 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12506$as_echo_n "checking for shl_load in -ldld... " >&6; } 12507if ${ac_cv_lib_dld_shl_load+:} false; then : 12508 $as_echo_n "(cached) " >&6 12509else 12510 ac_check_lib_save_LIBS=$LIBS 12511LIBS="-ldld $LIBS" 12512if test x$gcc_no_link = xyes; then 12513 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12514fi 12515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12516/* end confdefs.h. */ 12517 12518/* Override any GCC internal prototype to avoid an error. 12519 Use char because int might match the return type of a GCC 12520 builtin and then its argument prototype would still apply. */ 12521#ifdef __cplusplus 12522extern "C" 12523#endif 12524char shl_load (); 12525int 12526main () 12527{ 12528return shl_load (); 12529 ; 12530 return 0; 12531} 12532_ACEOF 12533if ac_fn_c_try_link "$LINENO"; then : 12534 ac_cv_lib_dld_shl_load=yes 12535else 12536 ac_cv_lib_dld_shl_load=no 12537fi 12538rm -f core conftest.err conftest.$ac_objext \ 12539 conftest$ac_exeext conftest.$ac_ext 12540LIBS=$ac_check_lib_save_LIBS 12541fi 12542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12543$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12544if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12545 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12546else 12547 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12548if test "x$ac_cv_func_dlopen" = xyes; then : 12549 lt_cv_dlopen="dlopen" 12550else 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12552$as_echo_n "checking for dlopen in -ldl... " >&6; } 12553if ${ac_cv_lib_dl_dlopen+:} false; then : 12554 $as_echo_n "(cached) " >&6 12555else 12556 ac_check_lib_save_LIBS=$LIBS 12557LIBS="-ldl $LIBS" 12558if test x$gcc_no_link = xyes; then 12559 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12560fi 12561cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12562/* end confdefs.h. */ 12563 12564/* Override any GCC internal prototype to avoid an error. 12565 Use char because int might match the return type of a GCC 12566 builtin and then its argument prototype would still apply. */ 12567#ifdef __cplusplus 12568extern "C" 12569#endif 12570char dlopen (); 12571int 12572main () 12573{ 12574return dlopen (); 12575 ; 12576 return 0; 12577} 12578_ACEOF 12579if ac_fn_c_try_link "$LINENO"; then : 12580 ac_cv_lib_dl_dlopen=yes 12581else 12582 ac_cv_lib_dl_dlopen=no 12583fi 12584rm -f core conftest.err conftest.$ac_objext \ 12585 conftest$ac_exeext conftest.$ac_ext 12586LIBS=$ac_check_lib_save_LIBS 12587fi 12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12589$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12590if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12592else 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12594$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12595if ${ac_cv_lib_svld_dlopen+:} false; then : 12596 $as_echo_n "(cached) " >&6 12597else 12598 ac_check_lib_save_LIBS=$LIBS 12599LIBS="-lsvld $LIBS" 12600if test x$gcc_no_link = xyes; then 12601 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12602fi 12603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12604/* end confdefs.h. */ 12605 12606/* Override any GCC internal prototype to avoid an error. 12607 Use char because int might match the return type of a GCC 12608 builtin and then its argument prototype would still apply. */ 12609#ifdef __cplusplus 12610extern "C" 12611#endif 12612char dlopen (); 12613int 12614main () 12615{ 12616return dlopen (); 12617 ; 12618 return 0; 12619} 12620_ACEOF 12621if ac_fn_c_try_link "$LINENO"; then : 12622 ac_cv_lib_svld_dlopen=yes 12623else 12624 ac_cv_lib_svld_dlopen=no 12625fi 12626rm -f core conftest.err conftest.$ac_objext \ 12627 conftest$ac_exeext conftest.$ac_ext 12628LIBS=$ac_check_lib_save_LIBS 12629fi 12630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12631$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12632if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12634else 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12636$as_echo_n "checking for dld_link in -ldld... " >&6; } 12637if ${ac_cv_lib_dld_dld_link+:} false; then : 12638 $as_echo_n "(cached) " >&6 12639else 12640 ac_check_lib_save_LIBS=$LIBS 12641LIBS="-ldld $LIBS" 12642if test x$gcc_no_link = xyes; then 12643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12644fi 12645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12646/* end confdefs.h. */ 12647 12648/* Override any GCC internal prototype to avoid an error. 12649 Use char because int might match the return type of a GCC 12650 builtin and then its argument prototype would still apply. */ 12651#ifdef __cplusplus 12652extern "C" 12653#endif 12654char dld_link (); 12655int 12656main () 12657{ 12658return dld_link (); 12659 ; 12660 return 0; 12661} 12662_ACEOF 12663if ac_fn_c_try_link "$LINENO"; then : 12664 ac_cv_lib_dld_dld_link=yes 12665else 12666 ac_cv_lib_dld_dld_link=no 12667fi 12668rm -f core conftest.err conftest.$ac_objext \ 12669 conftest$ac_exeext conftest.$ac_ext 12670LIBS=$ac_check_lib_save_LIBS 12671fi 12672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12673$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12674if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12675 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12676fi 12677 12678 12679fi 12680 12681 12682fi 12683 12684 12685fi 12686 12687 12688fi 12689 12690 12691fi 12692 12693 ;; 12694 esac 12695 12696 if test "x$lt_cv_dlopen" != xno; then 12697 enable_dlopen=yes 12698 else 12699 enable_dlopen=no 12700 fi 12701 12702 case $lt_cv_dlopen in 12703 dlopen) 12704 save_CPPFLAGS="$CPPFLAGS" 12705 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12706 12707 save_LDFLAGS="$LDFLAGS" 12708 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12709 12710 save_LIBS="$LIBS" 12711 LIBS="$lt_cv_dlopen_libs $LIBS" 12712 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12714$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12715if ${lt_cv_dlopen_self+:} false; then : 12716 $as_echo_n "(cached) " >&6 12717else 12718 if test "$cross_compiling" = yes; then : 12719 lt_cv_dlopen_self=cross 12720else 12721 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12722 lt_status=$lt_dlunknown 12723 cat > conftest.$ac_ext <<_LT_EOF 12724#line 12724 "configure" 12725#include "confdefs.h" 12726 12727#if HAVE_DLFCN_H 12728#include <dlfcn.h> 12729#endif 12730 12731#include <stdio.h> 12732 12733#ifdef RTLD_GLOBAL 12734# define LT_DLGLOBAL RTLD_GLOBAL 12735#else 12736# ifdef DL_GLOBAL 12737# define LT_DLGLOBAL DL_GLOBAL 12738# else 12739# define LT_DLGLOBAL 0 12740# endif 12741#endif 12742 12743/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12744 find out it does not work in some platform. */ 12745#ifndef LT_DLLAZY_OR_NOW 12746# ifdef RTLD_LAZY 12747# define LT_DLLAZY_OR_NOW RTLD_LAZY 12748# else 12749# ifdef DL_LAZY 12750# define LT_DLLAZY_OR_NOW DL_LAZY 12751# else 12752# ifdef RTLD_NOW 12753# define LT_DLLAZY_OR_NOW RTLD_NOW 12754# else 12755# ifdef DL_NOW 12756# define LT_DLLAZY_OR_NOW DL_NOW 12757# else 12758# define LT_DLLAZY_OR_NOW 0 12759# endif 12760# endif 12761# endif 12762# endif 12763#endif 12764 12765/* When -fvisbility=hidden is used, assume the code has been annotated 12766 correspondingly for the symbols needed. */ 12767#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12768void fnord () __attribute__((visibility("default"))); 12769#endif 12770 12771void fnord () { int i=42; } 12772int main () 12773{ 12774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12775 int status = $lt_dlunknown; 12776 12777 if (self) 12778 { 12779 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12780 else 12781 { 12782 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12783 else puts (dlerror ()); 12784 } 12785 /* dlclose (self); */ 12786 } 12787 else 12788 puts (dlerror ()); 12789 12790 return status; 12791} 12792_LT_EOF 12793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12794 (eval $ac_link) 2>&5 12795 ac_status=$? 12796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12797 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12798 (./conftest; exit; ) >&5 2>/dev/null 12799 lt_status=$? 12800 case x$lt_status in 12801 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12802 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12803 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12804 esac 12805 else : 12806 # compilation failed 12807 lt_cv_dlopen_self=no 12808 fi 12809fi 12810rm -fr conftest* 12811 12812 12813fi 12814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12815$as_echo "$lt_cv_dlopen_self" >&6; } 12816 12817 if test "x$lt_cv_dlopen_self" = xyes; then 12818 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12820$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12821if ${lt_cv_dlopen_self_static+:} false; then : 12822 $as_echo_n "(cached) " >&6 12823else 12824 if test "$cross_compiling" = yes; then : 12825 lt_cv_dlopen_self_static=cross 12826else 12827 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12828 lt_status=$lt_dlunknown 12829 cat > conftest.$ac_ext <<_LT_EOF 12830#line 12830 "configure" 12831#include "confdefs.h" 12832 12833#if HAVE_DLFCN_H 12834#include <dlfcn.h> 12835#endif 12836 12837#include <stdio.h> 12838 12839#ifdef RTLD_GLOBAL 12840# define LT_DLGLOBAL RTLD_GLOBAL 12841#else 12842# ifdef DL_GLOBAL 12843# define LT_DLGLOBAL DL_GLOBAL 12844# else 12845# define LT_DLGLOBAL 0 12846# endif 12847#endif 12848 12849/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12850 find out it does not work in some platform. */ 12851#ifndef LT_DLLAZY_OR_NOW 12852# ifdef RTLD_LAZY 12853# define LT_DLLAZY_OR_NOW RTLD_LAZY 12854# else 12855# ifdef DL_LAZY 12856# define LT_DLLAZY_OR_NOW DL_LAZY 12857# else 12858# ifdef RTLD_NOW 12859# define LT_DLLAZY_OR_NOW RTLD_NOW 12860# else 12861# ifdef DL_NOW 12862# define LT_DLLAZY_OR_NOW DL_NOW 12863# else 12864# define LT_DLLAZY_OR_NOW 0 12865# endif 12866# endif 12867# endif 12868# endif 12869#endif 12870 12871/* When -fvisbility=hidden is used, assume the code has been annotated 12872 correspondingly for the symbols needed. */ 12873#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12874void fnord () __attribute__((visibility("default"))); 12875#endif 12876 12877void fnord () { int i=42; } 12878int main () 12879{ 12880 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12881 int status = $lt_dlunknown; 12882 12883 if (self) 12884 { 12885 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12886 else 12887 { 12888 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12889 else puts (dlerror ()); 12890 } 12891 /* dlclose (self); */ 12892 } 12893 else 12894 puts (dlerror ()); 12895 12896 return status; 12897} 12898_LT_EOF 12899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12900 (eval $ac_link) 2>&5 12901 ac_status=$? 12902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12903 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12904 (./conftest; exit; ) >&5 2>/dev/null 12905 lt_status=$? 12906 case x$lt_status in 12907 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12908 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12909 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12910 esac 12911 else : 12912 # compilation failed 12913 lt_cv_dlopen_self_static=no 12914 fi 12915fi 12916rm -fr conftest* 12917 12918 12919fi 12920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12921$as_echo "$lt_cv_dlopen_self_static" >&6; } 12922 fi 12923 12924 CPPFLAGS="$save_CPPFLAGS" 12925 LDFLAGS="$save_LDFLAGS" 12926 LIBS="$save_LIBS" 12927 ;; 12928 esac 12929 12930 case $lt_cv_dlopen_self in 12931 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12932 *) enable_dlopen_self=unknown ;; 12933 esac 12934 12935 case $lt_cv_dlopen_self_static in 12936 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12937 *) enable_dlopen_self_static=unknown ;; 12938 esac 12939fi 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957striplib= 12958old_striplib= 12959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12960$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12961if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12962 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12963 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12965$as_echo "yes" >&6; } 12966else 12967# FIXME - insert some real tests, host_os isn't really good enough 12968 case $host_os in 12969 darwin*) 12970 if test -n "$STRIP" ; then 12971 striplib="$STRIP -x" 12972 old_striplib="$STRIP -S" 12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12974$as_echo "yes" >&6; } 12975 else 12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12977$as_echo "no" >&6; } 12978 fi 12979 ;; 12980 *) 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12982$as_echo "no" >&6; } 12983 ;; 12984 esac 12985fi 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 # Report which library types will actually be built 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13000$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13002$as_echo "$can_build_shared" >&6; } 13003 13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13005$as_echo_n "checking whether to build shared libraries... " >&6; } 13006 test "$can_build_shared" = "no" && enable_shared=no 13007 13008 # On AIX, shared libraries and static libraries use the same namespace, and 13009 # are all built from PIC. 13010 case $host_os in 13011 aix3*) 13012 test "$enable_shared" = yes && enable_static=no 13013 if test -n "$RANLIB"; then 13014 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13015 postinstall_cmds='$RANLIB $lib' 13016 fi 13017 ;; 13018 13019 aix[4-9]*) 13020 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13021 test "$enable_shared" = yes && enable_static=no 13022 fi 13023 ;; 13024 esac 13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13026$as_echo "$enable_shared" >&6; } 13027 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13029$as_echo_n "checking whether to build static libraries... " >&6; } 13030 # Make sure either enable_shared or enable_static is yes. 13031 test "$enable_shared" = yes || enable_static=yes 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13033$as_echo "$enable_static" >&6; } 13034 13035 13036 13037 13038fi 13039ac_ext=c 13040ac_cpp='$CPP $CPPFLAGS' 13041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13043ac_compiler_gnu=$ac_cv_c_compiler_gnu 13044 13045CC="$lt_save_CC" 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 ac_config_commands="$ac_config_commands libtool" 13060 13061 13062 13063 13064# Only expand once: 13065 13066 13067 13068 13069 13070case $host in 13071 *-cygwin* | *-mingw*) 13072 # 'host' will be top-level target in the case of a target lib, 13073 # we must compare to with_cross_host to decide if this is a native 13074 # or cross-compiler and select where to install dlls appropriately. 13075 if test -n "$with_cross_host" && 13076 test x"$with_cross_host" != x"no"; then 13077 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 13078 else 13079 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 13080 fi 13081 ;; 13082 *) 13083 lt_host_flags= 13084 ;; 13085esac 13086 13087 13088 13089 13090 13091#AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 13092 13093# We need gfortran to compile parts of the library 13094#AC_PROG_FC(gfortran) 13095FC="$GFORTRAN" 13096ac_ext=${ac_fc_srcext-f} 13097ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 13098ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 13099ac_compiler_gnu=$ac_cv_fc_compiler_gnu 13100if test -n "$ac_tool_prefix"; then 13101 for ac_prog in gfortran 13102 do 13103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13104set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13106$as_echo_n "checking for $ac_word... " >&6; } 13107if ${ac_cv_prog_FC+:} false; then : 13108 $as_echo_n "(cached) " >&6 13109else 13110 if test -n "$FC"; then 13111 ac_cv_prog_FC="$FC" # Let the user override the test. 13112else 13113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13114for as_dir in $PATH 13115do 13116 IFS=$as_save_IFS 13117 test -z "$as_dir" && as_dir=. 13118 for ac_exec_ext in '' $ac_executable_extensions; do 13119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13120 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 13121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13122 break 2 13123 fi 13124done 13125 done 13126IFS=$as_save_IFS 13127 13128fi 13129fi 13130FC=$ac_cv_prog_FC 13131if test -n "$FC"; then 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 13133$as_echo "$FC" >&6; } 13134else 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13136$as_echo "no" >&6; } 13137fi 13138 13139 13140 test -n "$FC" && break 13141 done 13142fi 13143if test -z "$FC"; then 13144 ac_ct_FC=$FC 13145 for ac_prog in gfortran 13146do 13147 # Extract the first word of "$ac_prog", so it can be a program name with args. 13148set dummy $ac_prog; ac_word=$2 13149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13150$as_echo_n "checking for $ac_word... " >&6; } 13151if ${ac_cv_prog_ac_ct_FC+:} false; then : 13152 $as_echo_n "(cached) " >&6 13153else 13154 if test -n "$ac_ct_FC"; then 13155 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 13156else 13157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13158for as_dir in $PATH 13159do 13160 IFS=$as_save_IFS 13161 test -z "$as_dir" && as_dir=. 13162 for ac_exec_ext in '' $ac_executable_extensions; do 13163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13164 ac_cv_prog_ac_ct_FC="$ac_prog" 13165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13166 break 2 13167 fi 13168done 13169 done 13170IFS=$as_save_IFS 13171 13172fi 13173fi 13174ac_ct_FC=$ac_cv_prog_ac_ct_FC 13175if test -n "$ac_ct_FC"; then 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 13177$as_echo "$ac_ct_FC" >&6; } 13178else 13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13180$as_echo "no" >&6; } 13181fi 13182 13183 13184 test -n "$ac_ct_FC" && break 13185done 13186 13187 if test "x$ac_ct_FC" = x; then 13188 FC="" 13189 else 13190 case $cross_compiling:$ac_tool_warned in 13191yes:) 13192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13194ac_tool_warned=yes ;; 13195esac 13196 FC=$ac_ct_FC 13197 fi 13198fi 13199 13200 13201# Provide some information about the compiler. 13202$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 13203set X $ac_compile 13204ac_compiler=$2 13205for ac_option in --version -v -V -qversion; do 13206 { { ac_try="$ac_compiler $ac_option >&5" 13207case "(($ac_try" in 13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13209 *) ac_try_echo=$ac_try;; 13210esac 13211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13212$as_echo "$ac_try_echo"; } >&5 13213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13214 ac_status=$? 13215 if test -s conftest.err; then 13216 sed '10a\ 13217... rest of stderr output deleted ... 13218 10q' conftest.err >conftest.er1 13219 cat conftest.er1 >&5 13220 fi 13221 rm -f conftest.er1 conftest.err 13222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13223 test $ac_status = 0; } 13224done 13225rm -f a.out 13226 13227# If we don't use `.F' as extension, the preprocessor is not run on the 13228# input file. (Note that this only needs to work for GNU compilers.) 13229ac_save_ext=$ac_ext 13230ac_ext=F 13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 13232$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 13233if ${ac_cv_fc_compiler_gnu+:} false; then : 13234 $as_echo_n "(cached) " >&6 13235else 13236 cat > conftest.$ac_ext <<_ACEOF 13237 program main 13238#ifndef __GNUC__ 13239 choke me 13240#endif 13241 13242 end 13243_ACEOF 13244if ac_fn_fc_try_compile "$LINENO"; then : 13245 ac_compiler_gnu=yes 13246else 13247 ac_compiler_gnu=no 13248fi 13249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13250ac_cv_fc_compiler_gnu=$ac_compiler_gnu 13251 13252fi 13253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 13254$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 13255ac_ext=$ac_save_ext 13256ac_test_FCFLAGS=${FCFLAGS+set} 13257ac_save_FCFLAGS=$FCFLAGS 13258FCFLAGS= 13259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 13260$as_echo_n "checking whether $FC accepts -g... " >&6; } 13261if ${ac_cv_prog_fc_g+:} false; then : 13262 $as_echo_n "(cached) " >&6 13263else 13264 FCFLAGS=-g 13265cat > conftest.$ac_ext <<_ACEOF 13266 program main 13267 13268 end 13269_ACEOF 13270if ac_fn_fc_try_compile "$LINENO"; then : 13271 ac_cv_prog_fc_g=yes 13272else 13273 ac_cv_prog_fc_g=no 13274fi 13275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13276 13277fi 13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 13279$as_echo "$ac_cv_prog_fc_g" >&6; } 13280if test "$ac_test_FCFLAGS" = set; then 13281 FCFLAGS=$ac_save_FCFLAGS 13282elif test $ac_cv_prog_fc_g = yes; then 13283 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 13284 FCFLAGS="-g -O2" 13285 else 13286 FCFLAGS="-g" 13287 fi 13288else 13289 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 13290 FCFLAGS="-O2" 13291 else 13292 FCFLAGS= 13293 fi 13294fi 13295 13296if test $ac_compiler_gnu = yes; then 13297 GFC=yes 13298else 13299 GFC= 13300fi 13301ac_ext=c 13302ac_cpp='$CPP $CPPFLAGS' 13303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13305ac_compiler_gnu=$ac_cv_c_compiler_gnu 13306 13307 ac_ext=${ac_fc_srcext-f} 13308ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 13309ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 13310ac_compiler_gnu=$ac_cv_fc_compiler_gnu 13311 13312 13313if test -z "$FC" || test "X$FC" = "Xno"; then 13314 _lt_disable_FC=yes 13315fi 13316 13317archive_cmds_need_lc_FC=no 13318allow_undefined_flag_FC= 13319always_export_symbols_FC=no 13320archive_expsym_cmds_FC= 13321export_dynamic_flag_spec_FC= 13322hardcode_direct_FC=no 13323hardcode_direct_absolute_FC=no 13324hardcode_libdir_flag_spec_FC= 13325hardcode_libdir_flag_spec_ld_FC= 13326hardcode_libdir_separator_FC= 13327hardcode_minus_L_FC=no 13328hardcode_automatic_FC=no 13329inherit_rpath_FC=no 13330module_cmds_FC= 13331module_expsym_cmds_FC= 13332link_all_deplibs_FC=unknown 13333old_archive_cmds_FC=$old_archive_cmds 13334reload_flag_FC=$reload_flag 13335reload_cmds_FC=$reload_cmds 13336no_undefined_flag_FC= 13337whole_archive_flag_spec_FC= 13338enable_shared_with_static_runtimes_FC=no 13339 13340# Source file extension for fc test sources. 13341ac_ext=${ac_fc_srcext-f} 13342 13343# Object file extension for compiled fc test sources. 13344objext=o 13345objext_FC=$objext 13346 13347# No sense in running all these tests if we already determined that 13348# the FC compiler isn't working. Some variables (like enable_shared) 13349# are currently assumed to apply to all compilers on this platform, 13350# and will be corrupted by setting them based on a non-working compiler. 13351if test "$_lt_disable_FC" != yes; then 13352 # Code to be used in simple compile tests 13353 lt_simple_compile_test_code="\ 13354 subroutine t 13355 return 13356 end 13357" 13358 13359 # Code to be used in simple link tests 13360 lt_simple_link_test_code="\ 13361 program t 13362 end 13363" 13364 13365 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13366 13367 13368 13369 13370 13371 13372# If no C compiler was specified, use CC. 13373LTCC=${LTCC-"$CC"} 13374 13375# If no C compiler flags were specified, use CFLAGS. 13376LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13377 13378# Allow CC to be a program name with arguments. 13379compiler=$CC 13380 13381 13382 # save warnings/boilerplate of simple test code 13383 ac_outfile=conftest.$ac_objext 13384echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13385eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13386_lt_compiler_boilerplate=`cat conftest.err` 13387$RM conftest* 13388 13389 ac_outfile=conftest.$ac_objext 13390echo "$lt_simple_link_test_code" >conftest.$ac_ext 13391eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13392_lt_linker_boilerplate=`cat conftest.err` 13393$RM -r conftest* 13394 13395 13396 # Allow CC to be a program name with arguments. 13397 lt_save_CC="$CC" 13398 lt_save_GCC=$GCC 13399 CC=${FC-"f95"} 13400 compiler=$CC 13401 GCC=$ac_cv_fc_compiler_gnu 13402 13403 compiler_FC=$CC 13404 for cc_temp in $compiler""; do 13405 case $cc_temp in 13406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13408 \-*) ;; 13409 *) break;; 13410 esac 13411done 13412cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13413 13414 13415 if test -n "$compiler"; then 13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13417$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13419$as_echo "$can_build_shared" >&6; } 13420 13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13422$as_echo_n "checking whether to build shared libraries... " >&6; } 13423 test "$can_build_shared" = "no" && enable_shared=no 13424 13425 # On AIX, shared libraries and static libraries use the same namespace, and 13426 # are all built from PIC. 13427 case $host_os in 13428 aix3*) 13429 test "$enable_shared" = yes && enable_static=no 13430 if test -n "$RANLIB"; then 13431 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13432 postinstall_cmds='$RANLIB $lib' 13433 fi 13434 ;; 13435 aix[4-9]*) 13436 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13437 test "$enable_shared" = yes && enable_static=no 13438 fi 13439 ;; 13440 esac 13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13442$as_echo "$enable_shared" >&6; } 13443 13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13445$as_echo_n "checking whether to build static libraries... " >&6; } 13446 # Make sure either enable_shared or enable_static is yes. 13447 test "$enable_shared" = yes || enable_static=yes 13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13449$as_echo "$enable_static" >&6; } 13450 13451 GCC_FC="$ac_cv_fc_compiler_gnu" 13452 LD_FC="$LD" 13453 13454 ## CAVEAT EMPTOR: 13455 ## There is no encapsulation within the following macros, do not change 13456 ## the running order or otherwise move them around unless you know exactly 13457 ## what you are doing... 13458 # Dependencies to place before and after the object being linked: 13459predep_objects_FC= 13460postdep_objects_FC= 13461predeps_FC= 13462postdeps_FC= 13463compiler_lib_search_path_FC= 13464 13465cat > conftest.$ac_ext <<_LT_EOF 13466 subroutine foo 13467 implicit none 13468 integer a 13469 a=0 13470 return 13471 end 13472_LT_EOF 13473 13474if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13475 (eval $ac_compile) 2>&5 13476 ac_status=$? 13477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13478 test $ac_status = 0; }; then 13479 # Parse the compiler output and extract the necessary 13480 # objects, libraries and library flags. 13481 13482 # Sentinel used to keep track of whether or not we are before 13483 # the conftest object file. 13484 pre_test_object_deps_done=no 13485 13486 for p in `eval "$output_verbose_link_cmd"`; do 13487 case $p in 13488 13489 -L* | -R* | -l*) 13490 # Some compilers place space between "-{L,R}" and the path. 13491 # Remove the space. 13492 if test $p = "-L" || 13493 test $p = "-R"; then 13494 prev=$p 13495 continue 13496 else 13497 prev= 13498 fi 13499 13500 if test "$pre_test_object_deps_done" = no; then 13501 case $p in 13502 -L* | -R*) 13503 # Internal compiler library paths should come after those 13504 # provided the user. The postdeps already come after the 13505 # user supplied libs so there is no need to process them. 13506 if test -z "$compiler_lib_search_path_FC"; then 13507 compiler_lib_search_path_FC="${prev}${p}" 13508 else 13509 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" 13510 fi 13511 ;; 13512 # The "-l" case would never come before the object being 13513 # linked, so don't bother handling this case. 13514 esac 13515 else 13516 if test -z "$postdeps_FC"; then 13517 postdeps_FC="${prev}${p}" 13518 else 13519 postdeps_FC="${postdeps_FC} ${prev}${p}" 13520 fi 13521 fi 13522 ;; 13523 13524 *.$objext) 13525 # This assumes that the test object file only shows up 13526 # once in the compiler output. 13527 if test "$p" = "conftest.$objext"; then 13528 pre_test_object_deps_done=yes 13529 continue 13530 fi 13531 13532 if test "$pre_test_object_deps_done" = no; then 13533 if test -z "$predep_objects_FC"; then 13534 predep_objects_FC="$p" 13535 else 13536 predep_objects_FC="$predep_objects_FC $p" 13537 fi 13538 else 13539 if test -z "$postdep_objects_FC"; then 13540 postdep_objects_FC="$p" 13541 else 13542 postdep_objects_FC="$postdep_objects_FC $p" 13543 fi 13544 fi 13545 ;; 13546 13547 *) ;; # Ignore the rest. 13548 13549 esac 13550 done 13551 13552 # Clean up. 13553 rm -f a.out a.exe 13554else 13555 echo "libtool.m4: error: problem compiling FC test program" 13556fi 13557 13558$RM -f confest.$objext 13559 13560# PORTME: override above test on systems where it is broken 13561 13562 13563case " $postdeps_FC " in 13564*" -lc "*) archive_cmds_need_lc_FC=no ;; 13565esac 13566 compiler_lib_search_dirs_FC= 13567if test -n "${compiler_lib_search_path_FC}"; then 13568 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13569fi 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 lt_prog_compiler_wl_FC= 13602lt_prog_compiler_pic_FC= 13603lt_prog_compiler_static_FC= 13604 13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13606$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13607 13608 if test "$GCC" = yes; then 13609 lt_prog_compiler_wl_FC='-Wl,' 13610 lt_prog_compiler_static_FC='-static' 13611 13612 case $host_os in 13613 aix*) 13614 # All AIX code is PIC. 13615 if test "$host_cpu" = ia64; then 13616 # AIX 5 now supports IA64 processor 13617 lt_prog_compiler_static_FC='-Bstatic' 13618 fi 13619 lt_prog_compiler_pic_FC='-fPIC' 13620 ;; 13621 13622 amigaos*) 13623 case $host_cpu in 13624 powerpc) 13625 # see comment about AmigaOS4 .so support 13626 lt_prog_compiler_pic_FC='-fPIC' 13627 ;; 13628 m68k) 13629 # FIXME: we need at least 68020 code to build shared libraries, but 13630 # adding the `-m68020' flag to GCC prevents building anything better, 13631 # like `-m68040'. 13632 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 13633 ;; 13634 esac 13635 ;; 13636 13637 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13638 # PIC is the default for these OSes. 13639 ;; 13640 13641 mingw* | cygwin* | pw32* | os2* | cegcc*) 13642 # This hack is so that the source file can tell whether it is being 13643 # built for inclusion in a dll (and should export symbols for example). 13644 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13645 # (--disable-auto-import) libraries 13646 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 13647 ;; 13648 13649 darwin* | rhapsody*) 13650 # PIC is the default on this platform 13651 # Common symbols not allowed in MH_DYLIB files 13652 lt_prog_compiler_pic_FC='-fno-common' 13653 ;; 13654 13655 haiku*) 13656 # PIC is the default for Haiku. 13657 # The "-static" flag exists, but is broken. 13658 lt_prog_compiler_static_FC= 13659 ;; 13660 13661 hpux*) 13662 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13663 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13664 # sets the default TLS model and affects inlining. 13665 case $host_cpu in 13666 hppa*64*) 13667 # +Z the default 13668 ;; 13669 *) 13670 lt_prog_compiler_pic_FC='-fPIC' 13671 ;; 13672 esac 13673 ;; 13674 13675 interix[3-9]*) 13676 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13677 # Instead, we relocate shared libraries at runtime. 13678 ;; 13679 13680 msdosdjgpp*) 13681 # Just because we use GCC doesn't mean we suddenly get shared libraries 13682 # on systems that don't support them. 13683 lt_prog_compiler_can_build_shared_FC=no 13684 enable_shared=no 13685 ;; 13686 13687 *nto* | *qnx*) 13688 # QNX uses GNU C++, but need to define -shared option too, otherwise 13689 # it will coredump. 13690 lt_prog_compiler_pic_FC='-fPIC -shared' 13691 ;; 13692 13693 sysv4*MP*) 13694 if test -d /usr/nec; then 13695 lt_prog_compiler_pic_FC=-Kconform_pic 13696 fi 13697 ;; 13698 13699 *) 13700 lt_prog_compiler_pic_FC='-fPIC' 13701 ;; 13702 esac 13703 13704 case $cc_basename in 13705 nvcc*) # Cuda Compiler Driver 2.2 13706 lt_prog_compiler_wl_FC='-Xlinker ' 13707 lt_prog_compiler_pic_FC='-Xcompiler -fPIC' 13708 ;; 13709 esac 13710 else 13711 # PORTME Check for flag to pass linker flags through the system compiler. 13712 case $host_os in 13713 aix*) 13714 lt_prog_compiler_wl_FC='-Wl,' 13715 if test "$host_cpu" = ia64; then 13716 # AIX 5 now supports IA64 processor 13717 lt_prog_compiler_static_FC='-Bstatic' 13718 else 13719 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 13720 fi 13721 ;; 13722 13723 mingw* | cygwin* | pw32* | os2* | cegcc*) 13724 # This hack is so that the source file can tell whether it is being 13725 # built for inclusion in a dll (and should export symbols for example). 13726 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 13727 ;; 13728 13729 hpux9* | hpux10* | hpux11*) 13730 lt_prog_compiler_wl_FC='-Wl,' 13731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13732 # not for PA HP-UX. 13733 case $host_cpu in 13734 hppa*64*|ia64*) 13735 # +Z the default 13736 ;; 13737 *) 13738 lt_prog_compiler_pic_FC='+Z' 13739 ;; 13740 esac 13741 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13742 lt_prog_compiler_static_FC='${wl}-a ${wl}archive' 13743 ;; 13744 13745 irix5* | irix6* | nonstopux*) 13746 lt_prog_compiler_wl_FC='-Wl,' 13747 # PIC (with -KPIC) is the default. 13748 lt_prog_compiler_static_FC='-non_shared' 13749 ;; 13750 13751 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13752 case $cc_basename in 13753 # old Intel for x86_64 which still supported -KPIC. 13754 ecc*) 13755 lt_prog_compiler_wl_FC='-Wl,' 13756 lt_prog_compiler_pic_FC='-KPIC' 13757 lt_prog_compiler_static_FC='-static' 13758 ;; 13759 # icc used to be incompatible with GCC. 13760 # ICC 10 doesn't accept -KPIC any more. 13761 icc* | ifort*) 13762 lt_prog_compiler_wl_FC='-Wl,' 13763 lt_prog_compiler_pic_FC='-fPIC' 13764 lt_prog_compiler_static_FC='-static' 13765 ;; 13766 # Lahey Fortran 8.1. 13767 lf95*) 13768 lt_prog_compiler_wl_FC='-Wl,' 13769 lt_prog_compiler_pic_FC='--shared' 13770 lt_prog_compiler_static_FC='--static' 13771 ;; 13772 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 13773 # Portland Group compilers (*not* the Pentium gcc compiler, 13774 # which looks to be a dead project) 13775 lt_prog_compiler_wl_FC='-Wl,' 13776 lt_prog_compiler_pic_FC='-fpic' 13777 lt_prog_compiler_static_FC='-Bstatic' 13778 ;; 13779 ccc*) 13780 lt_prog_compiler_wl_FC='-Wl,' 13781 # All Alpha code is PIC. 13782 lt_prog_compiler_static_FC='-non_shared' 13783 ;; 13784 xl* | bgxl* | bgf* | mpixl*) 13785 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 13786 lt_prog_compiler_wl_FC='-Wl,' 13787 lt_prog_compiler_pic_FC='-qpic' 13788 lt_prog_compiler_static_FC='-qstaticlink' 13789 ;; 13790 *) 13791 case `$CC -V 2>&1 | sed 5q` in 13792 *Sun\ F* | *Sun*Fortran*) 13793 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13794 lt_prog_compiler_pic_FC='-KPIC' 13795 lt_prog_compiler_static_FC='-Bstatic' 13796 lt_prog_compiler_wl_FC='' 13797 ;; 13798 *Sun\ C*) 13799 # Sun C 5.9 13800 lt_prog_compiler_pic_FC='-KPIC' 13801 lt_prog_compiler_static_FC='-Bstatic' 13802 lt_prog_compiler_wl_FC='-Wl,' 13803 ;; 13804 esac 13805 ;; 13806 esac 13807 ;; 13808 13809 newsos6) 13810 lt_prog_compiler_pic_FC='-KPIC' 13811 lt_prog_compiler_static_FC='-Bstatic' 13812 ;; 13813 13814 *nto* | *qnx*) 13815 # QNX uses GNU C++, but need to define -shared option too, otherwise 13816 # it will coredump. 13817 lt_prog_compiler_pic_FC='-fPIC -shared' 13818 ;; 13819 13820 osf3* | osf4* | osf5*) 13821 lt_prog_compiler_wl_FC='-Wl,' 13822 # All OSF/1 code is PIC. 13823 lt_prog_compiler_static_FC='-non_shared' 13824 ;; 13825 13826 rdos*) 13827 lt_prog_compiler_static_FC='-non_shared' 13828 ;; 13829 13830 solaris*) 13831 lt_prog_compiler_pic_FC='-KPIC' 13832 lt_prog_compiler_static_FC='-Bstatic' 13833 case $cc_basename in 13834 f77* | f90* | f95*) 13835 lt_prog_compiler_wl_FC='-Qoption ld ';; 13836 *) 13837 lt_prog_compiler_wl_FC='-Wl,';; 13838 esac 13839 ;; 13840 13841 sunos4*) 13842 lt_prog_compiler_wl_FC='-Qoption ld ' 13843 lt_prog_compiler_pic_FC='-PIC' 13844 lt_prog_compiler_static_FC='-Bstatic' 13845 ;; 13846 13847 sysv4 | sysv4.2uw2* | sysv4.3*) 13848 lt_prog_compiler_wl_FC='-Wl,' 13849 lt_prog_compiler_pic_FC='-KPIC' 13850 lt_prog_compiler_static_FC='-Bstatic' 13851 ;; 13852 13853 sysv4*MP*) 13854 if test -d /usr/nec ;then 13855 lt_prog_compiler_pic_FC='-Kconform_pic' 13856 lt_prog_compiler_static_FC='-Bstatic' 13857 fi 13858 ;; 13859 13860 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13861 lt_prog_compiler_wl_FC='-Wl,' 13862 lt_prog_compiler_pic_FC='-KPIC' 13863 lt_prog_compiler_static_FC='-Bstatic' 13864 ;; 13865 13866 unicos*) 13867 lt_prog_compiler_wl_FC='-Wl,' 13868 lt_prog_compiler_can_build_shared_FC=no 13869 ;; 13870 13871 uts4*) 13872 lt_prog_compiler_pic_FC='-pic' 13873 lt_prog_compiler_static_FC='-Bstatic' 13874 ;; 13875 13876 *) 13877 lt_prog_compiler_can_build_shared_FC=no 13878 ;; 13879 esac 13880 fi 13881 13882case $host_os in 13883 # For platforms which do not support PIC, -DPIC is meaningless: 13884 *djgpp*) 13885 lt_prog_compiler_pic_FC= 13886 ;; 13887 *) 13888 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 13889 ;; 13890esac 13891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5 13892$as_echo "$lt_prog_compiler_pic_FC" >&6; } 13893 13894 13895 13896# 13897# Check to make sure the PIC flag actually works. 13898# 13899if test -n "$lt_prog_compiler_pic_FC"; then 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 13901$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } 13902if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : 13903 $as_echo_n "(cached) " >&6 13904else 13905 lt_cv_prog_compiler_pic_works_FC=no 13906 ac_outfile=conftest.$ac_objext 13907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13908 lt_compiler_flag="$lt_prog_compiler_pic_FC" 13909 # Insert the option either (1) after the last *FLAGS variable, or 13910 # (2) before a word containing "conftest.", or (3) at the end. 13911 # Note that $ac_compile itself does not contain backslashes and begins 13912 # with a dollar sign (not a hyphen), so the echo should work correctly. 13913 # The option is referenced via a variable to avoid confusing sed. 13914 lt_compile=`echo "$ac_compile" | $SED \ 13915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13917 -e 's:$: $lt_compiler_flag:'` 13918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13919 (eval "$lt_compile" 2>conftest.err) 13920 ac_status=$? 13921 cat conftest.err >&5 13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13923 if (exit $ac_status) && test -s "$ac_outfile"; then 13924 # The compiler can only warn and ignore the option if not recognized 13925 # So say no if there are warnings other than the usual output. 13926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13929 lt_cv_prog_compiler_pic_works_FC=yes 13930 fi 13931 fi 13932 $RM conftest* 13933 13934fi 13935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 13936$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } 13937 13938if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then 13939 case $lt_prog_compiler_pic_FC in 13940 "" | " "*) ;; 13941 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 13942 esac 13943else 13944 lt_prog_compiler_pic_FC= 13945 lt_prog_compiler_can_build_shared_FC=no 13946fi 13947 13948fi 13949 13950 13951 13952# 13953# Check to make sure the static flag actually works. 13954# 13955wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 13956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13957$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13958if ${lt_cv_prog_compiler_static_works_FC+:} false; then : 13959 $as_echo_n "(cached) " >&6 13960else 13961 lt_cv_prog_compiler_static_works_FC=no 13962 save_LDFLAGS="$LDFLAGS" 13963 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13964 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13965 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13966 # The linker can only warn and ignore the option if not recognized 13967 # So say no if there are warnings 13968 if test -s conftest.err; then 13969 # Append any errors to the config.log. 13970 cat conftest.err 1>&5 13971 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13973 if diff conftest.exp conftest.er2 >/dev/null; then 13974 lt_cv_prog_compiler_static_works_FC=yes 13975 fi 13976 else 13977 lt_cv_prog_compiler_static_works_FC=yes 13978 fi 13979 fi 13980 $RM -r conftest* 13981 LDFLAGS="$save_LDFLAGS" 13982 13983fi 13984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 13985$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } 13986 13987if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then 13988 : 13989else 13990 lt_prog_compiler_static_FC= 13991fi 13992 13993 13994 13995 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13997$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13998if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 13999 $as_echo_n "(cached) " >&6 14000else 14001 lt_cv_prog_compiler_c_o_FC=no 14002 $RM -r conftest 2>/dev/null 14003 mkdir conftest 14004 cd conftest 14005 mkdir out 14006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14007 14008 lt_compiler_flag="-o out/conftest2.$ac_objext" 14009 # Insert the option either (1) after the last *FLAGS variable, or 14010 # (2) before a word containing "conftest.", or (3) at the end. 14011 # Note that $ac_compile itself does not contain backslashes and begins 14012 # with a dollar sign (not a hyphen), so the echo should work correctly. 14013 lt_compile=`echo "$ac_compile" | $SED \ 14014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14016 -e 's:$: $lt_compiler_flag:'` 14017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14018 (eval "$lt_compile" 2>out/conftest.err) 14019 ac_status=$? 14020 cat out/conftest.err >&5 14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14022 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14023 then 14024 # The compiler can only warn and ignore the option if not recognized 14025 # So say no if there are warnings 14026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14029 lt_cv_prog_compiler_c_o_FC=yes 14030 fi 14031 fi 14032 chmod u+w . 2>&5 14033 $RM conftest* 14034 # SGI C++ compiler will create directory out/ii_files/ for 14035 # template instantiation 14036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14037 $RM out/* && rmdir out 14038 cd .. 14039 $RM -r conftest 14040 $RM conftest* 14041 14042fi 14043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 14044$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 14045 14046 14047 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14049$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14050if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 14051 $as_echo_n "(cached) " >&6 14052else 14053 lt_cv_prog_compiler_c_o_FC=no 14054 $RM -r conftest 2>/dev/null 14055 mkdir conftest 14056 cd conftest 14057 mkdir out 14058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14059 14060 lt_compiler_flag="-o out/conftest2.$ac_objext" 14061 # Insert the option either (1) after the last *FLAGS variable, or 14062 # (2) before a word containing "conftest.", or (3) at the end. 14063 # Note that $ac_compile itself does not contain backslashes and begins 14064 # with a dollar sign (not a hyphen), so the echo should work correctly. 14065 lt_compile=`echo "$ac_compile" | $SED \ 14066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14068 -e 's:$: $lt_compiler_flag:'` 14069 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14070 (eval "$lt_compile" 2>out/conftest.err) 14071 ac_status=$? 14072 cat out/conftest.err >&5 14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14074 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14075 then 14076 # The compiler can only warn and ignore the option if not recognized 14077 # So say no if there are warnings 14078 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14081 lt_cv_prog_compiler_c_o_FC=yes 14082 fi 14083 fi 14084 chmod u+w . 2>&5 14085 $RM conftest* 14086 # SGI C++ compiler will create directory out/ii_files/ for 14087 # template instantiation 14088 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14089 $RM out/* && rmdir out 14090 cd .. 14091 $RM -r conftest 14092 $RM conftest* 14093 14094fi 14095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 14096$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 14097 14098 14099 14100 14101hard_links="nottested" 14102if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then 14103 # do not overwrite the value of need_locks provided by the user 14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14105$as_echo_n "checking if we can lock with hard links... " >&6; } 14106 hard_links=yes 14107 $RM conftest* 14108 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14109 touch conftest.a 14110 ln conftest.a conftest.b 2>&5 || hard_links=no 14111 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14113$as_echo "$hard_links" >&6; } 14114 if test "$hard_links" = no; then 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14116$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14117 need_locks=warn 14118 fi 14119else 14120 need_locks=no 14121fi 14122 14123 14124 14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14126$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14127 14128 runpath_var= 14129 allow_undefined_flag_FC= 14130 always_export_symbols_FC=no 14131 archive_cmds_FC= 14132 archive_expsym_cmds_FC= 14133 compiler_needs_object_FC=no 14134 enable_shared_with_static_runtimes_FC=no 14135 export_dynamic_flag_spec_FC= 14136 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14137 hardcode_automatic_FC=no 14138 hardcode_direct_FC=no 14139 hardcode_direct_absolute_FC=no 14140 hardcode_libdir_flag_spec_FC= 14141 hardcode_libdir_flag_spec_ld_FC= 14142 hardcode_libdir_separator_FC= 14143 hardcode_minus_L_FC=no 14144 hardcode_shlibpath_var_FC=unsupported 14145 inherit_rpath_FC=no 14146 link_all_deplibs_FC=unknown 14147 module_cmds_FC= 14148 module_expsym_cmds_FC= 14149 old_archive_from_new_cmds_FC= 14150 old_archive_from_expsyms_cmds_FC= 14151 thread_safe_flag_spec_FC= 14152 whole_archive_flag_spec_FC= 14153 # include_expsyms should be a list of space-separated symbols to be *always* 14154 # included in the symbol list 14155 include_expsyms_FC= 14156 # exclude_expsyms can be an extended regexp of symbols to exclude 14157 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14158 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14159 # as well as any symbol that contains `d'. 14160 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14161 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14162 # platforms (ab)use it in PIC code, but their linkers get confused if 14163 # the symbol is explicitly referenced. Since portable code cannot 14164 # rely on this symbol name, it's probably fine to never include it in 14165 # preloaded symbol tables. 14166 # Exclude shared library initialization/finalization symbols. 14167 extract_expsyms_cmds= 14168 14169 case $host_os in 14170 cygwin* | mingw* | pw32* | cegcc*) 14171 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14172 # When not using gcc, we currently assume that we are using 14173 # Microsoft Visual C++. 14174 if test "$GCC" != yes; then 14175 with_gnu_ld=no 14176 fi 14177 ;; 14178 interix*) 14179 # we just hope/assume this is gcc and not c89 (= MSVC++) 14180 with_gnu_ld=yes 14181 ;; 14182 openbsd*) 14183 with_gnu_ld=no 14184 ;; 14185 esac 14186 14187 ld_shlibs_FC=yes 14188 14189 # On some targets, GNU ld is compatible enough with the native linker 14190 # that we're better off using the native interface for both. 14191 lt_use_gnu_ld_interface=no 14192 if test "$with_gnu_ld" = yes; then 14193 case $host_os in 14194 aix*) 14195 # The AIX port of GNU ld has always aspired to compatibility 14196 # with the native linker. However, as the warning in the GNU ld 14197 # block says, versions before 2.19.5* couldn't really create working 14198 # shared libraries, regardless of the interface used. 14199 case `$LD -v 2>&1` in 14200 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14201 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14202 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14203 *) 14204 lt_use_gnu_ld_interface=yes 14205 ;; 14206 esac 14207 ;; 14208 *) 14209 lt_use_gnu_ld_interface=yes 14210 ;; 14211 esac 14212 fi 14213 14214 if test "$lt_use_gnu_ld_interface" = yes; then 14215 # If archive_cmds runs LD, not CC, wlarc should be empty 14216 wlarc='${wl}' 14217 14218 # Set some defaults for GNU ld with shared library support. These 14219 # are reset later if shared libraries are not supported. Putting them 14220 # here allows them to be overridden if necessary. 14221 runpath_var=LD_RUN_PATH 14222 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14223 export_dynamic_flag_spec_FC='${wl}--export-dynamic' 14224 # ancient GNU ld didn't support --whole-archive et. al. 14225 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14226 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14227 else 14228 whole_archive_flag_spec_FC= 14229 fi 14230 supports_anon_versioning=no 14231 case `$LD -v 2>&1` in 14232 *GNU\ gold*) supports_anon_versioning=yes ;; 14233 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14236 *\ 2.11.*) ;; # other 2.11 versions 14237 *) supports_anon_versioning=yes ;; 14238 esac 14239 14240 # See if GNU ld supports shared libraries. 14241 case $host_os in 14242 aix[3-9]*) 14243 # On AIX/PPC, the GNU linker is very broken 14244 if test "$host_cpu" != ia64; then 14245 ld_shlibs_FC=no 14246 cat <<_LT_EOF 1>&2 14247 14248*** Warning: the GNU linker, at least up to release 2.19, is reported 14249*** to be unable to reliably create shared libraries on AIX. 14250*** Therefore, libtool is disabling shared libraries support. If you 14251*** really care for shared libraries, you may want to install binutils 14252*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14253*** You will then need to restart the configuration process. 14254 14255_LT_EOF 14256 fi 14257 ;; 14258 14259 amigaos*) 14260 case $host_cpu in 14261 powerpc) 14262 # see comment about AmigaOS4 .so support 14263 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14264 archive_expsym_cmds_FC='' 14265 ;; 14266 m68k) 14267 archive_cmds_FC='$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)' 14268 hardcode_libdir_flag_spec_FC='-L$libdir' 14269 hardcode_minus_L_FC=yes 14270 ;; 14271 esac 14272 ;; 14273 14274 beos*) 14275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14276 allow_undefined_flag_FC=unsupported 14277 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14278 # support --undefined. This deserves some investigation. FIXME 14279 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14280 else 14281 ld_shlibs_FC=no 14282 fi 14283 ;; 14284 14285 cygwin* | mingw* | pw32* | cegcc*) 14286 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 14287 # as there is no search path for DLLs. 14288 hardcode_libdir_flag_spec_FC='-L$libdir' 14289 export_dynamic_flag_spec_FC='${wl}--export-all-symbols' 14290 allow_undefined_flag_FC=unsupported 14291 always_export_symbols_FC=no 14292 enable_shared_with_static_runtimes_FC=yes 14293 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14294 14295 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14296 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14297 # If the export-symbols file already is a .def file (1st line 14298 # is EXPORTS), use it as is; otherwise, prepend... 14299 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14300 cp $export_symbols $output_objdir/$soname.def; 14301 else 14302 echo EXPORTS > $output_objdir/$soname.def; 14303 cat $export_symbols >> $output_objdir/$soname.def; 14304 fi~ 14305 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14306 else 14307 ld_shlibs_FC=no 14308 fi 14309 ;; 14310 14311 haiku*) 14312 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14313 link_all_deplibs_FC=yes 14314 ;; 14315 14316 interix[3-9]*) 14317 hardcode_direct_FC=no 14318 hardcode_shlibpath_var_FC=no 14319 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 14320 export_dynamic_flag_spec_FC='${wl}-E' 14321 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14322 # Instead, shared libraries are loaded at an image base (0x10000000 by 14323 # default) and relocated if they conflict, which is a slow very memory 14324 # consuming and fragmenting process. To avoid this, we pick a random, 14325 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14326 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14327 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14328 archive_expsym_cmds_FC='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' 14329 ;; 14330 14331 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 14332 tmp_diet=no 14333 if test "$host_os" = linux-dietlibc; then 14334 case $cc_basename in 14335 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 14336 esac 14337 fi 14338 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 14339 && test "$tmp_diet" = no 14340 then 14341 tmp_addflag=' $pic_flag' 14342 tmp_sharedflag='-shared' 14343 case $cc_basename,$host_cpu in 14344 pgcc*) # Portland Group C compiler 14345 whole_archive_flag_spec_FC='${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' 14346 tmp_addflag=' $pic_flag' 14347 ;; 14348 pgf77* | pgf90* | pgf95* | pgfortran*) 14349 # Portland Group f77 and f90 compilers 14350 whole_archive_flag_spec_FC='${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' 14351 tmp_addflag=' $pic_flag -Mnomain' ;; 14352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14353 tmp_addflag=' -i_dynamic' ;; 14354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14355 tmp_addflag=' -i_dynamic -nofor_main' ;; 14356 ifc* | ifort*) # Intel Fortran compiler 14357 tmp_addflag=' -nofor_main' ;; 14358 lf95*) # Lahey Fortran 8.1 14359 whole_archive_flag_spec_FC= 14360 tmp_sharedflag='--shared' ;; 14361 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 14362 tmp_sharedflag='-qmkshrobj' 14363 tmp_addflag= ;; 14364 nvcc*) # Cuda Compiler Driver 2.2 14365 whole_archive_flag_spec_FC='${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' 14366 compiler_needs_object_FC=yes 14367 ;; 14368 esac 14369 case `$CC -V 2>&1 | sed 5q` in 14370 *Sun\ C*) # Sun C 5.9 14371 whole_archive_flag_spec_FC='${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' 14372 compiler_needs_object_FC=yes 14373 tmp_sharedflag='-G' ;; 14374 *Sun\ F*) # Sun Fortran 8.3 14375 tmp_sharedflag='-G' ;; 14376 esac 14377 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14378 14379 if test "x$supports_anon_versioning" = xyes; then 14380 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 14381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14382 echo "local: *; };" >> $output_objdir/$libname.ver~ 14383 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14384 fi 14385 14386 case $cc_basename in 14387 xlf* | bgf* | bgxlf* | mpixlf*) 14388 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 14389 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' 14390 hardcode_libdir_flag_spec_FC= 14391 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir' 14392 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 14393 if test "x$supports_anon_versioning" = xyes; then 14394 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 14395 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14396 echo "local: *; };" >> $output_objdir/$libname.ver~ 14397 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 14398 fi 14399 ;; 14400 esac 14401 else 14402 ld_shlibs_FC=no 14403 fi 14404 ;; 14405 14406 netbsd*) 14407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14408 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14409 wlarc= 14410 else 14411 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14412 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14413 fi 14414 ;; 14415 14416 solaris*) 14417 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 14418 ld_shlibs_FC=no 14419 cat <<_LT_EOF 1>&2 14420 14421*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14422*** create shared libraries on Solaris systems. Therefore, libtool 14423*** is disabling shared libraries support. We urge you to upgrade GNU 14424*** binutils to release 2.9.1 or newer. Another option is to modify 14425*** your PATH or compiler configuration so that the native linker is 14426*** used, and then restart. 14427 14428_LT_EOF 14429 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14430 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14431 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14432 else 14433 ld_shlibs_FC=no 14434 fi 14435 ;; 14436 14437 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14438 case `$LD -v 2>&1` in 14439 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14440 ld_shlibs_FC=no 14441 cat <<_LT_EOF 1>&2 14442 14443*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14444*** reliably create shared libraries on SCO systems. Therefore, libtool 14445*** is disabling shared libraries support. We urge you to upgrade GNU 14446*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14447*** your PATH or compiler configuration so that the native linker is 14448*** used, and then restart. 14449 14450_LT_EOF 14451 ;; 14452 *) 14453 # For security reasons, it is highly recommended that you always 14454 # use absolute paths for naming shared libraries, and exclude the 14455 # DT_RUNPATH tag from executables and libraries. But doing so 14456 # requires that you compile everything twice, which is a pain. 14457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14458 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14459 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14460 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14461 else 14462 ld_shlibs_FC=no 14463 fi 14464 ;; 14465 esac 14466 ;; 14467 14468 sunos4*) 14469 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14470 wlarc= 14471 hardcode_direct_FC=yes 14472 hardcode_shlibpath_var_FC=no 14473 ;; 14474 14475 *) 14476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14477 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14478 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14479 else 14480 ld_shlibs_FC=no 14481 fi 14482 ;; 14483 esac 14484 14485 if test "$ld_shlibs_FC" = no; then 14486 runpath_var= 14487 hardcode_libdir_flag_spec_FC= 14488 export_dynamic_flag_spec_FC= 14489 whole_archive_flag_spec_FC= 14490 fi 14491 else 14492 # PORTME fill in a description of your system's linker (not GNU ld) 14493 case $host_os in 14494 aix3*) 14495 allow_undefined_flag_FC=unsupported 14496 always_export_symbols_FC=yes 14497 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14498 # Note: this linker hardcodes the directories in LIBPATH if there 14499 # are no directories specified by -L. 14500 hardcode_minus_L_FC=yes 14501 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14502 # Neither direct hardcoding nor static linking is supported with a 14503 # broken collect2. 14504 hardcode_direct_FC=unsupported 14505 fi 14506 ;; 14507 14508 aix[4-9]*) 14509 if test "$host_cpu" = ia64; then 14510 # On IA64, the linker does run time linking by default, so we don't 14511 # have to do anything special. 14512 aix_use_runtimelinking=no 14513 exp_sym_flag='-Bexport' 14514 no_entry_flag="" 14515 else 14516 # If we're using GNU nm, then we don't want the "-C" option. 14517 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14518 # Also, AIX nm treats weak defined symbols like other global 14519 # defined symbols, whereas GNU nm marks them as "W". 14520 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14521 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14522 else 14523 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14524 fi 14525 aix_use_runtimelinking=no 14526 14527 # Test if we are trying to use run time linking or normal 14528 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14529 # need to do runtime linking. 14530 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14531 for ld_flag in $LDFLAGS; do 14532 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14533 aix_use_runtimelinking=yes 14534 break 14535 fi 14536 done 14537 ;; 14538 esac 14539 14540 exp_sym_flag='-bexport' 14541 no_entry_flag='-bnoentry' 14542 fi 14543 14544 # When large executables or shared objects are built, AIX ld can 14545 # have problems creating the table of contents. If linking a library 14546 # or program results in "error TOC overflow" add -mminimal-toc to 14547 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14548 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14549 14550 archive_cmds_FC='' 14551 hardcode_direct_FC=yes 14552 hardcode_direct_absolute_FC=yes 14553 hardcode_libdir_separator_FC=':' 14554 link_all_deplibs_FC=yes 14555 file_list_spec_FC='${wl}-f,' 14556 14557 if test "$GCC" = yes; then 14558 case $host_os in aix4.[012]|aix4.[012].*) 14559 # We only want to do this on AIX 4.2 and lower, the check 14560 # below for broken collect2 doesn't work under 4.3+ 14561 collect2name=`${CC} -print-prog-name=collect2` 14562 if test -f "$collect2name" && 14563 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14564 then 14565 # We have reworked collect2 14566 : 14567 else 14568 # We have old collect2 14569 hardcode_direct_FC=unsupported 14570 # It fails to find uninstalled libraries when the uninstalled 14571 # path is not listed in the libpath. Setting hardcode_minus_L 14572 # to unsupported forces relinking 14573 hardcode_minus_L_FC=yes 14574 hardcode_libdir_flag_spec_FC='-L$libdir' 14575 hardcode_libdir_separator_FC= 14576 fi 14577 ;; 14578 esac 14579 shared_flag='-shared' 14580 if test "$aix_use_runtimelinking" = yes; then 14581 shared_flag="$shared_flag "'${wl}-G' 14582 fi 14583 else 14584 # not using gcc 14585 if test "$host_cpu" = ia64; then 14586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14587 # chokes on -Wl,-G. The following line is correct: 14588 shared_flag='-G' 14589 else 14590 if test "$aix_use_runtimelinking" = yes; then 14591 shared_flag='${wl}-G' 14592 else 14593 shared_flag='${wl}-bM:SRE' 14594 fi 14595 fi 14596 fi 14597 14598 export_dynamic_flag_spec_FC='${wl}-bexpall' 14599 # It seems that -bexpall does not export symbols beginning with 14600 # underscore (_), so it is better to generate a list of symbols to export. 14601 always_export_symbols_FC=yes 14602 if test "$aix_use_runtimelinking" = yes; then 14603 # Warning - without using the other runtime loading flags (-brtl), 14604 # -berok will link without error, but may produce a broken library. 14605 allow_undefined_flag_FC='-berok' 14606 # Determine the default libpath from the value encoded in an 14607 # empty executable. 14608 if test x$gcc_no_link = xyes; then 14609 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 14610fi 14611cat > conftest.$ac_ext <<_ACEOF 14612 program main 14613 14614 end 14615_ACEOF 14616if ac_fn_fc_try_link "$LINENO"; then : 14617 14618lt_aix_libpath_sed=' 14619 /Import File Strings/,/^$/ { 14620 /^0/ { 14621 s/^0 *\(.*\)$/\1/ 14622 p 14623 } 14624 }' 14625aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14626# Check for a 64-bit object if we didn't find anything. 14627if test -z "$aix_libpath"; then 14628 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14629fi 14630fi 14631rm -f core conftest.err conftest.$ac_objext \ 14632 conftest$ac_exeext conftest.$ac_ext 14633if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14634 14635 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 14636 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14637 else 14638 if test "$host_cpu" = ia64; then 14639 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' 14640 allow_undefined_flag_FC="-z nodefs" 14641 archive_expsym_cmds_FC="\$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" 14642 else 14643 # Determine the default libpath from the value encoded in an 14644 # empty executable. 14645 if test x$gcc_no_link = xyes; then 14646 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 14647fi 14648cat > conftest.$ac_ext <<_ACEOF 14649 program main 14650 14651 end 14652_ACEOF 14653if ac_fn_fc_try_link "$LINENO"; then : 14654 14655lt_aix_libpath_sed=' 14656 /Import File Strings/,/^$/ { 14657 /^0/ { 14658 s/^0 *\(.*\)$/\1/ 14659 p 14660 } 14661 }' 14662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14663# Check for a 64-bit object if we didn't find anything. 14664if test -z "$aix_libpath"; then 14665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14666fi 14667fi 14668rm -f core conftest.err conftest.$ac_objext \ 14669 conftest$ac_exeext conftest.$ac_ext 14670if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14671 14672 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 14673 # Warning - without using the other run time loading flags, 14674 # -berok will link without error, but may produce a broken library. 14675 no_undefined_flag_FC=' ${wl}-bernotok' 14676 allow_undefined_flag_FC=' ${wl}-berok' 14677 if test "$with_gnu_ld" = yes; then 14678 # We only use this code for GNU lds that support --whole-archive. 14679 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14680 else 14681 # Exported symbols can be pulled into shared objects from archives 14682 whole_archive_flag_spec_FC='$convenience' 14683 fi 14684 archive_cmds_need_lc_FC=yes 14685 # This is similar to how AIX traditionally builds its shared libraries. 14686 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14687 fi 14688 fi 14689 ;; 14690 14691 amigaos*) 14692 case $host_cpu in 14693 powerpc) 14694 # see comment about AmigaOS4 .so support 14695 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14696 archive_expsym_cmds_FC='' 14697 ;; 14698 m68k) 14699 archive_cmds_FC='$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)' 14700 hardcode_libdir_flag_spec_FC='-L$libdir' 14701 hardcode_minus_L_FC=yes 14702 ;; 14703 esac 14704 ;; 14705 14706 bsdi[45]*) 14707 export_dynamic_flag_spec_FC=-rdynamic 14708 ;; 14709 14710 cygwin* | mingw* | pw32* | cegcc*) 14711 # When not using gcc, we currently assume that we are using 14712 # Microsoft Visual C++. 14713 # hardcode_libdir_flag_spec is actually meaningless, as there is 14714 # no search path for DLLs. 14715 hardcode_libdir_flag_spec_FC=' ' 14716 allow_undefined_flag_FC=unsupported 14717 # Tell ltmain to make .lib files, not .a files. 14718 libext=lib 14719 # Tell ltmain to make .dll files, not .so files. 14720 shrext_cmds=".dll" 14721 # FIXME: Setting linknames here is a bad hack. 14722 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 14723 # The linker will automatically build a .lib file if we build a DLL. 14724 old_archive_from_new_cmds_FC='true' 14725 # FIXME: Should let the user specify the lib program. 14726 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 14727 fix_srcfile_path_FC='`cygpath -w "$srcfile"`' 14728 enable_shared_with_static_runtimes_FC=yes 14729 ;; 14730 14731 darwin* | rhapsody*) 14732 14733 14734 archive_cmds_need_lc_FC=no 14735 hardcode_direct_FC=no 14736 hardcode_automatic_FC=yes 14737 hardcode_shlibpath_var_FC=unsupported 14738 if test "$lt_cv_ld_force_load" = "yes"; then 14739 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14740 else 14741 whole_archive_flag_spec_FC='' 14742 fi 14743 link_all_deplibs_FC=yes 14744 allow_undefined_flag_FC="$_lt_dar_allow_undefined" 14745 case $cc_basename in 14746 ifort*) _lt_dar_can_shared=yes ;; 14747 *) _lt_dar_can_shared=$GCC ;; 14748 esac 14749 if test "$_lt_dar_can_shared" = "yes"; then 14750 output_verbose_link_cmd=func_echo_all 14751 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 14752 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14753 archive_expsym_cmds_FC="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}" 14754 module_expsym_cmds_FC="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}" 14755 14756 else 14757 ld_shlibs_FC=no 14758 fi 14759 14760 ;; 14761 14762 dgux*) 14763 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14764 hardcode_libdir_flag_spec_FC='-L$libdir' 14765 hardcode_shlibpath_var_FC=no 14766 ;; 14767 14768 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14769 # support. Future versions do this automatically, but an explicit c++rt0.o 14770 # does not break anything, and helps significantly (at the cost of a little 14771 # extra space). 14772 freebsd2.2*) 14773 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14774 hardcode_libdir_flag_spec_FC='-R$libdir' 14775 hardcode_direct_FC=yes 14776 hardcode_shlibpath_var_FC=no 14777 ;; 14778 14779 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14780 freebsd2.*) 14781 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14782 hardcode_direct_FC=yes 14783 hardcode_minus_L_FC=yes 14784 hardcode_shlibpath_var_FC=no 14785 ;; 14786 14787 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14788 freebsd* | dragonfly*) 14789 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14790 hardcode_libdir_flag_spec_FC='-R$libdir' 14791 hardcode_direct_FC=yes 14792 hardcode_shlibpath_var_FC=no 14793 ;; 14794 14795 hpux9*) 14796 if test "$GCC" = yes; then 14797 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14798 else 14799 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14800 fi 14801 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 14802 hardcode_libdir_separator_FC=: 14803 hardcode_direct_FC=yes 14804 14805 # hardcode_minus_L: Not really in the search PATH, 14806 # but as the default location of the library. 14807 hardcode_minus_L_FC=yes 14808 export_dynamic_flag_spec_FC='${wl}-E' 14809 ;; 14810 14811 hpux10*) 14812 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14813 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14814 else 14815 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14816 fi 14817 if test "$with_gnu_ld" = no; then 14818 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 14819 hardcode_libdir_flag_spec_ld_FC='+b $libdir' 14820 hardcode_libdir_separator_FC=: 14821 hardcode_direct_FC=yes 14822 hardcode_direct_absolute_FC=yes 14823 export_dynamic_flag_spec_FC='${wl}-E' 14824 # hardcode_minus_L: Not really in the search PATH, 14825 # but as the default location of the library. 14826 hardcode_minus_L_FC=yes 14827 fi 14828 ;; 14829 14830 hpux11*) 14831 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 14832 case $host_cpu in 14833 hppa*64*) 14834 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14835 ;; 14836 ia64*) 14837 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14838 ;; 14839 *) 14840 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14841 ;; 14842 esac 14843 else 14844 case $host_cpu in 14845 hppa*64*) 14846 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14847 ;; 14848 ia64*) 14849 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14850 ;; 14851 *) 14852 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14853 ;; 14854 esac 14855 fi 14856 if test "$with_gnu_ld" = no; then 14857 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 14858 hardcode_libdir_separator_FC=: 14859 14860 case $host_cpu in 14861 hppa*64*|ia64*) 14862 hardcode_direct_FC=no 14863 hardcode_shlibpath_var_FC=no 14864 ;; 14865 *) 14866 hardcode_direct_FC=yes 14867 hardcode_direct_absolute_FC=yes 14868 export_dynamic_flag_spec_FC='${wl}-E' 14869 14870 # hardcode_minus_L: Not really in the search PATH, 14871 # but as the default location of the library. 14872 hardcode_minus_L_FC=yes 14873 ;; 14874 esac 14875 fi 14876 ;; 14877 14878 irix5* | irix6* | nonstopux*) 14879 if test "$GCC" = yes; then 14880 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14881 # Try to use the -exported_symbol ld option, if it does not 14882 # work, assume that -exports_file does not work either and 14883 # implicitly export all symbols. 14884 save_LDFLAGS="$LDFLAGS" 14885 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 14886 if test x$gcc_no_link = xyes; then 14887 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 14888fi 14889cat > conftest.$ac_ext <<_ACEOF 14890int foo(void) {} 14891_ACEOF 14892if ac_fn_fc_try_link "$LINENO"; then : 14893 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 14894 14895fi 14896rm -f core conftest.err conftest.$ac_objext \ 14897 conftest$ac_exeext conftest.$ac_ext 14898 LDFLAGS="$save_LDFLAGS" 14899 else 14900 archive_cmds_FC='$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' 14901 archive_expsym_cmds_FC='$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' 14902 fi 14903 archive_cmds_need_lc_FC='no' 14904 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14905 hardcode_libdir_separator_FC=: 14906 inherit_rpath_FC=yes 14907 link_all_deplibs_FC=yes 14908 ;; 14909 14910 netbsd*) 14911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14912 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14913 else 14914 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14915 fi 14916 hardcode_libdir_flag_spec_FC='-R$libdir' 14917 hardcode_direct_FC=yes 14918 hardcode_shlibpath_var_FC=no 14919 ;; 14920 14921 newsos6) 14922 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14923 hardcode_direct_FC=yes 14924 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14925 hardcode_libdir_separator_FC=: 14926 hardcode_shlibpath_var_FC=no 14927 ;; 14928 14929 *nto* | *qnx*) 14930 ;; 14931 14932 openbsd*) 14933 if test -f /usr/libexec/ld.so; then 14934 hardcode_direct_FC=yes 14935 hardcode_shlibpath_var_FC=no 14936 hardcode_direct_absolute_FC=yes 14937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14938 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14939 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14940 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 14941 export_dynamic_flag_spec_FC='${wl}-E' 14942 else 14943 case $host_os in 14944 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14945 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14946 hardcode_libdir_flag_spec_FC='-R$libdir' 14947 ;; 14948 *) 14949 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14950 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 14951 ;; 14952 esac 14953 fi 14954 else 14955 ld_shlibs_FC=no 14956 fi 14957 ;; 14958 14959 os2*) 14960 hardcode_libdir_flag_spec_FC='-L$libdir' 14961 hardcode_minus_L_FC=yes 14962 allow_undefined_flag_FC=unsupported 14963 archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 14964 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14965 ;; 14966 14967 osf3*) 14968 if test "$GCC" = yes; then 14969 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 14970 archive_cmds_FC='$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' 14971 else 14972 allow_undefined_flag_FC=' -expect_unresolved \*' 14973 archive_cmds_FC='$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' 14974 fi 14975 archive_cmds_need_lc_FC='no' 14976 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14977 hardcode_libdir_separator_FC=: 14978 ;; 14979 14980 osf4* | osf5*) # as osf3* with the addition of -msym flag 14981 if test "$GCC" = yes; then 14982 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 14983 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14984 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 14985 else 14986 allow_undefined_flag_FC=' -expect_unresolved \*' 14987 archive_cmds_FC='$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' 14988 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 14989 $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' 14990 14991 # Both c and cxx compiler support -rpath directly 14992 hardcode_libdir_flag_spec_FC='-rpath $libdir' 14993 fi 14994 archive_cmds_need_lc_FC='no' 14995 hardcode_libdir_separator_FC=: 14996 ;; 14997 14998 solaris*) 14999 no_undefined_flag_FC=' -z defs' 15000 if test "$GCC" = yes; then 15001 wlarc='${wl}' 15002 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15003 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15004 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15005 else 15006 case `$CC -V 2>&1` in 15007 *"Compilers 5.0"*) 15008 wlarc='' 15009 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15010 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15011 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15012 ;; 15013 *) 15014 wlarc='${wl}' 15015 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15016 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15017 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15018 ;; 15019 esac 15020 fi 15021 hardcode_libdir_flag_spec_FC='-R$libdir' 15022 hardcode_shlibpath_var_FC=no 15023 case $host_os in 15024 solaris2.[0-5] | solaris2.[0-5].*) ;; 15025 *) 15026 # The compiler driver will combine and reorder linker options, 15027 # but understands `-z linker_flag'. GCC discards it without `$wl', 15028 # but is careful enough not to reorder. 15029 # Supported since Solaris 2.6 (maybe 2.5.1?) 15030 if test "$GCC" = yes; then 15031 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15032 else 15033 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 15034 fi 15035 ;; 15036 esac 15037 link_all_deplibs_FC=yes 15038 ;; 15039 15040 sunos4*) 15041 if test "x$host_vendor" = xsequent; then 15042 # Use $CC to link under sequent, because it throws in some extra .o 15043 # files that make .init and .fini sections work. 15044 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15045 else 15046 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15047 fi 15048 hardcode_libdir_flag_spec_FC='-L$libdir' 15049 hardcode_direct_FC=yes 15050 hardcode_minus_L_FC=yes 15051 hardcode_shlibpath_var_FC=no 15052 ;; 15053 15054 sysv4) 15055 case $host_vendor in 15056 sni) 15057 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15058 hardcode_direct_FC=yes # is this really true??? 15059 ;; 15060 siemens) 15061 ## LD is ld it makes a PLAMLIB 15062 ## CC just makes a GrossModule. 15063 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15064 reload_cmds_FC='$CC -r -o $output$reload_objs' 15065 hardcode_direct_FC=no 15066 ;; 15067 motorola) 15068 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15069 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 15070 ;; 15071 esac 15072 runpath_var='LD_RUN_PATH' 15073 hardcode_shlibpath_var_FC=no 15074 ;; 15075 15076 sysv4.3*) 15077 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15078 hardcode_shlibpath_var_FC=no 15079 export_dynamic_flag_spec_FC='-Bexport' 15080 ;; 15081 15082 sysv4*MP*) 15083 if test -d /usr/nec; then 15084 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15085 hardcode_shlibpath_var_FC=no 15086 runpath_var=LD_RUN_PATH 15087 hardcode_runpath_var=yes 15088 ld_shlibs_FC=yes 15089 fi 15090 ;; 15091 15092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15093 no_undefined_flag_FC='${wl}-z,text' 15094 archive_cmds_need_lc_FC=no 15095 hardcode_shlibpath_var_FC=no 15096 runpath_var='LD_RUN_PATH' 15097 15098 if test "$GCC" = yes; then 15099 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15100 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15101 else 15102 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15103 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15104 fi 15105 ;; 15106 15107 sysv5* | sco3.2v5* | sco5v6*) 15108 # Note: We can NOT use -z defs as we might desire, because we do not 15109 # link with -lc, and that would cause any symbols used from libc to 15110 # always be unresolved, which means just about no library would 15111 # ever link correctly. If we're not using GNU ld we use -z text 15112 # though, which does catch some bad symbols but isn't as heavy-handed 15113 # as -z defs. 15114 no_undefined_flag_FC='${wl}-z,text' 15115 allow_undefined_flag_FC='${wl}-z,nodefs' 15116 archive_cmds_need_lc_FC=no 15117 hardcode_shlibpath_var_FC=no 15118 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' 15119 hardcode_libdir_separator_FC=':' 15120 link_all_deplibs_FC=yes 15121 export_dynamic_flag_spec_FC='${wl}-Bexport' 15122 runpath_var='LD_RUN_PATH' 15123 15124 if test "$GCC" = yes; then 15125 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15126 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15127 else 15128 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15129 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15130 fi 15131 ;; 15132 15133 uts4*) 15134 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15135 hardcode_libdir_flag_spec_FC='-L$libdir' 15136 hardcode_shlibpath_var_FC=no 15137 ;; 15138 15139 *) 15140 ld_shlibs_FC=no 15141 ;; 15142 esac 15143 15144 if test x$host_vendor = xsni; then 15145 case $host in 15146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15147 export_dynamic_flag_spec_FC='${wl}-Blargedynsym' 15148 ;; 15149 esac 15150 fi 15151 fi 15152 15153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 15154$as_echo "$ld_shlibs_FC" >&6; } 15155test "$ld_shlibs_FC" = no && can_build_shared=no 15156 15157with_gnu_ld_FC=$with_gnu_ld 15158 15159 15160 15161 15162 15163 15164# 15165# Do we need to explicitly link libc? 15166# 15167case "x$archive_cmds_need_lc_FC" in 15168x|xyes) 15169 # Assume -lc should be added 15170 archive_cmds_need_lc_FC=yes 15171 15172 if test "$enable_shared" = yes && test "$GCC" = yes; then 15173 case $archive_cmds_FC in 15174 *'~'*) 15175 # FIXME: we may have to deal with multi-command sequences. 15176 ;; 15177 '$CC '*) 15178 # Test whether the compiler implicitly links with -lc since on some 15179 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15180 # to ld, don't add -lc before -lgcc. 15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15182$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15183if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : 15184 $as_echo_n "(cached) " >&6 15185else 15186 $RM conftest* 15187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15188 15189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15190 (eval $ac_compile) 2>&5 15191 ac_status=$? 15192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15193 test $ac_status = 0; } 2>conftest.err; then 15194 soname=conftest 15195 lib=conftest 15196 libobjs=conftest.$ac_objext 15197 deplibs= 15198 wl=$lt_prog_compiler_wl_FC 15199 pic_flag=$lt_prog_compiler_pic_FC 15200 compiler_flags=-v 15201 linker_flags=-v 15202 verstring= 15203 output_objdir=. 15204 libname=conftest 15205 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 15206 allow_undefined_flag_FC= 15207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15208 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15209 ac_status=$? 15210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15211 test $ac_status = 0; } 15212 then 15213 lt_cv_archive_cmds_need_lc_FC=no 15214 else 15215 lt_cv_archive_cmds_need_lc_FC=yes 15216 fi 15217 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 15218 else 15219 cat conftest.err 1>&5 15220 fi 15221 $RM conftest* 15222 15223fi 15224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 15225$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } 15226 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC 15227 ;; 15228 esac 15229 fi 15230 ;; 15231esac 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15297$as_echo_n "checking dynamic linker characteristics... " >&6; } 15298 15299library_names_spec= 15300libname_spec='lib$name' 15301soname_spec= 15302shrext_cmds=".so" 15303postinstall_cmds= 15304postuninstall_cmds= 15305finish_cmds= 15306finish_eval= 15307shlibpath_var= 15308shlibpath_overrides_runpath=unknown 15309version_type=none 15310dynamic_linker="$host_os ld.so" 15311sys_lib_dlsearch_path_spec="/lib /usr/lib" 15312need_lib_prefix=unknown 15313hardcode_into_libs=no 15314 15315# when you set need_version to no, make sure it does not cause -set_version 15316# flags to be left without arguments 15317need_version=unknown 15318 15319case $host_os in 15320aix3*) 15321 version_type=linux 15322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15323 shlibpath_var=LIBPATH 15324 15325 # AIX 3 has no versioning support, so we append a major version to the name. 15326 soname_spec='${libname}${release}${shared_ext}$major' 15327 ;; 15328 15329aix[4-9]*) 15330 version_type=linux 15331 need_lib_prefix=no 15332 need_version=no 15333 hardcode_into_libs=yes 15334 if test "$host_cpu" = ia64; then 15335 # AIX 5 supports IA64 15336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15337 shlibpath_var=LD_LIBRARY_PATH 15338 else 15339 # With GCC up to 2.95.x, collect2 would create an import file 15340 # for dependence libraries. The import file would start with 15341 # the line `#! .'. This would cause the generated library to 15342 # depend on `.', always an invalid library. This was fixed in 15343 # development snapshots of GCC prior to 3.0. 15344 case $host_os in 15345 aix4 | aix4.[01] | aix4.[01].*) 15346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15347 echo ' yes ' 15348 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15349 : 15350 else 15351 can_build_shared=no 15352 fi 15353 ;; 15354 esac 15355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15356 # soname into executable. Probably we can add versioning support to 15357 # collect2, so additional links can be useful in future. 15358 if test "$aix_use_runtimelinking" = yes; then 15359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15360 # instead of lib<name>.a to let people know that these are not 15361 # typical AIX shared libraries. 15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15363 else 15364 # We preserve .a as extension for shared libraries through AIX4.2 15365 # and later when we are not doing run time linking. 15366 library_names_spec='${libname}${release}.a $libname.a' 15367 soname_spec='${libname}${release}${shared_ext}$major' 15368 fi 15369 shlibpath_var=LIBPATH 15370 fi 15371 ;; 15372 15373amigaos*) 15374 case $host_cpu in 15375 powerpc) 15376 # Since July 2007 AmigaOS4 officially supports .so libraries. 15377 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15379 ;; 15380 m68k) 15381 library_names_spec='$libname.ixlibrary $libname.a' 15382 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15383 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15384 ;; 15385 esac 15386 ;; 15387 15388beos*) 15389 library_names_spec='${libname}${shared_ext}' 15390 dynamic_linker="$host_os ld.so" 15391 shlibpath_var=LIBRARY_PATH 15392 ;; 15393 15394bsdi[45]*) 15395 version_type=linux 15396 need_version=no 15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15398 soname_spec='${libname}${release}${shared_ext}$major' 15399 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15400 shlibpath_var=LD_LIBRARY_PATH 15401 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15402 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15403 # the default ld.so.conf also contains /usr/contrib/lib and 15404 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15405 # libtool to hard-code these into programs 15406 ;; 15407 15408cygwin* | mingw* | pw32* | cegcc*) 15409 version_type=windows 15410 shrext_cmds=".dll" 15411 need_version=no 15412 need_lib_prefix=no 15413 15414 case $GCC,$host_os in 15415 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 15416 library_names_spec='$libname.dll.a' 15417 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15418 postinstall_cmds='base_file=`basename \${file}`~ 15419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15420 dldir=$destdir/`dirname \$dlpath`~ 15421 test -d \$dldir || mkdir -p \$dldir~ 15422 $install_prog $dir/$dlname \$dldir/$dlname~ 15423 chmod a+x \$dldir/$dlname~ 15424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15426 fi' 15427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15428 dlpath=$dir/\$dldll~ 15429 $RM \$dlpath' 15430 shlibpath_overrides_runpath=yes 15431 15432 case $host_os in 15433 cygwin*) 15434 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15436 15437 ;; 15438 mingw* | cegcc*) 15439 # MinGW DLLs use traditional 'lib' prefix 15440 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15441 ;; 15442 pw32*) 15443 # pw32 DLLs use 'pw' prefix rather than 'lib' 15444 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15445 ;; 15446 esac 15447 ;; 15448 15449 *) 15450 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15451 ;; 15452 esac 15453 dynamic_linker='Win32 ld.exe' 15454 # FIXME: first we should search . and the directory the executable is in 15455 shlibpath_var=PATH 15456 ;; 15457 15458darwin* | rhapsody*) 15459 dynamic_linker="$host_os dyld" 15460 version_type=darwin 15461 need_lib_prefix=no 15462 need_version=no 15463 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15464 soname_spec='${libname}${release}${major}$shared_ext' 15465 shlibpath_overrides_runpath=yes 15466 shlibpath_var=DYLD_LIBRARY_PATH 15467 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15468 15469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15470 ;; 15471 15472dgux*) 15473 version_type=linux 15474 need_lib_prefix=no 15475 need_version=no 15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15477 soname_spec='${libname}${release}${shared_ext}$major' 15478 shlibpath_var=LD_LIBRARY_PATH 15479 ;; 15480 15481freebsd* | dragonfly*) 15482 # DragonFly does not have aout. When/if they implement a new 15483 # versioning mechanism, adjust this. 15484 if test -x /usr/bin/objformat; then 15485 objformat=`/usr/bin/objformat` 15486 else 15487 case $host_os in 15488 freebsd[23].*) objformat=aout ;; 15489 *) objformat=elf ;; 15490 esac 15491 fi 15492 version_type=freebsd-$objformat 15493 case $version_type in 15494 freebsd-elf*) 15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15496 need_version=no 15497 need_lib_prefix=no 15498 ;; 15499 freebsd-*) 15500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15501 need_version=yes 15502 ;; 15503 esac 15504 shlibpath_var=LD_LIBRARY_PATH 15505 case $host_os in 15506 freebsd2.*) 15507 shlibpath_overrides_runpath=yes 15508 ;; 15509 freebsd3.[01]* | freebsdelf3.[01]*) 15510 shlibpath_overrides_runpath=yes 15511 hardcode_into_libs=yes 15512 ;; 15513 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15514 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15515 shlibpath_overrides_runpath=no 15516 hardcode_into_libs=yes 15517 ;; 15518 *) # from 4.6 on, and DragonFly 15519 shlibpath_overrides_runpath=yes 15520 hardcode_into_libs=yes 15521 ;; 15522 esac 15523 ;; 15524 15525gnu*) 15526 version_type=linux 15527 need_lib_prefix=no 15528 need_version=no 15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15530 soname_spec='${libname}${release}${shared_ext}$major' 15531 shlibpath_var=LD_LIBRARY_PATH 15532 hardcode_into_libs=yes 15533 ;; 15534 15535haiku*) 15536 version_type=linux 15537 need_lib_prefix=no 15538 need_version=no 15539 dynamic_linker="$host_os runtime_loader" 15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15541 soname_spec='${libname}${release}${shared_ext}$major' 15542 shlibpath_var=LIBRARY_PATH 15543 shlibpath_overrides_runpath=yes 15544 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 15545 hardcode_into_libs=yes 15546 ;; 15547 15548hpux9* | hpux10* | hpux11*) 15549 # Give a soname corresponding to the major version so that dld.sl refuses to 15550 # link against other versions. 15551 version_type=sunos 15552 need_lib_prefix=no 15553 need_version=no 15554 case $host_cpu in 15555 ia64*) 15556 shrext_cmds='.so' 15557 hardcode_into_libs=yes 15558 dynamic_linker="$host_os dld.so" 15559 shlibpath_var=LD_LIBRARY_PATH 15560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15562 soname_spec='${libname}${release}${shared_ext}$major' 15563 if test "X$HPUX_IA64_MODE" = X32; then 15564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15565 else 15566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15567 fi 15568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15569 ;; 15570 hppa*64*) 15571 shrext_cmds='.sl' 15572 hardcode_into_libs=yes 15573 dynamic_linker="$host_os dld.sl" 15574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15577 soname_spec='${libname}${release}${shared_ext}$major' 15578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15580 ;; 15581 *) 15582 shrext_cmds='.sl' 15583 dynamic_linker="$host_os dld.sl" 15584 shlibpath_var=SHLIB_PATH 15585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15587 soname_spec='${libname}${release}${shared_ext}$major' 15588 ;; 15589 esac 15590 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15591 postinstall_cmds='chmod 555 $lib' 15592 # or fails outright, so override atomically: 15593 install_override_mode=555 15594 ;; 15595 15596interix[3-9]*) 15597 version_type=linux 15598 need_lib_prefix=no 15599 need_version=no 15600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15601 soname_spec='${libname}${release}${shared_ext}$major' 15602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15603 shlibpath_var=LD_LIBRARY_PATH 15604 shlibpath_overrides_runpath=no 15605 hardcode_into_libs=yes 15606 ;; 15607 15608irix5* | irix6* | nonstopux*) 15609 case $host_os in 15610 nonstopux*) version_type=nonstopux ;; 15611 *) 15612 if test "$lt_cv_prog_gnu_ld" = yes; then 15613 version_type=linux 15614 else 15615 version_type=irix 15616 fi ;; 15617 esac 15618 need_lib_prefix=no 15619 need_version=no 15620 soname_spec='${libname}${release}${shared_ext}$major' 15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15622 case $host_os in 15623 irix5* | nonstopux*) 15624 libsuff= shlibsuff= 15625 ;; 15626 *) 15627 case $LD in # libtool.m4 will add one of these switches to LD 15628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15629 libsuff= shlibsuff= libmagic=32-bit;; 15630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15631 libsuff=32 shlibsuff=N32 libmagic=N32;; 15632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15633 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15634 *) libsuff= shlibsuff= libmagic=never-match;; 15635 esac 15636 ;; 15637 esac 15638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15639 shlibpath_overrides_runpath=no 15640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15642 hardcode_into_libs=yes 15643 ;; 15644 15645# No shared lib support for Linux oldld, aout, or coff. 15646linux*oldld* | linux*aout* | linux*coff*) 15647 dynamic_linker=no 15648 ;; 15649 15650# This must be Linux ELF. 15651 15652# uclinux* changes (here and below) have been submitted to the libtool 15653# project, but have not yet been accepted: they are GCC-local changes 15654# for the time being. (See 15655# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 15656linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 15657 version_type=linux 15658 need_lib_prefix=no 15659 need_version=no 15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15661 soname_spec='${libname}${release}${shared_ext}$major' 15662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15663 shlibpath_var=LD_LIBRARY_PATH 15664 shlibpath_overrides_runpath=no 15665 15666 # Some binutils ld are patched to set DT_RUNPATH 15667 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15668 $as_echo_n "(cached) " >&6 15669else 15670 lt_cv_shlibpath_overrides_runpath=no 15671 save_LDFLAGS=$LDFLAGS 15672 save_libdir=$libdir 15673 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 15674 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 15675 if test x$gcc_no_link = xyes; then 15676 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 15677fi 15678cat > conftest.$ac_ext <<_ACEOF 15679 program main 15680 15681 end 15682_ACEOF 15683if ac_fn_fc_try_link "$LINENO"; then : 15684 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15685 lt_cv_shlibpath_overrides_runpath=yes 15686fi 15687fi 15688rm -f core conftest.err conftest.$ac_objext \ 15689 conftest$ac_exeext conftest.$ac_ext 15690 LDFLAGS=$save_LDFLAGS 15691 libdir=$save_libdir 15692 15693fi 15694 15695 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15696 15697 # This implies no fast_install, which is unacceptable. 15698 # Some rework will be needed to allow for fast_install 15699 # before this can be enabled. 15700 hardcode_into_libs=yes 15701 15702 # Append ld.so.conf contents to the search path 15703 if test -f /etc/ld.so.conf; then 15704 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' ' '` 15705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15706 fi 15707 15708 # We used to test for /lib/ld.so.1 and disable shared libraries on 15709 # powerpc, because MkLinux only supported shared libraries with the 15710 # GNU dynamic linker. Since this was broken with cross compilers, 15711 # most powerpc-linux boxes support dynamic linking these days and 15712 # people can always --disable-shared, the test was removed, and we 15713 # assume the GNU/Linux dynamic linker is in use. 15714 dynamic_linker='GNU/Linux ld.so' 15715 ;; 15716 15717netbsd*) 15718 version_type=sunos 15719 need_lib_prefix=no 15720 need_version=no 15721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15724 dynamic_linker='NetBSD (a.out) ld.so' 15725 else 15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15727 soname_spec='${libname}${release}${shared_ext}$major' 15728 dynamic_linker='NetBSD ld.elf_so' 15729 fi 15730 shlibpath_var=LD_LIBRARY_PATH 15731 shlibpath_overrides_runpath=yes 15732 hardcode_into_libs=yes 15733 ;; 15734 15735newsos6) 15736 version_type=linux 15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15738 shlibpath_var=LD_LIBRARY_PATH 15739 shlibpath_overrides_runpath=yes 15740 ;; 15741 15742*nto* | *qnx*) 15743 version_type=qnx 15744 need_lib_prefix=no 15745 need_version=no 15746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15747 soname_spec='${libname}${release}${shared_ext}$major' 15748 shlibpath_var=LD_LIBRARY_PATH 15749 shlibpath_overrides_runpath=no 15750 hardcode_into_libs=yes 15751 dynamic_linker='ldqnx.so' 15752 ;; 15753 15754openbsd*) 15755 version_type=sunos 15756 sys_lib_dlsearch_path_spec="/usr/lib" 15757 need_lib_prefix=no 15758 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15759 case $host_os in 15760 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15761 *) need_version=no ;; 15762 esac 15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15765 shlibpath_var=LD_LIBRARY_PATH 15766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15767 case $host_os in 15768 openbsd2.[89] | openbsd2.[89].*) 15769 shlibpath_overrides_runpath=no 15770 ;; 15771 *) 15772 shlibpath_overrides_runpath=yes 15773 ;; 15774 esac 15775 else 15776 shlibpath_overrides_runpath=yes 15777 fi 15778 ;; 15779 15780os2*) 15781 libname_spec='$name' 15782 shrext_cmds=".dll" 15783 need_lib_prefix=no 15784 library_names_spec='$libname${shared_ext} $libname.a' 15785 dynamic_linker='OS/2 ld.exe' 15786 shlibpath_var=LIBPATH 15787 ;; 15788 15789osf3* | osf4* | osf5*) 15790 version_type=osf 15791 need_lib_prefix=no 15792 need_version=no 15793 soname_spec='${libname}${release}${shared_ext}$major' 15794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15795 shlibpath_var=LD_LIBRARY_PATH 15796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15798 ;; 15799 15800rdos*) 15801 dynamic_linker=no 15802 ;; 15803 15804solaris*) 15805 version_type=linux 15806 need_lib_prefix=no 15807 need_version=no 15808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15809 soname_spec='${libname}${release}${shared_ext}$major' 15810 shlibpath_var=LD_LIBRARY_PATH 15811 shlibpath_overrides_runpath=yes 15812 hardcode_into_libs=yes 15813 # ldd complains unless libraries are executable 15814 postinstall_cmds='chmod +x $lib' 15815 ;; 15816 15817sunos4*) 15818 version_type=sunos 15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15820 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15821 shlibpath_var=LD_LIBRARY_PATH 15822 shlibpath_overrides_runpath=yes 15823 if test "$with_gnu_ld" = yes; then 15824 need_lib_prefix=no 15825 fi 15826 need_version=yes 15827 ;; 15828 15829sysv4 | sysv4.3*) 15830 version_type=linux 15831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15832 soname_spec='${libname}${release}${shared_ext}$major' 15833 shlibpath_var=LD_LIBRARY_PATH 15834 case $host_vendor in 15835 sni) 15836 shlibpath_overrides_runpath=no 15837 need_lib_prefix=no 15838 runpath_var=LD_RUN_PATH 15839 ;; 15840 siemens) 15841 need_lib_prefix=no 15842 ;; 15843 motorola) 15844 need_lib_prefix=no 15845 need_version=no 15846 shlibpath_overrides_runpath=no 15847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15848 ;; 15849 esac 15850 ;; 15851 15852sysv4*MP*) 15853 if test -d /usr/nec ;then 15854 version_type=linux 15855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15856 soname_spec='$libname${shared_ext}.$major' 15857 shlibpath_var=LD_LIBRARY_PATH 15858 fi 15859 ;; 15860 15861sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15862 version_type=freebsd-elf 15863 need_lib_prefix=no 15864 need_version=no 15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15866 soname_spec='${libname}${release}${shared_ext}$major' 15867 shlibpath_var=LD_LIBRARY_PATH 15868 shlibpath_overrides_runpath=yes 15869 hardcode_into_libs=yes 15870 if test "$with_gnu_ld" = yes; then 15871 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15872 else 15873 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15874 case $host_os in 15875 sco3.2v5*) 15876 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15877 ;; 15878 esac 15879 fi 15880 sys_lib_dlsearch_path_spec='/usr/lib' 15881 ;; 15882 15883tpf*) 15884 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15885 version_type=linux 15886 need_lib_prefix=no 15887 need_version=no 15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15889 shlibpath_var=LD_LIBRARY_PATH 15890 shlibpath_overrides_runpath=no 15891 hardcode_into_libs=yes 15892 ;; 15893 15894uts4*) 15895 version_type=linux 15896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15897 soname_spec='${libname}${release}${shared_ext}$major' 15898 shlibpath_var=LD_LIBRARY_PATH 15899 ;; 15900 15901*) 15902 dynamic_linker=no 15903 ;; 15904esac 15905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15906$as_echo "$dynamic_linker" >&6; } 15907test "$dynamic_linker" = no && can_build_shared=no 15908 15909variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15910if test "$GCC" = yes; then 15911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15912fi 15913 15914if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15915 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15916fi 15917if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15918 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15919fi 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15959$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15960hardcode_action_FC= 15961if test -n "$hardcode_libdir_flag_spec_FC" || 15962 test -n "$runpath_var_FC" || 15963 test "X$hardcode_automatic_FC" = "Xyes" ; then 15964 15965 # We can hardcode non-existent directories. 15966 if test "$hardcode_direct_FC" != no && 15967 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15968 # have to relink, otherwise we might link with an installed library 15969 # when we should be linking with a yet-to-be-installed one 15970 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && 15971 test "$hardcode_minus_L_FC" != no; then 15972 # Linking always hardcodes the temporary library directory. 15973 hardcode_action_FC=relink 15974 else 15975 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15976 hardcode_action_FC=immediate 15977 fi 15978else 15979 # We cannot hardcode anything, or else we can only hardcode existing 15980 # directories. 15981 hardcode_action_FC=unsupported 15982fi 15983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 15984$as_echo "$hardcode_action_FC" >&6; } 15985 15986if test "$hardcode_action_FC" = relink || 15987 test "$inherit_rpath_FC" = yes; then 15988 # Fast installation is not supported 15989 enable_fast_install=no 15990elif test "$shlibpath_overrides_runpath" = yes || 15991 test "$enable_shared" = no; then 15992 # Fast installation is not necessary 15993 enable_fast_install=needless 15994fi 15995 15996 15997 15998 15999 16000 16001 16002 fi # test -n "$compiler" 16003 16004 GCC=$lt_save_GCC 16005 CC="$lt_save_CC" 16006fi # test "$_lt_disable_FC" != yes 16007 16008ac_ext=c 16009ac_cpp='$CPP $CPPFLAGS' 16010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16012ac_compiler_gnu=$ac_cv_c_compiler_gnu 16013 16014 16015 16016# extra LD Flags which are required for targets 16017case "${host}" in 16018 *-darwin*) 16019 # Darwin needs -single_module when linking libgfortran 16020 extra_ldflags_libgfortran=-Wl,-single_module 16021 ;; 16022esac 16023 16024 16025# We need a working compiler at that point, otherwise give a clear 16026# error message and bail out. 16027 16028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5 16029$as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; } 16030ac_ext=${ac_fc_srcext-f} 16031ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 16032ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 16033ac_compiler_gnu=$ac_cv_fc_compiler_gnu 16034 16035cat > conftest.$ac_ext <<_ACEOF 16036 16037 program foo 16038 real, parameter :: bar = sin (12.34 / 2.5) 16039 end program foo 16040_ACEOF 16041if ac_fn_fc_try_compile "$LINENO"; then : 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16043$as_echo "yes" >&6; } 16044else 16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16046$as_echo "no" >&6; } 16047 as_fn_error $? "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5 16048 16049fi 16050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16051ac_ext=c 16052ac_cpp='$CPP $CPPFLAGS' 16053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16055ac_compiler_gnu=$ac_cv_c_compiler_gnu 16056 16057 16058 16059# Check whether --enable-largefile was given. 16060if test "${enable_largefile+set}" = set; then : 16061 enableval=$enable_largefile; 16062fi 16063 16064if test "$enable_largefile" != no; then 16065 16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 16067$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 16068if ${ac_cv_sys_largefile_CC+:} false; then : 16069 $as_echo_n "(cached) " >&6 16070else 16071 ac_cv_sys_largefile_CC=no 16072 if test "$GCC" != yes; then 16073 ac_save_CC=$CC 16074 while :; do 16075 # IRIX 6.2 and later do not support large files by default, 16076 # so use the C compiler's -n32 option if that helps. 16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16078/* end confdefs.h. */ 16079#include <sys/types.h> 16080 /* Check that off_t can represent 2**63 - 1 correctly. 16081 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16082 since some C++ compilers masquerading as C compilers 16083 incorrectly reject 9223372036854775807. */ 16084#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16085 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16086 && LARGE_OFF_T % 2147483647 == 1) 16087 ? 1 : -1]; 16088int 16089main () 16090{ 16091 16092 ; 16093 return 0; 16094} 16095_ACEOF 16096 if ac_fn_c_try_compile "$LINENO"; then : 16097 break 16098fi 16099rm -f core conftest.err conftest.$ac_objext 16100 CC="$CC -n32" 16101 if ac_fn_c_try_compile "$LINENO"; then : 16102 ac_cv_sys_largefile_CC=' -n32'; break 16103fi 16104rm -f core conftest.err conftest.$ac_objext 16105 break 16106 done 16107 CC=$ac_save_CC 16108 rm -f conftest.$ac_ext 16109 fi 16110fi 16111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 16112$as_echo "$ac_cv_sys_largefile_CC" >&6; } 16113 if test "$ac_cv_sys_largefile_CC" != no; then 16114 CC=$CC$ac_cv_sys_largefile_CC 16115 fi 16116 16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 16118$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 16119if ${ac_cv_sys_file_offset_bits+:} false; then : 16120 $as_echo_n "(cached) " >&6 16121else 16122 while :; do 16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16124/* end confdefs.h. */ 16125#include <sys/types.h> 16126 /* Check that off_t can represent 2**63 - 1 correctly. 16127 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16128 since some C++ compilers masquerading as C compilers 16129 incorrectly reject 9223372036854775807. */ 16130#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16132 && LARGE_OFF_T % 2147483647 == 1) 16133 ? 1 : -1]; 16134int 16135main () 16136{ 16137 16138 ; 16139 return 0; 16140} 16141_ACEOF 16142if ac_fn_c_try_compile "$LINENO"; then : 16143 ac_cv_sys_file_offset_bits=no; break 16144fi 16145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16147/* end confdefs.h. */ 16148#define _FILE_OFFSET_BITS 64 16149#include <sys/types.h> 16150 /* Check that off_t can represent 2**63 - 1 correctly. 16151 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16152 since some C++ compilers masquerading as C compilers 16153 incorrectly reject 9223372036854775807. */ 16154#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16156 && LARGE_OFF_T % 2147483647 == 1) 16157 ? 1 : -1]; 16158int 16159main () 16160{ 16161 16162 ; 16163 return 0; 16164} 16165_ACEOF 16166if ac_fn_c_try_compile "$LINENO"; then : 16167 ac_cv_sys_file_offset_bits=64; break 16168fi 16169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16170 ac_cv_sys_file_offset_bits=unknown 16171 break 16172done 16173fi 16174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 16175$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 16176case $ac_cv_sys_file_offset_bits in #( 16177 no | unknown) ;; 16178 *) 16179cat >>confdefs.h <<_ACEOF 16180#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 16181_ACEOF 16182;; 16183esac 16184rm -rf conftest* 16185 if test $ac_cv_sys_file_offset_bits = unknown; then 16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 16187$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 16188if ${ac_cv_sys_large_files+:} false; then : 16189 $as_echo_n "(cached) " >&6 16190else 16191 while :; do 16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16193/* end confdefs.h. */ 16194#include <sys/types.h> 16195 /* Check that off_t can represent 2**63 - 1 correctly. 16196 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16197 since some C++ compilers masquerading as C compilers 16198 incorrectly reject 9223372036854775807. */ 16199#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16201 && LARGE_OFF_T % 2147483647 == 1) 16202 ? 1 : -1]; 16203int 16204main () 16205{ 16206 16207 ; 16208 return 0; 16209} 16210_ACEOF 16211if ac_fn_c_try_compile "$LINENO"; then : 16212 ac_cv_sys_large_files=no; break 16213fi 16214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16216/* end confdefs.h. */ 16217#define _LARGE_FILES 1 16218#include <sys/types.h> 16219 /* Check that off_t can represent 2**63 - 1 correctly. 16220 We can't simply define LARGE_OFF_T to be 9223372036854775807, 16221 since some C++ compilers masquerading as C compilers 16222 incorrectly reject 9223372036854775807. */ 16223#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 16224 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 16225 && LARGE_OFF_T % 2147483647 == 1) 16226 ? 1 : -1]; 16227int 16228main () 16229{ 16230 16231 ; 16232 return 0; 16233} 16234_ACEOF 16235if ac_fn_c_try_compile "$LINENO"; then : 16236 ac_cv_sys_large_files=1; break 16237fi 16238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16239 ac_cv_sys_large_files=unknown 16240 break 16241done 16242fi 16243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 16244$as_echo "$ac_cv_sys_large_files" >&6; } 16245case $ac_cv_sys_large_files in #( 16246 no | unknown) ;; 16247 *) 16248cat >>confdefs.h <<_ACEOF 16249#define _LARGE_FILES $ac_cv_sys_large_files 16250_ACEOF 16251;; 16252esac 16253rm -rf conftest* 16254 fi 16255 16256 16257fi 16258 16259 16260# Types 16261ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16262if test "x$ac_cv_type_off_t" = xyes; then : 16263 16264else 16265 16266cat >>confdefs.h <<_ACEOF 16267#define off_t long int 16268_ACEOF 16269 16270fi 16271 16272 16273 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 16274if test "x$ac_cv_type_intptr_t" = xyes; then : 16275 16276$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h 16277 16278else 16279 for ac_type in 'int' 'long int' 'long long int'; do 16280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16281/* end confdefs.h. */ 16282$ac_includes_default 16283int 16284main () 16285{ 16286static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 16287test_array [0] = 0; 16288return test_array [0]; 16289 16290 ; 16291 return 0; 16292} 16293_ACEOF 16294if ac_fn_c_try_compile "$LINENO"; then : 16295 16296cat >>confdefs.h <<_ACEOF 16297#define intptr_t $ac_type 16298_ACEOF 16299 16300 ac_type= 16301fi 16302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16303 test -z "$ac_type" && break 16304 done 16305fi 16306 16307 16308 16309 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 16310if test "x$ac_cv_type_uintptr_t" = xyes; then : 16311 16312$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h 16313 16314else 16315 for ac_type in 'unsigned int' 'unsigned long int' \ 16316 'unsigned long long int'; do 16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16318/* end confdefs.h. */ 16319$ac_includes_default 16320int 16321main () 16322{ 16323static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 16324test_array [0] = 0; 16325return test_array [0]; 16326 16327 ; 16328 return 0; 16329} 16330_ACEOF 16331if ac_fn_c_try_compile "$LINENO"; then : 16332 16333cat >>confdefs.h <<_ACEOF 16334#define uintptr_t $ac_type 16335_ACEOF 16336 16337 ac_type= 16338fi 16339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16340 test -z "$ac_type" && break 16341 done 16342fi 16343 16344 16345ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 16346if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 16347 16348cat >>confdefs.h <<_ACEOF 16349#define HAVE_PTRDIFF_T 1 16350_ACEOF 16351 16352 16353fi 16354 16355 16356# check header files (we assume C89 is available, so don't check for that) 16357 16358 16359 16360 for ac_header in $ac_header_list 16361do : 16362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16363ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 16364" 16365if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16366 cat >>confdefs.h <<_ACEOF 16367#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16368_ACEOF 16369 16370fi 16371 16372done 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` 16413 16414acx_cv_header_stdint=stddef.h 16415acx_cv_header_stdint_kind="(already complete)" 16416for i in stdint.h $inttype_headers; do 16417 unset ac_cv_type_uintptr_t 16418 unset ac_cv_type_uintmax_t 16419 unset ac_cv_type_int_least32_t 16420 unset ac_cv_type_int_fast32_t 16421 unset ac_cv_type_uint64_t 16422 $as_echo_n "looking for a compliant stdint.h in $i, " >&6 16423 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> 16424#include <$i> 16425" 16426if test "x$ac_cv_type_uintmax_t" = xyes; then : 16427 acx_cv_header_stdint=$i 16428else 16429 continue 16430fi 16431 16432 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 16433#include <$i> 16434" 16435if test "x$ac_cv_type_uintptr_t" = xyes; then : 16436 16437else 16438 acx_cv_header_stdint_kind="(mostly complete)" 16439fi 16440 16441 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> 16442#include <$i> 16443" 16444if test "x$ac_cv_type_int_least32_t" = xyes; then : 16445 16446else 16447 acx_cv_header_stdint_kind="(mostly complete)" 16448fi 16449 16450 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> 16451#include <$i> 16452" 16453if test "x$ac_cv_type_int_fast32_t" = xyes; then : 16454 16455else 16456 acx_cv_header_stdint_kind="(mostly complete)" 16457fi 16458 16459 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 16460#include <$i> 16461" 16462if test "x$ac_cv_type_uint64_t" = xyes; then : 16463 16464else 16465 acx_cv_header_stdint_kind="(lacks uint64_t)" 16466fi 16467 16468 break 16469done 16470if test "$acx_cv_header_stdint" = stddef.h; then 16471 acx_cv_header_stdint_kind="(lacks uintmax_t)" 16472 for i in stdint.h $inttype_headers; do 16473 unset ac_cv_type_uintptr_t 16474 unset ac_cv_type_uint32_t 16475 unset ac_cv_type_uint64_t 16476 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 16477 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> 16478#include <$i> 16479" 16480if test "x$ac_cv_type_uint32_t" = xyes; then : 16481 acx_cv_header_stdint=$i 16482else 16483 continue 16484fi 16485 16486 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 16487#include <$i> 16488" 16489if test "x$ac_cv_type_uint64_t" = xyes; then : 16490 16491fi 16492 16493 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 16494#include <$i> 16495" 16496if test "x$ac_cv_type_uintptr_t" = xyes; then : 16497 16498fi 16499 16500 break 16501 done 16502fi 16503if test "$acx_cv_header_stdint" = stddef.h; then 16504 acx_cv_header_stdint_kind="(u_intXX_t style)" 16505 for i in sys/types.h $inttype_headers; do 16506 unset ac_cv_type_u_int32_t 16507 unset ac_cv_type_u_int64_t 16508 $as_echo_n "looking for u_intXX_t types in $i, " >&6 16509 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> 16510#include <$i> 16511" 16512if test "x$ac_cv_type_u_int32_t" = xyes; then : 16513 acx_cv_header_stdint=$i 16514else 16515 continue 16516fi 16517 16518 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> 16519#include <$i> 16520" 16521if test "x$ac_cv_type_u_int64_t" = xyes; then : 16522 16523fi 16524 16525 break 16526 done 16527fi 16528if test "$acx_cv_header_stdint" = stddef.h; then 16529 acx_cv_header_stdint_kind="(using manual detection)" 16530fi 16531 16532test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no 16533test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no 16534test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no 16535test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no 16536test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no 16537 16538# ----------------- Summarize what we found so far 16539 16540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 16541$as_echo_n "checking what to include in gstdint.h... " >&6; } 16542 16543case `$as_basename -- gstdint.h || 16544$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ 16545 Xgstdint.h : 'X\(//\)$' \| \ 16546 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || 16547$as_echo X/gstdint.h | 16548 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16549 s//\1/ 16550 q 16551 } 16552 /^X\/\(\/\/\)$/{ 16553 s//\1/ 16554 q 16555 } 16556 /^X\/\(\/\).*/{ 16557 s//\1/ 16558 q 16559 } 16560 s/.*/./; q'` in 16561 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 16562$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 16563 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 16564$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 16565 *) ;; 16566esac 16567 16568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 16569$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } 16570 16571# ----------------- done included file, check C basic types -------- 16572 16573# Lacking an uintptr_t? Test size of void * 16574case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in 16575 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler 16576# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16577# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16578# This bug is HP SR number 8606223364. 16579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 16580$as_echo_n "checking size of void *... " >&6; } 16581if ${ac_cv_sizeof_void_p+:} false; then : 16582 $as_echo_n "(cached) " >&6 16583else 16584 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 16585 16586else 16587 if test "$ac_cv_type_void_p" = yes; then 16588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16590as_fn_error 77 "cannot compute sizeof (void *) 16591See \`config.log' for more details" "$LINENO" 5; } 16592 else 16593 ac_cv_sizeof_void_p=0 16594 fi 16595fi 16596 16597fi 16598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 16599$as_echo "$ac_cv_sizeof_void_p" >&6; } 16600 16601 16602 16603cat >>confdefs.h <<_ACEOF 16604#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 16605_ACEOF 16606 16607 ;; 16608esac 16609 16610# Lacking an uint64_t? Test size of long 16611case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in 16612 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler 16613# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16614# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16615# This bug is HP SR number 8606223364. 16616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 16617$as_echo_n "checking size of long... " >&6; } 16618if ${ac_cv_sizeof_long+:} false; then : 16619 $as_echo_n "(cached) " >&6 16620else 16621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 16622 16623else 16624 if test "$ac_cv_type_long" = yes; then 16625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16627as_fn_error 77 "cannot compute sizeof (long) 16628See \`config.log' for more details" "$LINENO" 5; } 16629 else 16630 ac_cv_sizeof_long=0 16631 fi 16632fi 16633 16634fi 16635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 16636$as_echo "$ac_cv_sizeof_long" >&6; } 16637 16638 16639 16640cat >>confdefs.h <<_ACEOF 16641#define SIZEOF_LONG $ac_cv_sizeof_long 16642_ACEOF 16643 16644 ;; 16645esac 16646 16647if test $acx_cv_header_stdint = stddef.h; then 16648 # Lacking a good header? Test size of everything and deduce all types. 16649 # The cast to long int works around a bug in the HP C Compiler 16650# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16651# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16652# This bug is HP SR number 8606223364. 16653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 16654$as_echo_n "checking size of int... " >&6; } 16655if ${ac_cv_sizeof_int+:} false; then : 16656 $as_echo_n "(cached) " >&6 16657else 16658 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 16659 16660else 16661 if test "$ac_cv_type_int" = yes; then 16662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16664as_fn_error 77 "cannot compute sizeof (int) 16665See \`config.log' for more details" "$LINENO" 5; } 16666 else 16667 ac_cv_sizeof_int=0 16668 fi 16669fi 16670 16671fi 16672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 16673$as_echo "$ac_cv_sizeof_int" >&6; } 16674 16675 16676 16677cat >>confdefs.h <<_ACEOF 16678#define SIZEOF_INT $ac_cv_sizeof_int 16679_ACEOF 16680 16681 16682 # The cast to long int works around a bug in the HP C Compiler 16683# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16684# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16685# This bug is HP SR number 8606223364. 16686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 16687$as_echo_n "checking size of short... " >&6; } 16688if ${ac_cv_sizeof_short+:} false; then : 16689 $as_echo_n "(cached) " >&6 16690else 16691 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 16692 16693else 16694 if test "$ac_cv_type_short" = yes; then 16695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16697as_fn_error 77 "cannot compute sizeof (short) 16698See \`config.log' for more details" "$LINENO" 5; } 16699 else 16700 ac_cv_sizeof_short=0 16701 fi 16702fi 16703 16704fi 16705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 16706$as_echo "$ac_cv_sizeof_short" >&6; } 16707 16708 16709 16710cat >>confdefs.h <<_ACEOF 16711#define SIZEOF_SHORT $ac_cv_sizeof_short 16712_ACEOF 16713 16714 16715 # The cast to long int works around a bug in the HP C Compiler 16716# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16717# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16718# This bug is HP SR number 8606223364. 16719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 16720$as_echo_n "checking size of char... " >&6; } 16721if ${ac_cv_sizeof_char+:} false; then : 16722 $as_echo_n "(cached) " >&6 16723else 16724 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 16725 16726else 16727 if test "$ac_cv_type_char" = yes; then 16728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16730as_fn_error 77 "cannot compute sizeof (char) 16731See \`config.log' for more details" "$LINENO" 5; } 16732 else 16733 ac_cv_sizeof_char=0 16734 fi 16735fi 16736 16737fi 16738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 16739$as_echo "$ac_cv_sizeof_char" >&6; } 16740 16741 16742 16743cat >>confdefs.h <<_ACEOF 16744#define SIZEOF_CHAR $ac_cv_sizeof_char 16745_ACEOF 16746 16747 16748 16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 16750$as_echo_n "checking for type equivalent to int8_t... " >&6; } 16751 case "$ac_cv_sizeof_char" in 16752 1) acx_cv_type_int8_t=char ;; 16753 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5 16754 esac 16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 16756$as_echo "$acx_cv_type_int8_t" >&6; } 16757 16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 16759$as_echo_n "checking for type equivalent to int16_t... " >&6; } 16760 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 16761 2:*) acx_cv_type_int16_t=int ;; 16762 *:2) acx_cv_type_int16_t=short ;; 16763 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5 16764 esac 16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 16766$as_echo "$acx_cv_type_int16_t" >&6; } 16767 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 16769$as_echo_n "checking for type equivalent to int32_t... " >&6; } 16770 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 16771 4:*) acx_cv_type_int32_t=int ;; 16772 *:4) acx_cv_type_int32_t=long ;; 16773 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5 16774 esac 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 16776$as_echo "$acx_cv_type_int32_t" >&6; } 16777fi 16778 16779# These tests are here to make the output prettier 16780 16781if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then 16782 case "$ac_cv_sizeof_long" in 16783 8) acx_cv_type_int64_t=long ;; 16784 esac 16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 16786$as_echo_n "checking for type equivalent to int64_t... " >&6; } 16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 16788$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } 16789fi 16790 16791# Now we can use the above types 16792 16793if test "$ac_cv_type_uintptr_t" != yes; then 16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 16795$as_echo_n "checking for type equivalent to intptr_t... " >&6; } 16796 case $ac_cv_sizeof_void_p in 16797 2) acx_cv_type_intptr_t=int16_t ;; 16798 4) acx_cv_type_intptr_t=int32_t ;; 16799 8) acx_cv_type_intptr_t=int64_t ;; 16800 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5 16801 esac 16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 16803$as_echo "$acx_cv_type_intptr_t" >&6; } 16804fi 16805 16806# ----------------- done all checks, emit header ------------- 16807ac_config_commands="$ac_config_commands gstdint.h" 16808 16809 16810 16811 16812ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 16813if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 16814 16815cat >>confdefs.h <<_ACEOF 16816#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 16817_ACEOF 16818 16819 16820fi 16821ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 16822if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 16823 16824cat >>confdefs.h <<_ACEOF 16825#define HAVE_STRUCT_STAT_ST_BLOCKS 1 16826_ACEOF 16827 16828 16829fi 16830ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 16831if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 16832 16833cat >>confdefs.h <<_ACEOF 16834#define HAVE_STRUCT_STAT_ST_RDEV 1 16835_ACEOF 16836 16837 16838fi 16839 16840 16841case "${host}--x${with_newlib}" in 16842 mips*--xyes) 16843 hardwire_newlib=1;; 16844 nvptx*--xyes) 16845 hardwire_newlib=1;; 16846esac 16847 16848# Check for library functions. 16849if test "${hardwire_newlib:-0}" -eq 1; then 16850 # We are being configured with a cross compiler. AC_REPLACE_FUNCS 16851 # may not work correctly, because the compiler may not be able to 16852 # link executables. 16853 16854$as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h 16855 16856 16857$as_echo "#define HAVE_STRTOF 1" >>confdefs.h 16858 16859 16860$as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h 16861 16862 16863$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 16864 16865 16866$as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h 16867 16868 16869$as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h 16870 16871 16872$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h 16873 16874 16875$as_echo "#define HAVE_STRNDUP 1" >>confdefs.h 16876 16877 16878 # At some point, we should differentiate between architectures 16879 # like x86, which have long double versions, and alpha/powerpc/etc., 16880 # which don't. For the time being, punt. 16881 if test x"long_double_math_on_this_cpu" = x"yes"; then 16882 16883$as_echo "#define HAVE_STRTOLD 1" >>confdefs.h 16884 16885 fi 16886else 16887 16888 16889 16890 for ac_func in $ac_func_list 16891do : 16892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16893ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16894if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16895 cat >>confdefs.h <<_ACEOF 16896#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16897_ACEOF 16898 16899fi 16900done 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011fi 17012 17013# Check strerror_r, cannot be above as versions with two and three arguments exist 17014 17015 ac_save_CFLAGS="$CFLAGS" 17016 CFLAGS="-Wimplicit-function-declaration -Werror" 17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17018/* end confdefs.h. */ 17019#define _GNU_SOURCE 1 17020 #include <string.h> 17021 #include <locale.h> 17022int 17023main () 17024{ 17025char s[128]; strerror_r(5, s, 128); 17026 ; 17027 return 0; 17028} 17029_ACEOF 17030if ac_fn_c_try_compile "$LINENO"; then : 17031 17032$as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h 17033 17034fi 17035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17036 CFLAGS="$ac_save_CFLAGS" 17037 17038 ac_save_CFLAGS="$CFLAGS" 17039 CFLAGS="-Wimplicit-function-declaration -Werror" 17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17041/* end confdefs.h. */ 17042#define _GNU_SOURCE 1 17043 #include <string.h> 17044 #include <locale.h> 17045int 17046main () 17047{ 17048char s[128]; strerror_r(5, s); 17049 ; 17050 return 0; 17051} 17052_ACEOF 17053if ac_fn_c_try_compile "$LINENO"; then : 17054 17055$as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h 17056 17057fi 17058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17059 CFLAGS="$ac_save_CFLAGS" 17060 17061 17062# Check for C99 (and other IEEE) math functions 17063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5 17064$as_echo_n "checking for sin in -lm... " >&6; } 17065if ${ac_cv_lib_m_sin+:} false; then : 17066 $as_echo_n "(cached) " >&6 17067else 17068 ac_check_lib_save_LIBS=$LIBS 17069LIBS="-lm $LIBS" 17070if test x$gcc_no_link = xyes; then 17071 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17072fi 17073cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17074/* end confdefs.h. */ 17075 17076/* Override any GCC internal prototype to avoid an error. 17077 Use char because int might match the return type of a GCC 17078 builtin and then its argument prototype would still apply. */ 17079#ifdef __cplusplus 17080extern "C" 17081#endif 17082char sin (); 17083int 17084main () 17085{ 17086return sin (); 17087 ; 17088 return 0; 17089} 17090_ACEOF 17091if ac_fn_c_try_link "$LINENO"; then : 17092 ac_cv_lib_m_sin=yes 17093else 17094 ac_cv_lib_m_sin=no 17095fi 17096rm -f core conftest.err conftest.$ac_objext \ 17097 conftest$ac_exeext conftest.$ac_ext 17098LIBS=$ac_check_lib_save_LIBS 17099fi 17100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5 17101$as_echo "$ac_cv_lib_m_sin" >&6; } 17102if test "x$ac_cv_lib_m_sin" = xyes; then : 17103 cat >>confdefs.h <<_ACEOF 17104#define HAVE_LIBM 1 17105_ACEOF 17106 17107 LIBS="-lm $LIBS" 17108 17109fi 17110 17111 17112 17113 17114 17115 17116 17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5 17118$as_echo_n "checking for acosf... " >&6; } 17119if ${gcc_cv_math_func_acosf+:} false; then : 17120 $as_echo_n "(cached) " >&6 17121else 17122 if test x$gcc_no_link = xyes; then 17123 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17124fi 17125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17126/* end confdefs.h. */ 17127 17128#ifdef HAVE_COMPLEX_H 17129#include <complex.h> 17130#endif 17131#ifdef HAVE_MATH_H 17132#include <math.h> 17133#endif 17134 17135int (*ptr)() = (int (*)())acosf; 17136 17137int 17138main () 17139{ 17140 return 0; 17141} 17142 17143_ACEOF 17144if ac_fn_c_try_link "$LINENO"; then : 17145 gcc_cv_math_func_acosf=yes 17146else 17147 gcc_cv_math_func_acosf=no 17148fi 17149rm -f core conftest.err conftest.$ac_objext \ 17150 conftest$ac_exeext conftest.$ac_ext 17151fi 17152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5 17153$as_echo "$gcc_cv_math_func_acosf" >&6; } 17154 if test $gcc_cv_math_func_acosf = yes; then 17155 17156cat >>confdefs.h <<_ACEOF 17157#define HAVE_ACOSF 1 17158_ACEOF 17159 17160 fi 17161 17162 17163 17164 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5 17166$as_echo_n "checking for acos... " >&6; } 17167if ${gcc_cv_math_func_acos+:} false; then : 17168 $as_echo_n "(cached) " >&6 17169else 17170 if test x$gcc_no_link = xyes; then 17171 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17172fi 17173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17174/* end confdefs.h. */ 17175 17176#ifdef HAVE_COMPLEX_H 17177#include <complex.h> 17178#endif 17179#ifdef HAVE_MATH_H 17180#include <math.h> 17181#endif 17182 17183int (*ptr)() = (int (*)())acos; 17184 17185int 17186main () 17187{ 17188 return 0; 17189} 17190 17191_ACEOF 17192if ac_fn_c_try_link "$LINENO"; then : 17193 gcc_cv_math_func_acos=yes 17194else 17195 gcc_cv_math_func_acos=no 17196fi 17197rm -f core conftest.err conftest.$ac_objext \ 17198 conftest$ac_exeext conftest.$ac_ext 17199fi 17200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5 17201$as_echo "$gcc_cv_math_func_acos" >&6; } 17202 if test $gcc_cv_math_func_acos = yes; then 17203 17204cat >>confdefs.h <<_ACEOF 17205#define HAVE_ACOS 1 17206_ACEOF 17207 17208 fi 17209 17210 17211 17212 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5 17214$as_echo_n "checking for acosl... " >&6; } 17215if ${gcc_cv_math_func_acosl+:} false; then : 17216 $as_echo_n "(cached) " >&6 17217else 17218 if test x$gcc_no_link = xyes; then 17219 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17220fi 17221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17222/* end confdefs.h. */ 17223 17224#ifdef HAVE_COMPLEX_H 17225#include <complex.h> 17226#endif 17227#ifdef HAVE_MATH_H 17228#include <math.h> 17229#endif 17230 17231int (*ptr)() = (int (*)())acosl; 17232 17233int 17234main () 17235{ 17236 return 0; 17237} 17238 17239_ACEOF 17240if ac_fn_c_try_link "$LINENO"; then : 17241 gcc_cv_math_func_acosl=yes 17242else 17243 gcc_cv_math_func_acosl=no 17244fi 17245rm -f core conftest.err conftest.$ac_objext \ 17246 conftest$ac_exeext conftest.$ac_ext 17247fi 17248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5 17249$as_echo "$gcc_cv_math_func_acosl" >&6; } 17250 if test $gcc_cv_math_func_acosl = yes; then 17251 17252cat >>confdefs.h <<_ACEOF 17253#define HAVE_ACOSL 1 17254_ACEOF 17255 17256 fi 17257 17258 17259 17260 17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5 17262$as_echo_n "checking for acoshf... " >&6; } 17263if ${gcc_cv_math_func_acoshf+:} false; then : 17264 $as_echo_n "(cached) " >&6 17265else 17266 if test x$gcc_no_link = xyes; then 17267 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17268fi 17269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17270/* end confdefs.h. */ 17271 17272#ifdef HAVE_COMPLEX_H 17273#include <complex.h> 17274#endif 17275#ifdef HAVE_MATH_H 17276#include <math.h> 17277#endif 17278 17279int (*ptr)() = (int (*)())acoshf; 17280 17281int 17282main () 17283{ 17284 return 0; 17285} 17286 17287_ACEOF 17288if ac_fn_c_try_link "$LINENO"; then : 17289 gcc_cv_math_func_acoshf=yes 17290else 17291 gcc_cv_math_func_acoshf=no 17292fi 17293rm -f core conftest.err conftest.$ac_objext \ 17294 conftest$ac_exeext conftest.$ac_ext 17295fi 17296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5 17297$as_echo "$gcc_cv_math_func_acoshf" >&6; } 17298 if test $gcc_cv_math_func_acoshf = yes; then 17299 17300cat >>confdefs.h <<_ACEOF 17301#define HAVE_ACOSHF 1 17302_ACEOF 17303 17304 fi 17305 17306 17307 17308 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5 17310$as_echo_n "checking for acosh... " >&6; } 17311if ${gcc_cv_math_func_acosh+:} false; then : 17312 $as_echo_n "(cached) " >&6 17313else 17314 if test x$gcc_no_link = xyes; then 17315 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17316fi 17317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17318/* end confdefs.h. */ 17319 17320#ifdef HAVE_COMPLEX_H 17321#include <complex.h> 17322#endif 17323#ifdef HAVE_MATH_H 17324#include <math.h> 17325#endif 17326 17327int (*ptr)() = (int (*)())acosh; 17328 17329int 17330main () 17331{ 17332 return 0; 17333} 17334 17335_ACEOF 17336if ac_fn_c_try_link "$LINENO"; then : 17337 gcc_cv_math_func_acosh=yes 17338else 17339 gcc_cv_math_func_acosh=no 17340fi 17341rm -f core conftest.err conftest.$ac_objext \ 17342 conftest$ac_exeext conftest.$ac_ext 17343fi 17344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5 17345$as_echo "$gcc_cv_math_func_acosh" >&6; } 17346 if test $gcc_cv_math_func_acosh = yes; then 17347 17348cat >>confdefs.h <<_ACEOF 17349#define HAVE_ACOSH 1 17350_ACEOF 17351 17352 fi 17353 17354 17355 17356 17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5 17358$as_echo_n "checking for acoshl... " >&6; } 17359if ${gcc_cv_math_func_acoshl+:} false; then : 17360 $as_echo_n "(cached) " >&6 17361else 17362 if test x$gcc_no_link = xyes; then 17363 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17364fi 17365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17366/* end confdefs.h. */ 17367 17368#ifdef HAVE_COMPLEX_H 17369#include <complex.h> 17370#endif 17371#ifdef HAVE_MATH_H 17372#include <math.h> 17373#endif 17374 17375int (*ptr)() = (int (*)())acoshl; 17376 17377int 17378main () 17379{ 17380 return 0; 17381} 17382 17383_ACEOF 17384if ac_fn_c_try_link "$LINENO"; then : 17385 gcc_cv_math_func_acoshl=yes 17386else 17387 gcc_cv_math_func_acoshl=no 17388fi 17389rm -f core conftest.err conftest.$ac_objext \ 17390 conftest$ac_exeext conftest.$ac_ext 17391fi 17392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5 17393$as_echo "$gcc_cv_math_func_acoshl" >&6; } 17394 if test $gcc_cv_math_func_acoshl = yes; then 17395 17396cat >>confdefs.h <<_ACEOF 17397#define HAVE_ACOSHL 1 17398_ACEOF 17399 17400 fi 17401 17402 17403 17404 17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5 17406$as_echo_n "checking for asinf... " >&6; } 17407if ${gcc_cv_math_func_asinf+:} false; then : 17408 $as_echo_n "(cached) " >&6 17409else 17410 if test x$gcc_no_link = xyes; then 17411 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17412fi 17413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17414/* end confdefs.h. */ 17415 17416#ifdef HAVE_COMPLEX_H 17417#include <complex.h> 17418#endif 17419#ifdef HAVE_MATH_H 17420#include <math.h> 17421#endif 17422 17423int (*ptr)() = (int (*)())asinf; 17424 17425int 17426main () 17427{ 17428 return 0; 17429} 17430 17431_ACEOF 17432if ac_fn_c_try_link "$LINENO"; then : 17433 gcc_cv_math_func_asinf=yes 17434else 17435 gcc_cv_math_func_asinf=no 17436fi 17437rm -f core conftest.err conftest.$ac_objext \ 17438 conftest$ac_exeext conftest.$ac_ext 17439fi 17440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5 17441$as_echo "$gcc_cv_math_func_asinf" >&6; } 17442 if test $gcc_cv_math_func_asinf = yes; then 17443 17444cat >>confdefs.h <<_ACEOF 17445#define HAVE_ASINF 1 17446_ACEOF 17447 17448 fi 17449 17450 17451 17452 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5 17454$as_echo_n "checking for asin... " >&6; } 17455if ${gcc_cv_math_func_asin+:} false; then : 17456 $as_echo_n "(cached) " >&6 17457else 17458 if test x$gcc_no_link = xyes; then 17459 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17460fi 17461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17462/* end confdefs.h. */ 17463 17464#ifdef HAVE_COMPLEX_H 17465#include <complex.h> 17466#endif 17467#ifdef HAVE_MATH_H 17468#include <math.h> 17469#endif 17470 17471int (*ptr)() = (int (*)())asin; 17472 17473int 17474main () 17475{ 17476 return 0; 17477} 17478 17479_ACEOF 17480if ac_fn_c_try_link "$LINENO"; then : 17481 gcc_cv_math_func_asin=yes 17482else 17483 gcc_cv_math_func_asin=no 17484fi 17485rm -f core conftest.err conftest.$ac_objext \ 17486 conftest$ac_exeext conftest.$ac_ext 17487fi 17488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5 17489$as_echo "$gcc_cv_math_func_asin" >&6; } 17490 if test $gcc_cv_math_func_asin = yes; then 17491 17492cat >>confdefs.h <<_ACEOF 17493#define HAVE_ASIN 1 17494_ACEOF 17495 17496 fi 17497 17498 17499 17500 17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5 17502$as_echo_n "checking for asinl... " >&6; } 17503if ${gcc_cv_math_func_asinl+:} false; then : 17504 $as_echo_n "(cached) " >&6 17505else 17506 if test x$gcc_no_link = xyes; then 17507 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17508fi 17509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17510/* end confdefs.h. */ 17511 17512#ifdef HAVE_COMPLEX_H 17513#include <complex.h> 17514#endif 17515#ifdef HAVE_MATH_H 17516#include <math.h> 17517#endif 17518 17519int (*ptr)() = (int (*)())asinl; 17520 17521int 17522main () 17523{ 17524 return 0; 17525} 17526 17527_ACEOF 17528if ac_fn_c_try_link "$LINENO"; then : 17529 gcc_cv_math_func_asinl=yes 17530else 17531 gcc_cv_math_func_asinl=no 17532fi 17533rm -f core conftest.err conftest.$ac_objext \ 17534 conftest$ac_exeext conftest.$ac_ext 17535fi 17536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5 17537$as_echo "$gcc_cv_math_func_asinl" >&6; } 17538 if test $gcc_cv_math_func_asinl = yes; then 17539 17540cat >>confdefs.h <<_ACEOF 17541#define HAVE_ASINL 1 17542_ACEOF 17543 17544 fi 17545 17546 17547 17548 17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5 17550$as_echo_n "checking for asinhf... " >&6; } 17551if ${gcc_cv_math_func_asinhf+:} false; then : 17552 $as_echo_n "(cached) " >&6 17553else 17554 if test x$gcc_no_link = xyes; then 17555 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17556fi 17557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17558/* end confdefs.h. */ 17559 17560#ifdef HAVE_COMPLEX_H 17561#include <complex.h> 17562#endif 17563#ifdef HAVE_MATH_H 17564#include <math.h> 17565#endif 17566 17567int (*ptr)() = (int (*)())asinhf; 17568 17569int 17570main () 17571{ 17572 return 0; 17573} 17574 17575_ACEOF 17576if ac_fn_c_try_link "$LINENO"; then : 17577 gcc_cv_math_func_asinhf=yes 17578else 17579 gcc_cv_math_func_asinhf=no 17580fi 17581rm -f core conftest.err conftest.$ac_objext \ 17582 conftest$ac_exeext conftest.$ac_ext 17583fi 17584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5 17585$as_echo "$gcc_cv_math_func_asinhf" >&6; } 17586 if test $gcc_cv_math_func_asinhf = yes; then 17587 17588cat >>confdefs.h <<_ACEOF 17589#define HAVE_ASINHF 1 17590_ACEOF 17591 17592 fi 17593 17594 17595 17596 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5 17598$as_echo_n "checking for asinh... " >&6; } 17599if ${gcc_cv_math_func_asinh+:} false; then : 17600 $as_echo_n "(cached) " >&6 17601else 17602 if test x$gcc_no_link = xyes; then 17603 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17604fi 17605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17606/* end confdefs.h. */ 17607 17608#ifdef HAVE_COMPLEX_H 17609#include <complex.h> 17610#endif 17611#ifdef HAVE_MATH_H 17612#include <math.h> 17613#endif 17614 17615int (*ptr)() = (int (*)())asinh; 17616 17617int 17618main () 17619{ 17620 return 0; 17621} 17622 17623_ACEOF 17624if ac_fn_c_try_link "$LINENO"; then : 17625 gcc_cv_math_func_asinh=yes 17626else 17627 gcc_cv_math_func_asinh=no 17628fi 17629rm -f core conftest.err conftest.$ac_objext \ 17630 conftest$ac_exeext conftest.$ac_ext 17631fi 17632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5 17633$as_echo "$gcc_cv_math_func_asinh" >&6; } 17634 if test $gcc_cv_math_func_asinh = yes; then 17635 17636cat >>confdefs.h <<_ACEOF 17637#define HAVE_ASINH 1 17638_ACEOF 17639 17640 fi 17641 17642 17643 17644 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5 17646$as_echo_n "checking for asinhl... " >&6; } 17647if ${gcc_cv_math_func_asinhl+:} false; then : 17648 $as_echo_n "(cached) " >&6 17649else 17650 if test x$gcc_no_link = xyes; then 17651 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17652fi 17653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17654/* end confdefs.h. */ 17655 17656#ifdef HAVE_COMPLEX_H 17657#include <complex.h> 17658#endif 17659#ifdef HAVE_MATH_H 17660#include <math.h> 17661#endif 17662 17663int (*ptr)() = (int (*)())asinhl; 17664 17665int 17666main () 17667{ 17668 return 0; 17669} 17670 17671_ACEOF 17672if ac_fn_c_try_link "$LINENO"; then : 17673 gcc_cv_math_func_asinhl=yes 17674else 17675 gcc_cv_math_func_asinhl=no 17676fi 17677rm -f core conftest.err conftest.$ac_objext \ 17678 conftest$ac_exeext conftest.$ac_ext 17679fi 17680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5 17681$as_echo "$gcc_cv_math_func_asinhl" >&6; } 17682 if test $gcc_cv_math_func_asinhl = yes; then 17683 17684cat >>confdefs.h <<_ACEOF 17685#define HAVE_ASINHL 1 17686_ACEOF 17687 17688 fi 17689 17690 17691 17692 17693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5 17694$as_echo_n "checking for atan2f... " >&6; } 17695if ${gcc_cv_math_func_atan2f+:} false; then : 17696 $as_echo_n "(cached) " >&6 17697else 17698 if test x$gcc_no_link = xyes; then 17699 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17700fi 17701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17702/* end confdefs.h. */ 17703 17704#ifdef HAVE_COMPLEX_H 17705#include <complex.h> 17706#endif 17707#ifdef HAVE_MATH_H 17708#include <math.h> 17709#endif 17710 17711int (*ptr)() = (int (*)())atan2f; 17712 17713int 17714main () 17715{ 17716 return 0; 17717} 17718 17719_ACEOF 17720if ac_fn_c_try_link "$LINENO"; then : 17721 gcc_cv_math_func_atan2f=yes 17722else 17723 gcc_cv_math_func_atan2f=no 17724fi 17725rm -f core conftest.err conftest.$ac_objext \ 17726 conftest$ac_exeext conftest.$ac_ext 17727fi 17728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5 17729$as_echo "$gcc_cv_math_func_atan2f" >&6; } 17730 if test $gcc_cv_math_func_atan2f = yes; then 17731 17732cat >>confdefs.h <<_ACEOF 17733#define HAVE_ATAN2F 1 17734_ACEOF 17735 17736 fi 17737 17738 17739 17740 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5 17742$as_echo_n "checking for atan2... " >&6; } 17743if ${gcc_cv_math_func_atan2+:} false; then : 17744 $as_echo_n "(cached) " >&6 17745else 17746 if test x$gcc_no_link = xyes; then 17747 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17748fi 17749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17750/* end confdefs.h. */ 17751 17752#ifdef HAVE_COMPLEX_H 17753#include <complex.h> 17754#endif 17755#ifdef HAVE_MATH_H 17756#include <math.h> 17757#endif 17758 17759int (*ptr)() = (int (*)())atan2; 17760 17761int 17762main () 17763{ 17764 return 0; 17765} 17766 17767_ACEOF 17768if ac_fn_c_try_link "$LINENO"; then : 17769 gcc_cv_math_func_atan2=yes 17770else 17771 gcc_cv_math_func_atan2=no 17772fi 17773rm -f core conftest.err conftest.$ac_objext \ 17774 conftest$ac_exeext conftest.$ac_ext 17775fi 17776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5 17777$as_echo "$gcc_cv_math_func_atan2" >&6; } 17778 if test $gcc_cv_math_func_atan2 = yes; then 17779 17780cat >>confdefs.h <<_ACEOF 17781#define HAVE_ATAN2 1 17782_ACEOF 17783 17784 fi 17785 17786 17787 17788 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5 17790$as_echo_n "checking for atan2l... " >&6; } 17791if ${gcc_cv_math_func_atan2l+:} false; then : 17792 $as_echo_n "(cached) " >&6 17793else 17794 if test x$gcc_no_link = xyes; then 17795 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17796fi 17797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17798/* end confdefs.h. */ 17799 17800#ifdef HAVE_COMPLEX_H 17801#include <complex.h> 17802#endif 17803#ifdef HAVE_MATH_H 17804#include <math.h> 17805#endif 17806 17807int (*ptr)() = (int (*)())atan2l; 17808 17809int 17810main () 17811{ 17812 return 0; 17813} 17814 17815_ACEOF 17816if ac_fn_c_try_link "$LINENO"; then : 17817 gcc_cv_math_func_atan2l=yes 17818else 17819 gcc_cv_math_func_atan2l=no 17820fi 17821rm -f core conftest.err conftest.$ac_objext \ 17822 conftest$ac_exeext conftest.$ac_ext 17823fi 17824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5 17825$as_echo "$gcc_cv_math_func_atan2l" >&6; } 17826 if test $gcc_cv_math_func_atan2l = yes; then 17827 17828cat >>confdefs.h <<_ACEOF 17829#define HAVE_ATAN2L 1 17830_ACEOF 17831 17832 fi 17833 17834 17835 17836 17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5 17838$as_echo_n "checking for atanf... " >&6; } 17839if ${gcc_cv_math_func_atanf+:} false; then : 17840 $as_echo_n "(cached) " >&6 17841else 17842 if test x$gcc_no_link = xyes; then 17843 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17844fi 17845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17846/* end confdefs.h. */ 17847 17848#ifdef HAVE_COMPLEX_H 17849#include <complex.h> 17850#endif 17851#ifdef HAVE_MATH_H 17852#include <math.h> 17853#endif 17854 17855int (*ptr)() = (int (*)())atanf; 17856 17857int 17858main () 17859{ 17860 return 0; 17861} 17862 17863_ACEOF 17864if ac_fn_c_try_link "$LINENO"; then : 17865 gcc_cv_math_func_atanf=yes 17866else 17867 gcc_cv_math_func_atanf=no 17868fi 17869rm -f core conftest.err conftest.$ac_objext \ 17870 conftest$ac_exeext conftest.$ac_ext 17871fi 17872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5 17873$as_echo "$gcc_cv_math_func_atanf" >&6; } 17874 if test $gcc_cv_math_func_atanf = yes; then 17875 17876cat >>confdefs.h <<_ACEOF 17877#define HAVE_ATANF 1 17878_ACEOF 17879 17880 fi 17881 17882 17883 17884 17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5 17886$as_echo_n "checking for atan... " >&6; } 17887if ${gcc_cv_math_func_atan+:} false; then : 17888 $as_echo_n "(cached) " >&6 17889else 17890 if test x$gcc_no_link = xyes; then 17891 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17892fi 17893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17894/* end confdefs.h. */ 17895 17896#ifdef HAVE_COMPLEX_H 17897#include <complex.h> 17898#endif 17899#ifdef HAVE_MATH_H 17900#include <math.h> 17901#endif 17902 17903int (*ptr)() = (int (*)())atan; 17904 17905int 17906main () 17907{ 17908 return 0; 17909} 17910 17911_ACEOF 17912if ac_fn_c_try_link "$LINENO"; then : 17913 gcc_cv_math_func_atan=yes 17914else 17915 gcc_cv_math_func_atan=no 17916fi 17917rm -f core conftest.err conftest.$ac_objext \ 17918 conftest$ac_exeext conftest.$ac_ext 17919fi 17920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5 17921$as_echo "$gcc_cv_math_func_atan" >&6; } 17922 if test $gcc_cv_math_func_atan = yes; then 17923 17924cat >>confdefs.h <<_ACEOF 17925#define HAVE_ATAN 1 17926_ACEOF 17927 17928 fi 17929 17930 17931 17932 17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5 17934$as_echo_n "checking for atanl... " >&6; } 17935if ${gcc_cv_math_func_atanl+:} false; then : 17936 $as_echo_n "(cached) " >&6 17937else 17938 if test x$gcc_no_link = xyes; then 17939 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17940fi 17941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17942/* end confdefs.h. */ 17943 17944#ifdef HAVE_COMPLEX_H 17945#include <complex.h> 17946#endif 17947#ifdef HAVE_MATH_H 17948#include <math.h> 17949#endif 17950 17951int (*ptr)() = (int (*)())atanl; 17952 17953int 17954main () 17955{ 17956 return 0; 17957} 17958 17959_ACEOF 17960if ac_fn_c_try_link "$LINENO"; then : 17961 gcc_cv_math_func_atanl=yes 17962else 17963 gcc_cv_math_func_atanl=no 17964fi 17965rm -f core conftest.err conftest.$ac_objext \ 17966 conftest$ac_exeext conftest.$ac_ext 17967fi 17968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5 17969$as_echo "$gcc_cv_math_func_atanl" >&6; } 17970 if test $gcc_cv_math_func_atanl = yes; then 17971 17972cat >>confdefs.h <<_ACEOF 17973#define HAVE_ATANL 1 17974_ACEOF 17975 17976 fi 17977 17978 17979 17980 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5 17982$as_echo_n "checking for atanhf... " >&6; } 17983if ${gcc_cv_math_func_atanhf+:} false; then : 17984 $as_echo_n "(cached) " >&6 17985else 17986 if test x$gcc_no_link = xyes; then 17987 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 17988fi 17989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17990/* end confdefs.h. */ 17991 17992#ifdef HAVE_COMPLEX_H 17993#include <complex.h> 17994#endif 17995#ifdef HAVE_MATH_H 17996#include <math.h> 17997#endif 17998 17999int (*ptr)() = (int (*)())atanhf; 18000 18001int 18002main () 18003{ 18004 return 0; 18005} 18006 18007_ACEOF 18008if ac_fn_c_try_link "$LINENO"; then : 18009 gcc_cv_math_func_atanhf=yes 18010else 18011 gcc_cv_math_func_atanhf=no 18012fi 18013rm -f core conftest.err conftest.$ac_objext \ 18014 conftest$ac_exeext conftest.$ac_ext 18015fi 18016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5 18017$as_echo "$gcc_cv_math_func_atanhf" >&6; } 18018 if test $gcc_cv_math_func_atanhf = yes; then 18019 18020cat >>confdefs.h <<_ACEOF 18021#define HAVE_ATANHF 1 18022_ACEOF 18023 18024 fi 18025 18026 18027 18028 18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5 18030$as_echo_n "checking for atanh... " >&6; } 18031if ${gcc_cv_math_func_atanh+:} false; then : 18032 $as_echo_n "(cached) " >&6 18033else 18034 if test x$gcc_no_link = xyes; then 18035 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18036fi 18037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18038/* end confdefs.h. */ 18039 18040#ifdef HAVE_COMPLEX_H 18041#include <complex.h> 18042#endif 18043#ifdef HAVE_MATH_H 18044#include <math.h> 18045#endif 18046 18047int (*ptr)() = (int (*)())atanh; 18048 18049int 18050main () 18051{ 18052 return 0; 18053} 18054 18055_ACEOF 18056if ac_fn_c_try_link "$LINENO"; then : 18057 gcc_cv_math_func_atanh=yes 18058else 18059 gcc_cv_math_func_atanh=no 18060fi 18061rm -f core conftest.err conftest.$ac_objext \ 18062 conftest$ac_exeext conftest.$ac_ext 18063fi 18064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5 18065$as_echo "$gcc_cv_math_func_atanh" >&6; } 18066 if test $gcc_cv_math_func_atanh = yes; then 18067 18068cat >>confdefs.h <<_ACEOF 18069#define HAVE_ATANH 1 18070_ACEOF 18071 18072 fi 18073 18074 18075 18076 18077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5 18078$as_echo_n "checking for atanhl... " >&6; } 18079if ${gcc_cv_math_func_atanhl+:} false; then : 18080 $as_echo_n "(cached) " >&6 18081else 18082 if test x$gcc_no_link = xyes; then 18083 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18084fi 18085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18086/* end confdefs.h. */ 18087 18088#ifdef HAVE_COMPLEX_H 18089#include <complex.h> 18090#endif 18091#ifdef HAVE_MATH_H 18092#include <math.h> 18093#endif 18094 18095int (*ptr)() = (int (*)())atanhl; 18096 18097int 18098main () 18099{ 18100 return 0; 18101} 18102 18103_ACEOF 18104if ac_fn_c_try_link "$LINENO"; then : 18105 gcc_cv_math_func_atanhl=yes 18106else 18107 gcc_cv_math_func_atanhl=no 18108fi 18109rm -f core conftest.err conftest.$ac_objext \ 18110 conftest$ac_exeext conftest.$ac_ext 18111fi 18112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5 18113$as_echo "$gcc_cv_math_func_atanhl" >&6; } 18114 if test $gcc_cv_math_func_atanhl = yes; then 18115 18116cat >>confdefs.h <<_ACEOF 18117#define HAVE_ATANHL 1 18118_ACEOF 18119 18120 fi 18121 18122 18123 18124 18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5 18126$as_echo_n "checking for cargf... " >&6; } 18127if ${gcc_cv_math_func_cargf+:} false; then : 18128 $as_echo_n "(cached) " >&6 18129else 18130 if test x$gcc_no_link = xyes; then 18131 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18132fi 18133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18134/* end confdefs.h. */ 18135 18136#ifdef HAVE_COMPLEX_H 18137#include <complex.h> 18138#endif 18139#ifdef HAVE_MATH_H 18140#include <math.h> 18141#endif 18142 18143int (*ptr)() = (int (*)())cargf; 18144 18145int 18146main () 18147{ 18148 return 0; 18149} 18150 18151_ACEOF 18152if ac_fn_c_try_link "$LINENO"; then : 18153 gcc_cv_math_func_cargf=yes 18154else 18155 gcc_cv_math_func_cargf=no 18156fi 18157rm -f core conftest.err conftest.$ac_objext \ 18158 conftest$ac_exeext conftest.$ac_ext 18159fi 18160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5 18161$as_echo "$gcc_cv_math_func_cargf" >&6; } 18162 if test $gcc_cv_math_func_cargf = yes; then 18163 18164cat >>confdefs.h <<_ACEOF 18165#define HAVE_CARGF 1 18166_ACEOF 18167 18168 fi 18169 18170 18171 18172 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5 18174$as_echo_n "checking for carg... " >&6; } 18175if ${gcc_cv_math_func_carg+:} false; then : 18176 $as_echo_n "(cached) " >&6 18177else 18178 if test x$gcc_no_link = xyes; then 18179 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18180fi 18181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18182/* end confdefs.h. */ 18183 18184#ifdef HAVE_COMPLEX_H 18185#include <complex.h> 18186#endif 18187#ifdef HAVE_MATH_H 18188#include <math.h> 18189#endif 18190 18191int (*ptr)() = (int (*)())carg; 18192 18193int 18194main () 18195{ 18196 return 0; 18197} 18198 18199_ACEOF 18200if ac_fn_c_try_link "$LINENO"; then : 18201 gcc_cv_math_func_carg=yes 18202else 18203 gcc_cv_math_func_carg=no 18204fi 18205rm -f core conftest.err conftest.$ac_objext \ 18206 conftest$ac_exeext conftest.$ac_ext 18207fi 18208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5 18209$as_echo "$gcc_cv_math_func_carg" >&6; } 18210 if test $gcc_cv_math_func_carg = yes; then 18211 18212cat >>confdefs.h <<_ACEOF 18213#define HAVE_CARG 1 18214_ACEOF 18215 18216 fi 18217 18218 18219 18220 18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5 18222$as_echo_n "checking for cargl... " >&6; } 18223if ${gcc_cv_math_func_cargl+:} false; then : 18224 $as_echo_n "(cached) " >&6 18225else 18226 if test x$gcc_no_link = xyes; then 18227 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18228fi 18229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18230/* end confdefs.h. */ 18231 18232#ifdef HAVE_COMPLEX_H 18233#include <complex.h> 18234#endif 18235#ifdef HAVE_MATH_H 18236#include <math.h> 18237#endif 18238 18239int (*ptr)() = (int (*)())cargl; 18240 18241int 18242main () 18243{ 18244 return 0; 18245} 18246 18247_ACEOF 18248if ac_fn_c_try_link "$LINENO"; then : 18249 gcc_cv_math_func_cargl=yes 18250else 18251 gcc_cv_math_func_cargl=no 18252fi 18253rm -f core conftest.err conftest.$ac_objext \ 18254 conftest$ac_exeext conftest.$ac_ext 18255fi 18256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5 18257$as_echo "$gcc_cv_math_func_cargl" >&6; } 18258 if test $gcc_cv_math_func_cargl = yes; then 18259 18260cat >>confdefs.h <<_ACEOF 18261#define HAVE_CARGL 1 18262_ACEOF 18263 18264 fi 18265 18266 18267 18268 18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5 18270$as_echo_n "checking for ceilf... " >&6; } 18271if ${gcc_cv_math_func_ceilf+:} false; then : 18272 $as_echo_n "(cached) " >&6 18273else 18274 if test x$gcc_no_link = xyes; then 18275 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18276fi 18277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18278/* end confdefs.h. */ 18279 18280#ifdef HAVE_COMPLEX_H 18281#include <complex.h> 18282#endif 18283#ifdef HAVE_MATH_H 18284#include <math.h> 18285#endif 18286 18287int (*ptr)() = (int (*)())ceilf; 18288 18289int 18290main () 18291{ 18292 return 0; 18293} 18294 18295_ACEOF 18296if ac_fn_c_try_link "$LINENO"; then : 18297 gcc_cv_math_func_ceilf=yes 18298else 18299 gcc_cv_math_func_ceilf=no 18300fi 18301rm -f core conftest.err conftest.$ac_objext \ 18302 conftest$ac_exeext conftest.$ac_ext 18303fi 18304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5 18305$as_echo "$gcc_cv_math_func_ceilf" >&6; } 18306 if test $gcc_cv_math_func_ceilf = yes; then 18307 18308cat >>confdefs.h <<_ACEOF 18309#define HAVE_CEILF 1 18310_ACEOF 18311 18312 fi 18313 18314 18315 18316 18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5 18318$as_echo_n "checking for ceil... " >&6; } 18319if ${gcc_cv_math_func_ceil+:} false; then : 18320 $as_echo_n "(cached) " >&6 18321else 18322 if test x$gcc_no_link = xyes; then 18323 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18324fi 18325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18326/* end confdefs.h. */ 18327 18328#ifdef HAVE_COMPLEX_H 18329#include <complex.h> 18330#endif 18331#ifdef HAVE_MATH_H 18332#include <math.h> 18333#endif 18334 18335int (*ptr)() = (int (*)())ceil; 18336 18337int 18338main () 18339{ 18340 return 0; 18341} 18342 18343_ACEOF 18344if ac_fn_c_try_link "$LINENO"; then : 18345 gcc_cv_math_func_ceil=yes 18346else 18347 gcc_cv_math_func_ceil=no 18348fi 18349rm -f core conftest.err conftest.$ac_objext \ 18350 conftest$ac_exeext conftest.$ac_ext 18351fi 18352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5 18353$as_echo "$gcc_cv_math_func_ceil" >&6; } 18354 if test $gcc_cv_math_func_ceil = yes; then 18355 18356cat >>confdefs.h <<_ACEOF 18357#define HAVE_CEIL 1 18358_ACEOF 18359 18360 fi 18361 18362 18363 18364 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5 18366$as_echo_n "checking for ceill... " >&6; } 18367if ${gcc_cv_math_func_ceill+:} false; then : 18368 $as_echo_n "(cached) " >&6 18369else 18370 if test x$gcc_no_link = xyes; then 18371 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18372fi 18373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18374/* end confdefs.h. */ 18375 18376#ifdef HAVE_COMPLEX_H 18377#include <complex.h> 18378#endif 18379#ifdef HAVE_MATH_H 18380#include <math.h> 18381#endif 18382 18383int (*ptr)() = (int (*)())ceill; 18384 18385int 18386main () 18387{ 18388 return 0; 18389} 18390 18391_ACEOF 18392if ac_fn_c_try_link "$LINENO"; then : 18393 gcc_cv_math_func_ceill=yes 18394else 18395 gcc_cv_math_func_ceill=no 18396fi 18397rm -f core conftest.err conftest.$ac_objext \ 18398 conftest$ac_exeext conftest.$ac_ext 18399fi 18400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5 18401$as_echo "$gcc_cv_math_func_ceill" >&6; } 18402 if test $gcc_cv_math_func_ceill = yes; then 18403 18404cat >>confdefs.h <<_ACEOF 18405#define HAVE_CEILL 1 18406_ACEOF 18407 18408 fi 18409 18410 18411 18412 18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5 18414$as_echo_n "checking for copysignf... " >&6; } 18415if ${gcc_cv_math_func_copysignf+:} false; then : 18416 $as_echo_n "(cached) " >&6 18417else 18418 if test x$gcc_no_link = xyes; then 18419 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18420fi 18421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18422/* end confdefs.h. */ 18423 18424#ifdef HAVE_COMPLEX_H 18425#include <complex.h> 18426#endif 18427#ifdef HAVE_MATH_H 18428#include <math.h> 18429#endif 18430 18431int (*ptr)() = (int (*)())copysignf; 18432 18433int 18434main () 18435{ 18436 return 0; 18437} 18438 18439_ACEOF 18440if ac_fn_c_try_link "$LINENO"; then : 18441 gcc_cv_math_func_copysignf=yes 18442else 18443 gcc_cv_math_func_copysignf=no 18444fi 18445rm -f core conftest.err conftest.$ac_objext \ 18446 conftest$ac_exeext conftest.$ac_ext 18447fi 18448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5 18449$as_echo "$gcc_cv_math_func_copysignf" >&6; } 18450 if test $gcc_cv_math_func_copysignf = yes; then 18451 18452cat >>confdefs.h <<_ACEOF 18453#define HAVE_COPYSIGNF 1 18454_ACEOF 18455 18456 fi 18457 18458 18459 18460 18461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5 18462$as_echo_n "checking for copysign... " >&6; } 18463if ${gcc_cv_math_func_copysign+:} false; then : 18464 $as_echo_n "(cached) " >&6 18465else 18466 if test x$gcc_no_link = xyes; then 18467 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18468fi 18469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18470/* end confdefs.h. */ 18471 18472#ifdef HAVE_COMPLEX_H 18473#include <complex.h> 18474#endif 18475#ifdef HAVE_MATH_H 18476#include <math.h> 18477#endif 18478 18479int (*ptr)() = (int (*)())copysign; 18480 18481int 18482main () 18483{ 18484 return 0; 18485} 18486 18487_ACEOF 18488if ac_fn_c_try_link "$LINENO"; then : 18489 gcc_cv_math_func_copysign=yes 18490else 18491 gcc_cv_math_func_copysign=no 18492fi 18493rm -f core conftest.err conftest.$ac_objext \ 18494 conftest$ac_exeext conftest.$ac_ext 18495fi 18496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5 18497$as_echo "$gcc_cv_math_func_copysign" >&6; } 18498 if test $gcc_cv_math_func_copysign = yes; then 18499 18500cat >>confdefs.h <<_ACEOF 18501#define HAVE_COPYSIGN 1 18502_ACEOF 18503 18504 fi 18505 18506 18507 18508 18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5 18510$as_echo_n "checking for copysignl... " >&6; } 18511if ${gcc_cv_math_func_copysignl+:} false; then : 18512 $as_echo_n "(cached) " >&6 18513else 18514 if test x$gcc_no_link = xyes; then 18515 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18516fi 18517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18518/* end confdefs.h. */ 18519 18520#ifdef HAVE_COMPLEX_H 18521#include <complex.h> 18522#endif 18523#ifdef HAVE_MATH_H 18524#include <math.h> 18525#endif 18526 18527int (*ptr)() = (int (*)())copysignl; 18528 18529int 18530main () 18531{ 18532 return 0; 18533} 18534 18535_ACEOF 18536if ac_fn_c_try_link "$LINENO"; then : 18537 gcc_cv_math_func_copysignl=yes 18538else 18539 gcc_cv_math_func_copysignl=no 18540fi 18541rm -f core conftest.err conftest.$ac_objext \ 18542 conftest$ac_exeext conftest.$ac_ext 18543fi 18544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5 18545$as_echo "$gcc_cv_math_func_copysignl" >&6; } 18546 if test $gcc_cv_math_func_copysignl = yes; then 18547 18548cat >>confdefs.h <<_ACEOF 18549#define HAVE_COPYSIGNL 1 18550_ACEOF 18551 18552 fi 18553 18554 18555 18556 18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5 18558$as_echo_n "checking for cosf... " >&6; } 18559if ${gcc_cv_math_func_cosf+:} false; then : 18560 $as_echo_n "(cached) " >&6 18561else 18562 if test x$gcc_no_link = xyes; then 18563 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18564fi 18565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18566/* end confdefs.h. */ 18567 18568#ifdef HAVE_COMPLEX_H 18569#include <complex.h> 18570#endif 18571#ifdef HAVE_MATH_H 18572#include <math.h> 18573#endif 18574 18575int (*ptr)() = (int (*)())cosf; 18576 18577int 18578main () 18579{ 18580 return 0; 18581} 18582 18583_ACEOF 18584if ac_fn_c_try_link "$LINENO"; then : 18585 gcc_cv_math_func_cosf=yes 18586else 18587 gcc_cv_math_func_cosf=no 18588fi 18589rm -f core conftest.err conftest.$ac_objext \ 18590 conftest$ac_exeext conftest.$ac_ext 18591fi 18592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5 18593$as_echo "$gcc_cv_math_func_cosf" >&6; } 18594 if test $gcc_cv_math_func_cosf = yes; then 18595 18596cat >>confdefs.h <<_ACEOF 18597#define HAVE_COSF 1 18598_ACEOF 18599 18600 fi 18601 18602 18603 18604 18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5 18606$as_echo_n "checking for cos... " >&6; } 18607if ${gcc_cv_math_func_cos+:} false; then : 18608 $as_echo_n "(cached) " >&6 18609else 18610 if test x$gcc_no_link = xyes; then 18611 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18612fi 18613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18614/* end confdefs.h. */ 18615 18616#ifdef HAVE_COMPLEX_H 18617#include <complex.h> 18618#endif 18619#ifdef HAVE_MATH_H 18620#include <math.h> 18621#endif 18622 18623int (*ptr)() = (int (*)())cos; 18624 18625int 18626main () 18627{ 18628 return 0; 18629} 18630 18631_ACEOF 18632if ac_fn_c_try_link "$LINENO"; then : 18633 gcc_cv_math_func_cos=yes 18634else 18635 gcc_cv_math_func_cos=no 18636fi 18637rm -f core conftest.err conftest.$ac_objext \ 18638 conftest$ac_exeext conftest.$ac_ext 18639fi 18640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5 18641$as_echo "$gcc_cv_math_func_cos" >&6; } 18642 if test $gcc_cv_math_func_cos = yes; then 18643 18644cat >>confdefs.h <<_ACEOF 18645#define HAVE_COS 1 18646_ACEOF 18647 18648 fi 18649 18650 18651 18652 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5 18654$as_echo_n "checking for cosl... " >&6; } 18655if ${gcc_cv_math_func_cosl+:} false; then : 18656 $as_echo_n "(cached) " >&6 18657else 18658 if test x$gcc_no_link = xyes; then 18659 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18660fi 18661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18662/* end confdefs.h. */ 18663 18664#ifdef HAVE_COMPLEX_H 18665#include <complex.h> 18666#endif 18667#ifdef HAVE_MATH_H 18668#include <math.h> 18669#endif 18670 18671int (*ptr)() = (int (*)())cosl; 18672 18673int 18674main () 18675{ 18676 return 0; 18677} 18678 18679_ACEOF 18680if ac_fn_c_try_link "$LINENO"; then : 18681 gcc_cv_math_func_cosl=yes 18682else 18683 gcc_cv_math_func_cosl=no 18684fi 18685rm -f core conftest.err conftest.$ac_objext \ 18686 conftest$ac_exeext conftest.$ac_ext 18687fi 18688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5 18689$as_echo "$gcc_cv_math_func_cosl" >&6; } 18690 if test $gcc_cv_math_func_cosl = yes; then 18691 18692cat >>confdefs.h <<_ACEOF 18693#define HAVE_COSL 1 18694_ACEOF 18695 18696 fi 18697 18698 18699 18700 18701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5 18702$as_echo_n "checking for ccosf... " >&6; } 18703if ${gcc_cv_math_func_ccosf+:} false; then : 18704 $as_echo_n "(cached) " >&6 18705else 18706 if test x$gcc_no_link = xyes; then 18707 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18708fi 18709cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18710/* end confdefs.h. */ 18711 18712#ifdef HAVE_COMPLEX_H 18713#include <complex.h> 18714#endif 18715#ifdef HAVE_MATH_H 18716#include <math.h> 18717#endif 18718 18719int (*ptr)() = (int (*)())ccosf; 18720 18721int 18722main () 18723{ 18724 return 0; 18725} 18726 18727_ACEOF 18728if ac_fn_c_try_link "$LINENO"; then : 18729 gcc_cv_math_func_ccosf=yes 18730else 18731 gcc_cv_math_func_ccosf=no 18732fi 18733rm -f core conftest.err conftest.$ac_objext \ 18734 conftest$ac_exeext conftest.$ac_ext 18735fi 18736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5 18737$as_echo "$gcc_cv_math_func_ccosf" >&6; } 18738 if test $gcc_cv_math_func_ccosf = yes; then 18739 18740cat >>confdefs.h <<_ACEOF 18741#define HAVE_CCOSF 1 18742_ACEOF 18743 18744 fi 18745 18746 18747 18748 18749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5 18750$as_echo_n "checking for ccos... " >&6; } 18751if ${gcc_cv_math_func_ccos+:} false; then : 18752 $as_echo_n "(cached) " >&6 18753else 18754 if test x$gcc_no_link = xyes; then 18755 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18756fi 18757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18758/* end confdefs.h. */ 18759 18760#ifdef HAVE_COMPLEX_H 18761#include <complex.h> 18762#endif 18763#ifdef HAVE_MATH_H 18764#include <math.h> 18765#endif 18766 18767int (*ptr)() = (int (*)())ccos; 18768 18769int 18770main () 18771{ 18772 return 0; 18773} 18774 18775_ACEOF 18776if ac_fn_c_try_link "$LINENO"; then : 18777 gcc_cv_math_func_ccos=yes 18778else 18779 gcc_cv_math_func_ccos=no 18780fi 18781rm -f core conftest.err conftest.$ac_objext \ 18782 conftest$ac_exeext conftest.$ac_ext 18783fi 18784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5 18785$as_echo "$gcc_cv_math_func_ccos" >&6; } 18786 if test $gcc_cv_math_func_ccos = yes; then 18787 18788cat >>confdefs.h <<_ACEOF 18789#define HAVE_CCOS 1 18790_ACEOF 18791 18792 fi 18793 18794 18795 18796 18797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5 18798$as_echo_n "checking for ccosl... " >&6; } 18799if ${gcc_cv_math_func_ccosl+:} false; then : 18800 $as_echo_n "(cached) " >&6 18801else 18802 if test x$gcc_no_link = xyes; then 18803 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18804fi 18805cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18806/* end confdefs.h. */ 18807 18808#ifdef HAVE_COMPLEX_H 18809#include <complex.h> 18810#endif 18811#ifdef HAVE_MATH_H 18812#include <math.h> 18813#endif 18814 18815int (*ptr)() = (int (*)())ccosl; 18816 18817int 18818main () 18819{ 18820 return 0; 18821} 18822 18823_ACEOF 18824if ac_fn_c_try_link "$LINENO"; then : 18825 gcc_cv_math_func_ccosl=yes 18826else 18827 gcc_cv_math_func_ccosl=no 18828fi 18829rm -f core conftest.err conftest.$ac_objext \ 18830 conftest$ac_exeext conftest.$ac_ext 18831fi 18832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5 18833$as_echo "$gcc_cv_math_func_ccosl" >&6; } 18834 if test $gcc_cv_math_func_ccosl = yes; then 18835 18836cat >>confdefs.h <<_ACEOF 18837#define HAVE_CCOSL 1 18838_ACEOF 18839 18840 fi 18841 18842 18843 18844 18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5 18846$as_echo_n "checking for coshf... " >&6; } 18847if ${gcc_cv_math_func_coshf+:} false; then : 18848 $as_echo_n "(cached) " >&6 18849else 18850 if test x$gcc_no_link = xyes; then 18851 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18852fi 18853cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18854/* end confdefs.h. */ 18855 18856#ifdef HAVE_COMPLEX_H 18857#include <complex.h> 18858#endif 18859#ifdef HAVE_MATH_H 18860#include <math.h> 18861#endif 18862 18863int (*ptr)() = (int (*)())coshf; 18864 18865int 18866main () 18867{ 18868 return 0; 18869} 18870 18871_ACEOF 18872if ac_fn_c_try_link "$LINENO"; then : 18873 gcc_cv_math_func_coshf=yes 18874else 18875 gcc_cv_math_func_coshf=no 18876fi 18877rm -f core conftest.err conftest.$ac_objext \ 18878 conftest$ac_exeext conftest.$ac_ext 18879fi 18880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5 18881$as_echo "$gcc_cv_math_func_coshf" >&6; } 18882 if test $gcc_cv_math_func_coshf = yes; then 18883 18884cat >>confdefs.h <<_ACEOF 18885#define HAVE_COSHF 1 18886_ACEOF 18887 18888 fi 18889 18890 18891 18892 18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5 18894$as_echo_n "checking for cosh... " >&6; } 18895if ${gcc_cv_math_func_cosh+:} false; then : 18896 $as_echo_n "(cached) " >&6 18897else 18898 if test x$gcc_no_link = xyes; then 18899 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18900fi 18901cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18902/* end confdefs.h. */ 18903 18904#ifdef HAVE_COMPLEX_H 18905#include <complex.h> 18906#endif 18907#ifdef HAVE_MATH_H 18908#include <math.h> 18909#endif 18910 18911int (*ptr)() = (int (*)())cosh; 18912 18913int 18914main () 18915{ 18916 return 0; 18917} 18918 18919_ACEOF 18920if ac_fn_c_try_link "$LINENO"; then : 18921 gcc_cv_math_func_cosh=yes 18922else 18923 gcc_cv_math_func_cosh=no 18924fi 18925rm -f core conftest.err conftest.$ac_objext \ 18926 conftest$ac_exeext conftest.$ac_ext 18927fi 18928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5 18929$as_echo "$gcc_cv_math_func_cosh" >&6; } 18930 if test $gcc_cv_math_func_cosh = yes; then 18931 18932cat >>confdefs.h <<_ACEOF 18933#define HAVE_COSH 1 18934_ACEOF 18935 18936 fi 18937 18938 18939 18940 18941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5 18942$as_echo_n "checking for coshl... " >&6; } 18943if ${gcc_cv_math_func_coshl+:} false; then : 18944 $as_echo_n "(cached) " >&6 18945else 18946 if test x$gcc_no_link = xyes; then 18947 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18948fi 18949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18950/* end confdefs.h. */ 18951 18952#ifdef HAVE_COMPLEX_H 18953#include <complex.h> 18954#endif 18955#ifdef HAVE_MATH_H 18956#include <math.h> 18957#endif 18958 18959int (*ptr)() = (int (*)())coshl; 18960 18961int 18962main () 18963{ 18964 return 0; 18965} 18966 18967_ACEOF 18968if ac_fn_c_try_link "$LINENO"; then : 18969 gcc_cv_math_func_coshl=yes 18970else 18971 gcc_cv_math_func_coshl=no 18972fi 18973rm -f core conftest.err conftest.$ac_objext \ 18974 conftest$ac_exeext conftest.$ac_ext 18975fi 18976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5 18977$as_echo "$gcc_cv_math_func_coshl" >&6; } 18978 if test $gcc_cv_math_func_coshl = yes; then 18979 18980cat >>confdefs.h <<_ACEOF 18981#define HAVE_COSHL 1 18982_ACEOF 18983 18984 fi 18985 18986 18987 18988 18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5 18990$as_echo_n "checking for ccoshf... " >&6; } 18991if ${gcc_cv_math_func_ccoshf+:} false; then : 18992 $as_echo_n "(cached) " >&6 18993else 18994 if test x$gcc_no_link = xyes; then 18995 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 18996fi 18997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18998/* end confdefs.h. */ 18999 19000#ifdef HAVE_COMPLEX_H 19001#include <complex.h> 19002#endif 19003#ifdef HAVE_MATH_H 19004#include <math.h> 19005#endif 19006 19007int (*ptr)() = (int (*)())ccoshf; 19008 19009int 19010main () 19011{ 19012 return 0; 19013} 19014 19015_ACEOF 19016if ac_fn_c_try_link "$LINENO"; then : 19017 gcc_cv_math_func_ccoshf=yes 19018else 19019 gcc_cv_math_func_ccoshf=no 19020fi 19021rm -f core conftest.err conftest.$ac_objext \ 19022 conftest$ac_exeext conftest.$ac_ext 19023fi 19024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5 19025$as_echo "$gcc_cv_math_func_ccoshf" >&6; } 19026 if test $gcc_cv_math_func_ccoshf = yes; then 19027 19028cat >>confdefs.h <<_ACEOF 19029#define HAVE_CCOSHF 1 19030_ACEOF 19031 19032 fi 19033 19034 19035 19036 19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5 19038$as_echo_n "checking for ccosh... " >&6; } 19039if ${gcc_cv_math_func_ccosh+:} false; then : 19040 $as_echo_n "(cached) " >&6 19041else 19042 if test x$gcc_no_link = xyes; then 19043 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19044fi 19045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19046/* end confdefs.h. */ 19047 19048#ifdef HAVE_COMPLEX_H 19049#include <complex.h> 19050#endif 19051#ifdef HAVE_MATH_H 19052#include <math.h> 19053#endif 19054 19055int (*ptr)() = (int (*)())ccosh; 19056 19057int 19058main () 19059{ 19060 return 0; 19061} 19062 19063_ACEOF 19064if ac_fn_c_try_link "$LINENO"; then : 19065 gcc_cv_math_func_ccosh=yes 19066else 19067 gcc_cv_math_func_ccosh=no 19068fi 19069rm -f core conftest.err conftest.$ac_objext \ 19070 conftest$ac_exeext conftest.$ac_ext 19071fi 19072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5 19073$as_echo "$gcc_cv_math_func_ccosh" >&6; } 19074 if test $gcc_cv_math_func_ccosh = yes; then 19075 19076cat >>confdefs.h <<_ACEOF 19077#define HAVE_CCOSH 1 19078_ACEOF 19079 19080 fi 19081 19082 19083 19084 19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5 19086$as_echo_n "checking for ccoshl... " >&6; } 19087if ${gcc_cv_math_func_ccoshl+:} false; then : 19088 $as_echo_n "(cached) " >&6 19089else 19090 if test x$gcc_no_link = xyes; then 19091 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19092fi 19093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19094/* end confdefs.h. */ 19095 19096#ifdef HAVE_COMPLEX_H 19097#include <complex.h> 19098#endif 19099#ifdef HAVE_MATH_H 19100#include <math.h> 19101#endif 19102 19103int (*ptr)() = (int (*)())ccoshl; 19104 19105int 19106main () 19107{ 19108 return 0; 19109} 19110 19111_ACEOF 19112if ac_fn_c_try_link "$LINENO"; then : 19113 gcc_cv_math_func_ccoshl=yes 19114else 19115 gcc_cv_math_func_ccoshl=no 19116fi 19117rm -f core conftest.err conftest.$ac_objext \ 19118 conftest$ac_exeext conftest.$ac_ext 19119fi 19120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5 19121$as_echo "$gcc_cv_math_func_ccoshl" >&6; } 19122 if test $gcc_cv_math_func_ccoshl = yes; then 19123 19124cat >>confdefs.h <<_ACEOF 19125#define HAVE_CCOSHL 1 19126_ACEOF 19127 19128 fi 19129 19130 19131 19132 19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5 19134$as_echo_n "checking for expf... " >&6; } 19135if ${gcc_cv_math_func_expf+:} false; then : 19136 $as_echo_n "(cached) " >&6 19137else 19138 if test x$gcc_no_link = xyes; then 19139 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19140fi 19141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19142/* end confdefs.h. */ 19143 19144#ifdef HAVE_COMPLEX_H 19145#include <complex.h> 19146#endif 19147#ifdef HAVE_MATH_H 19148#include <math.h> 19149#endif 19150 19151int (*ptr)() = (int (*)())expf; 19152 19153int 19154main () 19155{ 19156 return 0; 19157} 19158 19159_ACEOF 19160if ac_fn_c_try_link "$LINENO"; then : 19161 gcc_cv_math_func_expf=yes 19162else 19163 gcc_cv_math_func_expf=no 19164fi 19165rm -f core conftest.err conftest.$ac_objext \ 19166 conftest$ac_exeext conftest.$ac_ext 19167fi 19168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5 19169$as_echo "$gcc_cv_math_func_expf" >&6; } 19170 if test $gcc_cv_math_func_expf = yes; then 19171 19172cat >>confdefs.h <<_ACEOF 19173#define HAVE_EXPF 1 19174_ACEOF 19175 19176 fi 19177 19178 19179 19180 19181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5 19182$as_echo_n "checking for exp... " >&6; } 19183if ${gcc_cv_math_func_exp+:} false; then : 19184 $as_echo_n "(cached) " >&6 19185else 19186 if test x$gcc_no_link = xyes; then 19187 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19188fi 19189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19190/* end confdefs.h. */ 19191 19192#ifdef HAVE_COMPLEX_H 19193#include <complex.h> 19194#endif 19195#ifdef HAVE_MATH_H 19196#include <math.h> 19197#endif 19198 19199int (*ptr)() = (int (*)())exp; 19200 19201int 19202main () 19203{ 19204 return 0; 19205} 19206 19207_ACEOF 19208if ac_fn_c_try_link "$LINENO"; then : 19209 gcc_cv_math_func_exp=yes 19210else 19211 gcc_cv_math_func_exp=no 19212fi 19213rm -f core conftest.err conftest.$ac_objext \ 19214 conftest$ac_exeext conftest.$ac_ext 19215fi 19216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5 19217$as_echo "$gcc_cv_math_func_exp" >&6; } 19218 if test $gcc_cv_math_func_exp = yes; then 19219 19220cat >>confdefs.h <<_ACEOF 19221#define HAVE_EXP 1 19222_ACEOF 19223 19224 fi 19225 19226 19227 19228 19229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5 19230$as_echo_n "checking for expl... " >&6; } 19231if ${gcc_cv_math_func_expl+:} false; then : 19232 $as_echo_n "(cached) " >&6 19233else 19234 if test x$gcc_no_link = xyes; then 19235 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19236fi 19237cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19238/* end confdefs.h. */ 19239 19240#ifdef HAVE_COMPLEX_H 19241#include <complex.h> 19242#endif 19243#ifdef HAVE_MATH_H 19244#include <math.h> 19245#endif 19246 19247int (*ptr)() = (int (*)())expl; 19248 19249int 19250main () 19251{ 19252 return 0; 19253} 19254 19255_ACEOF 19256if ac_fn_c_try_link "$LINENO"; then : 19257 gcc_cv_math_func_expl=yes 19258else 19259 gcc_cv_math_func_expl=no 19260fi 19261rm -f core conftest.err conftest.$ac_objext \ 19262 conftest$ac_exeext conftest.$ac_ext 19263fi 19264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5 19265$as_echo "$gcc_cv_math_func_expl" >&6; } 19266 if test $gcc_cv_math_func_expl = yes; then 19267 19268cat >>confdefs.h <<_ACEOF 19269#define HAVE_EXPL 1 19270_ACEOF 19271 19272 fi 19273 19274 19275 19276 19277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5 19278$as_echo_n "checking for cexpf... " >&6; } 19279if ${gcc_cv_math_func_cexpf+:} false; then : 19280 $as_echo_n "(cached) " >&6 19281else 19282 if test x$gcc_no_link = xyes; then 19283 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19284fi 19285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19286/* end confdefs.h. */ 19287 19288#ifdef HAVE_COMPLEX_H 19289#include <complex.h> 19290#endif 19291#ifdef HAVE_MATH_H 19292#include <math.h> 19293#endif 19294 19295int (*ptr)() = (int (*)())cexpf; 19296 19297int 19298main () 19299{ 19300 return 0; 19301} 19302 19303_ACEOF 19304if ac_fn_c_try_link "$LINENO"; then : 19305 gcc_cv_math_func_cexpf=yes 19306else 19307 gcc_cv_math_func_cexpf=no 19308fi 19309rm -f core conftest.err conftest.$ac_objext \ 19310 conftest$ac_exeext conftest.$ac_ext 19311fi 19312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5 19313$as_echo "$gcc_cv_math_func_cexpf" >&6; } 19314 if test $gcc_cv_math_func_cexpf = yes; then 19315 19316cat >>confdefs.h <<_ACEOF 19317#define HAVE_CEXPF 1 19318_ACEOF 19319 19320 fi 19321 19322 19323 19324 19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5 19326$as_echo_n "checking for cexp... " >&6; } 19327if ${gcc_cv_math_func_cexp+:} false; then : 19328 $as_echo_n "(cached) " >&6 19329else 19330 if test x$gcc_no_link = xyes; then 19331 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19332fi 19333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19334/* end confdefs.h. */ 19335 19336#ifdef HAVE_COMPLEX_H 19337#include <complex.h> 19338#endif 19339#ifdef HAVE_MATH_H 19340#include <math.h> 19341#endif 19342 19343int (*ptr)() = (int (*)())cexp; 19344 19345int 19346main () 19347{ 19348 return 0; 19349} 19350 19351_ACEOF 19352if ac_fn_c_try_link "$LINENO"; then : 19353 gcc_cv_math_func_cexp=yes 19354else 19355 gcc_cv_math_func_cexp=no 19356fi 19357rm -f core conftest.err conftest.$ac_objext \ 19358 conftest$ac_exeext conftest.$ac_ext 19359fi 19360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5 19361$as_echo "$gcc_cv_math_func_cexp" >&6; } 19362 if test $gcc_cv_math_func_cexp = yes; then 19363 19364cat >>confdefs.h <<_ACEOF 19365#define HAVE_CEXP 1 19366_ACEOF 19367 19368 fi 19369 19370 19371 19372 19373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5 19374$as_echo_n "checking for cexpl... " >&6; } 19375if ${gcc_cv_math_func_cexpl+:} false; then : 19376 $as_echo_n "(cached) " >&6 19377else 19378 if test x$gcc_no_link = xyes; then 19379 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19380fi 19381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19382/* end confdefs.h. */ 19383 19384#ifdef HAVE_COMPLEX_H 19385#include <complex.h> 19386#endif 19387#ifdef HAVE_MATH_H 19388#include <math.h> 19389#endif 19390 19391int (*ptr)() = (int (*)())cexpl; 19392 19393int 19394main () 19395{ 19396 return 0; 19397} 19398 19399_ACEOF 19400if ac_fn_c_try_link "$LINENO"; then : 19401 gcc_cv_math_func_cexpl=yes 19402else 19403 gcc_cv_math_func_cexpl=no 19404fi 19405rm -f core conftest.err conftest.$ac_objext \ 19406 conftest$ac_exeext conftest.$ac_ext 19407fi 19408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5 19409$as_echo "$gcc_cv_math_func_cexpl" >&6; } 19410 if test $gcc_cv_math_func_cexpl = yes; then 19411 19412cat >>confdefs.h <<_ACEOF 19413#define HAVE_CEXPL 1 19414_ACEOF 19415 19416 fi 19417 19418 19419 19420 19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5 19422$as_echo_n "checking for fabsf... " >&6; } 19423if ${gcc_cv_math_func_fabsf+:} false; then : 19424 $as_echo_n "(cached) " >&6 19425else 19426 if test x$gcc_no_link = xyes; then 19427 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19428fi 19429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19430/* end confdefs.h. */ 19431 19432#ifdef HAVE_COMPLEX_H 19433#include <complex.h> 19434#endif 19435#ifdef HAVE_MATH_H 19436#include <math.h> 19437#endif 19438 19439int (*ptr)() = (int (*)())fabsf; 19440 19441int 19442main () 19443{ 19444 return 0; 19445} 19446 19447_ACEOF 19448if ac_fn_c_try_link "$LINENO"; then : 19449 gcc_cv_math_func_fabsf=yes 19450else 19451 gcc_cv_math_func_fabsf=no 19452fi 19453rm -f core conftest.err conftest.$ac_objext \ 19454 conftest$ac_exeext conftest.$ac_ext 19455fi 19456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5 19457$as_echo "$gcc_cv_math_func_fabsf" >&6; } 19458 if test $gcc_cv_math_func_fabsf = yes; then 19459 19460cat >>confdefs.h <<_ACEOF 19461#define HAVE_FABSF 1 19462_ACEOF 19463 19464 fi 19465 19466 19467 19468 19469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5 19470$as_echo_n "checking for fabs... " >&6; } 19471if ${gcc_cv_math_func_fabs+:} false; then : 19472 $as_echo_n "(cached) " >&6 19473else 19474 if test x$gcc_no_link = xyes; then 19475 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19476fi 19477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19478/* end confdefs.h. */ 19479 19480#ifdef HAVE_COMPLEX_H 19481#include <complex.h> 19482#endif 19483#ifdef HAVE_MATH_H 19484#include <math.h> 19485#endif 19486 19487int (*ptr)() = (int (*)())fabs; 19488 19489int 19490main () 19491{ 19492 return 0; 19493} 19494 19495_ACEOF 19496if ac_fn_c_try_link "$LINENO"; then : 19497 gcc_cv_math_func_fabs=yes 19498else 19499 gcc_cv_math_func_fabs=no 19500fi 19501rm -f core conftest.err conftest.$ac_objext \ 19502 conftest$ac_exeext conftest.$ac_ext 19503fi 19504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5 19505$as_echo "$gcc_cv_math_func_fabs" >&6; } 19506 if test $gcc_cv_math_func_fabs = yes; then 19507 19508cat >>confdefs.h <<_ACEOF 19509#define HAVE_FABS 1 19510_ACEOF 19511 19512 fi 19513 19514 19515 19516 19517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5 19518$as_echo_n "checking for fabsl... " >&6; } 19519if ${gcc_cv_math_func_fabsl+:} false; then : 19520 $as_echo_n "(cached) " >&6 19521else 19522 if test x$gcc_no_link = xyes; then 19523 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19524fi 19525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19526/* end confdefs.h. */ 19527 19528#ifdef HAVE_COMPLEX_H 19529#include <complex.h> 19530#endif 19531#ifdef HAVE_MATH_H 19532#include <math.h> 19533#endif 19534 19535int (*ptr)() = (int (*)())fabsl; 19536 19537int 19538main () 19539{ 19540 return 0; 19541} 19542 19543_ACEOF 19544if ac_fn_c_try_link "$LINENO"; then : 19545 gcc_cv_math_func_fabsl=yes 19546else 19547 gcc_cv_math_func_fabsl=no 19548fi 19549rm -f core conftest.err conftest.$ac_objext \ 19550 conftest$ac_exeext conftest.$ac_ext 19551fi 19552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5 19553$as_echo "$gcc_cv_math_func_fabsl" >&6; } 19554 if test $gcc_cv_math_func_fabsl = yes; then 19555 19556cat >>confdefs.h <<_ACEOF 19557#define HAVE_FABSL 1 19558_ACEOF 19559 19560 fi 19561 19562 19563 19564 19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5 19566$as_echo_n "checking for cabsf... " >&6; } 19567if ${gcc_cv_math_func_cabsf+:} false; then : 19568 $as_echo_n "(cached) " >&6 19569else 19570 if test x$gcc_no_link = xyes; then 19571 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19572fi 19573cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19574/* end confdefs.h. */ 19575 19576#ifdef HAVE_COMPLEX_H 19577#include <complex.h> 19578#endif 19579#ifdef HAVE_MATH_H 19580#include <math.h> 19581#endif 19582 19583int (*ptr)() = (int (*)())cabsf; 19584 19585int 19586main () 19587{ 19588 return 0; 19589} 19590 19591_ACEOF 19592if ac_fn_c_try_link "$LINENO"; then : 19593 gcc_cv_math_func_cabsf=yes 19594else 19595 gcc_cv_math_func_cabsf=no 19596fi 19597rm -f core conftest.err conftest.$ac_objext \ 19598 conftest$ac_exeext conftest.$ac_ext 19599fi 19600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5 19601$as_echo "$gcc_cv_math_func_cabsf" >&6; } 19602 if test $gcc_cv_math_func_cabsf = yes; then 19603 19604cat >>confdefs.h <<_ACEOF 19605#define HAVE_CABSF 1 19606_ACEOF 19607 19608 fi 19609 19610 19611 19612 19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5 19614$as_echo_n "checking for cabs... " >&6; } 19615if ${gcc_cv_math_func_cabs+:} false; then : 19616 $as_echo_n "(cached) " >&6 19617else 19618 if test x$gcc_no_link = xyes; then 19619 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19620fi 19621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19622/* end confdefs.h. */ 19623 19624#ifdef HAVE_COMPLEX_H 19625#include <complex.h> 19626#endif 19627#ifdef HAVE_MATH_H 19628#include <math.h> 19629#endif 19630 19631int (*ptr)() = (int (*)())cabs; 19632 19633int 19634main () 19635{ 19636 return 0; 19637} 19638 19639_ACEOF 19640if ac_fn_c_try_link "$LINENO"; then : 19641 gcc_cv_math_func_cabs=yes 19642else 19643 gcc_cv_math_func_cabs=no 19644fi 19645rm -f core conftest.err conftest.$ac_objext \ 19646 conftest$ac_exeext conftest.$ac_ext 19647fi 19648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5 19649$as_echo "$gcc_cv_math_func_cabs" >&6; } 19650 if test $gcc_cv_math_func_cabs = yes; then 19651 19652cat >>confdefs.h <<_ACEOF 19653#define HAVE_CABS 1 19654_ACEOF 19655 19656 fi 19657 19658 19659 19660 19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5 19662$as_echo_n "checking for cabsl... " >&6; } 19663if ${gcc_cv_math_func_cabsl+:} false; then : 19664 $as_echo_n "(cached) " >&6 19665else 19666 if test x$gcc_no_link = xyes; then 19667 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19668fi 19669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19670/* end confdefs.h. */ 19671 19672#ifdef HAVE_COMPLEX_H 19673#include <complex.h> 19674#endif 19675#ifdef HAVE_MATH_H 19676#include <math.h> 19677#endif 19678 19679int (*ptr)() = (int (*)())cabsl; 19680 19681int 19682main () 19683{ 19684 return 0; 19685} 19686 19687_ACEOF 19688if ac_fn_c_try_link "$LINENO"; then : 19689 gcc_cv_math_func_cabsl=yes 19690else 19691 gcc_cv_math_func_cabsl=no 19692fi 19693rm -f core conftest.err conftest.$ac_objext \ 19694 conftest$ac_exeext conftest.$ac_ext 19695fi 19696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5 19697$as_echo "$gcc_cv_math_func_cabsl" >&6; } 19698 if test $gcc_cv_math_func_cabsl = yes; then 19699 19700cat >>confdefs.h <<_ACEOF 19701#define HAVE_CABSL 1 19702_ACEOF 19703 19704 fi 19705 19706 19707 19708 19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5 19710$as_echo_n "checking for floorf... " >&6; } 19711if ${gcc_cv_math_func_floorf+:} false; then : 19712 $as_echo_n "(cached) " >&6 19713else 19714 if test x$gcc_no_link = xyes; then 19715 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19716fi 19717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19718/* end confdefs.h. */ 19719 19720#ifdef HAVE_COMPLEX_H 19721#include <complex.h> 19722#endif 19723#ifdef HAVE_MATH_H 19724#include <math.h> 19725#endif 19726 19727int (*ptr)() = (int (*)())floorf; 19728 19729int 19730main () 19731{ 19732 return 0; 19733} 19734 19735_ACEOF 19736if ac_fn_c_try_link "$LINENO"; then : 19737 gcc_cv_math_func_floorf=yes 19738else 19739 gcc_cv_math_func_floorf=no 19740fi 19741rm -f core conftest.err conftest.$ac_objext \ 19742 conftest$ac_exeext conftest.$ac_ext 19743fi 19744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5 19745$as_echo "$gcc_cv_math_func_floorf" >&6; } 19746 if test $gcc_cv_math_func_floorf = yes; then 19747 19748cat >>confdefs.h <<_ACEOF 19749#define HAVE_FLOORF 1 19750_ACEOF 19751 19752 fi 19753 19754 19755 19756 19757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5 19758$as_echo_n "checking for floor... " >&6; } 19759if ${gcc_cv_math_func_floor+:} false; then : 19760 $as_echo_n "(cached) " >&6 19761else 19762 if test x$gcc_no_link = xyes; then 19763 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19764fi 19765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19766/* end confdefs.h. */ 19767 19768#ifdef HAVE_COMPLEX_H 19769#include <complex.h> 19770#endif 19771#ifdef HAVE_MATH_H 19772#include <math.h> 19773#endif 19774 19775int (*ptr)() = (int (*)())floor; 19776 19777int 19778main () 19779{ 19780 return 0; 19781} 19782 19783_ACEOF 19784if ac_fn_c_try_link "$LINENO"; then : 19785 gcc_cv_math_func_floor=yes 19786else 19787 gcc_cv_math_func_floor=no 19788fi 19789rm -f core conftest.err conftest.$ac_objext \ 19790 conftest$ac_exeext conftest.$ac_ext 19791fi 19792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5 19793$as_echo "$gcc_cv_math_func_floor" >&6; } 19794 if test $gcc_cv_math_func_floor = yes; then 19795 19796cat >>confdefs.h <<_ACEOF 19797#define HAVE_FLOOR 1 19798_ACEOF 19799 19800 fi 19801 19802 19803 19804 19805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5 19806$as_echo_n "checking for floorl... " >&6; } 19807if ${gcc_cv_math_func_floorl+:} false; then : 19808 $as_echo_n "(cached) " >&6 19809else 19810 if test x$gcc_no_link = xyes; then 19811 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19812fi 19813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19814/* end confdefs.h. */ 19815 19816#ifdef HAVE_COMPLEX_H 19817#include <complex.h> 19818#endif 19819#ifdef HAVE_MATH_H 19820#include <math.h> 19821#endif 19822 19823int (*ptr)() = (int (*)())floorl; 19824 19825int 19826main () 19827{ 19828 return 0; 19829} 19830 19831_ACEOF 19832if ac_fn_c_try_link "$LINENO"; then : 19833 gcc_cv_math_func_floorl=yes 19834else 19835 gcc_cv_math_func_floorl=no 19836fi 19837rm -f core conftest.err conftest.$ac_objext \ 19838 conftest$ac_exeext conftest.$ac_ext 19839fi 19840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5 19841$as_echo "$gcc_cv_math_func_floorl" >&6; } 19842 if test $gcc_cv_math_func_floorl = yes; then 19843 19844cat >>confdefs.h <<_ACEOF 19845#define HAVE_FLOORL 1 19846_ACEOF 19847 19848 fi 19849 19850 19851 19852 19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmaf" >&5 19854$as_echo_n "checking for fmaf... " >&6; } 19855if ${gcc_cv_math_func_fmaf+:} false; then : 19856 $as_echo_n "(cached) " >&6 19857else 19858 if test x$gcc_no_link = xyes; then 19859 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19860fi 19861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19862/* end confdefs.h. */ 19863 19864#ifdef HAVE_COMPLEX_H 19865#include <complex.h> 19866#endif 19867#ifdef HAVE_MATH_H 19868#include <math.h> 19869#endif 19870 19871int (*ptr)() = (int (*)())fmaf; 19872 19873int 19874main () 19875{ 19876 return 0; 19877} 19878 19879_ACEOF 19880if ac_fn_c_try_link "$LINENO"; then : 19881 gcc_cv_math_func_fmaf=yes 19882else 19883 gcc_cv_math_func_fmaf=no 19884fi 19885rm -f core conftest.err conftest.$ac_objext \ 19886 conftest$ac_exeext conftest.$ac_ext 19887fi 19888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmaf" >&5 19889$as_echo "$gcc_cv_math_func_fmaf" >&6; } 19890 if test $gcc_cv_math_func_fmaf = yes; then 19891 19892cat >>confdefs.h <<_ACEOF 19893#define HAVE_FMAF 1 19894_ACEOF 19895 19896 fi 19897 19898 19899 19900 19901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fma" >&5 19902$as_echo_n "checking for fma... " >&6; } 19903if ${gcc_cv_math_func_fma+:} false; then : 19904 $as_echo_n "(cached) " >&6 19905else 19906 if test x$gcc_no_link = xyes; then 19907 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19908fi 19909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19910/* end confdefs.h. */ 19911 19912#ifdef HAVE_COMPLEX_H 19913#include <complex.h> 19914#endif 19915#ifdef HAVE_MATH_H 19916#include <math.h> 19917#endif 19918 19919int (*ptr)() = (int (*)())fma; 19920 19921int 19922main () 19923{ 19924 return 0; 19925} 19926 19927_ACEOF 19928if ac_fn_c_try_link "$LINENO"; then : 19929 gcc_cv_math_func_fma=yes 19930else 19931 gcc_cv_math_func_fma=no 19932fi 19933rm -f core conftest.err conftest.$ac_objext \ 19934 conftest$ac_exeext conftest.$ac_ext 19935fi 19936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fma" >&5 19937$as_echo "$gcc_cv_math_func_fma" >&6; } 19938 if test $gcc_cv_math_func_fma = yes; then 19939 19940cat >>confdefs.h <<_ACEOF 19941#define HAVE_FMA 1 19942_ACEOF 19943 19944 fi 19945 19946 19947 19948 19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmal" >&5 19950$as_echo_n "checking for fmal... " >&6; } 19951if ${gcc_cv_math_func_fmal+:} false; then : 19952 $as_echo_n "(cached) " >&6 19953else 19954 if test x$gcc_no_link = xyes; then 19955 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 19956fi 19957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19958/* end confdefs.h. */ 19959 19960#ifdef HAVE_COMPLEX_H 19961#include <complex.h> 19962#endif 19963#ifdef HAVE_MATH_H 19964#include <math.h> 19965#endif 19966 19967int (*ptr)() = (int (*)())fmal; 19968 19969int 19970main () 19971{ 19972 return 0; 19973} 19974 19975_ACEOF 19976if ac_fn_c_try_link "$LINENO"; then : 19977 gcc_cv_math_func_fmal=yes 19978else 19979 gcc_cv_math_func_fmal=no 19980fi 19981rm -f core conftest.err conftest.$ac_objext \ 19982 conftest$ac_exeext conftest.$ac_ext 19983fi 19984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmal" >&5 19985$as_echo "$gcc_cv_math_func_fmal" >&6; } 19986 if test $gcc_cv_math_func_fmal = yes; then 19987 19988cat >>confdefs.h <<_ACEOF 19989#define HAVE_FMAL 1 19990_ACEOF 19991 19992 fi 19993 19994 19995 19996 19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5 19998$as_echo_n "checking for fmodf... " >&6; } 19999if ${gcc_cv_math_func_fmodf+:} false; then : 20000 $as_echo_n "(cached) " >&6 20001else 20002 if test x$gcc_no_link = xyes; then 20003 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20004fi 20005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20006/* end confdefs.h. */ 20007 20008#ifdef HAVE_COMPLEX_H 20009#include <complex.h> 20010#endif 20011#ifdef HAVE_MATH_H 20012#include <math.h> 20013#endif 20014 20015int (*ptr)() = (int (*)())fmodf; 20016 20017int 20018main () 20019{ 20020 return 0; 20021} 20022 20023_ACEOF 20024if ac_fn_c_try_link "$LINENO"; then : 20025 gcc_cv_math_func_fmodf=yes 20026else 20027 gcc_cv_math_func_fmodf=no 20028fi 20029rm -f core conftest.err conftest.$ac_objext \ 20030 conftest$ac_exeext conftest.$ac_ext 20031fi 20032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5 20033$as_echo "$gcc_cv_math_func_fmodf" >&6; } 20034 if test $gcc_cv_math_func_fmodf = yes; then 20035 20036cat >>confdefs.h <<_ACEOF 20037#define HAVE_FMODF 1 20038_ACEOF 20039 20040 fi 20041 20042 20043 20044 20045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5 20046$as_echo_n "checking for fmod... " >&6; } 20047if ${gcc_cv_math_func_fmod+:} false; then : 20048 $as_echo_n "(cached) " >&6 20049else 20050 if test x$gcc_no_link = xyes; then 20051 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20052fi 20053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20054/* end confdefs.h. */ 20055 20056#ifdef HAVE_COMPLEX_H 20057#include <complex.h> 20058#endif 20059#ifdef HAVE_MATH_H 20060#include <math.h> 20061#endif 20062 20063int (*ptr)() = (int (*)())fmod; 20064 20065int 20066main () 20067{ 20068 return 0; 20069} 20070 20071_ACEOF 20072if ac_fn_c_try_link "$LINENO"; then : 20073 gcc_cv_math_func_fmod=yes 20074else 20075 gcc_cv_math_func_fmod=no 20076fi 20077rm -f core conftest.err conftest.$ac_objext \ 20078 conftest$ac_exeext conftest.$ac_ext 20079fi 20080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5 20081$as_echo "$gcc_cv_math_func_fmod" >&6; } 20082 if test $gcc_cv_math_func_fmod = yes; then 20083 20084cat >>confdefs.h <<_ACEOF 20085#define HAVE_FMOD 1 20086_ACEOF 20087 20088 fi 20089 20090 20091 20092 20093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5 20094$as_echo_n "checking for fmodl... " >&6; } 20095if ${gcc_cv_math_func_fmodl+:} false; then : 20096 $as_echo_n "(cached) " >&6 20097else 20098 if test x$gcc_no_link = xyes; then 20099 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20100fi 20101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20102/* end confdefs.h. */ 20103 20104#ifdef HAVE_COMPLEX_H 20105#include <complex.h> 20106#endif 20107#ifdef HAVE_MATH_H 20108#include <math.h> 20109#endif 20110 20111int (*ptr)() = (int (*)())fmodl; 20112 20113int 20114main () 20115{ 20116 return 0; 20117} 20118 20119_ACEOF 20120if ac_fn_c_try_link "$LINENO"; then : 20121 gcc_cv_math_func_fmodl=yes 20122else 20123 gcc_cv_math_func_fmodl=no 20124fi 20125rm -f core conftest.err conftest.$ac_objext \ 20126 conftest$ac_exeext conftest.$ac_ext 20127fi 20128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5 20129$as_echo "$gcc_cv_math_func_fmodl" >&6; } 20130 if test $gcc_cv_math_func_fmodl = yes; then 20131 20132cat >>confdefs.h <<_ACEOF 20133#define HAVE_FMODL 1 20134_ACEOF 20135 20136 fi 20137 20138 20139 20140 20141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5 20142$as_echo_n "checking for frexpf... " >&6; } 20143if ${gcc_cv_math_func_frexpf+:} false; then : 20144 $as_echo_n "(cached) " >&6 20145else 20146 if test x$gcc_no_link = xyes; then 20147 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20148fi 20149cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20150/* end confdefs.h. */ 20151 20152#ifdef HAVE_COMPLEX_H 20153#include <complex.h> 20154#endif 20155#ifdef HAVE_MATH_H 20156#include <math.h> 20157#endif 20158 20159int (*ptr)() = (int (*)())frexpf; 20160 20161int 20162main () 20163{ 20164 return 0; 20165} 20166 20167_ACEOF 20168if ac_fn_c_try_link "$LINENO"; then : 20169 gcc_cv_math_func_frexpf=yes 20170else 20171 gcc_cv_math_func_frexpf=no 20172fi 20173rm -f core conftest.err conftest.$ac_objext \ 20174 conftest$ac_exeext conftest.$ac_ext 20175fi 20176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5 20177$as_echo "$gcc_cv_math_func_frexpf" >&6; } 20178 if test $gcc_cv_math_func_frexpf = yes; then 20179 20180cat >>confdefs.h <<_ACEOF 20181#define HAVE_FREXPF 1 20182_ACEOF 20183 20184 fi 20185 20186 20187 20188 20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5 20190$as_echo_n "checking for frexp... " >&6; } 20191if ${gcc_cv_math_func_frexp+:} false; then : 20192 $as_echo_n "(cached) " >&6 20193else 20194 if test x$gcc_no_link = xyes; then 20195 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20196fi 20197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20198/* end confdefs.h. */ 20199 20200#ifdef HAVE_COMPLEX_H 20201#include <complex.h> 20202#endif 20203#ifdef HAVE_MATH_H 20204#include <math.h> 20205#endif 20206 20207int (*ptr)() = (int (*)())frexp; 20208 20209int 20210main () 20211{ 20212 return 0; 20213} 20214 20215_ACEOF 20216if ac_fn_c_try_link "$LINENO"; then : 20217 gcc_cv_math_func_frexp=yes 20218else 20219 gcc_cv_math_func_frexp=no 20220fi 20221rm -f core conftest.err conftest.$ac_objext \ 20222 conftest$ac_exeext conftest.$ac_ext 20223fi 20224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5 20225$as_echo "$gcc_cv_math_func_frexp" >&6; } 20226 if test $gcc_cv_math_func_frexp = yes; then 20227 20228cat >>confdefs.h <<_ACEOF 20229#define HAVE_FREXP 1 20230_ACEOF 20231 20232 fi 20233 20234 20235 20236 20237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5 20238$as_echo_n "checking for frexpl... " >&6; } 20239if ${gcc_cv_math_func_frexpl+:} false; then : 20240 $as_echo_n "(cached) " >&6 20241else 20242 if test x$gcc_no_link = xyes; then 20243 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20244fi 20245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20246/* end confdefs.h. */ 20247 20248#ifdef HAVE_COMPLEX_H 20249#include <complex.h> 20250#endif 20251#ifdef HAVE_MATH_H 20252#include <math.h> 20253#endif 20254 20255int (*ptr)() = (int (*)())frexpl; 20256 20257int 20258main () 20259{ 20260 return 0; 20261} 20262 20263_ACEOF 20264if ac_fn_c_try_link "$LINENO"; then : 20265 gcc_cv_math_func_frexpl=yes 20266else 20267 gcc_cv_math_func_frexpl=no 20268fi 20269rm -f core conftest.err conftest.$ac_objext \ 20270 conftest$ac_exeext conftest.$ac_ext 20271fi 20272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5 20273$as_echo "$gcc_cv_math_func_frexpl" >&6; } 20274 if test $gcc_cv_math_func_frexpl = yes; then 20275 20276cat >>confdefs.h <<_ACEOF 20277#define HAVE_FREXPL 1 20278_ACEOF 20279 20280 fi 20281 20282 20283 20284 20285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5 20286$as_echo_n "checking for hypotf... " >&6; } 20287if ${gcc_cv_math_func_hypotf+:} false; then : 20288 $as_echo_n "(cached) " >&6 20289else 20290 if test x$gcc_no_link = xyes; then 20291 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20292fi 20293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20294/* end confdefs.h. */ 20295 20296#ifdef HAVE_COMPLEX_H 20297#include <complex.h> 20298#endif 20299#ifdef HAVE_MATH_H 20300#include <math.h> 20301#endif 20302 20303int (*ptr)() = (int (*)())hypotf; 20304 20305int 20306main () 20307{ 20308 return 0; 20309} 20310 20311_ACEOF 20312if ac_fn_c_try_link "$LINENO"; then : 20313 gcc_cv_math_func_hypotf=yes 20314else 20315 gcc_cv_math_func_hypotf=no 20316fi 20317rm -f core conftest.err conftest.$ac_objext \ 20318 conftest$ac_exeext conftest.$ac_ext 20319fi 20320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5 20321$as_echo "$gcc_cv_math_func_hypotf" >&6; } 20322 if test $gcc_cv_math_func_hypotf = yes; then 20323 20324cat >>confdefs.h <<_ACEOF 20325#define HAVE_HYPOTF 1 20326_ACEOF 20327 20328 fi 20329 20330 20331 20332 20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5 20334$as_echo_n "checking for hypot... " >&6; } 20335if ${gcc_cv_math_func_hypot+:} false; then : 20336 $as_echo_n "(cached) " >&6 20337else 20338 if test x$gcc_no_link = xyes; then 20339 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20340fi 20341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20342/* end confdefs.h. */ 20343 20344#ifdef HAVE_COMPLEX_H 20345#include <complex.h> 20346#endif 20347#ifdef HAVE_MATH_H 20348#include <math.h> 20349#endif 20350 20351int (*ptr)() = (int (*)())hypot; 20352 20353int 20354main () 20355{ 20356 return 0; 20357} 20358 20359_ACEOF 20360if ac_fn_c_try_link "$LINENO"; then : 20361 gcc_cv_math_func_hypot=yes 20362else 20363 gcc_cv_math_func_hypot=no 20364fi 20365rm -f core conftest.err conftest.$ac_objext \ 20366 conftest$ac_exeext conftest.$ac_ext 20367fi 20368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5 20369$as_echo "$gcc_cv_math_func_hypot" >&6; } 20370 if test $gcc_cv_math_func_hypot = yes; then 20371 20372cat >>confdefs.h <<_ACEOF 20373#define HAVE_HYPOT 1 20374_ACEOF 20375 20376 fi 20377 20378 20379 20380 20381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5 20382$as_echo_n "checking for hypotl... " >&6; } 20383if ${gcc_cv_math_func_hypotl+:} false; then : 20384 $as_echo_n "(cached) " >&6 20385else 20386 if test x$gcc_no_link = xyes; then 20387 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20388fi 20389cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20390/* end confdefs.h. */ 20391 20392#ifdef HAVE_COMPLEX_H 20393#include <complex.h> 20394#endif 20395#ifdef HAVE_MATH_H 20396#include <math.h> 20397#endif 20398 20399int (*ptr)() = (int (*)())hypotl; 20400 20401int 20402main () 20403{ 20404 return 0; 20405} 20406 20407_ACEOF 20408if ac_fn_c_try_link "$LINENO"; then : 20409 gcc_cv_math_func_hypotl=yes 20410else 20411 gcc_cv_math_func_hypotl=no 20412fi 20413rm -f core conftest.err conftest.$ac_objext \ 20414 conftest$ac_exeext conftest.$ac_ext 20415fi 20416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5 20417$as_echo "$gcc_cv_math_func_hypotl" >&6; } 20418 if test $gcc_cv_math_func_hypotl = yes; then 20419 20420cat >>confdefs.h <<_ACEOF 20421#define HAVE_HYPOTL 1 20422_ACEOF 20423 20424 fi 20425 20426 20427 20428 20429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5 20430$as_echo_n "checking for ldexpf... " >&6; } 20431if ${gcc_cv_math_func_ldexpf+:} false; then : 20432 $as_echo_n "(cached) " >&6 20433else 20434 if test x$gcc_no_link = xyes; then 20435 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20436fi 20437cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20438/* end confdefs.h. */ 20439 20440#ifdef HAVE_COMPLEX_H 20441#include <complex.h> 20442#endif 20443#ifdef HAVE_MATH_H 20444#include <math.h> 20445#endif 20446 20447int (*ptr)() = (int (*)())ldexpf; 20448 20449int 20450main () 20451{ 20452 return 0; 20453} 20454 20455_ACEOF 20456if ac_fn_c_try_link "$LINENO"; then : 20457 gcc_cv_math_func_ldexpf=yes 20458else 20459 gcc_cv_math_func_ldexpf=no 20460fi 20461rm -f core conftest.err conftest.$ac_objext \ 20462 conftest$ac_exeext conftest.$ac_ext 20463fi 20464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5 20465$as_echo "$gcc_cv_math_func_ldexpf" >&6; } 20466 if test $gcc_cv_math_func_ldexpf = yes; then 20467 20468cat >>confdefs.h <<_ACEOF 20469#define HAVE_LDEXPF 1 20470_ACEOF 20471 20472 fi 20473 20474 20475 20476 20477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5 20478$as_echo_n "checking for ldexp... " >&6; } 20479if ${gcc_cv_math_func_ldexp+:} false; then : 20480 $as_echo_n "(cached) " >&6 20481else 20482 if test x$gcc_no_link = xyes; then 20483 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20484fi 20485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20486/* end confdefs.h. */ 20487 20488#ifdef HAVE_COMPLEX_H 20489#include <complex.h> 20490#endif 20491#ifdef HAVE_MATH_H 20492#include <math.h> 20493#endif 20494 20495int (*ptr)() = (int (*)())ldexp; 20496 20497int 20498main () 20499{ 20500 return 0; 20501} 20502 20503_ACEOF 20504if ac_fn_c_try_link "$LINENO"; then : 20505 gcc_cv_math_func_ldexp=yes 20506else 20507 gcc_cv_math_func_ldexp=no 20508fi 20509rm -f core conftest.err conftest.$ac_objext \ 20510 conftest$ac_exeext conftest.$ac_ext 20511fi 20512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5 20513$as_echo "$gcc_cv_math_func_ldexp" >&6; } 20514 if test $gcc_cv_math_func_ldexp = yes; then 20515 20516cat >>confdefs.h <<_ACEOF 20517#define HAVE_LDEXP 1 20518_ACEOF 20519 20520 fi 20521 20522 20523 20524 20525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5 20526$as_echo_n "checking for ldexpl... " >&6; } 20527if ${gcc_cv_math_func_ldexpl+:} false; then : 20528 $as_echo_n "(cached) " >&6 20529else 20530 if test x$gcc_no_link = xyes; then 20531 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20532fi 20533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20534/* end confdefs.h. */ 20535 20536#ifdef HAVE_COMPLEX_H 20537#include <complex.h> 20538#endif 20539#ifdef HAVE_MATH_H 20540#include <math.h> 20541#endif 20542 20543int (*ptr)() = (int (*)())ldexpl; 20544 20545int 20546main () 20547{ 20548 return 0; 20549} 20550 20551_ACEOF 20552if ac_fn_c_try_link "$LINENO"; then : 20553 gcc_cv_math_func_ldexpl=yes 20554else 20555 gcc_cv_math_func_ldexpl=no 20556fi 20557rm -f core conftest.err conftest.$ac_objext \ 20558 conftest$ac_exeext conftest.$ac_ext 20559fi 20560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5 20561$as_echo "$gcc_cv_math_func_ldexpl" >&6; } 20562 if test $gcc_cv_math_func_ldexpl = yes; then 20563 20564cat >>confdefs.h <<_ACEOF 20565#define HAVE_LDEXPL 1 20566_ACEOF 20567 20568 fi 20569 20570 20571 20572 20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5 20574$as_echo_n "checking for logf... " >&6; } 20575if ${gcc_cv_math_func_logf+:} false; then : 20576 $as_echo_n "(cached) " >&6 20577else 20578 if test x$gcc_no_link = xyes; then 20579 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20580fi 20581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20582/* end confdefs.h. */ 20583 20584#ifdef HAVE_COMPLEX_H 20585#include <complex.h> 20586#endif 20587#ifdef HAVE_MATH_H 20588#include <math.h> 20589#endif 20590 20591int (*ptr)() = (int (*)())logf; 20592 20593int 20594main () 20595{ 20596 return 0; 20597} 20598 20599_ACEOF 20600if ac_fn_c_try_link "$LINENO"; then : 20601 gcc_cv_math_func_logf=yes 20602else 20603 gcc_cv_math_func_logf=no 20604fi 20605rm -f core conftest.err conftest.$ac_objext \ 20606 conftest$ac_exeext conftest.$ac_ext 20607fi 20608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5 20609$as_echo "$gcc_cv_math_func_logf" >&6; } 20610 if test $gcc_cv_math_func_logf = yes; then 20611 20612cat >>confdefs.h <<_ACEOF 20613#define HAVE_LOGF 1 20614_ACEOF 20615 20616 fi 20617 20618 20619 20620 20621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5 20622$as_echo_n "checking for log... " >&6; } 20623if ${gcc_cv_math_func_log+:} false; then : 20624 $as_echo_n "(cached) " >&6 20625else 20626 if test x$gcc_no_link = xyes; then 20627 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20628fi 20629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20630/* end confdefs.h. */ 20631 20632#ifdef HAVE_COMPLEX_H 20633#include <complex.h> 20634#endif 20635#ifdef HAVE_MATH_H 20636#include <math.h> 20637#endif 20638 20639int (*ptr)() = (int (*)())log; 20640 20641int 20642main () 20643{ 20644 return 0; 20645} 20646 20647_ACEOF 20648if ac_fn_c_try_link "$LINENO"; then : 20649 gcc_cv_math_func_log=yes 20650else 20651 gcc_cv_math_func_log=no 20652fi 20653rm -f core conftest.err conftest.$ac_objext \ 20654 conftest$ac_exeext conftest.$ac_ext 20655fi 20656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5 20657$as_echo "$gcc_cv_math_func_log" >&6; } 20658 if test $gcc_cv_math_func_log = yes; then 20659 20660cat >>confdefs.h <<_ACEOF 20661#define HAVE_LOG 1 20662_ACEOF 20663 20664 fi 20665 20666 20667 20668 20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5 20670$as_echo_n "checking for logl... " >&6; } 20671if ${gcc_cv_math_func_logl+:} false; then : 20672 $as_echo_n "(cached) " >&6 20673else 20674 if test x$gcc_no_link = xyes; then 20675 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20676fi 20677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20678/* end confdefs.h. */ 20679 20680#ifdef HAVE_COMPLEX_H 20681#include <complex.h> 20682#endif 20683#ifdef HAVE_MATH_H 20684#include <math.h> 20685#endif 20686 20687int (*ptr)() = (int (*)())logl; 20688 20689int 20690main () 20691{ 20692 return 0; 20693} 20694 20695_ACEOF 20696if ac_fn_c_try_link "$LINENO"; then : 20697 gcc_cv_math_func_logl=yes 20698else 20699 gcc_cv_math_func_logl=no 20700fi 20701rm -f core conftest.err conftest.$ac_objext \ 20702 conftest$ac_exeext conftest.$ac_ext 20703fi 20704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5 20705$as_echo "$gcc_cv_math_func_logl" >&6; } 20706 if test $gcc_cv_math_func_logl = yes; then 20707 20708cat >>confdefs.h <<_ACEOF 20709#define HAVE_LOGL 1 20710_ACEOF 20711 20712 fi 20713 20714 20715 20716 20717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5 20718$as_echo_n "checking for clogf... " >&6; } 20719if ${gcc_cv_math_func_clogf+:} false; then : 20720 $as_echo_n "(cached) " >&6 20721else 20722 if test x$gcc_no_link = xyes; then 20723 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20724fi 20725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20726/* end confdefs.h. */ 20727 20728#ifdef HAVE_COMPLEX_H 20729#include <complex.h> 20730#endif 20731#ifdef HAVE_MATH_H 20732#include <math.h> 20733#endif 20734 20735int (*ptr)() = (int (*)())clogf; 20736 20737int 20738main () 20739{ 20740 return 0; 20741} 20742 20743_ACEOF 20744if ac_fn_c_try_link "$LINENO"; then : 20745 gcc_cv_math_func_clogf=yes 20746else 20747 gcc_cv_math_func_clogf=no 20748fi 20749rm -f core conftest.err conftest.$ac_objext \ 20750 conftest$ac_exeext conftest.$ac_ext 20751fi 20752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5 20753$as_echo "$gcc_cv_math_func_clogf" >&6; } 20754 if test $gcc_cv_math_func_clogf = yes; then 20755 20756cat >>confdefs.h <<_ACEOF 20757#define HAVE_CLOGF 1 20758_ACEOF 20759 20760 fi 20761 20762 20763 20764 20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5 20766$as_echo_n "checking for clog... " >&6; } 20767if ${gcc_cv_math_func_clog+:} false; then : 20768 $as_echo_n "(cached) " >&6 20769else 20770 if test x$gcc_no_link = xyes; then 20771 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20772fi 20773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20774/* end confdefs.h. */ 20775 20776#ifdef HAVE_COMPLEX_H 20777#include <complex.h> 20778#endif 20779#ifdef HAVE_MATH_H 20780#include <math.h> 20781#endif 20782 20783int (*ptr)() = (int (*)())clog; 20784 20785int 20786main () 20787{ 20788 return 0; 20789} 20790 20791_ACEOF 20792if ac_fn_c_try_link "$LINENO"; then : 20793 gcc_cv_math_func_clog=yes 20794else 20795 gcc_cv_math_func_clog=no 20796fi 20797rm -f core conftest.err conftest.$ac_objext \ 20798 conftest$ac_exeext conftest.$ac_ext 20799fi 20800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5 20801$as_echo "$gcc_cv_math_func_clog" >&6; } 20802 if test $gcc_cv_math_func_clog = yes; then 20803 20804cat >>confdefs.h <<_ACEOF 20805#define HAVE_CLOG 1 20806_ACEOF 20807 20808 fi 20809 20810 20811 20812 20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5 20814$as_echo_n "checking for clogl... " >&6; } 20815if ${gcc_cv_math_func_clogl+:} false; then : 20816 $as_echo_n "(cached) " >&6 20817else 20818 if test x$gcc_no_link = xyes; then 20819 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20820fi 20821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20822/* end confdefs.h. */ 20823 20824#ifdef HAVE_COMPLEX_H 20825#include <complex.h> 20826#endif 20827#ifdef HAVE_MATH_H 20828#include <math.h> 20829#endif 20830 20831int (*ptr)() = (int (*)())clogl; 20832 20833int 20834main () 20835{ 20836 return 0; 20837} 20838 20839_ACEOF 20840if ac_fn_c_try_link "$LINENO"; then : 20841 gcc_cv_math_func_clogl=yes 20842else 20843 gcc_cv_math_func_clogl=no 20844fi 20845rm -f core conftest.err conftest.$ac_objext \ 20846 conftest$ac_exeext conftest.$ac_ext 20847fi 20848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5 20849$as_echo "$gcc_cv_math_func_clogl" >&6; } 20850 if test $gcc_cv_math_func_clogl = yes; then 20851 20852cat >>confdefs.h <<_ACEOF 20853#define HAVE_CLOGL 1 20854_ACEOF 20855 20856 fi 20857 20858 20859 20860 20861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5 20862$as_echo_n "checking for log10f... " >&6; } 20863if ${gcc_cv_math_func_log10f+:} false; then : 20864 $as_echo_n "(cached) " >&6 20865else 20866 if test x$gcc_no_link = xyes; then 20867 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20868fi 20869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20870/* end confdefs.h. */ 20871 20872#ifdef HAVE_COMPLEX_H 20873#include <complex.h> 20874#endif 20875#ifdef HAVE_MATH_H 20876#include <math.h> 20877#endif 20878 20879int (*ptr)() = (int (*)())log10f; 20880 20881int 20882main () 20883{ 20884 return 0; 20885} 20886 20887_ACEOF 20888if ac_fn_c_try_link "$LINENO"; then : 20889 gcc_cv_math_func_log10f=yes 20890else 20891 gcc_cv_math_func_log10f=no 20892fi 20893rm -f core conftest.err conftest.$ac_objext \ 20894 conftest$ac_exeext conftest.$ac_ext 20895fi 20896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5 20897$as_echo "$gcc_cv_math_func_log10f" >&6; } 20898 if test $gcc_cv_math_func_log10f = yes; then 20899 20900cat >>confdefs.h <<_ACEOF 20901#define HAVE_LOG10F 1 20902_ACEOF 20903 20904 fi 20905 20906 20907 20908 20909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5 20910$as_echo_n "checking for log10... " >&6; } 20911if ${gcc_cv_math_func_log10+:} false; then : 20912 $as_echo_n "(cached) " >&6 20913else 20914 if test x$gcc_no_link = xyes; then 20915 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20916fi 20917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20918/* end confdefs.h. */ 20919 20920#ifdef HAVE_COMPLEX_H 20921#include <complex.h> 20922#endif 20923#ifdef HAVE_MATH_H 20924#include <math.h> 20925#endif 20926 20927int (*ptr)() = (int (*)())log10; 20928 20929int 20930main () 20931{ 20932 return 0; 20933} 20934 20935_ACEOF 20936if ac_fn_c_try_link "$LINENO"; then : 20937 gcc_cv_math_func_log10=yes 20938else 20939 gcc_cv_math_func_log10=no 20940fi 20941rm -f core conftest.err conftest.$ac_objext \ 20942 conftest$ac_exeext conftest.$ac_ext 20943fi 20944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5 20945$as_echo "$gcc_cv_math_func_log10" >&6; } 20946 if test $gcc_cv_math_func_log10 = yes; then 20947 20948cat >>confdefs.h <<_ACEOF 20949#define HAVE_LOG10 1 20950_ACEOF 20951 20952 fi 20953 20954 20955 20956 20957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5 20958$as_echo_n "checking for log10l... " >&6; } 20959if ${gcc_cv_math_func_log10l+:} false; then : 20960 $as_echo_n "(cached) " >&6 20961else 20962 if test x$gcc_no_link = xyes; then 20963 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 20964fi 20965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20966/* end confdefs.h. */ 20967 20968#ifdef HAVE_COMPLEX_H 20969#include <complex.h> 20970#endif 20971#ifdef HAVE_MATH_H 20972#include <math.h> 20973#endif 20974 20975int (*ptr)() = (int (*)())log10l; 20976 20977int 20978main () 20979{ 20980 return 0; 20981} 20982 20983_ACEOF 20984if ac_fn_c_try_link "$LINENO"; then : 20985 gcc_cv_math_func_log10l=yes 20986else 20987 gcc_cv_math_func_log10l=no 20988fi 20989rm -f core conftest.err conftest.$ac_objext \ 20990 conftest$ac_exeext conftest.$ac_ext 20991fi 20992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5 20993$as_echo "$gcc_cv_math_func_log10l" >&6; } 20994 if test $gcc_cv_math_func_log10l = yes; then 20995 20996cat >>confdefs.h <<_ACEOF 20997#define HAVE_LOG10L 1 20998_ACEOF 20999 21000 fi 21001 21002 21003 21004 21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5 21006$as_echo_n "checking for clog10f... " >&6; } 21007if ${gcc_cv_math_func_clog10f+:} false; then : 21008 $as_echo_n "(cached) " >&6 21009else 21010 if test x$gcc_no_link = xyes; then 21011 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21012fi 21013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21014/* end confdefs.h. */ 21015 21016#ifdef HAVE_COMPLEX_H 21017#include <complex.h> 21018#endif 21019#ifdef HAVE_MATH_H 21020#include <math.h> 21021#endif 21022 21023int (*ptr)() = (int (*)())clog10f; 21024 21025int 21026main () 21027{ 21028 return 0; 21029} 21030 21031_ACEOF 21032if ac_fn_c_try_link "$LINENO"; then : 21033 gcc_cv_math_func_clog10f=yes 21034else 21035 gcc_cv_math_func_clog10f=no 21036fi 21037rm -f core conftest.err conftest.$ac_objext \ 21038 conftest$ac_exeext conftest.$ac_ext 21039fi 21040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5 21041$as_echo "$gcc_cv_math_func_clog10f" >&6; } 21042 if test $gcc_cv_math_func_clog10f = yes; then 21043 21044cat >>confdefs.h <<_ACEOF 21045#define HAVE_CLOG10F 1 21046_ACEOF 21047 21048 fi 21049 21050 21051 21052 21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5 21054$as_echo_n "checking for clog10... " >&6; } 21055if ${gcc_cv_math_func_clog10+:} false; then : 21056 $as_echo_n "(cached) " >&6 21057else 21058 if test x$gcc_no_link = xyes; then 21059 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21060fi 21061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21062/* end confdefs.h. */ 21063 21064#ifdef HAVE_COMPLEX_H 21065#include <complex.h> 21066#endif 21067#ifdef HAVE_MATH_H 21068#include <math.h> 21069#endif 21070 21071int (*ptr)() = (int (*)())clog10; 21072 21073int 21074main () 21075{ 21076 return 0; 21077} 21078 21079_ACEOF 21080if ac_fn_c_try_link "$LINENO"; then : 21081 gcc_cv_math_func_clog10=yes 21082else 21083 gcc_cv_math_func_clog10=no 21084fi 21085rm -f core conftest.err conftest.$ac_objext \ 21086 conftest$ac_exeext conftest.$ac_ext 21087fi 21088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5 21089$as_echo "$gcc_cv_math_func_clog10" >&6; } 21090 if test $gcc_cv_math_func_clog10 = yes; then 21091 21092cat >>confdefs.h <<_ACEOF 21093#define HAVE_CLOG10 1 21094_ACEOF 21095 21096 fi 21097 21098 21099 21100 21101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5 21102$as_echo_n "checking for clog10l... " >&6; } 21103if ${gcc_cv_math_func_clog10l+:} false; then : 21104 $as_echo_n "(cached) " >&6 21105else 21106 if test x$gcc_no_link = xyes; then 21107 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21108fi 21109cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21110/* end confdefs.h. */ 21111 21112#ifdef HAVE_COMPLEX_H 21113#include <complex.h> 21114#endif 21115#ifdef HAVE_MATH_H 21116#include <math.h> 21117#endif 21118 21119int (*ptr)() = (int (*)())clog10l; 21120 21121int 21122main () 21123{ 21124 return 0; 21125} 21126 21127_ACEOF 21128if ac_fn_c_try_link "$LINENO"; then : 21129 gcc_cv_math_func_clog10l=yes 21130else 21131 gcc_cv_math_func_clog10l=no 21132fi 21133rm -f core conftest.err conftest.$ac_objext \ 21134 conftest$ac_exeext conftest.$ac_ext 21135fi 21136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5 21137$as_echo "$gcc_cv_math_func_clog10l" >&6; } 21138 if test $gcc_cv_math_func_clog10l = yes; then 21139 21140cat >>confdefs.h <<_ACEOF 21141#define HAVE_CLOG10L 1 21142_ACEOF 21143 21144 fi 21145 21146 21147 21148 21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5 21150$as_echo_n "checking for nextafterf... " >&6; } 21151if ${gcc_cv_math_func_nextafterf+:} false; then : 21152 $as_echo_n "(cached) " >&6 21153else 21154 if test x$gcc_no_link = xyes; then 21155 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21156fi 21157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21158/* end confdefs.h. */ 21159 21160#ifdef HAVE_COMPLEX_H 21161#include <complex.h> 21162#endif 21163#ifdef HAVE_MATH_H 21164#include <math.h> 21165#endif 21166 21167int (*ptr)() = (int (*)())nextafterf; 21168 21169int 21170main () 21171{ 21172 return 0; 21173} 21174 21175_ACEOF 21176if ac_fn_c_try_link "$LINENO"; then : 21177 gcc_cv_math_func_nextafterf=yes 21178else 21179 gcc_cv_math_func_nextafterf=no 21180fi 21181rm -f core conftest.err conftest.$ac_objext \ 21182 conftest$ac_exeext conftest.$ac_ext 21183fi 21184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5 21185$as_echo "$gcc_cv_math_func_nextafterf" >&6; } 21186 if test $gcc_cv_math_func_nextafterf = yes; then 21187 21188cat >>confdefs.h <<_ACEOF 21189#define HAVE_NEXTAFTERF 1 21190_ACEOF 21191 21192 fi 21193 21194 21195 21196 21197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5 21198$as_echo_n "checking for nextafter... " >&6; } 21199if ${gcc_cv_math_func_nextafter+:} false; then : 21200 $as_echo_n "(cached) " >&6 21201else 21202 if test x$gcc_no_link = xyes; then 21203 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21204fi 21205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21206/* end confdefs.h. */ 21207 21208#ifdef HAVE_COMPLEX_H 21209#include <complex.h> 21210#endif 21211#ifdef HAVE_MATH_H 21212#include <math.h> 21213#endif 21214 21215int (*ptr)() = (int (*)())nextafter; 21216 21217int 21218main () 21219{ 21220 return 0; 21221} 21222 21223_ACEOF 21224if ac_fn_c_try_link "$LINENO"; then : 21225 gcc_cv_math_func_nextafter=yes 21226else 21227 gcc_cv_math_func_nextafter=no 21228fi 21229rm -f core conftest.err conftest.$ac_objext \ 21230 conftest$ac_exeext conftest.$ac_ext 21231fi 21232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5 21233$as_echo "$gcc_cv_math_func_nextafter" >&6; } 21234 if test $gcc_cv_math_func_nextafter = yes; then 21235 21236cat >>confdefs.h <<_ACEOF 21237#define HAVE_NEXTAFTER 1 21238_ACEOF 21239 21240 fi 21241 21242 21243 21244 21245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5 21246$as_echo_n "checking for nextafterl... " >&6; } 21247if ${gcc_cv_math_func_nextafterl+:} false; then : 21248 $as_echo_n "(cached) " >&6 21249else 21250 if test x$gcc_no_link = xyes; then 21251 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21252fi 21253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21254/* end confdefs.h. */ 21255 21256#ifdef HAVE_COMPLEX_H 21257#include <complex.h> 21258#endif 21259#ifdef HAVE_MATH_H 21260#include <math.h> 21261#endif 21262 21263int (*ptr)() = (int (*)())nextafterl; 21264 21265int 21266main () 21267{ 21268 return 0; 21269} 21270 21271_ACEOF 21272if ac_fn_c_try_link "$LINENO"; then : 21273 gcc_cv_math_func_nextafterl=yes 21274else 21275 gcc_cv_math_func_nextafterl=no 21276fi 21277rm -f core conftest.err conftest.$ac_objext \ 21278 conftest$ac_exeext conftest.$ac_ext 21279fi 21280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5 21281$as_echo "$gcc_cv_math_func_nextafterl" >&6; } 21282 if test $gcc_cv_math_func_nextafterl = yes; then 21283 21284cat >>confdefs.h <<_ACEOF 21285#define HAVE_NEXTAFTERL 1 21286_ACEOF 21287 21288 fi 21289 21290 21291 21292 21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5 21294$as_echo_n "checking for powf... " >&6; } 21295if ${gcc_cv_math_func_powf+:} false; then : 21296 $as_echo_n "(cached) " >&6 21297else 21298 if test x$gcc_no_link = xyes; then 21299 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21300fi 21301cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21302/* end confdefs.h. */ 21303 21304#ifdef HAVE_COMPLEX_H 21305#include <complex.h> 21306#endif 21307#ifdef HAVE_MATH_H 21308#include <math.h> 21309#endif 21310 21311int (*ptr)() = (int (*)())powf; 21312 21313int 21314main () 21315{ 21316 return 0; 21317} 21318 21319_ACEOF 21320if ac_fn_c_try_link "$LINENO"; then : 21321 gcc_cv_math_func_powf=yes 21322else 21323 gcc_cv_math_func_powf=no 21324fi 21325rm -f core conftest.err conftest.$ac_objext \ 21326 conftest$ac_exeext conftest.$ac_ext 21327fi 21328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5 21329$as_echo "$gcc_cv_math_func_powf" >&6; } 21330 if test $gcc_cv_math_func_powf = yes; then 21331 21332cat >>confdefs.h <<_ACEOF 21333#define HAVE_POWF 1 21334_ACEOF 21335 21336 fi 21337 21338 21339 21340 21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5 21342$as_echo_n "checking for pow... " >&6; } 21343if ${gcc_cv_math_func_pow+:} false; then : 21344 $as_echo_n "(cached) " >&6 21345else 21346 if test x$gcc_no_link = xyes; then 21347 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21348fi 21349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21350/* end confdefs.h. */ 21351 21352#ifdef HAVE_COMPLEX_H 21353#include <complex.h> 21354#endif 21355#ifdef HAVE_MATH_H 21356#include <math.h> 21357#endif 21358 21359int (*ptr)() = (int (*)())pow; 21360 21361int 21362main () 21363{ 21364 return 0; 21365} 21366 21367_ACEOF 21368if ac_fn_c_try_link "$LINENO"; then : 21369 gcc_cv_math_func_pow=yes 21370else 21371 gcc_cv_math_func_pow=no 21372fi 21373rm -f core conftest.err conftest.$ac_objext \ 21374 conftest$ac_exeext conftest.$ac_ext 21375fi 21376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5 21377$as_echo "$gcc_cv_math_func_pow" >&6; } 21378 if test $gcc_cv_math_func_pow = yes; then 21379 21380cat >>confdefs.h <<_ACEOF 21381#define HAVE_POW 1 21382_ACEOF 21383 21384 fi 21385 21386 21387 21388 21389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 21390$as_echo_n "checking for cpowf... " >&6; } 21391if ${gcc_cv_math_func_cpowf+:} false; then : 21392 $as_echo_n "(cached) " >&6 21393else 21394 if test x$gcc_no_link = xyes; then 21395 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21396fi 21397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21398/* end confdefs.h. */ 21399 21400#ifdef HAVE_COMPLEX_H 21401#include <complex.h> 21402#endif 21403#ifdef HAVE_MATH_H 21404#include <math.h> 21405#endif 21406 21407int (*ptr)() = (int (*)())cpowf; 21408 21409int 21410main () 21411{ 21412 return 0; 21413} 21414 21415_ACEOF 21416if ac_fn_c_try_link "$LINENO"; then : 21417 gcc_cv_math_func_cpowf=yes 21418else 21419 gcc_cv_math_func_cpowf=no 21420fi 21421rm -f core conftest.err conftest.$ac_objext \ 21422 conftest$ac_exeext conftest.$ac_ext 21423fi 21424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5 21425$as_echo "$gcc_cv_math_func_cpowf" >&6; } 21426 if test $gcc_cv_math_func_cpowf = yes; then 21427 21428cat >>confdefs.h <<_ACEOF 21429#define HAVE_CPOWF 1 21430_ACEOF 21431 21432 fi 21433 21434 21435 21436 21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5 21438$as_echo_n "checking for cpow... " >&6; } 21439if ${gcc_cv_math_func_cpow+:} false; then : 21440 $as_echo_n "(cached) " >&6 21441else 21442 if test x$gcc_no_link = xyes; then 21443 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21444fi 21445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21446/* end confdefs.h. */ 21447 21448#ifdef HAVE_COMPLEX_H 21449#include <complex.h> 21450#endif 21451#ifdef HAVE_MATH_H 21452#include <math.h> 21453#endif 21454 21455int (*ptr)() = (int (*)())cpow; 21456 21457int 21458main () 21459{ 21460 return 0; 21461} 21462 21463_ACEOF 21464if ac_fn_c_try_link "$LINENO"; then : 21465 gcc_cv_math_func_cpow=yes 21466else 21467 gcc_cv_math_func_cpow=no 21468fi 21469rm -f core conftest.err conftest.$ac_objext \ 21470 conftest$ac_exeext conftest.$ac_ext 21471fi 21472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5 21473$as_echo "$gcc_cv_math_func_cpow" >&6; } 21474 if test $gcc_cv_math_func_cpow = yes; then 21475 21476cat >>confdefs.h <<_ACEOF 21477#define HAVE_CPOW 1 21478_ACEOF 21479 21480 fi 21481 21482 21483 21484 21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5 21486$as_echo_n "checking for cpowl... " >&6; } 21487if ${gcc_cv_math_func_cpowl+:} false; then : 21488 $as_echo_n "(cached) " >&6 21489else 21490 if test x$gcc_no_link = xyes; then 21491 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21492fi 21493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21494/* end confdefs.h. */ 21495 21496#ifdef HAVE_COMPLEX_H 21497#include <complex.h> 21498#endif 21499#ifdef HAVE_MATH_H 21500#include <math.h> 21501#endif 21502 21503int (*ptr)() = (int (*)())cpowl; 21504 21505int 21506main () 21507{ 21508 return 0; 21509} 21510 21511_ACEOF 21512if ac_fn_c_try_link "$LINENO"; then : 21513 gcc_cv_math_func_cpowl=yes 21514else 21515 gcc_cv_math_func_cpowl=no 21516fi 21517rm -f core conftest.err conftest.$ac_objext \ 21518 conftest$ac_exeext conftest.$ac_ext 21519fi 21520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5 21521$as_echo "$gcc_cv_math_func_cpowl" >&6; } 21522 if test $gcc_cv_math_func_cpowl = yes; then 21523 21524cat >>confdefs.h <<_ACEOF 21525#define HAVE_CPOWL 1 21526_ACEOF 21527 21528 fi 21529 21530 21531 21532 21533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5 21534$as_echo_n "checking for roundf... " >&6; } 21535if ${gcc_cv_math_func_roundf+:} false; then : 21536 $as_echo_n "(cached) " >&6 21537else 21538 if test x$gcc_no_link = xyes; then 21539 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21540fi 21541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21542/* end confdefs.h. */ 21543 21544#ifdef HAVE_COMPLEX_H 21545#include <complex.h> 21546#endif 21547#ifdef HAVE_MATH_H 21548#include <math.h> 21549#endif 21550 21551int (*ptr)() = (int (*)())roundf; 21552 21553int 21554main () 21555{ 21556 return 0; 21557} 21558 21559_ACEOF 21560if ac_fn_c_try_link "$LINENO"; then : 21561 gcc_cv_math_func_roundf=yes 21562else 21563 gcc_cv_math_func_roundf=no 21564fi 21565rm -f core conftest.err conftest.$ac_objext \ 21566 conftest$ac_exeext conftest.$ac_ext 21567fi 21568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5 21569$as_echo "$gcc_cv_math_func_roundf" >&6; } 21570 if test $gcc_cv_math_func_roundf = yes; then 21571 21572cat >>confdefs.h <<_ACEOF 21573#define HAVE_ROUNDF 1 21574_ACEOF 21575 21576 fi 21577 21578 21579 21580 21581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5 21582$as_echo_n "checking for round... " >&6; } 21583if ${gcc_cv_math_func_round+:} false; then : 21584 $as_echo_n "(cached) " >&6 21585else 21586 if test x$gcc_no_link = xyes; then 21587 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21588fi 21589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21590/* end confdefs.h. */ 21591 21592#ifdef HAVE_COMPLEX_H 21593#include <complex.h> 21594#endif 21595#ifdef HAVE_MATH_H 21596#include <math.h> 21597#endif 21598 21599int (*ptr)() = (int (*)())round; 21600 21601int 21602main () 21603{ 21604 return 0; 21605} 21606 21607_ACEOF 21608if ac_fn_c_try_link "$LINENO"; then : 21609 gcc_cv_math_func_round=yes 21610else 21611 gcc_cv_math_func_round=no 21612fi 21613rm -f core conftest.err conftest.$ac_objext \ 21614 conftest$ac_exeext conftest.$ac_ext 21615fi 21616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5 21617$as_echo "$gcc_cv_math_func_round" >&6; } 21618 if test $gcc_cv_math_func_round = yes; then 21619 21620cat >>confdefs.h <<_ACEOF 21621#define HAVE_ROUND 1 21622_ACEOF 21623 21624 fi 21625 21626 21627 21628 21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5 21630$as_echo_n "checking for roundl... " >&6; } 21631if ${gcc_cv_math_func_roundl+:} false; then : 21632 $as_echo_n "(cached) " >&6 21633else 21634 if test x$gcc_no_link = xyes; then 21635 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21636fi 21637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21638/* end confdefs.h. */ 21639 21640#ifdef HAVE_COMPLEX_H 21641#include <complex.h> 21642#endif 21643#ifdef HAVE_MATH_H 21644#include <math.h> 21645#endif 21646 21647int (*ptr)() = (int (*)())roundl; 21648 21649int 21650main () 21651{ 21652 return 0; 21653} 21654 21655_ACEOF 21656if ac_fn_c_try_link "$LINENO"; then : 21657 gcc_cv_math_func_roundl=yes 21658else 21659 gcc_cv_math_func_roundl=no 21660fi 21661rm -f core conftest.err conftest.$ac_objext \ 21662 conftest$ac_exeext conftest.$ac_ext 21663fi 21664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5 21665$as_echo "$gcc_cv_math_func_roundl" >&6; } 21666 if test $gcc_cv_math_func_roundl = yes; then 21667 21668cat >>confdefs.h <<_ACEOF 21669#define HAVE_ROUNDL 1 21670_ACEOF 21671 21672 fi 21673 21674 21675 21676 21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5 21678$as_echo_n "checking for lroundf... " >&6; } 21679if ${gcc_cv_math_func_lroundf+:} false; then : 21680 $as_echo_n "(cached) " >&6 21681else 21682 if test x$gcc_no_link = xyes; then 21683 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21684fi 21685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21686/* end confdefs.h. */ 21687 21688#ifdef HAVE_COMPLEX_H 21689#include <complex.h> 21690#endif 21691#ifdef HAVE_MATH_H 21692#include <math.h> 21693#endif 21694 21695int (*ptr)() = (int (*)())lroundf; 21696 21697int 21698main () 21699{ 21700 return 0; 21701} 21702 21703_ACEOF 21704if ac_fn_c_try_link "$LINENO"; then : 21705 gcc_cv_math_func_lroundf=yes 21706else 21707 gcc_cv_math_func_lroundf=no 21708fi 21709rm -f core conftest.err conftest.$ac_objext \ 21710 conftest$ac_exeext conftest.$ac_ext 21711fi 21712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5 21713$as_echo "$gcc_cv_math_func_lroundf" >&6; } 21714 if test $gcc_cv_math_func_lroundf = yes; then 21715 21716cat >>confdefs.h <<_ACEOF 21717#define HAVE_LROUNDF 1 21718_ACEOF 21719 21720 fi 21721 21722 21723 21724 21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5 21726$as_echo_n "checking for lround... " >&6; } 21727if ${gcc_cv_math_func_lround+:} false; then : 21728 $as_echo_n "(cached) " >&6 21729else 21730 if test x$gcc_no_link = xyes; then 21731 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21732fi 21733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21734/* end confdefs.h. */ 21735 21736#ifdef HAVE_COMPLEX_H 21737#include <complex.h> 21738#endif 21739#ifdef HAVE_MATH_H 21740#include <math.h> 21741#endif 21742 21743int (*ptr)() = (int (*)())lround; 21744 21745int 21746main () 21747{ 21748 return 0; 21749} 21750 21751_ACEOF 21752if ac_fn_c_try_link "$LINENO"; then : 21753 gcc_cv_math_func_lround=yes 21754else 21755 gcc_cv_math_func_lround=no 21756fi 21757rm -f core conftest.err conftest.$ac_objext \ 21758 conftest$ac_exeext conftest.$ac_ext 21759fi 21760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5 21761$as_echo "$gcc_cv_math_func_lround" >&6; } 21762 if test $gcc_cv_math_func_lround = yes; then 21763 21764cat >>confdefs.h <<_ACEOF 21765#define HAVE_LROUND 1 21766_ACEOF 21767 21768 fi 21769 21770 21771 21772 21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5 21774$as_echo_n "checking for lroundl... " >&6; } 21775if ${gcc_cv_math_func_lroundl+:} false; then : 21776 $as_echo_n "(cached) " >&6 21777else 21778 if test x$gcc_no_link = xyes; then 21779 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21780fi 21781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21782/* end confdefs.h. */ 21783 21784#ifdef HAVE_COMPLEX_H 21785#include <complex.h> 21786#endif 21787#ifdef HAVE_MATH_H 21788#include <math.h> 21789#endif 21790 21791int (*ptr)() = (int (*)())lroundl; 21792 21793int 21794main () 21795{ 21796 return 0; 21797} 21798 21799_ACEOF 21800if ac_fn_c_try_link "$LINENO"; then : 21801 gcc_cv_math_func_lroundl=yes 21802else 21803 gcc_cv_math_func_lroundl=no 21804fi 21805rm -f core conftest.err conftest.$ac_objext \ 21806 conftest$ac_exeext conftest.$ac_ext 21807fi 21808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5 21809$as_echo "$gcc_cv_math_func_lroundl" >&6; } 21810 if test $gcc_cv_math_func_lroundl = yes; then 21811 21812cat >>confdefs.h <<_ACEOF 21813#define HAVE_LROUNDL 1 21814_ACEOF 21815 21816 fi 21817 21818 21819 21820 21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5 21822$as_echo_n "checking for llroundf... " >&6; } 21823if ${gcc_cv_math_func_llroundf+:} false; then : 21824 $as_echo_n "(cached) " >&6 21825else 21826 if test x$gcc_no_link = xyes; then 21827 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21828fi 21829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21830/* end confdefs.h. */ 21831 21832#ifdef HAVE_COMPLEX_H 21833#include <complex.h> 21834#endif 21835#ifdef HAVE_MATH_H 21836#include <math.h> 21837#endif 21838 21839int (*ptr)() = (int (*)())llroundf; 21840 21841int 21842main () 21843{ 21844 return 0; 21845} 21846 21847_ACEOF 21848if ac_fn_c_try_link "$LINENO"; then : 21849 gcc_cv_math_func_llroundf=yes 21850else 21851 gcc_cv_math_func_llroundf=no 21852fi 21853rm -f core conftest.err conftest.$ac_objext \ 21854 conftest$ac_exeext conftest.$ac_ext 21855fi 21856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5 21857$as_echo "$gcc_cv_math_func_llroundf" >&6; } 21858 if test $gcc_cv_math_func_llroundf = yes; then 21859 21860cat >>confdefs.h <<_ACEOF 21861#define HAVE_LLROUNDF 1 21862_ACEOF 21863 21864 fi 21865 21866 21867 21868 21869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5 21870$as_echo_n "checking for llround... " >&6; } 21871if ${gcc_cv_math_func_llround+:} false; then : 21872 $as_echo_n "(cached) " >&6 21873else 21874 if test x$gcc_no_link = xyes; then 21875 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21876fi 21877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21878/* end confdefs.h. */ 21879 21880#ifdef HAVE_COMPLEX_H 21881#include <complex.h> 21882#endif 21883#ifdef HAVE_MATH_H 21884#include <math.h> 21885#endif 21886 21887int (*ptr)() = (int (*)())llround; 21888 21889int 21890main () 21891{ 21892 return 0; 21893} 21894 21895_ACEOF 21896if ac_fn_c_try_link "$LINENO"; then : 21897 gcc_cv_math_func_llround=yes 21898else 21899 gcc_cv_math_func_llround=no 21900fi 21901rm -f core conftest.err conftest.$ac_objext \ 21902 conftest$ac_exeext conftest.$ac_ext 21903fi 21904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5 21905$as_echo "$gcc_cv_math_func_llround" >&6; } 21906 if test $gcc_cv_math_func_llround = yes; then 21907 21908cat >>confdefs.h <<_ACEOF 21909#define HAVE_LLROUND 1 21910_ACEOF 21911 21912 fi 21913 21914 21915 21916 21917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5 21918$as_echo_n "checking for llroundl... " >&6; } 21919if ${gcc_cv_math_func_llroundl+:} false; then : 21920 $as_echo_n "(cached) " >&6 21921else 21922 if test x$gcc_no_link = xyes; then 21923 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21924fi 21925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21926/* end confdefs.h. */ 21927 21928#ifdef HAVE_COMPLEX_H 21929#include <complex.h> 21930#endif 21931#ifdef HAVE_MATH_H 21932#include <math.h> 21933#endif 21934 21935int (*ptr)() = (int (*)())llroundl; 21936 21937int 21938main () 21939{ 21940 return 0; 21941} 21942 21943_ACEOF 21944if ac_fn_c_try_link "$LINENO"; then : 21945 gcc_cv_math_func_llroundl=yes 21946else 21947 gcc_cv_math_func_llroundl=no 21948fi 21949rm -f core conftest.err conftest.$ac_objext \ 21950 conftest$ac_exeext conftest.$ac_ext 21951fi 21952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5 21953$as_echo "$gcc_cv_math_func_llroundl" >&6; } 21954 if test $gcc_cv_math_func_llroundl = yes; then 21955 21956cat >>confdefs.h <<_ACEOF 21957#define HAVE_LLROUNDL 1 21958_ACEOF 21959 21960 fi 21961 21962 21963 21964 21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5 21966$as_echo_n "checking for scalbnf... " >&6; } 21967if ${gcc_cv_math_func_scalbnf+:} false; then : 21968 $as_echo_n "(cached) " >&6 21969else 21970 if test x$gcc_no_link = xyes; then 21971 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 21972fi 21973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21974/* end confdefs.h. */ 21975 21976#ifdef HAVE_COMPLEX_H 21977#include <complex.h> 21978#endif 21979#ifdef HAVE_MATH_H 21980#include <math.h> 21981#endif 21982 21983int (*ptr)() = (int (*)())scalbnf; 21984 21985int 21986main () 21987{ 21988 return 0; 21989} 21990 21991_ACEOF 21992if ac_fn_c_try_link "$LINENO"; then : 21993 gcc_cv_math_func_scalbnf=yes 21994else 21995 gcc_cv_math_func_scalbnf=no 21996fi 21997rm -f core conftest.err conftest.$ac_objext \ 21998 conftest$ac_exeext conftest.$ac_ext 21999fi 22000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5 22001$as_echo "$gcc_cv_math_func_scalbnf" >&6; } 22002 if test $gcc_cv_math_func_scalbnf = yes; then 22003 22004cat >>confdefs.h <<_ACEOF 22005#define HAVE_SCALBNF 1 22006_ACEOF 22007 22008 fi 22009 22010 22011 22012 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5 22014$as_echo_n "checking for scalbn... " >&6; } 22015if ${gcc_cv_math_func_scalbn+:} false; then : 22016 $as_echo_n "(cached) " >&6 22017else 22018 if test x$gcc_no_link = xyes; then 22019 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22020fi 22021cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22022/* end confdefs.h. */ 22023 22024#ifdef HAVE_COMPLEX_H 22025#include <complex.h> 22026#endif 22027#ifdef HAVE_MATH_H 22028#include <math.h> 22029#endif 22030 22031int (*ptr)() = (int (*)())scalbn; 22032 22033int 22034main () 22035{ 22036 return 0; 22037} 22038 22039_ACEOF 22040if ac_fn_c_try_link "$LINENO"; then : 22041 gcc_cv_math_func_scalbn=yes 22042else 22043 gcc_cv_math_func_scalbn=no 22044fi 22045rm -f core conftest.err conftest.$ac_objext \ 22046 conftest$ac_exeext conftest.$ac_ext 22047fi 22048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5 22049$as_echo "$gcc_cv_math_func_scalbn" >&6; } 22050 if test $gcc_cv_math_func_scalbn = yes; then 22051 22052cat >>confdefs.h <<_ACEOF 22053#define HAVE_SCALBN 1 22054_ACEOF 22055 22056 fi 22057 22058 22059 22060 22061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5 22062$as_echo_n "checking for scalbnl... " >&6; } 22063if ${gcc_cv_math_func_scalbnl+:} false; then : 22064 $as_echo_n "(cached) " >&6 22065else 22066 if test x$gcc_no_link = xyes; then 22067 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22068fi 22069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22070/* end confdefs.h. */ 22071 22072#ifdef HAVE_COMPLEX_H 22073#include <complex.h> 22074#endif 22075#ifdef HAVE_MATH_H 22076#include <math.h> 22077#endif 22078 22079int (*ptr)() = (int (*)())scalbnl; 22080 22081int 22082main () 22083{ 22084 return 0; 22085} 22086 22087_ACEOF 22088if ac_fn_c_try_link "$LINENO"; then : 22089 gcc_cv_math_func_scalbnl=yes 22090else 22091 gcc_cv_math_func_scalbnl=no 22092fi 22093rm -f core conftest.err conftest.$ac_objext \ 22094 conftest$ac_exeext conftest.$ac_ext 22095fi 22096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5 22097$as_echo "$gcc_cv_math_func_scalbnl" >&6; } 22098 if test $gcc_cv_math_func_scalbnl = yes; then 22099 22100cat >>confdefs.h <<_ACEOF 22101#define HAVE_SCALBNL 1 22102_ACEOF 22103 22104 fi 22105 22106 22107 22108 22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5 22110$as_echo_n "checking for sinf... " >&6; } 22111if ${gcc_cv_math_func_sinf+:} false; then : 22112 $as_echo_n "(cached) " >&6 22113else 22114 if test x$gcc_no_link = xyes; then 22115 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22116fi 22117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22118/* end confdefs.h. */ 22119 22120#ifdef HAVE_COMPLEX_H 22121#include <complex.h> 22122#endif 22123#ifdef HAVE_MATH_H 22124#include <math.h> 22125#endif 22126 22127int (*ptr)() = (int (*)())sinf; 22128 22129int 22130main () 22131{ 22132 return 0; 22133} 22134 22135_ACEOF 22136if ac_fn_c_try_link "$LINENO"; then : 22137 gcc_cv_math_func_sinf=yes 22138else 22139 gcc_cv_math_func_sinf=no 22140fi 22141rm -f core conftest.err conftest.$ac_objext \ 22142 conftest$ac_exeext conftest.$ac_ext 22143fi 22144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5 22145$as_echo "$gcc_cv_math_func_sinf" >&6; } 22146 if test $gcc_cv_math_func_sinf = yes; then 22147 22148cat >>confdefs.h <<_ACEOF 22149#define HAVE_SINF 1 22150_ACEOF 22151 22152 fi 22153 22154 22155 22156 22157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5 22158$as_echo_n "checking for sin... " >&6; } 22159if ${gcc_cv_math_func_sin+:} false; then : 22160 $as_echo_n "(cached) " >&6 22161else 22162 if test x$gcc_no_link = xyes; then 22163 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22164fi 22165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22166/* end confdefs.h. */ 22167 22168#ifdef HAVE_COMPLEX_H 22169#include <complex.h> 22170#endif 22171#ifdef HAVE_MATH_H 22172#include <math.h> 22173#endif 22174 22175int (*ptr)() = (int (*)())sin; 22176 22177int 22178main () 22179{ 22180 return 0; 22181} 22182 22183_ACEOF 22184if ac_fn_c_try_link "$LINENO"; then : 22185 gcc_cv_math_func_sin=yes 22186else 22187 gcc_cv_math_func_sin=no 22188fi 22189rm -f core conftest.err conftest.$ac_objext \ 22190 conftest$ac_exeext conftest.$ac_ext 22191fi 22192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5 22193$as_echo "$gcc_cv_math_func_sin" >&6; } 22194 if test $gcc_cv_math_func_sin = yes; then 22195 22196cat >>confdefs.h <<_ACEOF 22197#define HAVE_SIN 1 22198_ACEOF 22199 22200 fi 22201 22202 22203 22204 22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5 22206$as_echo_n "checking for sinl... " >&6; } 22207if ${gcc_cv_math_func_sinl+:} false; then : 22208 $as_echo_n "(cached) " >&6 22209else 22210 if test x$gcc_no_link = xyes; then 22211 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22212fi 22213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22214/* end confdefs.h. */ 22215 22216#ifdef HAVE_COMPLEX_H 22217#include <complex.h> 22218#endif 22219#ifdef HAVE_MATH_H 22220#include <math.h> 22221#endif 22222 22223int (*ptr)() = (int (*)())sinl; 22224 22225int 22226main () 22227{ 22228 return 0; 22229} 22230 22231_ACEOF 22232if ac_fn_c_try_link "$LINENO"; then : 22233 gcc_cv_math_func_sinl=yes 22234else 22235 gcc_cv_math_func_sinl=no 22236fi 22237rm -f core conftest.err conftest.$ac_objext \ 22238 conftest$ac_exeext conftest.$ac_ext 22239fi 22240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5 22241$as_echo "$gcc_cv_math_func_sinl" >&6; } 22242 if test $gcc_cv_math_func_sinl = yes; then 22243 22244cat >>confdefs.h <<_ACEOF 22245#define HAVE_SINL 1 22246_ACEOF 22247 22248 fi 22249 22250 22251 22252 22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5 22254$as_echo_n "checking for csinf... " >&6; } 22255if ${gcc_cv_math_func_csinf+:} false; then : 22256 $as_echo_n "(cached) " >&6 22257else 22258 if test x$gcc_no_link = xyes; then 22259 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22260fi 22261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22262/* end confdefs.h. */ 22263 22264#ifdef HAVE_COMPLEX_H 22265#include <complex.h> 22266#endif 22267#ifdef HAVE_MATH_H 22268#include <math.h> 22269#endif 22270 22271int (*ptr)() = (int (*)())csinf; 22272 22273int 22274main () 22275{ 22276 return 0; 22277} 22278 22279_ACEOF 22280if ac_fn_c_try_link "$LINENO"; then : 22281 gcc_cv_math_func_csinf=yes 22282else 22283 gcc_cv_math_func_csinf=no 22284fi 22285rm -f core conftest.err conftest.$ac_objext \ 22286 conftest$ac_exeext conftest.$ac_ext 22287fi 22288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5 22289$as_echo "$gcc_cv_math_func_csinf" >&6; } 22290 if test $gcc_cv_math_func_csinf = yes; then 22291 22292cat >>confdefs.h <<_ACEOF 22293#define HAVE_CSINF 1 22294_ACEOF 22295 22296 fi 22297 22298 22299 22300 22301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5 22302$as_echo_n "checking for csin... " >&6; } 22303if ${gcc_cv_math_func_csin+:} false; then : 22304 $as_echo_n "(cached) " >&6 22305else 22306 if test x$gcc_no_link = xyes; then 22307 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22308fi 22309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22310/* end confdefs.h. */ 22311 22312#ifdef HAVE_COMPLEX_H 22313#include <complex.h> 22314#endif 22315#ifdef HAVE_MATH_H 22316#include <math.h> 22317#endif 22318 22319int (*ptr)() = (int (*)())csin; 22320 22321int 22322main () 22323{ 22324 return 0; 22325} 22326 22327_ACEOF 22328if ac_fn_c_try_link "$LINENO"; then : 22329 gcc_cv_math_func_csin=yes 22330else 22331 gcc_cv_math_func_csin=no 22332fi 22333rm -f core conftest.err conftest.$ac_objext \ 22334 conftest$ac_exeext conftest.$ac_ext 22335fi 22336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5 22337$as_echo "$gcc_cv_math_func_csin" >&6; } 22338 if test $gcc_cv_math_func_csin = yes; then 22339 22340cat >>confdefs.h <<_ACEOF 22341#define HAVE_CSIN 1 22342_ACEOF 22343 22344 fi 22345 22346 22347 22348 22349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5 22350$as_echo_n "checking for csinl... " >&6; } 22351if ${gcc_cv_math_func_csinl+:} false; then : 22352 $as_echo_n "(cached) " >&6 22353else 22354 if test x$gcc_no_link = xyes; then 22355 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22356fi 22357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22358/* end confdefs.h. */ 22359 22360#ifdef HAVE_COMPLEX_H 22361#include <complex.h> 22362#endif 22363#ifdef HAVE_MATH_H 22364#include <math.h> 22365#endif 22366 22367int (*ptr)() = (int (*)())csinl; 22368 22369int 22370main () 22371{ 22372 return 0; 22373} 22374 22375_ACEOF 22376if ac_fn_c_try_link "$LINENO"; then : 22377 gcc_cv_math_func_csinl=yes 22378else 22379 gcc_cv_math_func_csinl=no 22380fi 22381rm -f core conftest.err conftest.$ac_objext \ 22382 conftest$ac_exeext conftest.$ac_ext 22383fi 22384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5 22385$as_echo "$gcc_cv_math_func_csinl" >&6; } 22386 if test $gcc_cv_math_func_csinl = yes; then 22387 22388cat >>confdefs.h <<_ACEOF 22389#define HAVE_CSINL 1 22390_ACEOF 22391 22392 fi 22393 22394 22395 22396 22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5 22398$as_echo_n "checking for sinhf... " >&6; } 22399if ${gcc_cv_math_func_sinhf+:} false; then : 22400 $as_echo_n "(cached) " >&6 22401else 22402 if test x$gcc_no_link = xyes; then 22403 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22404fi 22405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22406/* end confdefs.h. */ 22407 22408#ifdef HAVE_COMPLEX_H 22409#include <complex.h> 22410#endif 22411#ifdef HAVE_MATH_H 22412#include <math.h> 22413#endif 22414 22415int (*ptr)() = (int (*)())sinhf; 22416 22417int 22418main () 22419{ 22420 return 0; 22421} 22422 22423_ACEOF 22424if ac_fn_c_try_link "$LINENO"; then : 22425 gcc_cv_math_func_sinhf=yes 22426else 22427 gcc_cv_math_func_sinhf=no 22428fi 22429rm -f core conftest.err conftest.$ac_objext \ 22430 conftest$ac_exeext conftest.$ac_ext 22431fi 22432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5 22433$as_echo "$gcc_cv_math_func_sinhf" >&6; } 22434 if test $gcc_cv_math_func_sinhf = yes; then 22435 22436cat >>confdefs.h <<_ACEOF 22437#define HAVE_SINHF 1 22438_ACEOF 22439 22440 fi 22441 22442 22443 22444 22445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5 22446$as_echo_n "checking for sinh... " >&6; } 22447if ${gcc_cv_math_func_sinh+:} false; then : 22448 $as_echo_n "(cached) " >&6 22449else 22450 if test x$gcc_no_link = xyes; then 22451 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22452fi 22453cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22454/* end confdefs.h. */ 22455 22456#ifdef HAVE_COMPLEX_H 22457#include <complex.h> 22458#endif 22459#ifdef HAVE_MATH_H 22460#include <math.h> 22461#endif 22462 22463int (*ptr)() = (int (*)())sinh; 22464 22465int 22466main () 22467{ 22468 return 0; 22469} 22470 22471_ACEOF 22472if ac_fn_c_try_link "$LINENO"; then : 22473 gcc_cv_math_func_sinh=yes 22474else 22475 gcc_cv_math_func_sinh=no 22476fi 22477rm -f core conftest.err conftest.$ac_objext \ 22478 conftest$ac_exeext conftest.$ac_ext 22479fi 22480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5 22481$as_echo "$gcc_cv_math_func_sinh" >&6; } 22482 if test $gcc_cv_math_func_sinh = yes; then 22483 22484cat >>confdefs.h <<_ACEOF 22485#define HAVE_SINH 1 22486_ACEOF 22487 22488 fi 22489 22490 22491 22492 22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5 22494$as_echo_n "checking for sinhl... " >&6; } 22495if ${gcc_cv_math_func_sinhl+:} false; then : 22496 $as_echo_n "(cached) " >&6 22497else 22498 if test x$gcc_no_link = xyes; then 22499 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22500fi 22501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22502/* end confdefs.h. */ 22503 22504#ifdef HAVE_COMPLEX_H 22505#include <complex.h> 22506#endif 22507#ifdef HAVE_MATH_H 22508#include <math.h> 22509#endif 22510 22511int (*ptr)() = (int (*)())sinhl; 22512 22513int 22514main () 22515{ 22516 return 0; 22517} 22518 22519_ACEOF 22520if ac_fn_c_try_link "$LINENO"; then : 22521 gcc_cv_math_func_sinhl=yes 22522else 22523 gcc_cv_math_func_sinhl=no 22524fi 22525rm -f core conftest.err conftest.$ac_objext \ 22526 conftest$ac_exeext conftest.$ac_ext 22527fi 22528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5 22529$as_echo "$gcc_cv_math_func_sinhl" >&6; } 22530 if test $gcc_cv_math_func_sinhl = yes; then 22531 22532cat >>confdefs.h <<_ACEOF 22533#define HAVE_SINHL 1 22534_ACEOF 22535 22536 fi 22537 22538 22539 22540 22541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5 22542$as_echo_n "checking for csinhf... " >&6; } 22543if ${gcc_cv_math_func_csinhf+:} false; then : 22544 $as_echo_n "(cached) " >&6 22545else 22546 if test x$gcc_no_link = xyes; then 22547 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22548fi 22549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22550/* end confdefs.h. */ 22551 22552#ifdef HAVE_COMPLEX_H 22553#include <complex.h> 22554#endif 22555#ifdef HAVE_MATH_H 22556#include <math.h> 22557#endif 22558 22559int (*ptr)() = (int (*)())csinhf; 22560 22561int 22562main () 22563{ 22564 return 0; 22565} 22566 22567_ACEOF 22568if ac_fn_c_try_link "$LINENO"; then : 22569 gcc_cv_math_func_csinhf=yes 22570else 22571 gcc_cv_math_func_csinhf=no 22572fi 22573rm -f core conftest.err conftest.$ac_objext \ 22574 conftest$ac_exeext conftest.$ac_ext 22575fi 22576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5 22577$as_echo "$gcc_cv_math_func_csinhf" >&6; } 22578 if test $gcc_cv_math_func_csinhf = yes; then 22579 22580cat >>confdefs.h <<_ACEOF 22581#define HAVE_CSINHF 1 22582_ACEOF 22583 22584 fi 22585 22586 22587 22588 22589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5 22590$as_echo_n "checking for csinh... " >&6; } 22591if ${gcc_cv_math_func_csinh+:} false; then : 22592 $as_echo_n "(cached) " >&6 22593else 22594 if test x$gcc_no_link = xyes; then 22595 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22596fi 22597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22598/* end confdefs.h. */ 22599 22600#ifdef HAVE_COMPLEX_H 22601#include <complex.h> 22602#endif 22603#ifdef HAVE_MATH_H 22604#include <math.h> 22605#endif 22606 22607int (*ptr)() = (int (*)())csinh; 22608 22609int 22610main () 22611{ 22612 return 0; 22613} 22614 22615_ACEOF 22616if ac_fn_c_try_link "$LINENO"; then : 22617 gcc_cv_math_func_csinh=yes 22618else 22619 gcc_cv_math_func_csinh=no 22620fi 22621rm -f core conftest.err conftest.$ac_objext \ 22622 conftest$ac_exeext conftest.$ac_ext 22623fi 22624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5 22625$as_echo "$gcc_cv_math_func_csinh" >&6; } 22626 if test $gcc_cv_math_func_csinh = yes; then 22627 22628cat >>confdefs.h <<_ACEOF 22629#define HAVE_CSINH 1 22630_ACEOF 22631 22632 fi 22633 22634 22635 22636 22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5 22638$as_echo_n "checking for csinhl... " >&6; } 22639if ${gcc_cv_math_func_csinhl+:} false; then : 22640 $as_echo_n "(cached) " >&6 22641else 22642 if test x$gcc_no_link = xyes; then 22643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22644fi 22645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22646/* end confdefs.h. */ 22647 22648#ifdef HAVE_COMPLEX_H 22649#include <complex.h> 22650#endif 22651#ifdef HAVE_MATH_H 22652#include <math.h> 22653#endif 22654 22655int (*ptr)() = (int (*)())csinhl; 22656 22657int 22658main () 22659{ 22660 return 0; 22661} 22662 22663_ACEOF 22664if ac_fn_c_try_link "$LINENO"; then : 22665 gcc_cv_math_func_csinhl=yes 22666else 22667 gcc_cv_math_func_csinhl=no 22668fi 22669rm -f core conftest.err conftest.$ac_objext \ 22670 conftest$ac_exeext conftest.$ac_ext 22671fi 22672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5 22673$as_echo "$gcc_cv_math_func_csinhl" >&6; } 22674 if test $gcc_cv_math_func_csinhl = yes; then 22675 22676cat >>confdefs.h <<_ACEOF 22677#define HAVE_CSINHL 1 22678_ACEOF 22679 22680 fi 22681 22682 22683 22684 22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5 22686$as_echo_n "checking for sqrtf... " >&6; } 22687if ${gcc_cv_math_func_sqrtf+:} false; then : 22688 $as_echo_n "(cached) " >&6 22689else 22690 if test x$gcc_no_link = xyes; then 22691 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22692fi 22693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22694/* end confdefs.h. */ 22695 22696#ifdef HAVE_COMPLEX_H 22697#include <complex.h> 22698#endif 22699#ifdef HAVE_MATH_H 22700#include <math.h> 22701#endif 22702 22703int (*ptr)() = (int (*)())sqrtf; 22704 22705int 22706main () 22707{ 22708 return 0; 22709} 22710 22711_ACEOF 22712if ac_fn_c_try_link "$LINENO"; then : 22713 gcc_cv_math_func_sqrtf=yes 22714else 22715 gcc_cv_math_func_sqrtf=no 22716fi 22717rm -f core conftest.err conftest.$ac_objext \ 22718 conftest$ac_exeext conftest.$ac_ext 22719fi 22720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5 22721$as_echo "$gcc_cv_math_func_sqrtf" >&6; } 22722 if test $gcc_cv_math_func_sqrtf = yes; then 22723 22724cat >>confdefs.h <<_ACEOF 22725#define HAVE_SQRTF 1 22726_ACEOF 22727 22728 fi 22729 22730 22731 22732 22733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5 22734$as_echo_n "checking for sqrt... " >&6; } 22735if ${gcc_cv_math_func_sqrt+:} false; then : 22736 $as_echo_n "(cached) " >&6 22737else 22738 if test x$gcc_no_link = xyes; then 22739 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22740fi 22741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22742/* end confdefs.h. */ 22743 22744#ifdef HAVE_COMPLEX_H 22745#include <complex.h> 22746#endif 22747#ifdef HAVE_MATH_H 22748#include <math.h> 22749#endif 22750 22751int (*ptr)() = (int (*)())sqrt; 22752 22753int 22754main () 22755{ 22756 return 0; 22757} 22758 22759_ACEOF 22760if ac_fn_c_try_link "$LINENO"; then : 22761 gcc_cv_math_func_sqrt=yes 22762else 22763 gcc_cv_math_func_sqrt=no 22764fi 22765rm -f core conftest.err conftest.$ac_objext \ 22766 conftest$ac_exeext conftest.$ac_ext 22767fi 22768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5 22769$as_echo "$gcc_cv_math_func_sqrt" >&6; } 22770 if test $gcc_cv_math_func_sqrt = yes; then 22771 22772cat >>confdefs.h <<_ACEOF 22773#define HAVE_SQRT 1 22774_ACEOF 22775 22776 fi 22777 22778 22779 22780 22781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5 22782$as_echo_n "checking for sqrtl... " >&6; } 22783if ${gcc_cv_math_func_sqrtl+:} false; then : 22784 $as_echo_n "(cached) " >&6 22785else 22786 if test x$gcc_no_link = xyes; then 22787 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22788fi 22789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22790/* end confdefs.h. */ 22791 22792#ifdef HAVE_COMPLEX_H 22793#include <complex.h> 22794#endif 22795#ifdef HAVE_MATH_H 22796#include <math.h> 22797#endif 22798 22799int (*ptr)() = (int (*)())sqrtl; 22800 22801int 22802main () 22803{ 22804 return 0; 22805} 22806 22807_ACEOF 22808if ac_fn_c_try_link "$LINENO"; then : 22809 gcc_cv_math_func_sqrtl=yes 22810else 22811 gcc_cv_math_func_sqrtl=no 22812fi 22813rm -f core conftest.err conftest.$ac_objext \ 22814 conftest$ac_exeext conftest.$ac_ext 22815fi 22816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5 22817$as_echo "$gcc_cv_math_func_sqrtl" >&6; } 22818 if test $gcc_cv_math_func_sqrtl = yes; then 22819 22820cat >>confdefs.h <<_ACEOF 22821#define HAVE_SQRTL 1 22822_ACEOF 22823 22824 fi 22825 22826 22827 22828 22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5 22830$as_echo_n "checking for csqrtf... " >&6; } 22831if ${gcc_cv_math_func_csqrtf+:} false; then : 22832 $as_echo_n "(cached) " >&6 22833else 22834 if test x$gcc_no_link = xyes; then 22835 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22836fi 22837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22838/* end confdefs.h. */ 22839 22840#ifdef HAVE_COMPLEX_H 22841#include <complex.h> 22842#endif 22843#ifdef HAVE_MATH_H 22844#include <math.h> 22845#endif 22846 22847int (*ptr)() = (int (*)())csqrtf; 22848 22849int 22850main () 22851{ 22852 return 0; 22853} 22854 22855_ACEOF 22856if ac_fn_c_try_link "$LINENO"; then : 22857 gcc_cv_math_func_csqrtf=yes 22858else 22859 gcc_cv_math_func_csqrtf=no 22860fi 22861rm -f core conftest.err conftest.$ac_objext \ 22862 conftest$ac_exeext conftest.$ac_ext 22863fi 22864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5 22865$as_echo "$gcc_cv_math_func_csqrtf" >&6; } 22866 if test $gcc_cv_math_func_csqrtf = yes; then 22867 22868cat >>confdefs.h <<_ACEOF 22869#define HAVE_CSQRTF 1 22870_ACEOF 22871 22872 fi 22873 22874 22875 22876 22877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5 22878$as_echo_n "checking for csqrt... " >&6; } 22879if ${gcc_cv_math_func_csqrt+:} false; then : 22880 $as_echo_n "(cached) " >&6 22881else 22882 if test x$gcc_no_link = xyes; then 22883 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22884fi 22885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22886/* end confdefs.h. */ 22887 22888#ifdef HAVE_COMPLEX_H 22889#include <complex.h> 22890#endif 22891#ifdef HAVE_MATH_H 22892#include <math.h> 22893#endif 22894 22895int (*ptr)() = (int (*)())csqrt; 22896 22897int 22898main () 22899{ 22900 return 0; 22901} 22902 22903_ACEOF 22904if ac_fn_c_try_link "$LINENO"; then : 22905 gcc_cv_math_func_csqrt=yes 22906else 22907 gcc_cv_math_func_csqrt=no 22908fi 22909rm -f core conftest.err conftest.$ac_objext \ 22910 conftest$ac_exeext conftest.$ac_ext 22911fi 22912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5 22913$as_echo "$gcc_cv_math_func_csqrt" >&6; } 22914 if test $gcc_cv_math_func_csqrt = yes; then 22915 22916cat >>confdefs.h <<_ACEOF 22917#define HAVE_CSQRT 1 22918_ACEOF 22919 22920 fi 22921 22922 22923 22924 22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5 22926$as_echo_n "checking for csqrtl... " >&6; } 22927if ${gcc_cv_math_func_csqrtl+:} false; then : 22928 $as_echo_n "(cached) " >&6 22929else 22930 if test x$gcc_no_link = xyes; then 22931 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22932fi 22933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22934/* end confdefs.h. */ 22935 22936#ifdef HAVE_COMPLEX_H 22937#include <complex.h> 22938#endif 22939#ifdef HAVE_MATH_H 22940#include <math.h> 22941#endif 22942 22943int (*ptr)() = (int (*)())csqrtl; 22944 22945int 22946main () 22947{ 22948 return 0; 22949} 22950 22951_ACEOF 22952if ac_fn_c_try_link "$LINENO"; then : 22953 gcc_cv_math_func_csqrtl=yes 22954else 22955 gcc_cv_math_func_csqrtl=no 22956fi 22957rm -f core conftest.err conftest.$ac_objext \ 22958 conftest$ac_exeext conftest.$ac_ext 22959fi 22960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5 22961$as_echo "$gcc_cv_math_func_csqrtl" >&6; } 22962 if test $gcc_cv_math_func_csqrtl = yes; then 22963 22964cat >>confdefs.h <<_ACEOF 22965#define HAVE_CSQRTL 1 22966_ACEOF 22967 22968 fi 22969 22970 22971 22972 22973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5 22974$as_echo_n "checking for tanf... " >&6; } 22975if ${gcc_cv_math_func_tanf+:} false; then : 22976 $as_echo_n "(cached) " >&6 22977else 22978 if test x$gcc_no_link = xyes; then 22979 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 22980fi 22981cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22982/* end confdefs.h. */ 22983 22984#ifdef HAVE_COMPLEX_H 22985#include <complex.h> 22986#endif 22987#ifdef HAVE_MATH_H 22988#include <math.h> 22989#endif 22990 22991int (*ptr)() = (int (*)())tanf; 22992 22993int 22994main () 22995{ 22996 return 0; 22997} 22998 22999_ACEOF 23000if ac_fn_c_try_link "$LINENO"; then : 23001 gcc_cv_math_func_tanf=yes 23002else 23003 gcc_cv_math_func_tanf=no 23004fi 23005rm -f core conftest.err conftest.$ac_objext \ 23006 conftest$ac_exeext conftest.$ac_ext 23007fi 23008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5 23009$as_echo "$gcc_cv_math_func_tanf" >&6; } 23010 if test $gcc_cv_math_func_tanf = yes; then 23011 23012cat >>confdefs.h <<_ACEOF 23013#define HAVE_TANF 1 23014_ACEOF 23015 23016 fi 23017 23018 23019 23020 23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5 23022$as_echo_n "checking for tan... " >&6; } 23023if ${gcc_cv_math_func_tan+:} false; then : 23024 $as_echo_n "(cached) " >&6 23025else 23026 if test x$gcc_no_link = xyes; then 23027 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23028fi 23029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23030/* end confdefs.h. */ 23031 23032#ifdef HAVE_COMPLEX_H 23033#include <complex.h> 23034#endif 23035#ifdef HAVE_MATH_H 23036#include <math.h> 23037#endif 23038 23039int (*ptr)() = (int (*)())tan; 23040 23041int 23042main () 23043{ 23044 return 0; 23045} 23046 23047_ACEOF 23048if ac_fn_c_try_link "$LINENO"; then : 23049 gcc_cv_math_func_tan=yes 23050else 23051 gcc_cv_math_func_tan=no 23052fi 23053rm -f core conftest.err conftest.$ac_objext \ 23054 conftest$ac_exeext conftest.$ac_ext 23055fi 23056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5 23057$as_echo "$gcc_cv_math_func_tan" >&6; } 23058 if test $gcc_cv_math_func_tan = yes; then 23059 23060cat >>confdefs.h <<_ACEOF 23061#define HAVE_TAN 1 23062_ACEOF 23063 23064 fi 23065 23066 23067 23068 23069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5 23070$as_echo_n "checking for tanl... " >&6; } 23071if ${gcc_cv_math_func_tanl+:} false; then : 23072 $as_echo_n "(cached) " >&6 23073else 23074 if test x$gcc_no_link = xyes; then 23075 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23076fi 23077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23078/* end confdefs.h. */ 23079 23080#ifdef HAVE_COMPLEX_H 23081#include <complex.h> 23082#endif 23083#ifdef HAVE_MATH_H 23084#include <math.h> 23085#endif 23086 23087int (*ptr)() = (int (*)())tanl; 23088 23089int 23090main () 23091{ 23092 return 0; 23093} 23094 23095_ACEOF 23096if ac_fn_c_try_link "$LINENO"; then : 23097 gcc_cv_math_func_tanl=yes 23098else 23099 gcc_cv_math_func_tanl=no 23100fi 23101rm -f core conftest.err conftest.$ac_objext \ 23102 conftest$ac_exeext conftest.$ac_ext 23103fi 23104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5 23105$as_echo "$gcc_cv_math_func_tanl" >&6; } 23106 if test $gcc_cv_math_func_tanl = yes; then 23107 23108cat >>confdefs.h <<_ACEOF 23109#define HAVE_TANL 1 23110_ACEOF 23111 23112 fi 23113 23114 23115 23116 23117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5 23118$as_echo_n "checking for ctanf... " >&6; } 23119if ${gcc_cv_math_func_ctanf+:} false; then : 23120 $as_echo_n "(cached) " >&6 23121else 23122 if test x$gcc_no_link = xyes; then 23123 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23124fi 23125cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23126/* end confdefs.h. */ 23127 23128#ifdef HAVE_COMPLEX_H 23129#include <complex.h> 23130#endif 23131#ifdef HAVE_MATH_H 23132#include <math.h> 23133#endif 23134 23135int (*ptr)() = (int (*)())ctanf; 23136 23137int 23138main () 23139{ 23140 return 0; 23141} 23142 23143_ACEOF 23144if ac_fn_c_try_link "$LINENO"; then : 23145 gcc_cv_math_func_ctanf=yes 23146else 23147 gcc_cv_math_func_ctanf=no 23148fi 23149rm -f core conftest.err conftest.$ac_objext \ 23150 conftest$ac_exeext conftest.$ac_ext 23151fi 23152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5 23153$as_echo "$gcc_cv_math_func_ctanf" >&6; } 23154 if test $gcc_cv_math_func_ctanf = yes; then 23155 23156cat >>confdefs.h <<_ACEOF 23157#define HAVE_CTANF 1 23158_ACEOF 23159 23160 fi 23161 23162 23163 23164 23165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5 23166$as_echo_n "checking for ctan... " >&6; } 23167if ${gcc_cv_math_func_ctan+:} false; then : 23168 $as_echo_n "(cached) " >&6 23169else 23170 if test x$gcc_no_link = xyes; then 23171 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23172fi 23173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23174/* end confdefs.h. */ 23175 23176#ifdef HAVE_COMPLEX_H 23177#include <complex.h> 23178#endif 23179#ifdef HAVE_MATH_H 23180#include <math.h> 23181#endif 23182 23183int (*ptr)() = (int (*)())ctan; 23184 23185int 23186main () 23187{ 23188 return 0; 23189} 23190 23191_ACEOF 23192if ac_fn_c_try_link "$LINENO"; then : 23193 gcc_cv_math_func_ctan=yes 23194else 23195 gcc_cv_math_func_ctan=no 23196fi 23197rm -f core conftest.err conftest.$ac_objext \ 23198 conftest$ac_exeext conftest.$ac_ext 23199fi 23200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5 23201$as_echo "$gcc_cv_math_func_ctan" >&6; } 23202 if test $gcc_cv_math_func_ctan = yes; then 23203 23204cat >>confdefs.h <<_ACEOF 23205#define HAVE_CTAN 1 23206_ACEOF 23207 23208 fi 23209 23210 23211 23212 23213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5 23214$as_echo_n "checking for ctanl... " >&6; } 23215if ${gcc_cv_math_func_ctanl+:} false; then : 23216 $as_echo_n "(cached) " >&6 23217else 23218 if test x$gcc_no_link = xyes; then 23219 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23220fi 23221cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23222/* end confdefs.h. */ 23223 23224#ifdef HAVE_COMPLEX_H 23225#include <complex.h> 23226#endif 23227#ifdef HAVE_MATH_H 23228#include <math.h> 23229#endif 23230 23231int (*ptr)() = (int (*)())ctanl; 23232 23233int 23234main () 23235{ 23236 return 0; 23237} 23238 23239_ACEOF 23240if ac_fn_c_try_link "$LINENO"; then : 23241 gcc_cv_math_func_ctanl=yes 23242else 23243 gcc_cv_math_func_ctanl=no 23244fi 23245rm -f core conftest.err conftest.$ac_objext \ 23246 conftest$ac_exeext conftest.$ac_ext 23247fi 23248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5 23249$as_echo "$gcc_cv_math_func_ctanl" >&6; } 23250 if test $gcc_cv_math_func_ctanl = yes; then 23251 23252cat >>confdefs.h <<_ACEOF 23253#define HAVE_CTANL 1 23254_ACEOF 23255 23256 fi 23257 23258 23259 23260 23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5 23262$as_echo_n "checking for tanhf... " >&6; } 23263if ${gcc_cv_math_func_tanhf+:} false; then : 23264 $as_echo_n "(cached) " >&6 23265else 23266 if test x$gcc_no_link = xyes; then 23267 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23268fi 23269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23270/* end confdefs.h. */ 23271 23272#ifdef HAVE_COMPLEX_H 23273#include <complex.h> 23274#endif 23275#ifdef HAVE_MATH_H 23276#include <math.h> 23277#endif 23278 23279int (*ptr)() = (int (*)())tanhf; 23280 23281int 23282main () 23283{ 23284 return 0; 23285} 23286 23287_ACEOF 23288if ac_fn_c_try_link "$LINENO"; then : 23289 gcc_cv_math_func_tanhf=yes 23290else 23291 gcc_cv_math_func_tanhf=no 23292fi 23293rm -f core conftest.err conftest.$ac_objext \ 23294 conftest$ac_exeext conftest.$ac_ext 23295fi 23296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5 23297$as_echo "$gcc_cv_math_func_tanhf" >&6; } 23298 if test $gcc_cv_math_func_tanhf = yes; then 23299 23300cat >>confdefs.h <<_ACEOF 23301#define HAVE_TANHF 1 23302_ACEOF 23303 23304 fi 23305 23306 23307 23308 23309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5 23310$as_echo_n "checking for tanh... " >&6; } 23311if ${gcc_cv_math_func_tanh+:} false; then : 23312 $as_echo_n "(cached) " >&6 23313else 23314 if test x$gcc_no_link = xyes; then 23315 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23316fi 23317cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23318/* end confdefs.h. */ 23319 23320#ifdef HAVE_COMPLEX_H 23321#include <complex.h> 23322#endif 23323#ifdef HAVE_MATH_H 23324#include <math.h> 23325#endif 23326 23327int (*ptr)() = (int (*)())tanh; 23328 23329int 23330main () 23331{ 23332 return 0; 23333} 23334 23335_ACEOF 23336if ac_fn_c_try_link "$LINENO"; then : 23337 gcc_cv_math_func_tanh=yes 23338else 23339 gcc_cv_math_func_tanh=no 23340fi 23341rm -f core conftest.err conftest.$ac_objext \ 23342 conftest$ac_exeext conftest.$ac_ext 23343fi 23344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5 23345$as_echo "$gcc_cv_math_func_tanh" >&6; } 23346 if test $gcc_cv_math_func_tanh = yes; then 23347 23348cat >>confdefs.h <<_ACEOF 23349#define HAVE_TANH 1 23350_ACEOF 23351 23352 fi 23353 23354 23355 23356 23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5 23358$as_echo_n "checking for tanhl... " >&6; } 23359if ${gcc_cv_math_func_tanhl+:} false; then : 23360 $as_echo_n "(cached) " >&6 23361else 23362 if test x$gcc_no_link = xyes; then 23363 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23364fi 23365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23366/* end confdefs.h. */ 23367 23368#ifdef HAVE_COMPLEX_H 23369#include <complex.h> 23370#endif 23371#ifdef HAVE_MATH_H 23372#include <math.h> 23373#endif 23374 23375int (*ptr)() = (int (*)())tanhl; 23376 23377int 23378main () 23379{ 23380 return 0; 23381} 23382 23383_ACEOF 23384if ac_fn_c_try_link "$LINENO"; then : 23385 gcc_cv_math_func_tanhl=yes 23386else 23387 gcc_cv_math_func_tanhl=no 23388fi 23389rm -f core conftest.err conftest.$ac_objext \ 23390 conftest$ac_exeext conftest.$ac_ext 23391fi 23392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5 23393$as_echo "$gcc_cv_math_func_tanhl" >&6; } 23394 if test $gcc_cv_math_func_tanhl = yes; then 23395 23396cat >>confdefs.h <<_ACEOF 23397#define HAVE_TANHL 1 23398_ACEOF 23399 23400 fi 23401 23402 23403 23404 23405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5 23406$as_echo_n "checking for ctanhf... " >&6; } 23407if ${gcc_cv_math_func_ctanhf+:} false; then : 23408 $as_echo_n "(cached) " >&6 23409else 23410 if test x$gcc_no_link = xyes; then 23411 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23412fi 23413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23414/* end confdefs.h. */ 23415 23416#ifdef HAVE_COMPLEX_H 23417#include <complex.h> 23418#endif 23419#ifdef HAVE_MATH_H 23420#include <math.h> 23421#endif 23422 23423int (*ptr)() = (int (*)())ctanhf; 23424 23425int 23426main () 23427{ 23428 return 0; 23429} 23430 23431_ACEOF 23432if ac_fn_c_try_link "$LINENO"; then : 23433 gcc_cv_math_func_ctanhf=yes 23434else 23435 gcc_cv_math_func_ctanhf=no 23436fi 23437rm -f core conftest.err conftest.$ac_objext \ 23438 conftest$ac_exeext conftest.$ac_ext 23439fi 23440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5 23441$as_echo "$gcc_cv_math_func_ctanhf" >&6; } 23442 if test $gcc_cv_math_func_ctanhf = yes; then 23443 23444cat >>confdefs.h <<_ACEOF 23445#define HAVE_CTANHF 1 23446_ACEOF 23447 23448 fi 23449 23450 23451 23452 23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5 23454$as_echo_n "checking for ctanh... " >&6; } 23455if ${gcc_cv_math_func_ctanh+:} false; then : 23456 $as_echo_n "(cached) " >&6 23457else 23458 if test x$gcc_no_link = xyes; then 23459 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23460fi 23461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23462/* end confdefs.h. */ 23463 23464#ifdef HAVE_COMPLEX_H 23465#include <complex.h> 23466#endif 23467#ifdef HAVE_MATH_H 23468#include <math.h> 23469#endif 23470 23471int (*ptr)() = (int (*)())ctanh; 23472 23473int 23474main () 23475{ 23476 return 0; 23477} 23478 23479_ACEOF 23480if ac_fn_c_try_link "$LINENO"; then : 23481 gcc_cv_math_func_ctanh=yes 23482else 23483 gcc_cv_math_func_ctanh=no 23484fi 23485rm -f core conftest.err conftest.$ac_objext \ 23486 conftest$ac_exeext conftest.$ac_ext 23487fi 23488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5 23489$as_echo "$gcc_cv_math_func_ctanh" >&6; } 23490 if test $gcc_cv_math_func_ctanh = yes; then 23491 23492cat >>confdefs.h <<_ACEOF 23493#define HAVE_CTANH 1 23494_ACEOF 23495 23496 fi 23497 23498 23499 23500 23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5 23502$as_echo_n "checking for ctanhl... " >&6; } 23503if ${gcc_cv_math_func_ctanhl+:} false; then : 23504 $as_echo_n "(cached) " >&6 23505else 23506 if test x$gcc_no_link = xyes; then 23507 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23508fi 23509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23510/* end confdefs.h. */ 23511 23512#ifdef HAVE_COMPLEX_H 23513#include <complex.h> 23514#endif 23515#ifdef HAVE_MATH_H 23516#include <math.h> 23517#endif 23518 23519int (*ptr)() = (int (*)())ctanhl; 23520 23521int 23522main () 23523{ 23524 return 0; 23525} 23526 23527_ACEOF 23528if ac_fn_c_try_link "$LINENO"; then : 23529 gcc_cv_math_func_ctanhl=yes 23530else 23531 gcc_cv_math_func_ctanhl=no 23532fi 23533rm -f core conftest.err conftest.$ac_objext \ 23534 conftest$ac_exeext conftest.$ac_ext 23535fi 23536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5 23537$as_echo "$gcc_cv_math_func_ctanhl" >&6; } 23538 if test $gcc_cv_math_func_ctanhl = yes; then 23539 23540cat >>confdefs.h <<_ACEOF 23541#define HAVE_CTANHL 1 23542_ACEOF 23543 23544 fi 23545 23546 23547 23548 23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5 23550$as_echo_n "checking for truncf... " >&6; } 23551if ${gcc_cv_math_func_truncf+:} false; then : 23552 $as_echo_n "(cached) " >&6 23553else 23554 if test x$gcc_no_link = xyes; then 23555 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23556fi 23557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23558/* end confdefs.h. */ 23559 23560#ifdef HAVE_COMPLEX_H 23561#include <complex.h> 23562#endif 23563#ifdef HAVE_MATH_H 23564#include <math.h> 23565#endif 23566 23567int (*ptr)() = (int (*)())truncf; 23568 23569int 23570main () 23571{ 23572 return 0; 23573} 23574 23575_ACEOF 23576if ac_fn_c_try_link "$LINENO"; then : 23577 gcc_cv_math_func_truncf=yes 23578else 23579 gcc_cv_math_func_truncf=no 23580fi 23581rm -f core conftest.err conftest.$ac_objext \ 23582 conftest$ac_exeext conftest.$ac_ext 23583fi 23584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5 23585$as_echo "$gcc_cv_math_func_truncf" >&6; } 23586 if test $gcc_cv_math_func_truncf = yes; then 23587 23588cat >>confdefs.h <<_ACEOF 23589#define HAVE_TRUNCF 1 23590_ACEOF 23591 23592 fi 23593 23594 23595 23596 23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5 23598$as_echo_n "checking for trunc... " >&6; } 23599if ${gcc_cv_math_func_trunc+:} false; then : 23600 $as_echo_n "(cached) " >&6 23601else 23602 if test x$gcc_no_link = xyes; then 23603 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23604fi 23605cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23606/* end confdefs.h. */ 23607 23608#ifdef HAVE_COMPLEX_H 23609#include <complex.h> 23610#endif 23611#ifdef HAVE_MATH_H 23612#include <math.h> 23613#endif 23614 23615int (*ptr)() = (int (*)())trunc; 23616 23617int 23618main () 23619{ 23620 return 0; 23621} 23622 23623_ACEOF 23624if ac_fn_c_try_link "$LINENO"; then : 23625 gcc_cv_math_func_trunc=yes 23626else 23627 gcc_cv_math_func_trunc=no 23628fi 23629rm -f core conftest.err conftest.$ac_objext \ 23630 conftest$ac_exeext conftest.$ac_ext 23631fi 23632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5 23633$as_echo "$gcc_cv_math_func_trunc" >&6; } 23634 if test $gcc_cv_math_func_trunc = yes; then 23635 23636cat >>confdefs.h <<_ACEOF 23637#define HAVE_TRUNC 1 23638_ACEOF 23639 23640 fi 23641 23642 23643 23644 23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5 23646$as_echo_n "checking for truncl... " >&6; } 23647if ${gcc_cv_math_func_truncl+:} false; then : 23648 $as_echo_n "(cached) " >&6 23649else 23650 if test x$gcc_no_link = xyes; then 23651 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23652fi 23653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23654/* end confdefs.h. */ 23655 23656#ifdef HAVE_COMPLEX_H 23657#include <complex.h> 23658#endif 23659#ifdef HAVE_MATH_H 23660#include <math.h> 23661#endif 23662 23663int (*ptr)() = (int (*)())truncl; 23664 23665int 23666main () 23667{ 23668 return 0; 23669} 23670 23671_ACEOF 23672if ac_fn_c_try_link "$LINENO"; then : 23673 gcc_cv_math_func_truncl=yes 23674else 23675 gcc_cv_math_func_truncl=no 23676fi 23677rm -f core conftest.err conftest.$ac_objext \ 23678 conftest$ac_exeext conftest.$ac_ext 23679fi 23680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5 23681$as_echo "$gcc_cv_math_func_truncl" >&6; } 23682 if test $gcc_cv_math_func_truncl = yes; then 23683 23684cat >>confdefs.h <<_ACEOF 23685#define HAVE_TRUNCL 1 23686_ACEOF 23687 23688 fi 23689 23690 23691 23692 23693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5 23694$as_echo_n "checking for erff... " >&6; } 23695if ${gcc_cv_math_func_erff+:} false; then : 23696 $as_echo_n "(cached) " >&6 23697else 23698 if test x$gcc_no_link = xyes; then 23699 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23700fi 23701cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23702/* end confdefs.h. */ 23703 23704#ifdef HAVE_COMPLEX_H 23705#include <complex.h> 23706#endif 23707#ifdef HAVE_MATH_H 23708#include <math.h> 23709#endif 23710 23711int (*ptr)() = (int (*)())erff; 23712 23713int 23714main () 23715{ 23716 return 0; 23717} 23718 23719_ACEOF 23720if ac_fn_c_try_link "$LINENO"; then : 23721 gcc_cv_math_func_erff=yes 23722else 23723 gcc_cv_math_func_erff=no 23724fi 23725rm -f core conftest.err conftest.$ac_objext \ 23726 conftest$ac_exeext conftest.$ac_ext 23727fi 23728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5 23729$as_echo "$gcc_cv_math_func_erff" >&6; } 23730 if test $gcc_cv_math_func_erff = yes; then 23731 23732cat >>confdefs.h <<_ACEOF 23733#define HAVE_ERFF 1 23734_ACEOF 23735 23736 fi 23737 23738 23739 23740 23741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5 23742$as_echo_n "checking for erf... " >&6; } 23743if ${gcc_cv_math_func_erf+:} false; then : 23744 $as_echo_n "(cached) " >&6 23745else 23746 if test x$gcc_no_link = xyes; then 23747 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23748fi 23749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23750/* end confdefs.h. */ 23751 23752#ifdef HAVE_COMPLEX_H 23753#include <complex.h> 23754#endif 23755#ifdef HAVE_MATH_H 23756#include <math.h> 23757#endif 23758 23759int (*ptr)() = (int (*)())erf; 23760 23761int 23762main () 23763{ 23764 return 0; 23765} 23766 23767_ACEOF 23768if ac_fn_c_try_link "$LINENO"; then : 23769 gcc_cv_math_func_erf=yes 23770else 23771 gcc_cv_math_func_erf=no 23772fi 23773rm -f core conftest.err conftest.$ac_objext \ 23774 conftest$ac_exeext conftest.$ac_ext 23775fi 23776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5 23777$as_echo "$gcc_cv_math_func_erf" >&6; } 23778 if test $gcc_cv_math_func_erf = yes; then 23779 23780cat >>confdefs.h <<_ACEOF 23781#define HAVE_ERF 1 23782_ACEOF 23783 23784 fi 23785 23786 23787 23788 23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 23790$as_echo_n "checking for erfcf... " >&6; } 23791if ${gcc_cv_math_func_erfcf+:} false; then : 23792 $as_echo_n "(cached) " >&6 23793else 23794 if test x$gcc_no_link = xyes; then 23795 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23796fi 23797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23798/* end confdefs.h. */ 23799 23800#ifdef HAVE_COMPLEX_H 23801#include <complex.h> 23802#endif 23803#ifdef HAVE_MATH_H 23804#include <math.h> 23805#endif 23806 23807int (*ptr)() = (int (*)())erfcf; 23808 23809int 23810main () 23811{ 23812 return 0; 23813} 23814 23815_ACEOF 23816if ac_fn_c_try_link "$LINENO"; then : 23817 gcc_cv_math_func_erfcf=yes 23818else 23819 gcc_cv_math_func_erfcf=no 23820fi 23821rm -f core conftest.err conftest.$ac_objext \ 23822 conftest$ac_exeext conftest.$ac_ext 23823fi 23824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5 23825$as_echo "$gcc_cv_math_func_erfcf" >&6; } 23826 if test $gcc_cv_math_func_erfcf = yes; then 23827 23828cat >>confdefs.h <<_ACEOF 23829#define HAVE_ERFCF 1 23830_ACEOF 23831 23832 fi 23833 23834 23835 23836 23837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5 23838$as_echo_n "checking for erfc... " >&6; } 23839if ${gcc_cv_math_func_erfc+:} false; then : 23840 $as_echo_n "(cached) " >&6 23841else 23842 if test x$gcc_no_link = xyes; then 23843 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23844fi 23845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23846/* end confdefs.h. */ 23847 23848#ifdef HAVE_COMPLEX_H 23849#include <complex.h> 23850#endif 23851#ifdef HAVE_MATH_H 23852#include <math.h> 23853#endif 23854 23855int (*ptr)() = (int (*)())erfc; 23856 23857int 23858main () 23859{ 23860 return 0; 23861} 23862 23863_ACEOF 23864if ac_fn_c_try_link "$LINENO"; then : 23865 gcc_cv_math_func_erfc=yes 23866else 23867 gcc_cv_math_func_erfc=no 23868fi 23869rm -f core conftest.err conftest.$ac_objext \ 23870 conftest$ac_exeext conftest.$ac_ext 23871fi 23872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5 23873$as_echo "$gcc_cv_math_func_erfc" >&6; } 23874 if test $gcc_cv_math_func_erfc = yes; then 23875 23876cat >>confdefs.h <<_ACEOF 23877#define HAVE_ERFC 1 23878_ACEOF 23879 23880 fi 23881 23882 23883 23884 23885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5 23886$as_echo_n "checking for erfcl... " >&6; } 23887if ${gcc_cv_math_func_erfcl+:} false; then : 23888 $as_echo_n "(cached) " >&6 23889else 23890 if test x$gcc_no_link = xyes; then 23891 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23892fi 23893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23894/* end confdefs.h. */ 23895 23896#ifdef HAVE_COMPLEX_H 23897#include <complex.h> 23898#endif 23899#ifdef HAVE_MATH_H 23900#include <math.h> 23901#endif 23902 23903int (*ptr)() = (int (*)())erfcl; 23904 23905int 23906main () 23907{ 23908 return 0; 23909} 23910 23911_ACEOF 23912if ac_fn_c_try_link "$LINENO"; then : 23913 gcc_cv_math_func_erfcl=yes 23914else 23915 gcc_cv_math_func_erfcl=no 23916fi 23917rm -f core conftest.err conftest.$ac_objext \ 23918 conftest$ac_exeext conftest.$ac_ext 23919fi 23920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5 23921$as_echo "$gcc_cv_math_func_erfcl" >&6; } 23922 if test $gcc_cv_math_func_erfcl = yes; then 23923 23924cat >>confdefs.h <<_ACEOF 23925#define HAVE_ERFCL 1 23926_ACEOF 23927 23928 fi 23929 23930 23931 23932 23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5 23934$as_echo_n "checking for j0f... " >&6; } 23935if ${gcc_cv_math_func_j0f+:} false; then : 23936 $as_echo_n "(cached) " >&6 23937else 23938 if test x$gcc_no_link = xyes; then 23939 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23940fi 23941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23942/* end confdefs.h. */ 23943 23944#ifdef HAVE_COMPLEX_H 23945#include <complex.h> 23946#endif 23947#ifdef HAVE_MATH_H 23948#include <math.h> 23949#endif 23950 23951int (*ptr)() = (int (*)())j0f; 23952 23953int 23954main () 23955{ 23956 return 0; 23957} 23958 23959_ACEOF 23960if ac_fn_c_try_link "$LINENO"; then : 23961 gcc_cv_math_func_j0f=yes 23962else 23963 gcc_cv_math_func_j0f=no 23964fi 23965rm -f core conftest.err conftest.$ac_objext \ 23966 conftest$ac_exeext conftest.$ac_ext 23967fi 23968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5 23969$as_echo "$gcc_cv_math_func_j0f" >&6; } 23970 if test $gcc_cv_math_func_j0f = yes; then 23971 23972cat >>confdefs.h <<_ACEOF 23973#define HAVE_J0F 1 23974_ACEOF 23975 23976 fi 23977 23978 23979 23980 23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5 23982$as_echo_n "checking for j0... " >&6; } 23983if ${gcc_cv_math_func_j0+:} false; then : 23984 $as_echo_n "(cached) " >&6 23985else 23986 if test x$gcc_no_link = xyes; then 23987 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 23988fi 23989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23990/* end confdefs.h. */ 23991 23992#ifdef HAVE_COMPLEX_H 23993#include <complex.h> 23994#endif 23995#ifdef HAVE_MATH_H 23996#include <math.h> 23997#endif 23998 23999int (*ptr)() = (int (*)())j0; 24000 24001int 24002main () 24003{ 24004 return 0; 24005} 24006 24007_ACEOF 24008if ac_fn_c_try_link "$LINENO"; then : 24009 gcc_cv_math_func_j0=yes 24010else 24011 gcc_cv_math_func_j0=no 24012fi 24013rm -f core conftest.err conftest.$ac_objext \ 24014 conftest$ac_exeext conftest.$ac_ext 24015fi 24016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5 24017$as_echo "$gcc_cv_math_func_j0" >&6; } 24018 if test $gcc_cv_math_func_j0 = yes; then 24019 24020cat >>confdefs.h <<_ACEOF 24021#define HAVE_J0 1 24022_ACEOF 24023 24024 fi 24025 24026 24027 24028 24029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 24030$as_echo_n "checking for j1f... " >&6; } 24031if ${gcc_cv_math_func_j1f+:} false; then : 24032 $as_echo_n "(cached) " >&6 24033else 24034 if test x$gcc_no_link = xyes; then 24035 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24036fi 24037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24038/* end confdefs.h. */ 24039 24040#ifdef HAVE_COMPLEX_H 24041#include <complex.h> 24042#endif 24043#ifdef HAVE_MATH_H 24044#include <math.h> 24045#endif 24046 24047int (*ptr)() = (int (*)())j1f; 24048 24049int 24050main () 24051{ 24052 return 0; 24053} 24054 24055_ACEOF 24056if ac_fn_c_try_link "$LINENO"; then : 24057 gcc_cv_math_func_j1f=yes 24058else 24059 gcc_cv_math_func_j1f=no 24060fi 24061rm -f core conftest.err conftest.$ac_objext \ 24062 conftest$ac_exeext conftest.$ac_ext 24063fi 24064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5 24065$as_echo "$gcc_cv_math_func_j1f" >&6; } 24066 if test $gcc_cv_math_func_j1f = yes; then 24067 24068cat >>confdefs.h <<_ACEOF 24069#define HAVE_J1F 1 24070_ACEOF 24071 24072 fi 24073 24074 24075 24076 24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5 24078$as_echo_n "checking for j1... " >&6; } 24079if ${gcc_cv_math_func_j1+:} false; then : 24080 $as_echo_n "(cached) " >&6 24081else 24082 if test x$gcc_no_link = xyes; then 24083 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24084fi 24085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24086/* end confdefs.h. */ 24087 24088#ifdef HAVE_COMPLEX_H 24089#include <complex.h> 24090#endif 24091#ifdef HAVE_MATH_H 24092#include <math.h> 24093#endif 24094 24095int (*ptr)() = (int (*)())j1; 24096 24097int 24098main () 24099{ 24100 return 0; 24101} 24102 24103_ACEOF 24104if ac_fn_c_try_link "$LINENO"; then : 24105 gcc_cv_math_func_j1=yes 24106else 24107 gcc_cv_math_func_j1=no 24108fi 24109rm -f core conftest.err conftest.$ac_objext \ 24110 conftest$ac_exeext conftest.$ac_ext 24111fi 24112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5 24113$as_echo "$gcc_cv_math_func_j1" >&6; } 24114 if test $gcc_cv_math_func_j1 = yes; then 24115 24116cat >>confdefs.h <<_ACEOF 24117#define HAVE_J1 1 24118_ACEOF 24119 24120 fi 24121 24122 24123 24124 24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 24126$as_echo_n "checking for jnf... " >&6; } 24127if ${gcc_cv_math_func_jnf+:} false; then : 24128 $as_echo_n "(cached) " >&6 24129else 24130 if test x$gcc_no_link = xyes; then 24131 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24132fi 24133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24134/* end confdefs.h. */ 24135 24136#ifdef HAVE_COMPLEX_H 24137#include <complex.h> 24138#endif 24139#ifdef HAVE_MATH_H 24140#include <math.h> 24141#endif 24142 24143int (*ptr)() = (int (*)())jnf; 24144 24145int 24146main () 24147{ 24148 return 0; 24149} 24150 24151_ACEOF 24152if ac_fn_c_try_link "$LINENO"; then : 24153 gcc_cv_math_func_jnf=yes 24154else 24155 gcc_cv_math_func_jnf=no 24156fi 24157rm -f core conftest.err conftest.$ac_objext \ 24158 conftest$ac_exeext conftest.$ac_ext 24159fi 24160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5 24161$as_echo "$gcc_cv_math_func_jnf" >&6; } 24162 if test $gcc_cv_math_func_jnf = yes; then 24163 24164cat >>confdefs.h <<_ACEOF 24165#define HAVE_JNF 1 24166_ACEOF 24167 24168 fi 24169 24170 24171 24172 24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5 24174$as_echo_n "checking for jn... " >&6; } 24175if ${gcc_cv_math_func_jn+:} false; then : 24176 $as_echo_n "(cached) " >&6 24177else 24178 if test x$gcc_no_link = xyes; then 24179 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24180fi 24181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24182/* end confdefs.h. */ 24183 24184#ifdef HAVE_COMPLEX_H 24185#include <complex.h> 24186#endif 24187#ifdef HAVE_MATH_H 24188#include <math.h> 24189#endif 24190 24191int (*ptr)() = (int (*)())jn; 24192 24193int 24194main () 24195{ 24196 return 0; 24197} 24198 24199_ACEOF 24200if ac_fn_c_try_link "$LINENO"; then : 24201 gcc_cv_math_func_jn=yes 24202else 24203 gcc_cv_math_func_jn=no 24204fi 24205rm -f core conftest.err conftest.$ac_objext \ 24206 conftest$ac_exeext conftest.$ac_ext 24207fi 24208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5 24209$as_echo "$gcc_cv_math_func_jn" >&6; } 24210 if test $gcc_cv_math_func_jn = yes; then 24211 24212cat >>confdefs.h <<_ACEOF 24213#define HAVE_JN 1 24214_ACEOF 24215 24216 fi 24217 24218 24219 24220 24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5 24222$as_echo_n "checking for jnl... " >&6; } 24223if ${gcc_cv_math_func_jnl+:} false; then : 24224 $as_echo_n "(cached) " >&6 24225else 24226 if test x$gcc_no_link = xyes; then 24227 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24228fi 24229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24230/* end confdefs.h. */ 24231 24232#ifdef HAVE_COMPLEX_H 24233#include <complex.h> 24234#endif 24235#ifdef HAVE_MATH_H 24236#include <math.h> 24237#endif 24238 24239int (*ptr)() = (int (*)())jnl; 24240 24241int 24242main () 24243{ 24244 return 0; 24245} 24246 24247_ACEOF 24248if ac_fn_c_try_link "$LINENO"; then : 24249 gcc_cv_math_func_jnl=yes 24250else 24251 gcc_cv_math_func_jnl=no 24252fi 24253rm -f core conftest.err conftest.$ac_objext \ 24254 conftest$ac_exeext conftest.$ac_ext 24255fi 24256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5 24257$as_echo "$gcc_cv_math_func_jnl" >&6; } 24258 if test $gcc_cv_math_func_jnl = yes; then 24259 24260cat >>confdefs.h <<_ACEOF 24261#define HAVE_JNL 1 24262_ACEOF 24263 24264 fi 24265 24266 24267 24268 24269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5 24270$as_echo_n "checking for y0f... " >&6; } 24271if ${gcc_cv_math_func_y0f+:} false; then : 24272 $as_echo_n "(cached) " >&6 24273else 24274 if test x$gcc_no_link = xyes; then 24275 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24276fi 24277cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24278/* end confdefs.h. */ 24279 24280#ifdef HAVE_COMPLEX_H 24281#include <complex.h> 24282#endif 24283#ifdef HAVE_MATH_H 24284#include <math.h> 24285#endif 24286 24287int (*ptr)() = (int (*)())y0f; 24288 24289int 24290main () 24291{ 24292 return 0; 24293} 24294 24295_ACEOF 24296if ac_fn_c_try_link "$LINENO"; then : 24297 gcc_cv_math_func_y0f=yes 24298else 24299 gcc_cv_math_func_y0f=no 24300fi 24301rm -f core conftest.err conftest.$ac_objext \ 24302 conftest$ac_exeext conftest.$ac_ext 24303fi 24304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5 24305$as_echo "$gcc_cv_math_func_y0f" >&6; } 24306 if test $gcc_cv_math_func_y0f = yes; then 24307 24308cat >>confdefs.h <<_ACEOF 24309#define HAVE_Y0F 1 24310_ACEOF 24311 24312 fi 24313 24314 24315 24316 24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5 24318$as_echo_n "checking for y0... " >&6; } 24319if ${gcc_cv_math_func_y0+:} false; then : 24320 $as_echo_n "(cached) " >&6 24321else 24322 if test x$gcc_no_link = xyes; then 24323 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24324fi 24325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24326/* end confdefs.h. */ 24327 24328#ifdef HAVE_COMPLEX_H 24329#include <complex.h> 24330#endif 24331#ifdef HAVE_MATH_H 24332#include <math.h> 24333#endif 24334 24335int (*ptr)() = (int (*)())y0; 24336 24337int 24338main () 24339{ 24340 return 0; 24341} 24342 24343_ACEOF 24344if ac_fn_c_try_link "$LINENO"; then : 24345 gcc_cv_math_func_y0=yes 24346else 24347 gcc_cv_math_func_y0=no 24348fi 24349rm -f core conftest.err conftest.$ac_objext \ 24350 conftest$ac_exeext conftest.$ac_ext 24351fi 24352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5 24353$as_echo "$gcc_cv_math_func_y0" >&6; } 24354 if test $gcc_cv_math_func_y0 = yes; then 24355 24356cat >>confdefs.h <<_ACEOF 24357#define HAVE_Y0 1 24358_ACEOF 24359 24360 fi 24361 24362 24363 24364 24365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 24366$as_echo_n "checking for y1f... " >&6; } 24367if ${gcc_cv_math_func_y1f+:} false; then : 24368 $as_echo_n "(cached) " >&6 24369else 24370 if test x$gcc_no_link = xyes; then 24371 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24372fi 24373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24374/* end confdefs.h. */ 24375 24376#ifdef HAVE_COMPLEX_H 24377#include <complex.h> 24378#endif 24379#ifdef HAVE_MATH_H 24380#include <math.h> 24381#endif 24382 24383int (*ptr)() = (int (*)())y1f; 24384 24385int 24386main () 24387{ 24388 return 0; 24389} 24390 24391_ACEOF 24392if ac_fn_c_try_link "$LINENO"; then : 24393 gcc_cv_math_func_y1f=yes 24394else 24395 gcc_cv_math_func_y1f=no 24396fi 24397rm -f core conftest.err conftest.$ac_objext \ 24398 conftest$ac_exeext conftest.$ac_ext 24399fi 24400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5 24401$as_echo "$gcc_cv_math_func_y1f" >&6; } 24402 if test $gcc_cv_math_func_y1f = yes; then 24403 24404cat >>confdefs.h <<_ACEOF 24405#define HAVE_Y1F 1 24406_ACEOF 24407 24408 fi 24409 24410 24411 24412 24413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5 24414$as_echo_n "checking for y1... " >&6; } 24415if ${gcc_cv_math_func_y1+:} false; then : 24416 $as_echo_n "(cached) " >&6 24417else 24418 if test x$gcc_no_link = xyes; then 24419 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24420fi 24421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24422/* end confdefs.h. */ 24423 24424#ifdef HAVE_COMPLEX_H 24425#include <complex.h> 24426#endif 24427#ifdef HAVE_MATH_H 24428#include <math.h> 24429#endif 24430 24431int (*ptr)() = (int (*)())y1; 24432 24433int 24434main () 24435{ 24436 return 0; 24437} 24438 24439_ACEOF 24440if ac_fn_c_try_link "$LINENO"; then : 24441 gcc_cv_math_func_y1=yes 24442else 24443 gcc_cv_math_func_y1=no 24444fi 24445rm -f core conftest.err conftest.$ac_objext \ 24446 conftest$ac_exeext conftest.$ac_ext 24447fi 24448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5 24449$as_echo "$gcc_cv_math_func_y1" >&6; } 24450 if test $gcc_cv_math_func_y1 = yes; then 24451 24452cat >>confdefs.h <<_ACEOF 24453#define HAVE_Y1 1 24454_ACEOF 24455 24456 fi 24457 24458 24459 24460 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 24462$as_echo_n "checking for ynf... " >&6; } 24463if ${gcc_cv_math_func_ynf+:} false; then : 24464 $as_echo_n "(cached) " >&6 24465else 24466 if test x$gcc_no_link = xyes; then 24467 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24468fi 24469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24470/* end confdefs.h. */ 24471 24472#ifdef HAVE_COMPLEX_H 24473#include <complex.h> 24474#endif 24475#ifdef HAVE_MATH_H 24476#include <math.h> 24477#endif 24478 24479int (*ptr)() = (int (*)())ynf; 24480 24481int 24482main () 24483{ 24484 return 0; 24485} 24486 24487_ACEOF 24488if ac_fn_c_try_link "$LINENO"; then : 24489 gcc_cv_math_func_ynf=yes 24490else 24491 gcc_cv_math_func_ynf=no 24492fi 24493rm -f core conftest.err conftest.$ac_objext \ 24494 conftest$ac_exeext conftest.$ac_ext 24495fi 24496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5 24497$as_echo "$gcc_cv_math_func_ynf" >&6; } 24498 if test $gcc_cv_math_func_ynf = yes; then 24499 24500cat >>confdefs.h <<_ACEOF 24501#define HAVE_YNF 1 24502_ACEOF 24503 24504 fi 24505 24506 24507 24508 24509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5 24510$as_echo_n "checking for yn... " >&6; } 24511if ${gcc_cv_math_func_yn+:} false; then : 24512 $as_echo_n "(cached) " >&6 24513else 24514 if test x$gcc_no_link = xyes; then 24515 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24516fi 24517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24518/* end confdefs.h. */ 24519 24520#ifdef HAVE_COMPLEX_H 24521#include <complex.h> 24522#endif 24523#ifdef HAVE_MATH_H 24524#include <math.h> 24525#endif 24526 24527int (*ptr)() = (int (*)())yn; 24528 24529int 24530main () 24531{ 24532 return 0; 24533} 24534 24535_ACEOF 24536if ac_fn_c_try_link "$LINENO"; then : 24537 gcc_cv_math_func_yn=yes 24538else 24539 gcc_cv_math_func_yn=no 24540fi 24541rm -f core conftest.err conftest.$ac_objext \ 24542 conftest$ac_exeext conftest.$ac_ext 24543fi 24544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5 24545$as_echo "$gcc_cv_math_func_yn" >&6; } 24546 if test $gcc_cv_math_func_yn = yes; then 24547 24548cat >>confdefs.h <<_ACEOF 24549#define HAVE_YN 1 24550_ACEOF 24551 24552 fi 24553 24554 24555 24556 24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5 24558$as_echo_n "checking for ynl... " >&6; } 24559if ${gcc_cv_math_func_ynl+:} false; then : 24560 $as_echo_n "(cached) " >&6 24561else 24562 if test x$gcc_no_link = xyes; then 24563 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24564fi 24565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24566/* end confdefs.h. */ 24567 24568#ifdef HAVE_COMPLEX_H 24569#include <complex.h> 24570#endif 24571#ifdef HAVE_MATH_H 24572#include <math.h> 24573#endif 24574 24575int (*ptr)() = (int (*)())ynl; 24576 24577int 24578main () 24579{ 24580 return 0; 24581} 24582 24583_ACEOF 24584if ac_fn_c_try_link "$LINENO"; then : 24585 gcc_cv_math_func_ynl=yes 24586else 24587 gcc_cv_math_func_ynl=no 24588fi 24589rm -f core conftest.err conftest.$ac_objext \ 24590 conftest$ac_exeext conftest.$ac_ext 24591fi 24592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5 24593$as_echo "$gcc_cv_math_func_ynl" >&6; } 24594 if test $gcc_cv_math_func_ynl = yes; then 24595 24596cat >>confdefs.h <<_ACEOF 24597#define HAVE_YNL 1 24598_ACEOF 24599 24600 fi 24601 24602 24603 24604 24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5 24606$as_echo_n "checking for tgamma... " >&6; } 24607if ${gcc_cv_math_func_tgamma+:} false; then : 24608 $as_echo_n "(cached) " >&6 24609else 24610 if test x$gcc_no_link = xyes; then 24611 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24612fi 24613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24614/* end confdefs.h. */ 24615 24616#ifdef HAVE_COMPLEX_H 24617#include <complex.h> 24618#endif 24619#ifdef HAVE_MATH_H 24620#include <math.h> 24621#endif 24622 24623int (*ptr)() = (int (*)())tgamma; 24624 24625int 24626main () 24627{ 24628 return 0; 24629} 24630 24631_ACEOF 24632if ac_fn_c_try_link "$LINENO"; then : 24633 gcc_cv_math_func_tgamma=yes 24634else 24635 gcc_cv_math_func_tgamma=no 24636fi 24637rm -f core conftest.err conftest.$ac_objext \ 24638 conftest$ac_exeext conftest.$ac_ext 24639fi 24640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5 24641$as_echo "$gcc_cv_math_func_tgamma" >&6; } 24642 if test $gcc_cv_math_func_tgamma = yes; then 24643 24644cat >>confdefs.h <<_ACEOF 24645#define HAVE_TGAMMA 1 24646_ACEOF 24647 24648 fi 24649 24650 24651 24652 24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5 24654$as_echo_n "checking for tgammaf... " >&6; } 24655if ${gcc_cv_math_func_tgammaf+:} false; then : 24656 $as_echo_n "(cached) " >&6 24657else 24658 if test x$gcc_no_link = xyes; then 24659 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24660fi 24661cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24662/* end confdefs.h. */ 24663 24664#ifdef HAVE_COMPLEX_H 24665#include <complex.h> 24666#endif 24667#ifdef HAVE_MATH_H 24668#include <math.h> 24669#endif 24670 24671int (*ptr)() = (int (*)())tgammaf; 24672 24673int 24674main () 24675{ 24676 return 0; 24677} 24678 24679_ACEOF 24680if ac_fn_c_try_link "$LINENO"; then : 24681 gcc_cv_math_func_tgammaf=yes 24682else 24683 gcc_cv_math_func_tgammaf=no 24684fi 24685rm -f core conftest.err conftest.$ac_objext \ 24686 conftest$ac_exeext conftest.$ac_ext 24687fi 24688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5 24689$as_echo "$gcc_cv_math_func_tgammaf" >&6; } 24690 if test $gcc_cv_math_func_tgammaf = yes; then 24691 24692cat >>confdefs.h <<_ACEOF 24693#define HAVE_TGAMMAF 1 24694_ACEOF 24695 24696 fi 24697 24698 24699 24700 24701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 24702$as_echo_n "checking for lgamma... " >&6; } 24703if ${gcc_cv_math_func_lgamma+:} false; then : 24704 $as_echo_n "(cached) " >&6 24705else 24706 if test x$gcc_no_link = xyes; then 24707 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24708fi 24709cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24710/* end confdefs.h. */ 24711 24712#ifdef HAVE_COMPLEX_H 24713#include <complex.h> 24714#endif 24715#ifdef HAVE_MATH_H 24716#include <math.h> 24717#endif 24718 24719int (*ptr)() = (int (*)())lgamma; 24720 24721int 24722main () 24723{ 24724 return 0; 24725} 24726 24727_ACEOF 24728if ac_fn_c_try_link "$LINENO"; then : 24729 gcc_cv_math_func_lgamma=yes 24730else 24731 gcc_cv_math_func_lgamma=no 24732fi 24733rm -f core conftest.err conftest.$ac_objext \ 24734 conftest$ac_exeext conftest.$ac_ext 24735fi 24736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5 24737$as_echo "$gcc_cv_math_func_lgamma" >&6; } 24738 if test $gcc_cv_math_func_lgamma = yes; then 24739 24740cat >>confdefs.h <<_ACEOF 24741#define HAVE_LGAMMA 1 24742_ACEOF 24743 24744 fi 24745 24746 24747 24748 24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5 24750$as_echo_n "checking for lgammaf... " >&6; } 24751if ${gcc_cv_math_func_lgammaf+:} false; then : 24752 $as_echo_n "(cached) " >&6 24753else 24754 if test x$gcc_no_link = xyes; then 24755 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24756fi 24757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24758/* end confdefs.h. */ 24759 24760#ifdef HAVE_COMPLEX_H 24761#include <complex.h> 24762#endif 24763#ifdef HAVE_MATH_H 24764#include <math.h> 24765#endif 24766 24767int (*ptr)() = (int (*)())lgammaf; 24768 24769int 24770main () 24771{ 24772 return 0; 24773} 24774 24775_ACEOF 24776if ac_fn_c_try_link "$LINENO"; then : 24777 gcc_cv_math_func_lgammaf=yes 24778else 24779 gcc_cv_math_func_lgammaf=no 24780fi 24781rm -f core conftest.err conftest.$ac_objext \ 24782 conftest$ac_exeext conftest.$ac_ext 24783fi 24784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5 24785$as_echo "$gcc_cv_math_func_lgammaf" >&6; } 24786 if test $gcc_cv_math_func_lgammaf = yes; then 24787 24788cat >>confdefs.h <<_ACEOF 24789#define HAVE_LGAMMAF 1 24790_ACEOF 24791 24792 fi 24793 24794 24795# Check for GFORTRAN_C99_1.1 funcs 24796 24797 24798 24799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5 24800$as_echo_n "checking for cacos... " >&6; } 24801if ${gcc_cv_math_func_cacos+:} false; then : 24802 $as_echo_n "(cached) " >&6 24803else 24804 if test x$gcc_no_link = xyes; then 24805 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24806fi 24807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24808/* end confdefs.h. */ 24809 24810#ifdef HAVE_COMPLEX_H 24811#include <complex.h> 24812#endif 24813#ifdef HAVE_MATH_H 24814#include <math.h> 24815#endif 24816 24817int (*ptr)() = (int (*)())cacos; 24818 24819int 24820main () 24821{ 24822 return 0; 24823} 24824 24825_ACEOF 24826if ac_fn_c_try_link "$LINENO"; then : 24827 gcc_cv_math_func_cacos=yes 24828else 24829 gcc_cv_math_func_cacos=no 24830fi 24831rm -f core conftest.err conftest.$ac_objext \ 24832 conftest$ac_exeext conftest.$ac_ext 24833fi 24834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5 24835$as_echo "$gcc_cv_math_func_cacos" >&6; } 24836 if test $gcc_cv_math_func_cacos = yes; then 24837 24838cat >>confdefs.h <<_ACEOF 24839#define HAVE_CACOS 1 24840_ACEOF 24841 24842 fi 24843 24844 24845 24846 24847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5 24848$as_echo_n "checking for cacosf... " >&6; } 24849if ${gcc_cv_math_func_cacosf+:} false; then : 24850 $as_echo_n "(cached) " >&6 24851else 24852 if test x$gcc_no_link = xyes; then 24853 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24854fi 24855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24856/* end confdefs.h. */ 24857 24858#ifdef HAVE_COMPLEX_H 24859#include <complex.h> 24860#endif 24861#ifdef HAVE_MATH_H 24862#include <math.h> 24863#endif 24864 24865int (*ptr)() = (int (*)())cacosf; 24866 24867int 24868main () 24869{ 24870 return 0; 24871} 24872 24873_ACEOF 24874if ac_fn_c_try_link "$LINENO"; then : 24875 gcc_cv_math_func_cacosf=yes 24876else 24877 gcc_cv_math_func_cacosf=no 24878fi 24879rm -f core conftest.err conftest.$ac_objext \ 24880 conftest$ac_exeext conftest.$ac_ext 24881fi 24882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5 24883$as_echo "$gcc_cv_math_func_cacosf" >&6; } 24884 if test $gcc_cv_math_func_cacosf = yes; then 24885 24886cat >>confdefs.h <<_ACEOF 24887#define HAVE_CACOSF 1 24888_ACEOF 24889 24890 fi 24891 24892 24893 24894 24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5 24896$as_echo_n "checking for cacosh... " >&6; } 24897if ${gcc_cv_math_func_cacosh+:} false; then : 24898 $as_echo_n "(cached) " >&6 24899else 24900 if test x$gcc_no_link = xyes; then 24901 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24902fi 24903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24904/* end confdefs.h. */ 24905 24906#ifdef HAVE_COMPLEX_H 24907#include <complex.h> 24908#endif 24909#ifdef HAVE_MATH_H 24910#include <math.h> 24911#endif 24912 24913int (*ptr)() = (int (*)())cacosh; 24914 24915int 24916main () 24917{ 24918 return 0; 24919} 24920 24921_ACEOF 24922if ac_fn_c_try_link "$LINENO"; then : 24923 gcc_cv_math_func_cacosh=yes 24924else 24925 gcc_cv_math_func_cacosh=no 24926fi 24927rm -f core conftest.err conftest.$ac_objext \ 24928 conftest$ac_exeext conftest.$ac_ext 24929fi 24930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5 24931$as_echo "$gcc_cv_math_func_cacosh" >&6; } 24932 if test $gcc_cv_math_func_cacosh = yes; then 24933 24934cat >>confdefs.h <<_ACEOF 24935#define HAVE_CACOSH 1 24936_ACEOF 24937 24938 fi 24939 24940 24941 24942 24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5 24944$as_echo_n "checking for cacoshf... " >&6; } 24945if ${gcc_cv_math_func_cacoshf+:} false; then : 24946 $as_echo_n "(cached) " >&6 24947else 24948 if test x$gcc_no_link = xyes; then 24949 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24950fi 24951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24952/* end confdefs.h. */ 24953 24954#ifdef HAVE_COMPLEX_H 24955#include <complex.h> 24956#endif 24957#ifdef HAVE_MATH_H 24958#include <math.h> 24959#endif 24960 24961int (*ptr)() = (int (*)())cacoshf; 24962 24963int 24964main () 24965{ 24966 return 0; 24967} 24968 24969_ACEOF 24970if ac_fn_c_try_link "$LINENO"; then : 24971 gcc_cv_math_func_cacoshf=yes 24972else 24973 gcc_cv_math_func_cacoshf=no 24974fi 24975rm -f core conftest.err conftest.$ac_objext \ 24976 conftest$ac_exeext conftest.$ac_ext 24977fi 24978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5 24979$as_echo "$gcc_cv_math_func_cacoshf" >&6; } 24980 if test $gcc_cv_math_func_cacoshf = yes; then 24981 24982cat >>confdefs.h <<_ACEOF 24983#define HAVE_CACOSHF 1 24984_ACEOF 24985 24986 fi 24987 24988 24989 24990 24991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5 24992$as_echo_n "checking for cacoshl... " >&6; } 24993if ${gcc_cv_math_func_cacoshl+:} false; then : 24994 $as_echo_n "(cached) " >&6 24995else 24996 if test x$gcc_no_link = xyes; then 24997 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 24998fi 24999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25000/* end confdefs.h. */ 25001 25002#ifdef HAVE_COMPLEX_H 25003#include <complex.h> 25004#endif 25005#ifdef HAVE_MATH_H 25006#include <math.h> 25007#endif 25008 25009int (*ptr)() = (int (*)())cacoshl; 25010 25011int 25012main () 25013{ 25014 return 0; 25015} 25016 25017_ACEOF 25018if ac_fn_c_try_link "$LINENO"; then : 25019 gcc_cv_math_func_cacoshl=yes 25020else 25021 gcc_cv_math_func_cacoshl=no 25022fi 25023rm -f core conftest.err conftest.$ac_objext \ 25024 conftest$ac_exeext conftest.$ac_ext 25025fi 25026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5 25027$as_echo "$gcc_cv_math_func_cacoshl" >&6; } 25028 if test $gcc_cv_math_func_cacoshl = yes; then 25029 25030cat >>confdefs.h <<_ACEOF 25031#define HAVE_CACOSHL 1 25032_ACEOF 25033 25034 fi 25035 25036 25037 25038 25039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5 25040$as_echo_n "checking for cacosl... " >&6; } 25041if ${gcc_cv_math_func_cacosl+:} false; then : 25042 $as_echo_n "(cached) " >&6 25043else 25044 if test x$gcc_no_link = xyes; then 25045 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25046fi 25047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25048/* end confdefs.h. */ 25049 25050#ifdef HAVE_COMPLEX_H 25051#include <complex.h> 25052#endif 25053#ifdef HAVE_MATH_H 25054#include <math.h> 25055#endif 25056 25057int (*ptr)() = (int (*)())cacosl; 25058 25059int 25060main () 25061{ 25062 return 0; 25063} 25064 25065_ACEOF 25066if ac_fn_c_try_link "$LINENO"; then : 25067 gcc_cv_math_func_cacosl=yes 25068else 25069 gcc_cv_math_func_cacosl=no 25070fi 25071rm -f core conftest.err conftest.$ac_objext \ 25072 conftest$ac_exeext conftest.$ac_ext 25073fi 25074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5 25075$as_echo "$gcc_cv_math_func_cacosl" >&6; } 25076 if test $gcc_cv_math_func_cacosl = yes; then 25077 25078cat >>confdefs.h <<_ACEOF 25079#define HAVE_CACOSL 1 25080_ACEOF 25081 25082 fi 25083 25084 25085 25086 25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5 25088$as_echo_n "checking for casin... " >&6; } 25089if ${gcc_cv_math_func_casin+:} false; then : 25090 $as_echo_n "(cached) " >&6 25091else 25092 if test x$gcc_no_link = xyes; then 25093 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25094fi 25095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25096/* end confdefs.h. */ 25097 25098#ifdef HAVE_COMPLEX_H 25099#include <complex.h> 25100#endif 25101#ifdef HAVE_MATH_H 25102#include <math.h> 25103#endif 25104 25105int (*ptr)() = (int (*)())casin; 25106 25107int 25108main () 25109{ 25110 return 0; 25111} 25112 25113_ACEOF 25114if ac_fn_c_try_link "$LINENO"; then : 25115 gcc_cv_math_func_casin=yes 25116else 25117 gcc_cv_math_func_casin=no 25118fi 25119rm -f core conftest.err conftest.$ac_objext \ 25120 conftest$ac_exeext conftest.$ac_ext 25121fi 25122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5 25123$as_echo "$gcc_cv_math_func_casin" >&6; } 25124 if test $gcc_cv_math_func_casin = yes; then 25125 25126cat >>confdefs.h <<_ACEOF 25127#define HAVE_CASIN 1 25128_ACEOF 25129 25130 fi 25131 25132 25133 25134 25135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5 25136$as_echo_n "checking for casinf... " >&6; } 25137if ${gcc_cv_math_func_casinf+:} false; then : 25138 $as_echo_n "(cached) " >&6 25139else 25140 if test x$gcc_no_link = xyes; then 25141 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25142fi 25143cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25144/* end confdefs.h. */ 25145 25146#ifdef HAVE_COMPLEX_H 25147#include <complex.h> 25148#endif 25149#ifdef HAVE_MATH_H 25150#include <math.h> 25151#endif 25152 25153int (*ptr)() = (int (*)())casinf; 25154 25155int 25156main () 25157{ 25158 return 0; 25159} 25160 25161_ACEOF 25162if ac_fn_c_try_link "$LINENO"; then : 25163 gcc_cv_math_func_casinf=yes 25164else 25165 gcc_cv_math_func_casinf=no 25166fi 25167rm -f core conftest.err conftest.$ac_objext \ 25168 conftest$ac_exeext conftest.$ac_ext 25169fi 25170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5 25171$as_echo "$gcc_cv_math_func_casinf" >&6; } 25172 if test $gcc_cv_math_func_casinf = yes; then 25173 25174cat >>confdefs.h <<_ACEOF 25175#define HAVE_CASINF 1 25176_ACEOF 25177 25178 fi 25179 25180 25181 25182 25183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5 25184$as_echo_n "checking for casinh... " >&6; } 25185if ${gcc_cv_math_func_casinh+:} false; then : 25186 $as_echo_n "(cached) " >&6 25187else 25188 if test x$gcc_no_link = xyes; then 25189 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25190fi 25191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25192/* end confdefs.h. */ 25193 25194#ifdef HAVE_COMPLEX_H 25195#include <complex.h> 25196#endif 25197#ifdef HAVE_MATH_H 25198#include <math.h> 25199#endif 25200 25201int (*ptr)() = (int (*)())casinh; 25202 25203int 25204main () 25205{ 25206 return 0; 25207} 25208 25209_ACEOF 25210if ac_fn_c_try_link "$LINENO"; then : 25211 gcc_cv_math_func_casinh=yes 25212else 25213 gcc_cv_math_func_casinh=no 25214fi 25215rm -f core conftest.err conftest.$ac_objext \ 25216 conftest$ac_exeext conftest.$ac_ext 25217fi 25218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5 25219$as_echo "$gcc_cv_math_func_casinh" >&6; } 25220 if test $gcc_cv_math_func_casinh = yes; then 25221 25222cat >>confdefs.h <<_ACEOF 25223#define HAVE_CASINH 1 25224_ACEOF 25225 25226 fi 25227 25228 25229 25230 25231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5 25232$as_echo_n "checking for casinhf... " >&6; } 25233if ${gcc_cv_math_func_casinhf+:} false; then : 25234 $as_echo_n "(cached) " >&6 25235else 25236 if test x$gcc_no_link = xyes; then 25237 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25238fi 25239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25240/* end confdefs.h. */ 25241 25242#ifdef HAVE_COMPLEX_H 25243#include <complex.h> 25244#endif 25245#ifdef HAVE_MATH_H 25246#include <math.h> 25247#endif 25248 25249int (*ptr)() = (int (*)())casinhf; 25250 25251int 25252main () 25253{ 25254 return 0; 25255} 25256 25257_ACEOF 25258if ac_fn_c_try_link "$LINENO"; then : 25259 gcc_cv_math_func_casinhf=yes 25260else 25261 gcc_cv_math_func_casinhf=no 25262fi 25263rm -f core conftest.err conftest.$ac_objext \ 25264 conftest$ac_exeext conftest.$ac_ext 25265fi 25266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5 25267$as_echo "$gcc_cv_math_func_casinhf" >&6; } 25268 if test $gcc_cv_math_func_casinhf = yes; then 25269 25270cat >>confdefs.h <<_ACEOF 25271#define HAVE_CASINHF 1 25272_ACEOF 25273 25274 fi 25275 25276 25277 25278 25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5 25280$as_echo_n "checking for casinhl... " >&6; } 25281if ${gcc_cv_math_func_casinhl+:} false; then : 25282 $as_echo_n "(cached) " >&6 25283else 25284 if test x$gcc_no_link = xyes; then 25285 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25286fi 25287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25288/* end confdefs.h. */ 25289 25290#ifdef HAVE_COMPLEX_H 25291#include <complex.h> 25292#endif 25293#ifdef HAVE_MATH_H 25294#include <math.h> 25295#endif 25296 25297int (*ptr)() = (int (*)())casinhl; 25298 25299int 25300main () 25301{ 25302 return 0; 25303} 25304 25305_ACEOF 25306if ac_fn_c_try_link "$LINENO"; then : 25307 gcc_cv_math_func_casinhl=yes 25308else 25309 gcc_cv_math_func_casinhl=no 25310fi 25311rm -f core conftest.err conftest.$ac_objext \ 25312 conftest$ac_exeext conftest.$ac_ext 25313fi 25314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5 25315$as_echo "$gcc_cv_math_func_casinhl" >&6; } 25316 if test $gcc_cv_math_func_casinhl = yes; then 25317 25318cat >>confdefs.h <<_ACEOF 25319#define HAVE_CASINHL 1 25320_ACEOF 25321 25322 fi 25323 25324 25325 25326 25327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5 25328$as_echo_n "checking for casinl... " >&6; } 25329if ${gcc_cv_math_func_casinl+:} false; then : 25330 $as_echo_n "(cached) " >&6 25331else 25332 if test x$gcc_no_link = xyes; then 25333 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25334fi 25335cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25336/* end confdefs.h. */ 25337 25338#ifdef HAVE_COMPLEX_H 25339#include <complex.h> 25340#endif 25341#ifdef HAVE_MATH_H 25342#include <math.h> 25343#endif 25344 25345int (*ptr)() = (int (*)())casinl; 25346 25347int 25348main () 25349{ 25350 return 0; 25351} 25352 25353_ACEOF 25354if ac_fn_c_try_link "$LINENO"; then : 25355 gcc_cv_math_func_casinl=yes 25356else 25357 gcc_cv_math_func_casinl=no 25358fi 25359rm -f core conftest.err conftest.$ac_objext \ 25360 conftest$ac_exeext conftest.$ac_ext 25361fi 25362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5 25363$as_echo "$gcc_cv_math_func_casinl" >&6; } 25364 if test $gcc_cv_math_func_casinl = yes; then 25365 25366cat >>confdefs.h <<_ACEOF 25367#define HAVE_CASINL 1 25368_ACEOF 25369 25370 fi 25371 25372 25373 25374 25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5 25376$as_echo_n "checking for catan... " >&6; } 25377if ${gcc_cv_math_func_catan+:} false; then : 25378 $as_echo_n "(cached) " >&6 25379else 25380 if test x$gcc_no_link = xyes; then 25381 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25382fi 25383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25384/* end confdefs.h. */ 25385 25386#ifdef HAVE_COMPLEX_H 25387#include <complex.h> 25388#endif 25389#ifdef HAVE_MATH_H 25390#include <math.h> 25391#endif 25392 25393int (*ptr)() = (int (*)())catan; 25394 25395int 25396main () 25397{ 25398 return 0; 25399} 25400 25401_ACEOF 25402if ac_fn_c_try_link "$LINENO"; then : 25403 gcc_cv_math_func_catan=yes 25404else 25405 gcc_cv_math_func_catan=no 25406fi 25407rm -f core conftest.err conftest.$ac_objext \ 25408 conftest$ac_exeext conftest.$ac_ext 25409fi 25410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5 25411$as_echo "$gcc_cv_math_func_catan" >&6; } 25412 if test $gcc_cv_math_func_catan = yes; then 25413 25414cat >>confdefs.h <<_ACEOF 25415#define HAVE_CATAN 1 25416_ACEOF 25417 25418 fi 25419 25420 25421 25422 25423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5 25424$as_echo_n "checking for catanf... " >&6; } 25425if ${gcc_cv_math_func_catanf+:} false; then : 25426 $as_echo_n "(cached) " >&6 25427else 25428 if test x$gcc_no_link = xyes; then 25429 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25430fi 25431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25432/* end confdefs.h. */ 25433 25434#ifdef HAVE_COMPLEX_H 25435#include <complex.h> 25436#endif 25437#ifdef HAVE_MATH_H 25438#include <math.h> 25439#endif 25440 25441int (*ptr)() = (int (*)())catanf; 25442 25443int 25444main () 25445{ 25446 return 0; 25447} 25448 25449_ACEOF 25450if ac_fn_c_try_link "$LINENO"; then : 25451 gcc_cv_math_func_catanf=yes 25452else 25453 gcc_cv_math_func_catanf=no 25454fi 25455rm -f core conftest.err conftest.$ac_objext \ 25456 conftest$ac_exeext conftest.$ac_ext 25457fi 25458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5 25459$as_echo "$gcc_cv_math_func_catanf" >&6; } 25460 if test $gcc_cv_math_func_catanf = yes; then 25461 25462cat >>confdefs.h <<_ACEOF 25463#define HAVE_CATANF 1 25464_ACEOF 25465 25466 fi 25467 25468 25469 25470 25471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5 25472$as_echo_n "checking for catanh... " >&6; } 25473if ${gcc_cv_math_func_catanh+:} false; then : 25474 $as_echo_n "(cached) " >&6 25475else 25476 if test x$gcc_no_link = xyes; then 25477 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25478fi 25479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25480/* end confdefs.h. */ 25481 25482#ifdef HAVE_COMPLEX_H 25483#include <complex.h> 25484#endif 25485#ifdef HAVE_MATH_H 25486#include <math.h> 25487#endif 25488 25489int (*ptr)() = (int (*)())catanh; 25490 25491int 25492main () 25493{ 25494 return 0; 25495} 25496 25497_ACEOF 25498if ac_fn_c_try_link "$LINENO"; then : 25499 gcc_cv_math_func_catanh=yes 25500else 25501 gcc_cv_math_func_catanh=no 25502fi 25503rm -f core conftest.err conftest.$ac_objext \ 25504 conftest$ac_exeext conftest.$ac_ext 25505fi 25506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5 25507$as_echo "$gcc_cv_math_func_catanh" >&6; } 25508 if test $gcc_cv_math_func_catanh = yes; then 25509 25510cat >>confdefs.h <<_ACEOF 25511#define HAVE_CATANH 1 25512_ACEOF 25513 25514 fi 25515 25516 25517 25518 25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5 25520$as_echo_n "checking for catanhf... " >&6; } 25521if ${gcc_cv_math_func_catanhf+:} false; then : 25522 $as_echo_n "(cached) " >&6 25523else 25524 if test x$gcc_no_link = xyes; then 25525 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25526fi 25527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25528/* end confdefs.h. */ 25529 25530#ifdef HAVE_COMPLEX_H 25531#include <complex.h> 25532#endif 25533#ifdef HAVE_MATH_H 25534#include <math.h> 25535#endif 25536 25537int (*ptr)() = (int (*)())catanhf; 25538 25539int 25540main () 25541{ 25542 return 0; 25543} 25544 25545_ACEOF 25546if ac_fn_c_try_link "$LINENO"; then : 25547 gcc_cv_math_func_catanhf=yes 25548else 25549 gcc_cv_math_func_catanhf=no 25550fi 25551rm -f core conftest.err conftest.$ac_objext \ 25552 conftest$ac_exeext conftest.$ac_ext 25553fi 25554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5 25555$as_echo "$gcc_cv_math_func_catanhf" >&6; } 25556 if test $gcc_cv_math_func_catanhf = yes; then 25557 25558cat >>confdefs.h <<_ACEOF 25559#define HAVE_CATANHF 1 25560_ACEOF 25561 25562 fi 25563 25564 25565 25566 25567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5 25568$as_echo_n "checking for catanhl... " >&6; } 25569if ${gcc_cv_math_func_catanhl+:} false; then : 25570 $as_echo_n "(cached) " >&6 25571else 25572 if test x$gcc_no_link = xyes; then 25573 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25574fi 25575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25576/* end confdefs.h. */ 25577 25578#ifdef HAVE_COMPLEX_H 25579#include <complex.h> 25580#endif 25581#ifdef HAVE_MATH_H 25582#include <math.h> 25583#endif 25584 25585int (*ptr)() = (int (*)())catanhl; 25586 25587int 25588main () 25589{ 25590 return 0; 25591} 25592 25593_ACEOF 25594if ac_fn_c_try_link "$LINENO"; then : 25595 gcc_cv_math_func_catanhl=yes 25596else 25597 gcc_cv_math_func_catanhl=no 25598fi 25599rm -f core conftest.err conftest.$ac_objext \ 25600 conftest$ac_exeext conftest.$ac_ext 25601fi 25602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5 25603$as_echo "$gcc_cv_math_func_catanhl" >&6; } 25604 if test $gcc_cv_math_func_catanhl = yes; then 25605 25606cat >>confdefs.h <<_ACEOF 25607#define HAVE_CATANHL 1 25608_ACEOF 25609 25610 fi 25611 25612 25613 25614 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5 25616$as_echo_n "checking for catanl... " >&6; } 25617if ${gcc_cv_math_func_catanl+:} false; then : 25618 $as_echo_n "(cached) " >&6 25619else 25620 if test x$gcc_no_link = xyes; then 25621 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25622fi 25623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25624/* end confdefs.h. */ 25625 25626#ifdef HAVE_COMPLEX_H 25627#include <complex.h> 25628#endif 25629#ifdef HAVE_MATH_H 25630#include <math.h> 25631#endif 25632 25633int (*ptr)() = (int (*)())catanl; 25634 25635int 25636main () 25637{ 25638 return 0; 25639} 25640 25641_ACEOF 25642if ac_fn_c_try_link "$LINENO"; then : 25643 gcc_cv_math_func_catanl=yes 25644else 25645 gcc_cv_math_func_catanl=no 25646fi 25647rm -f core conftest.err conftest.$ac_objext \ 25648 conftest$ac_exeext conftest.$ac_ext 25649fi 25650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5 25651$as_echo "$gcc_cv_math_func_catanl" >&6; } 25652 if test $gcc_cv_math_func_catanl = yes; then 25653 25654cat >>confdefs.h <<_ACEOF 25655#define HAVE_CATANL 1 25656_ACEOF 25657 25658 fi 25659 25660 25661# On AIX, clog is present in libm as __clog 25662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5 25663$as_echo_n "checking for __clog in -lm... " >&6; } 25664if ${ac_cv_lib_m___clog+:} false; then : 25665 $as_echo_n "(cached) " >&6 25666else 25667 ac_check_lib_save_LIBS=$LIBS 25668LIBS="-lm $LIBS" 25669if test x$gcc_no_link = xyes; then 25670 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25671fi 25672cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25673/* end confdefs.h. */ 25674 25675/* Override any GCC internal prototype to avoid an error. 25676 Use char because int might match the return type of a GCC 25677 builtin and then its argument prototype would still apply. */ 25678#ifdef __cplusplus 25679extern "C" 25680#endif 25681char __clog (); 25682int 25683main () 25684{ 25685return __clog (); 25686 ; 25687 return 0; 25688} 25689_ACEOF 25690if ac_fn_c_try_link "$LINENO"; then : 25691 ac_cv_lib_m___clog=yes 25692else 25693 ac_cv_lib_m___clog=no 25694fi 25695rm -f core conftest.err conftest.$ac_objext \ 25696 conftest$ac_exeext conftest.$ac_ext 25697LIBS=$ac_check_lib_save_LIBS 25698fi 25699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5 25700$as_echo "$ac_cv_lib_m___clog" >&6; } 25701if test "x$ac_cv_lib_m___clog" = xyes; then : 25702 25703$as_echo "#define HAVE_CLOG 1" >>confdefs.h 25704 25705fi 25706 25707 25708 25709 25710if test $gcc_cv_math_func_copysign = no; then 25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysign" >&5 25712$as_echo_n "checking for inline __builtin_copysign... " >&6; } 25713if ${gcc_cv_math_inline_builtin_copysign+:} false; then : 25714 $as_echo_n "(cached) " >&6 25715else 25716 if test x$gcc_no_link = xyes; then 25717 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25718fi 25719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25720/* end confdefs.h. */ 25721 25722double 25723copysign_fallback (double x, double y) 25724{ 25725 return __builtin_copysign (x, y); 25726} 25727 25728int 25729main () 25730{ 25731 return 0; 25732} 25733 25734_ACEOF 25735if ac_fn_c_try_link "$LINENO"; then : 25736 gcc_cv_math_inline_builtin_copysign=yes 25737else 25738 gcc_cv_math_inline_builtin_copysign=no 25739fi 25740rm -f core conftest.err conftest.$ac_objext \ 25741 conftest$ac_exeext conftest.$ac_ext 25742fi 25743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysign" >&5 25744$as_echo "$gcc_cv_math_inline_builtin_copysign" >&6; } 25745 if test $gcc_cv_math_inline_builtin_copysign = yes; then 25746 25747cat >>confdefs.h <<_ACEOF 25748#define HAVE_INLINE_BUILTIN_COPYSIGN 1 25749_ACEOF 25750 25751 fi 25752fi 25753 25754 25755if test $gcc_cv_math_func_copysignl = no; then 25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_copysignl" >&5 25757$as_echo_n "checking for inline __builtin_copysignl... " >&6; } 25758if ${gcc_cv_math_inline_builtin_copysignl+:} false; then : 25759 $as_echo_n "(cached) " >&6 25760else 25761 if test x$gcc_no_link = xyes; then 25762 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25763fi 25764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25765/* end confdefs.h. */ 25766 25767long double 25768copysignl_fallback (long double x, long double y) 25769{ 25770 return __builtin_copysignl (x, y); 25771} 25772 25773int 25774main () 25775{ 25776 return 0; 25777} 25778 25779_ACEOF 25780if ac_fn_c_try_link "$LINENO"; then : 25781 gcc_cv_math_inline_builtin_copysignl=yes 25782else 25783 gcc_cv_math_inline_builtin_copysignl=no 25784fi 25785rm -f core conftest.err conftest.$ac_objext \ 25786 conftest$ac_exeext conftest.$ac_ext 25787fi 25788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_copysignl" >&5 25789$as_echo "$gcc_cv_math_inline_builtin_copysignl" >&6; } 25790 if test $gcc_cv_math_inline_builtin_copysignl = yes; then 25791 25792cat >>confdefs.h <<_ACEOF 25793#define HAVE_INLINE_BUILTIN_COPYSIGNL 1 25794_ACEOF 25795 25796 fi 25797fi 25798 25799 25800if test $gcc_cv_math_func_fabs = no; then 25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabs" >&5 25802$as_echo_n "checking for inline __builtin_fabs... " >&6; } 25803if ${gcc_cv_math_inline_builtin_fabs+:} false; then : 25804 $as_echo_n "(cached) " >&6 25805else 25806 if test x$gcc_no_link = xyes; then 25807 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25808fi 25809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25810/* end confdefs.h. */ 25811 25812double 25813fabs_fallback (double x) 25814{ 25815 return __builtin_fabs (x); 25816} 25817 25818int 25819main () 25820{ 25821 return 0; 25822} 25823 25824_ACEOF 25825if ac_fn_c_try_link "$LINENO"; then : 25826 gcc_cv_math_inline_builtin_fabs=yes 25827else 25828 gcc_cv_math_inline_builtin_fabs=no 25829fi 25830rm -f core conftest.err conftest.$ac_objext \ 25831 conftest$ac_exeext conftest.$ac_ext 25832fi 25833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabs" >&5 25834$as_echo "$gcc_cv_math_inline_builtin_fabs" >&6; } 25835 if test $gcc_cv_math_inline_builtin_fabs = yes; then 25836 25837cat >>confdefs.h <<_ACEOF 25838#define HAVE_INLINE_BUILTIN_FABS 1 25839_ACEOF 25840 25841 fi 25842fi 25843 25844 25845if test $gcc_cv_math_func_fabsl = no; then 25846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline __builtin_fabsl" >&5 25847$as_echo_n "checking for inline __builtin_fabsl... " >&6; } 25848if ${gcc_cv_math_inline_builtin_fabsl+:} false; then : 25849 $as_echo_n "(cached) " >&6 25850else 25851 if test x$gcc_no_link = xyes; then 25852 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25853fi 25854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25855/* end confdefs.h. */ 25856 25857long double 25858fabsl_fallback (long double x) 25859{ 25860 return __builtin_fabsl (x); 25861} 25862 25863int 25864main () 25865{ 25866 return 0; 25867} 25868 25869_ACEOF 25870if ac_fn_c_try_link "$LINENO"; then : 25871 gcc_cv_math_inline_builtin_fabsl=yes 25872else 25873 gcc_cv_math_inline_builtin_fabsl=no 25874fi 25875rm -f core conftest.err conftest.$ac_objext \ 25876 conftest$ac_exeext conftest.$ac_ext 25877fi 25878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_inline_builtin_fabsl" >&5 25879$as_echo "$gcc_cv_math_inline_builtin_fabsl" >&6; } 25880 if test $gcc_cv_math_inline_builtin_fabsl = yes; then 25881 25882cat >>confdefs.h <<_ACEOF 25883#define HAVE_INLINE_BUILTIN_FABSL 1 25884_ACEOF 25885 25886 fi 25887fi 25888 25889# Check whether the system has a working stat() 25890 25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5 25892$as_echo_n "checking whether the target stat is reliable... " >&6; } 25893if ${libgfor_cv_have_working_stat+:} false; then : 25894 $as_echo_n "(cached) " >&6 25895else 25896 25897 if test "$cross_compiling" = yes; then : 25898 25899case "${target}" in 25900 *mingw*) libgfor_cv_have_working_stat=no ;; 25901 *) libgfor_cv_have_working_stat=yes;; 25902esac 25903else 25904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25905/* end confdefs.h. */ 25906 25907#include <stdio.h> 25908#include <sys/types.h> 25909#include <sys/stat.h> 25910#include <unistd.h> 25911 25912int main () 25913{ 25914 FILE *f, *g; 25915 struct stat st1, st2; 25916 25917 f = fopen ("foo", "w"); 25918 g = fopen ("bar", "w"); 25919 if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) 25920 return 1; 25921 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) 25922 return 1; 25923 fclose(f); 25924 fclose(g); 25925 return 0; 25926} 25927_ACEOF 25928if ac_fn_c_try_run "$LINENO"; then : 25929 libgfor_cv_have_working_stat=yes 25930else 25931 libgfor_cv_have_working_stat=no 25932fi 25933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25934 conftest.$ac_objext conftest.beam conftest.$ac_ext 25935fi 25936 25937fi 25938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5 25939$as_echo "$libgfor_cv_have_working_stat" >&6; } 25940if test x"$libgfor_cv_have_working_stat" = xyes; then 25941 25942$as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h 25943 25944fi 25945 25946# Check whether __mingw_snprintf() is present 25947 25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5 25949$as_echo_n "checking whether __mingw_snprintf is present... " >&6; } 25950if ${libgfor_cv_have_mingw_snprintf+:} false; then : 25951 $as_echo_n "(cached) " >&6 25952else 25953 25954 if test x$gcc_no_link = xyes; then 25955 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 25956fi 25957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25958/* end confdefs.h. */ 25959 25960#include <stdio.h> 25961extern int __mingw_snprintf (char *, size_t, const char *, ...); 25962 25963int 25964main () 25965{ 25966 25967__mingw_snprintf (NULL, 0, "%d\n", 1); 25968 25969 ; 25970 return 0; 25971} 25972_ACEOF 25973if ac_fn_c_try_link "$LINENO"; then : 25974 eval "libgfor_cv_have_mingw_snprintf=yes" 25975else 25976 eval "libgfor_cv_have_mingw_snprintf=no" 25977fi 25978rm -f core conftest.err conftest.$ac_objext \ 25979 conftest$ac_exeext conftest.$ac_ext 25980 25981fi 25982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5 25983$as_echo "$libgfor_cv_have_mingw_snprintf" >&6; } 25984 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then 25985 25986$as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h 25987 25988 fi 25989 25990 25991# Check whether libquadmath should be used 25992# Check whether --enable-libquadmath-support was given. 25993if test "${enable_libquadmath_support+set}" = set; then : 25994 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval 25995else 25996 ENABLE_LIBQUADMATH_SUPPORT=yes 25997fi 25998 25999enable_libquadmath_support= 26000if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then 26001 enable_libquadmath_support=no 26002fi 26003 26004# Check whether we have a __float128 type, depends on enable_libquadmath_support 26005 26006 LIBQUADSPEC= 26007 26008 if test "x$enable_libquadmath_support" != xno; then 26009 26010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5 26011$as_echo_n "checking whether we have a usable __float128 type... " >&6; } 26012if ${libgfor_cv_have_float128+:} false; then : 26013 $as_echo_n "(cached) " >&6 26014else 26015 26016 if test x$gcc_no_link = xyes; then 26017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26018/* end confdefs.h. */ 26019 26020 typedef _Complex float __attribute__((mode(TC))) __complex128; 26021 26022 __float128 foo (__float128 x) 26023 { 26024 26025 __complex128 z1, z2; 26026 26027 z1 = x; 26028 z2 = x / 7.Q; 26029 z2 /= z1; 26030 26031 return (__float128) z2; 26032 } 26033 26034 __float128 bar (__float128 x) 26035 { 26036 return x * __builtin_huge_valq (); 26037 } 26038 26039int 26040main () 26041{ 26042 26043 foo (1.2Q); 26044 bar (1.2Q); 26045 26046 ; 26047 return 0; 26048} 26049_ACEOF 26050if ac_fn_c_try_compile "$LINENO"; then : 26051 26052 libgfor_cv_have_float128=yes 26053 26054else 26055 26056 libgfor_cv_have_float128=no 26057 26058fi 26059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26060else 26061 if test x$gcc_no_link = xyes; then 26062 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26063fi 26064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26065/* end confdefs.h. */ 26066 26067 typedef _Complex float __attribute__((mode(TC))) __complex128; 26068 26069 __float128 foo (__float128 x) 26070 { 26071 26072 __complex128 z1, z2; 26073 26074 z1 = x; 26075 z2 = x / 7.Q; 26076 z2 /= z1; 26077 26078 return (__float128) z2; 26079 } 26080 26081 __float128 bar (__float128 x) 26082 { 26083 return x * __builtin_huge_valq (); 26084 } 26085 26086int 26087main () 26088{ 26089 26090 foo (1.2Q); 26091 bar (1.2Q); 26092 26093 ; 26094 return 0; 26095} 26096_ACEOF 26097if ac_fn_c_try_link "$LINENO"; then : 26098 26099 libgfor_cv_have_float128=yes 26100 26101else 26102 26103 libgfor_cv_have_float128=no 26104 26105fi 26106rm -f core conftest.err conftest.$ac_objext \ 26107 conftest$ac_exeext conftest.$ac_ext 26108fi 26109fi 26110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5 26111$as_echo "$libgfor_cv_have_float128" >&6; } 26112 26113 if test "x$libgfor_cv_have_float128" = xyes; then 26114 26115$as_echo "#define HAVE_FLOAT128 1" >>confdefs.h 26116 26117 26118 ac_xsave_c_werror_flag=$ac_c_werror_flag 26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5 26120$as_echo_n "checking whether --as-needed/-z ignore works... " >&6; } 26121if ${libgfor_cv_have_as_needed+:} false; then : 26122 $as_echo_n "(cached) " >&6 26123else 26124 26125 # Test for native Solaris options first. 26126 # No whitespace after -z to pass it through -Wl. 26127 libgfor_cv_as_needed_option="-zignore" 26128 libgfor_cv_no_as_needed_option="-zrecord" 26129 save_LDFLAGS="$LDFLAGS" 26130 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" 26131 libgfor_cv_have_as_needed=no 26132 26133ac_c_werror_flag=yes 26134 if test x$gcc_no_link = xyes; then 26135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26136fi 26137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26138/* end confdefs.h. */ 26139 26140int 26141main () 26142{ 26143 26144 ; 26145 return 0; 26146} 26147_ACEOF 26148if ac_fn_c_try_link "$LINENO"; then : 26149 libgfor_cv_have_as_needed=yes 26150else 26151 libgfor_cv_have_as_needed=no 26152fi 26153rm -f core conftest.err conftest.$ac_objext \ 26154 conftest$ac_exeext conftest.$ac_ext 26155 LDFLAGS="$save_LDFLAGS" 26156 if test "x$libgfor_cv_have_as_needed" = xno; then 26157 libgfor_cv_as_needed_option="--as-needed" 26158 libgfor_cv_no_as_needed_option="--no-as-needed" 26159 save_LDFLAGS="$LDFLAGS" 26160 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option" 26161 libgfor_cv_have_as_needed=no 26162 26163ac_c_werror_flag=yes 26164 if test x$gcc_no_link = xyes; then 26165 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26166fi 26167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26168/* end confdefs.h. */ 26169 26170int 26171main () 26172{ 26173 26174 ; 26175 return 0; 26176} 26177_ACEOF 26178if ac_fn_c_try_link "$LINENO"; then : 26179 libgfor_cv_have_as_needed=yes 26180else 26181 libgfor_cv_have_as_needed=no 26182fi 26183rm -f core conftest.err conftest.$ac_objext \ 26184 conftest$ac_exeext conftest.$ac_ext 26185 LDFLAGS="$save_LDFLAGS" 26186 fi 26187 ac_c_werror_flag=$ac_xsave_c_werror_flag 26188 26189fi 26190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5 26191$as_echo "$libgfor_cv_have_as_needed" >&6; } 26192 26193 if test "x$libgfor_cv_have_as_needed" = xyes; then 26194 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}" 26195 else 26196 LIBQUADSPEC="-lquadmath" 26197 fi 26198 if test -f ../libquadmath/libquadmath.la; then 26199 LIBQUADLIB=../libquadmath/libquadmath.la 26200 LIBQUADLIB_DEP=../libquadmath/libquadmath.la 26201 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath' 26202 else 26203 LIBQUADLIB="-lquadmath" 26204 LIBQUADLIB_DEP= 26205 LIBQUADINCLUDE= 26206 fi 26207 fi 26208 else 26209 # for --disable-quadmath 26210 LIBQUADLIB= 26211 LIBQUADLIB_DEP= 26212 LIBQUADINCLUDE= 26213 fi 26214 26215 26216 26217 26218 26219 26220 if test "x$libgfor_cv_have_float128" = xyes; then 26221 LIBGFOR_BUILD_QUAD_TRUE= 26222 LIBGFOR_BUILD_QUAD_FALSE='#' 26223else 26224 LIBGFOR_BUILD_QUAD_TRUE='#' 26225 LIBGFOR_BUILD_QUAD_FALSE= 26226fi 26227 26228 26229 26230# Check for GNU libc feenableexcept 26231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5 26232$as_echo_n "checking for feenableexcept in -lm... " >&6; } 26233if ${ac_cv_lib_m_feenableexcept+:} false; then : 26234 $as_echo_n "(cached) " >&6 26235else 26236 ac_check_lib_save_LIBS=$LIBS 26237LIBS="-lm $LIBS" 26238if test x$gcc_no_link = xyes; then 26239 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26240fi 26241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26242/* end confdefs.h. */ 26243 26244/* Override any GCC internal prototype to avoid an error. 26245 Use char because int might match the return type of a GCC 26246 builtin and then its argument prototype would still apply. */ 26247#ifdef __cplusplus 26248extern "C" 26249#endif 26250char feenableexcept (); 26251int 26252main () 26253{ 26254return feenableexcept (); 26255 ; 26256 return 0; 26257} 26258_ACEOF 26259if ac_fn_c_try_link "$LINENO"; then : 26260 ac_cv_lib_m_feenableexcept=yes 26261else 26262 ac_cv_lib_m_feenableexcept=no 26263fi 26264rm -f core conftest.err conftest.$ac_objext \ 26265 conftest$ac_exeext conftest.$ac_ext 26266LIBS=$ac_check_lib_save_LIBS 26267fi 26268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5 26269$as_echo "$ac_cv_lib_m_feenableexcept" >&6; } 26270if test "x$ac_cv_lib_m_feenableexcept" = xyes; then : 26271 have_feenableexcept=yes 26272$as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h 26273 26274fi 26275 26276 26277# At least for glibc, clock_gettime is in librt. But don't 26278# pull that in if it still doesn't give us the function we want. This 26279# test is copied from libgomp, and modified to not link in -lrt as 26280# libgfortran calls clock_gettime via a weak reference if it's found 26281# in librt. 26282if test "$ac_cv_func_clock_gettime" = no; then 26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 26284$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 26285if ${ac_cv_lib_rt_clock_gettime+:} false; then : 26286 $as_echo_n "(cached) " >&6 26287else 26288 ac_check_lib_save_LIBS=$LIBS 26289LIBS="-lrt $LIBS" 26290if test x$gcc_no_link = xyes; then 26291 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26292fi 26293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26294/* end confdefs.h. */ 26295 26296/* Override any GCC internal prototype to avoid an error. 26297 Use char because int might match the return type of a GCC 26298 builtin and then its argument prototype would still apply. */ 26299#ifdef __cplusplus 26300extern "C" 26301#endif 26302char clock_gettime (); 26303int 26304main () 26305{ 26306return clock_gettime (); 26307 ; 26308 return 0; 26309} 26310_ACEOF 26311if ac_fn_c_try_link "$LINENO"; then : 26312 ac_cv_lib_rt_clock_gettime=yes 26313else 26314 ac_cv_lib_rt_clock_gettime=no 26315fi 26316rm -f core conftest.err conftest.$ac_objext \ 26317 conftest$ac_exeext conftest.$ac_ext 26318LIBS=$ac_check_lib_save_LIBS 26319fi 26320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 26321$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 26322if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 26323 26324$as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h 26325 26326fi 26327 26328fi 26329 26330# Check for SysV fpsetmask 26331 26332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5 26333$as_echo_n "checking whether fpsetmask is present... " >&6; } 26334if ${libgfor_cv_have_fpsetmask+:} false; then : 26335 $as_echo_n "(cached) " >&6 26336else 26337 26338 if test x$gcc_no_link = xyes; then 26339 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26340fi 26341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26342/* end confdefs.h. */ 26343 26344#if HAVE_FLOATINGPOINT_H 26345# include <floatingpoint.h> 26346#endif /* HAVE_FLOATINGPOINT_H */ 26347#if HAVE_IEEEFP_H 26348# include <ieeefp.h> 26349#endif /* HAVE_IEEEFP_H */ 26350int 26351main () 26352{ 26353fpsetmask(0); 26354 ; 26355 return 0; 26356} 26357_ACEOF 26358if ac_fn_c_try_link "$LINENO"; then : 26359 eval "libgfor_cv_have_fpsetmask=yes" 26360else 26361 eval "libgfor_cv_have_fpsetmask=no" 26362fi 26363rm -f core conftest.err conftest.$ac_objext \ 26364 conftest$ac_exeext conftest.$ac_ext 26365 26366fi 26367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5 26368$as_echo "$libgfor_cv_have_fpsetmask" >&6; } 26369 if test x"$libgfor_cv_have_fpsetmask" = xyes; then 26370 have_fpsetmask=yes 26371 26372$as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h 26373 26374 fi 26375 26376ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" " 26377#ifdef HAVE_IEEEFP_H 26378#include <ieeefp.h> 26379#endif 26380#include <math.h> 26381 26382" 26383if test "x$ac_cv_type_fp_except" = xyes; then : 26384 26385cat >>confdefs.h <<_ACEOF 26386#define HAVE_FP_EXCEPT 1 26387_ACEOF 26388 26389 26390fi 26391ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" " 26392#ifdef HAVE_IEEEFP_H 26393#include <ieeefp.h> 26394#endif 26395#include <math.h> 26396 26397" 26398if test "x$ac_cv_type_fp_except_t" = xyes; then : 26399 26400cat >>confdefs.h <<_ACEOF 26401#define HAVE_FP_EXCEPT_T 1 26402_ACEOF 26403 26404 26405fi 26406 26407ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" " 26408#ifdef HAVE_IEEEFP_H 26409#include <ieeefp.h> 26410#endif 26411#include <math.h> 26412 26413" 26414if test "x$ac_cv_type_fp_rnd" = xyes; then : 26415 26416cat >>confdefs.h <<_ACEOF 26417#define HAVE_FP_RND 1 26418_ACEOF 26419 26420 26421fi 26422ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" " 26423#ifdef HAVE_IEEEFP_H 26424#include <ieeefp.h> 26425#endif 26426#include <math.h> 26427 26428" 26429if test "x$ac_cv_type_fp_rnd_t" = xyes; then : 26430 26431cat >>confdefs.h <<_ACEOF 26432#define HAVE_FP_RND_T 1 26433_ACEOF 26434 26435 26436fi 26437 26438 26439# Check whether we have fpsetsticky or fpresetsticky 26440ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky" 26441if test "x$ac_cv_func_fpsetsticky" = xyes; then : 26442 have_fpsetsticky=yes 26443$as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h 26444 26445fi 26446 26447ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky" 26448if test "x$ac_cv_func_fpresetsticky" = xyes; then : 26449 have_fpresetsticky=yes 26450$as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h 26451 26452fi 26453 26454 26455# Check for AIX fp_trap and fp_enable 26456ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap" 26457if test "x$ac_cv_func_fp_trap" = xyes; then : 26458 have_fp_trap=yes 26459$as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h 26460 26461fi 26462 26463ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable" 26464if test "x$ac_cv_func_fp_enable" = xyes; then : 26465 have_fp_enable=yes 26466$as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h 26467 26468fi 26469 26470 26471# Check if _SOFT_FLOAT is defined 26472 26473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SOFT_FLOAT defined" >&5 26474$as_echo_n "checking for _SOFT_FLOAT defined... " >&6; } 26475if ${ac_cv_defined__SOFT_FLOAT+:} false; then : 26476 $as_echo_n "(cached) " >&6 26477else 26478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26479/* end confdefs.h. */ 26480 26481int 26482main () 26483{ 26484 26485 #ifdef _SOFT_FLOAT 26486 int ok; 26487 #else 26488 choke me 26489 #endif 26490 26491 ; 26492 return 0; 26493} 26494_ACEOF 26495if ac_fn_c_try_compile "$LINENO"; then : 26496 ac_cv_defined__SOFT_FLOAT=yes 26497else 26498 ac_cv_defined__SOFT_FLOAT=no 26499fi 26500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26501fi 26502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__SOFT_FLOAT" >&5 26503$as_echo "$ac_cv_defined__SOFT_FLOAT" >&6; } 26504if test $ac_cv_defined__SOFT_FLOAT != "no"; then : 26505 have_soft_float=yes 26506fi 26507 26508# Runs configure.host to set up necessary host-dependent shell variables. 26509# We then display a message about it, and propagate them through the 26510# build chain. 26511. ${srcdir}/configure.host 26512{ $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5 26513$as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} 26514{ $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5 26515$as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;} 26516FPU_HOST_HEADER=config/${fpu_host}.h 26517 26518 26519# Whether we will build the IEEE modules 26520 if test x${ieee_support} = xyes; then 26521 IEEE_SUPPORT_TRUE= 26522 IEEE_SUPPORT_FALSE='#' 26523else 26524 IEEE_SUPPORT_TRUE='#' 26525 IEEE_SUPPORT_FALSE= 26526fi 26527 26528 26529 26530# Some targets require additional compiler options for IEEE compatibility. 26531IEEE_FLAGS="${ieee_flags}" 26532 26533 26534 26535# Check for POSIX getpwuid_r 26536# 26537# There are two versions of getpwuid_r, the POSIX one with 5 26538# arguments, and another one with 4 arguments used by at least HP-UX 26539# 10.2. 26540if test "$ac_cv_func_getpwuid_r" = "yes"; then 26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5 26542$as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; } 26543if ${libgfor_cv_posix_getpwuid_r+:} false; then : 26544 $as_echo_n "(cached) " >&6 26545else 26546 26547 if test x$gcc_no_link = xyes; then 26548 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26549fi 26550cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26551/* end confdefs.h. */ 26552 26553#include <stdio.h> 26554#include <sys/types.h> 26555#include <pwd.h> 26556int 26557main () 26558{ 26559 26560 getpwuid_r(0, NULL, NULL, 0, NULL); 26561 26562 ; 26563 return 0; 26564} 26565_ACEOF 26566if ac_fn_c_try_link "$LINENO"; then : 26567 libgfor_cv_posix_getpwuid_r="yes" 26568else 26569 libgfor_cv_posix_getpwuid_r="no" 26570fi 26571rm -f core conftest.err conftest.$ac_objext \ 26572 conftest$ac_exeext conftest.$ac_ext 26573fi 26574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5 26575$as_echo "$libgfor_cv_posix_getpwuid_r" >&6; } 26576fi 26577if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then 26578 26579$as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h 26580 26581fi 26582 26583 26584# Check out attribute support. 26585 26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 26587$as_echo_n "checking whether the target supports hidden visibility... " >&6; } 26588if ${libgfor_cv_have_attribute_visibility+:} false; then : 26589 $as_echo_n "(cached) " >&6 26590else 26591 26592 save_CFLAGS="$CFLAGS" 26593 CFLAGS="$CFLAGS -Werror" 26594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26595/* end confdefs.h. */ 26596void __attribute__((visibility("hidden"))) foo(void) { } 26597int 26598main () 26599{ 26600 26601 ; 26602 return 0; 26603} 26604_ACEOF 26605if ac_fn_c_try_compile "$LINENO"; then : 26606 libgfor_cv_have_attribute_visibility=yes 26607else 26608 libgfor_cv_have_attribute_visibility=no 26609fi 26610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26611 CFLAGS="$save_CFLAGS" 26612fi 26613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5 26614$as_echo "$libgfor_cv_have_attribute_visibility" >&6; } 26615 if test $libgfor_cv_have_attribute_visibility = yes; then 26616 26617$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h 26618 26619 fi 26620 26621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 26622$as_echo_n "checking whether the target supports symbol aliases... " >&6; } 26623if ${libgfor_cv_have_attribute_alias+:} false; then : 26624 $as_echo_n "(cached) " >&6 26625else 26626 26627 if test x$gcc_no_link = xyes; then 26628 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26629fi 26630cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26631/* end confdefs.h. */ 26632 26633void foo(void) { } 26634extern void bar(void) __attribute__((alias("foo"))); 26635int 26636main () 26637{ 26638bar(); 26639 ; 26640 return 0; 26641} 26642_ACEOF 26643if ac_fn_c_try_link "$LINENO"; then : 26644 libgfor_cv_have_attribute_alias=yes 26645else 26646 libgfor_cv_have_attribute_alias=no 26647fi 26648rm -f core conftest.err conftest.$ac_objext \ 26649 conftest$ac_exeext conftest.$ac_ext 26650fi 26651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5 26652$as_echo "$libgfor_cv_have_attribute_alias" >&6; } 26653 if test $libgfor_cv_have_attribute_alias = yes; then 26654 26655$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h 26656 26657 fi 26658 26659# Check out atomic builtins support. 26660 26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __atomic_fetch_add" >&5 26662$as_echo_n "checking whether the target supports __atomic_fetch_add... " >&6; } 26663if ${libgfor_cv_have_atomic_fetch_add+:} false; then : 26664 $as_echo_n "(cached) " >&6 26665else 26666 26667 if test x$gcc_no_link = xyes; then 26668 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26669fi 26670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26671/* end confdefs.h. */ 26672int foovar = 0; 26673int 26674main () 26675{ 26676 26677if (foovar <= 0) return __atomic_fetch_add (&foovar, 1, __ATOMIC_ACQ_REL); 26678if (foovar > 10) return __atomic_add_fetch (&foovar, -1, __ATOMIC_ACQ_REL); 26679 ; 26680 return 0; 26681} 26682_ACEOF 26683if ac_fn_c_try_link "$LINENO"; then : 26684 libgfor_cv_have_atomic_fetch_add=yes 26685else 26686 libgfor_cv_have_atomic_fetch_add=no 26687fi 26688rm -f core conftest.err conftest.$ac_objext \ 26689 conftest$ac_exeext conftest.$ac_ext 26690fi 26691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_atomic_fetch_add" >&5 26692$as_echo "$libgfor_cv_have_atomic_fetch_add" >&6; } 26693 if test $libgfor_cv_have_atomic_fetch_add = yes; then 26694 26695$as_echo "#define HAVE_ATOMIC_FETCH_ADD 1" >>confdefs.h 26696 26697 fi 26698 26699# Check out #pragma weak. 26700 26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5 26702$as_echo_n "checking whether pragma weak works... " >&6; } 26703if ${libgfor_cv_have_pragma_weak+:} false; then : 26704 $as_echo_n "(cached) " >&6 26705else 26706 26707 gfor_save_CFLAGS="$CFLAGS" 26708 CFLAGS="$CFLAGS -Wunknown-pragmas" 26709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26710/* end confdefs.h. */ 26711 26712void foo (void); 26713#pragma weak foo 26714 26715int 26716main () 26717{ 26718if (foo) foo (); 26719 ; 26720 return 0; 26721} 26722_ACEOF 26723if ac_fn_c_try_compile "$LINENO"; then : 26724 libgfor_cv_have_pragma_weak=yes 26725else 26726 libgfor_cv_have_pragma_weak=no 26727fi 26728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26729fi 26730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5 26731$as_echo "$libgfor_cv_have_pragma_weak" >&6; } 26732 if test $libgfor_cv_have_pragma_weak = yes; then 26733 26734$as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h 26735 26736 fi 26737 case "$host" in 26738 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | *-*-musl* ) 26739 26740$as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h 26741 26742 ;; 26743 esac 26744 26745# Check out weakref support. 26746 26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports weakref" >&5 26748$as_echo_n "checking whether the target supports weakref... " >&6; } 26749if ${libgfor_cv_have_weakref+:} false; then : 26750 $as_echo_n "(cached) " >&6 26751else 26752 26753 save_CFLAGS="$CFLAGS" 26754 CFLAGS="$CFLAGS -Wunknown-pragmas -Werror" 26755 if test x$gcc_no_link = xyes; then 26756 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 26757fi 26758cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26759/* end confdefs.h. */ 26760 26761static int mytoto (int) __attribute__((__weakref__("toto"))); 26762 26763int 26764main () 26765{ 26766return (mytoto != 0); 26767 ; 26768 return 0; 26769} 26770_ACEOF 26771if ac_fn_c_try_link "$LINENO"; then : 26772 libgfor_cv_have_weakref=yes 26773else 26774 libgfor_cv_have_weakref=no 26775fi 26776rm -f core conftest.err conftest.$ac_objext \ 26777 conftest$ac_exeext conftest.$ac_ext 26778 CFLAGS="$save_CFLAGS" 26779fi 26780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_weakref" >&5 26781$as_echo "$libgfor_cv_have_weakref" >&6; } 26782 if test $libgfor_cv_have_weakref = yes; then 26783 26784$as_echo "#define SUPPORTS_WEAKREF 1" >>confdefs.h 26785 26786 fi 26787 26788# Various other checks on target 26789 26790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5 26791$as_echo_n "checking whether the target can unlink an open file... " >&6; } 26792if ${libgfor_cv_have_unlink_open_file+:} false; then : 26793 $as_echo_n "(cached) " >&6 26794else 26795 26796 if test "$cross_compiling" = yes; then : 26797 26798case "${target}" in 26799 *mingw*) libgfor_cv_have_unlink_open_file=no ;; 26800 *) libgfor_cv_have_unlink_open_file=yes;; 26801esac 26802else 26803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26804/* end confdefs.h. */ 26805 26806#include <errno.h> 26807#include <fcntl.h> 26808#include <unistd.h> 26809#include <sys/stat.h> 26810 26811int main () 26812{ 26813 int fd; 26814 26815 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR); 26816 if (fd <= 0) 26817 return 0; 26818 if (unlink ("testfile") == -1) 26819 return 1; 26820 write (fd, "This is a test\n", 15); 26821 close (fd); 26822 26823 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT) 26824 return 0; 26825 else 26826 return 1; 26827} 26828_ACEOF 26829if ac_fn_c_try_run "$LINENO"; then : 26830 libgfor_cv_have_unlink_open_file=yes 26831else 26832 libgfor_cv_have_unlink_open_file=no 26833fi 26834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26835 conftest.$ac_objext conftest.beam conftest.$ac_ext 26836fi 26837 26838fi 26839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5 26840$as_echo "$libgfor_cv_have_unlink_open_file" >&6; } 26841if test x"$libgfor_cv_have_unlink_open_file" = xyes; then 26842 26843$as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h 26844 26845fi 26846 26847# Check whether line terminator is LF or CRLF 26848 26849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5 26850$as_echo_n "checking whether the target has CRLF as line terminator... " >&6; } 26851if ${libgfor_cv_have_crlf+:} false; then : 26852 $as_echo_n "(cached) " >&6 26853else 26854 26855 if test "$cross_compiling" = yes; then : 26856 26857case "${target}" in 26858 *mingw*) libgfor_cv_have_crlf=yes ;; 26859 *) libgfor_cv_have_crlf=no;; 26860esac 26861else 26862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26863/* end confdefs.h. */ 26864 26865/* This test program should exit with status 0 if system uses a CRLF as 26866 line terminator, and status 1 otherwise. 26867 Since it is used to check for mingw systems, and should return 0 in any 26868 other case, in case of a failure we will not use CRLF. */ 26869#include <sys/stat.h> 26870#include <stdlib.h> 26871#include <fcntl.h> 26872#include <stdio.h> 26873 26874int main () 26875{ 26876#ifndef O_BINARY 26877 exit(1); 26878#else 26879 int fd, bytes; 26880 char buff[5]; 26881 26882 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); 26883 if (fd < 0) 26884 exit(1); 26885 if (write (fd, "\n", 1) < 0) 26886 perror ("write"); 26887 26888 close (fd); 26889 26890 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) 26891 exit(1); 26892 bytes = read (fd, buff, 5); 26893 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') 26894 exit(0); 26895 else 26896 exit(1); 26897#endif 26898} 26899_ACEOF 26900if ac_fn_c_try_run "$LINENO"; then : 26901 libgfor_cv_have_crlf=yes 26902else 26903 libgfor_cv_have_crlf=no 26904fi 26905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26906 conftest.$ac_objext conftest.beam conftest.$ac_ext 26907fi 26908 26909fi 26910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5 26911$as_echo "$libgfor_cv_have_crlf" >&6; } 26912if test x"$libgfor_cv_have_crlf" = xyes; then 26913 26914$as_echo "#define HAVE_CRLF 1" >>confdefs.h 26915 26916fi 26917 26918# Check whether we support AVX extensions 26919 26920 ac_save_CFLAGS="$CFLAGS" 26921 CFLAGS="-O2 -mavx" 26922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26923/* end confdefs.h. */ 26924 26925 void _mm256_zeroall (void) 26926 { 26927 __builtin_ia32_vzeroall (); 26928 } 26929int 26930main () 26931{ 26932 26933 ; 26934 return 0; 26935} 26936_ACEOF 26937if ac_fn_c_try_compile "$LINENO"; then : 26938 26939$as_echo "#define HAVE_AVX 1" >>confdefs.h 26940 26941fi 26942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26943 CFLAGS="$ac_save_CFLAGS" 26944 26945 26946# Check wether we support AVX2 extensions 26947 26948 ac_save_CFLAGS="$CFLAGS" 26949 CFLAGS="-O2 -mavx2" 26950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26951/* end confdefs.h. */ 26952 26953 typedef long long __v4di __attribute__ ((__vector_size__ (32))); 26954 __v4di 26955 mm256_is32_andnotsi256 (__v4di __X, __v4di __Y) 26956 { 26957 return __builtin_ia32_andnotsi256 (__X, __Y); 26958 } 26959int 26960main () 26961{ 26962 26963 ; 26964 return 0; 26965} 26966_ACEOF 26967if ac_fn_c_try_compile "$LINENO"; then : 26968 26969$as_echo "#define HAVE_AVX2 1" >>confdefs.h 26970 26971fi 26972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26973 CFLAGS="$ac_save_CFLAGS" 26974 26975 26976# Check wether we support AVX512f extensions 26977 26978 ac_save_CFLAGS="$CFLAGS" 26979 CFLAGS="-O2 -mavx512f" 26980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26981/* end confdefs.h. */ 26982 26983 typedef double __m512d __attribute__ ((__vector_size__ (64))); 26984 __m512d _mm512_add (__m512d a) 26985 { 26986 __m512d b = __builtin_ia32_addpd512_mask (a, a, a, 1, 4); 26987 /* For -m64/-mx32 also verify that code will work even if 26988 the target uses call saved zmm16+ and needs to emit 26989 unwind info for them (e.g. on mingw). See PR79127. */ 26990#ifdef __x86_64__ 26991 asm volatile ("" : : : "zmm16", "zmm17", "zmm18", "zmm19"); 26992#endif 26993 return b; 26994 } 26995int 26996main () 26997{ 26998 26999 ; 27000 return 0; 27001} 27002_ACEOF 27003if ac_fn_c_try_compile "$LINENO"; then : 27004 27005$as_echo "#define HAVE_AVX512F 1" >>confdefs.h 27006 27007fi 27008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27009 CFLAGS="$ac_save_CFLAGS" 27010 27011 27012# Check for FMA3 extensions 27013 27014 ac_save_CFLAGS="$CFLAGS" 27015 CFLAGS="-O2 -mfma -mno-fma4" 27016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27017/* end confdefs.h. */ 27018 27019 typedef float __m128 __attribute__ ((__vector_size__ (16))); 27020 typedef float __v4sf __attribute__ ((__vector_size__ (16))); 27021 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) 27022 { 27023 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, 27024 (__v4sf)__B, 27025 (__v4sf)__C); 27026 } 27027int 27028main () 27029{ 27030 27031 ; 27032 return 0; 27033} 27034_ACEOF 27035if ac_fn_c_try_compile "$LINENO"; then : 27036 27037$as_echo "#define HAVE_FMA3 1" >>confdefs.h 27038 27039fi 27040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27041 CFLAGS="$ac_save_CFLAGS" 27042 27043 27044# Check for FMA4 extensions 27045 27046 ac_save_CFLAGS="$CFLAGS" 27047 CFLAGS="-O2 -mfma4 -mno-fma" 27048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27049/* end confdefs.h. */ 27050 27051 typedef float __m128 __attribute__ ((__vector_size__ (16))); 27052 typedef float __v4sf __attribute__ ((__vector_size__ (16))); 27053 __m128 _mm_macc_ps(__m128 __A, __m128 __B, __m128 __C) 27054 { 27055 return (__m128) __builtin_ia32_vfmaddps ((__v4sf)__A, 27056 (__v4sf)__B, 27057 (__v4sf)__C); 27058 } 27059int 27060main () 27061{ 27062 27063 ; 27064 return 0; 27065} 27066_ACEOF 27067if ac_fn_c_try_compile "$LINENO"; then : 27068 27069$as_echo "#define HAVE_FMA4 1" >>confdefs.h 27070 27071fi 27072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27073 CFLAGS="$ac_save_CFLAGS" 27074 27075 27076# Check if AVX128 works 27077 27078 ac_save_CFLAGS="$CFLAGS" 27079 CFLAGS="-O2 -mavx -mprefer-avx128" 27080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27081/* end confdefs.h. */ 27082 27083 void foo() 27084 { 27085 } 27086int 27087main () 27088{ 27089 27090 ; 27091 return 0; 27092} 27093_ACEOF 27094if ac_fn_c_try_compile "$LINENO"; then : 27095 27096$as_echo "#define HAVE_AVX128 1" >>confdefs.h 27097 27098 if true; then 27099 HAVE_AVX128_TRUE= 27100 HAVE_AVX128_FALSE='#' 27101else 27102 HAVE_AVX128_TRUE='#' 27103 HAVE_AVX128_FALSE= 27104fi 27105 27106else 27107 if false; then 27108 HAVE_AVX128_TRUE= 27109 HAVE_AVX128_FALSE='#' 27110else 27111 HAVE_AVX128_TRUE='#' 27112 HAVE_AVX128_FALSE= 27113fi 27114 27115fi 27116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27117 CFLAGS="$ac_save_CFLAGS" 27118 27119 27120# Determine what GCC version number to use in filesystem paths. 27121 27122 get_gcc_base_ver="cat" 27123 27124# Check whether --with-gcc-major-version-only was given. 27125if test "${with_gcc_major_version_only+set}" = set; then : 27126 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 27127 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 27128 fi 27129 27130fi 27131 27132 27133 27134 27135cat >confcache <<\_ACEOF 27136# This file is a shell script that caches the results of configure 27137# tests run on this system so they can be shared between configure 27138# scripts and configure runs, see configure's option --config-cache. 27139# It is not useful on other systems. If it contains results you don't 27140# want to keep, you may remove or edit it. 27141# 27142# config.status only pays attention to the cache file if you give it 27143# the --recheck option to rerun configure. 27144# 27145# `ac_cv_env_foo' variables (set or unset) will be overridden when 27146# loading this file, other *unset* `ac_cv_foo' will be assigned the 27147# following values. 27148 27149_ACEOF 27150 27151# The following way of writing the cache mishandles newlines in values, 27152# but we know of no workaround that is simple, portable, and efficient. 27153# So, we kill variables containing newlines. 27154# Ultrix sh set writes to stderr and can't be redirected directly, 27155# and sets the high bit in the cache file unless we assign to the vars. 27156( 27157 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27158 eval ac_val=\$$ac_var 27159 case $ac_val in #( 27160 *${as_nl}*) 27161 case $ac_var in #( 27162 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 27163$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 27164 esac 27165 case $ac_var in #( 27166 _ | IFS | as_nl) ;; #( 27167 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 27168 *) { eval $ac_var=; unset $ac_var;} ;; 27169 esac ;; 27170 esac 27171 done 27172 27173 (set) 2>&1 | 27174 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27175 *${as_nl}ac_space=\ *) 27176 # `set' does not quote correctly, so add quotes: double-quote 27177 # substitution turns \\\\ into \\, and sed turns \\ into \. 27178 sed -n \ 27179 "s/'/'\\\\''/g; 27180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27181 ;; #( 27182 *) 27183 # `set' quotes correctly as required by POSIX, so do not add quotes. 27184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27185 ;; 27186 esac | 27187 sort 27188) | 27189 sed ' 27190 /^ac_cv_env_/b end 27191 t clear 27192 :clear 27193 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27194 t end 27195 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27196 :end' >>confcache 27197if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27198 if test -w "$cache_file"; then 27199 if test "x$cache_file" != "x/dev/null"; then 27200 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 27201$as_echo "$as_me: updating cache $cache_file" >&6;} 27202 if test ! -f "$cache_file" || test -h "$cache_file"; then 27203 cat confcache >"$cache_file" 27204 else 27205 case $cache_file in #( 27206 */* | ?:*) 27207 mv -f confcache "$cache_file"$$ && 27208 mv -f "$cache_file"$$ "$cache_file" ;; #( 27209 *) 27210 mv -f confcache "$cache_file" ;; 27211 esac 27212 fi 27213 fi 27214 else 27215 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 27216$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27217 fi 27218fi 27219rm -f confcache 27220 27221if test ${multilib} = yes; then 27222 multilib_arg="--enable-multilib" 27223else 27224 multilib_arg= 27225fi 27226 27227# Write our Makefile and spec file. 27228ac_config_files="$ac_config_files Makefile libgfortran.spec" 27229 27230cat >confcache <<\_ACEOF 27231# This file is a shell script that caches the results of configure 27232# tests run on this system so they can be shared between configure 27233# scripts and configure runs, see configure's option --config-cache. 27234# It is not useful on other systems. If it contains results you don't 27235# want to keep, you may remove or edit it. 27236# 27237# config.status only pays attention to the cache file if you give it 27238# the --recheck option to rerun configure. 27239# 27240# `ac_cv_env_foo' variables (set or unset) will be overridden when 27241# loading this file, other *unset* `ac_cv_foo' will be assigned the 27242# following values. 27243 27244_ACEOF 27245 27246# The following way of writing the cache mishandles newlines in values, 27247# but we know of no workaround that is simple, portable, and efficient. 27248# So, we kill variables containing newlines. 27249# Ultrix sh set writes to stderr and can't be redirected directly, 27250# and sets the high bit in the cache file unless we assign to the vars. 27251( 27252 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 27253 eval ac_val=\$$ac_var 27254 case $ac_val in #( 27255 *${as_nl}*) 27256 case $ac_var in #( 27257 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 27258$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 27259 esac 27260 case $ac_var in #( 27261 _ | IFS | as_nl) ;; #( 27262 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 27263 *) { eval $ac_var=; unset $ac_var;} ;; 27264 esac ;; 27265 esac 27266 done 27267 27268 (set) 2>&1 | 27269 case $as_nl`(ac_space=' '; set) 2>&1` in #( 27270 *${as_nl}ac_space=\ *) 27271 # `set' does not quote correctly, so add quotes: double-quote 27272 # substitution turns \\\\ into \\, and sed turns \\ into \. 27273 sed -n \ 27274 "s/'/'\\\\''/g; 27275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 27276 ;; #( 27277 *) 27278 # `set' quotes correctly as required by POSIX, so do not add quotes. 27279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 27280 ;; 27281 esac | 27282 sort 27283) | 27284 sed ' 27285 /^ac_cv_env_/b end 27286 t clear 27287 :clear 27288 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 27289 t end 27290 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 27291 :end' >>confcache 27292if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 27293 if test -w "$cache_file"; then 27294 if test "x$cache_file" != "x/dev/null"; then 27295 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 27296$as_echo "$as_me: updating cache $cache_file" >&6;} 27297 if test ! -f "$cache_file" || test -h "$cache_file"; then 27298 cat confcache >"$cache_file" 27299 else 27300 case $cache_file in #( 27301 */* | ?:*) 27302 mv -f confcache "$cache_file"$$ && 27303 mv -f "$cache_file"$$ "$cache_file" ;; #( 27304 *) 27305 mv -f confcache "$cache_file" ;; 27306 esac 27307 fi 27308 fi 27309 else 27310 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 27311$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 27312 fi 27313fi 27314rm -f confcache 27315 27316test "x$prefix" = xNONE && prefix=$ac_default_prefix 27317# Let make expand exec_prefix. 27318test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 27319 27320DEFS=-DHAVE_CONFIG_H 27321 27322ac_libobjs= 27323ac_ltlibobjs= 27324U= 27325for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 27326 # 1. Remove the extension, and $U if already installed. 27327 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 27328 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 27329 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 27330 # will be set to the directory where LIBOBJS objects are built. 27331 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 27332 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 27333done 27334LIBOBJS=$ac_libobjs 27335 27336LTLIBOBJS=$ac_ltlibobjs 27337 27338 27339if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then 27340 as_fn_error $? "conditional \"onestep\" was never defined. 27341Usually this means the macro was only invoked conditionally." "$LINENO" 5 27342fi 27343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 27344$as_echo_n "checking that generated files are newer than configure... " >&6; } 27345 if test -n "$am_sleep_pid"; then 27346 # Hide warnings about reused PIDs. 27347 wait $am_sleep_pid 2>/dev/null 27348 fi 27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 27350$as_echo "done" >&6; } 27351 if test -n "$EXEEXT"; then 27352 am__EXEEXT_TRUE= 27353 am__EXEEXT_FALSE='#' 27354else 27355 am__EXEEXT_TRUE='#' 27356 am__EXEEXT_FALSE= 27357fi 27358 27359if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 27360 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 27361Usually this means the macro was only invoked conditionally." "$LINENO" 5 27362fi 27363if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 27364 as_fn_error $? "conditional \"AMDEP\" was never defined. 27365Usually this means the macro was only invoked conditionally." "$LINENO" 5 27366fi 27367if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27368 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 27369Usually this means the macro was only invoked conditionally." "$LINENO" 5 27370fi 27371if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 27372 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 27373Usually this means the macro was only invoked conditionally." "$LINENO" 5 27374fi 27375if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then 27376 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER\" was never defined. 27377Usually this means the macro was only invoked conditionally." "$LINENO" 5 27378fi 27379if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then 27380 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined. 27381Usually this means the macro was only invoked conditionally." "$LINENO" 5 27382fi 27383if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then 27384 as_fn_error $? "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined. 27385Usually this means the macro was only invoked conditionally." "$LINENO" 5 27386fi 27387if test -z "${LIBGFOR_MINIMAL_TRUE}" && test -z "${LIBGFOR_MINIMAL_FALSE}"; then 27388 as_fn_error $? "conditional \"LIBGFOR_MINIMAL\" was never defined. 27389Usually this means the macro was only invoked conditionally." "$LINENO" 5 27390fi 27391if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then 27392 as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined. 27393Usually this means the macro was only invoked conditionally." "$LINENO" 5 27394fi 27395if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then 27396 as_fn_error $? "conditional \"LIBGFOR_BUILD_QUAD\" was never defined. 27397Usually this means the macro was only invoked conditionally." "$LINENO" 5 27398fi 27399if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then 27400 as_fn_error $? "conditional \"IEEE_SUPPORT\" was never defined. 27401Usually this means the macro was only invoked conditionally." "$LINENO" 5 27402fi 27403if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then 27404 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. 27405Usually this means the macro was only invoked conditionally." "$LINENO" 5 27406fi 27407if test -z "${HAVE_AVX128_TRUE}" && test -z "${HAVE_AVX128_FALSE}"; then 27408 as_fn_error $? "conditional \"HAVE_AVX128\" was never defined. 27409Usually this means the macro was only invoked conditionally." "$LINENO" 5 27410fi 27411 27412: "${CONFIG_STATUS=./config.status}" 27413ac_write_fail=0 27414ac_clean_files_save=$ac_clean_files 27415ac_clean_files="$ac_clean_files $CONFIG_STATUS" 27416{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 27417$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 27418as_write_fail=0 27419cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 27420#! $SHELL 27421# Generated by $as_me. 27422# Run this file to recreate the current configuration. 27423# Compiler output produced by configure, useful for debugging 27424# configure, is in config.log if it exists. 27425 27426debug=false 27427ac_cs_recheck=false 27428ac_cs_silent=false 27429 27430SHELL=\${CONFIG_SHELL-$SHELL} 27431export SHELL 27432_ASEOF 27433cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 27434## -------------------- ## 27435## M4sh Initialization. ## 27436## -------------------- ## 27437 27438# Be more Bourne compatible 27439DUALCASE=1; export DUALCASE # for MKS sh 27440if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 27441 emulate sh 27442 NULLCMD=: 27443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 27444 # is contrary to our usage. Disable this feature. 27445 alias -g '${1+"$@"}'='"$@"' 27446 setopt NO_GLOB_SUBST 27447else 27448 case `(set -o) 2>/dev/null` in #( 27449 *posix*) : 27450 set -o posix ;; #( 27451 *) : 27452 ;; 27453esac 27454fi 27455 27456 27457as_nl=' 27458' 27459export as_nl 27460# Printing a long string crashes Solaris 7 /usr/bin/printf. 27461as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 27462as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 27463as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 27464# Prefer a ksh shell builtin over an external printf program on Solaris, 27465# but without wasting forks for bash or zsh. 27466if test -z "$BASH_VERSION$ZSH_VERSION" \ 27467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 27468 as_echo='print -r --' 27469 as_echo_n='print -rn --' 27470elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 27471 as_echo='printf %s\n' 27472 as_echo_n='printf %s' 27473else 27474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 27475 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 27476 as_echo_n='/usr/ucb/echo -n' 27477 else 27478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 27479 as_echo_n_body='eval 27480 arg=$1; 27481 case $arg in #( 27482 *"$as_nl"*) 27483 expr "X$arg" : "X\\(.*\\)$as_nl"; 27484 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 27485 esac; 27486 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 27487 ' 27488 export as_echo_n_body 27489 as_echo_n='sh -c $as_echo_n_body as_echo' 27490 fi 27491 export as_echo_body 27492 as_echo='sh -c $as_echo_body as_echo' 27493fi 27494 27495# The user is always right. 27496if test "${PATH_SEPARATOR+set}" != set; then 27497 PATH_SEPARATOR=: 27498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 27499 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 27500 PATH_SEPARATOR=';' 27501 } 27502fi 27503 27504 27505# IFS 27506# We need space, tab and new line, in precisely that order. Quoting is 27507# there to prevent editors from complaining about space-tab. 27508# (If _AS_PATH_WALK were called with IFS unset, it would disable word 27509# splitting by setting IFS to empty value.) 27510IFS=" "" $as_nl" 27511 27512# Find who we are. Look in the path if we contain no directory separator. 27513as_myself= 27514case $0 in #(( 27515 *[\\/]* ) as_myself=$0 ;; 27516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27517for as_dir in $PATH 27518do 27519 IFS=$as_save_IFS 27520 test -z "$as_dir" && as_dir=. 27521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 27522 done 27523IFS=$as_save_IFS 27524 27525 ;; 27526esac 27527# We did not find ourselves, most probably we were run as `sh COMMAND' 27528# in which case we are not to be found in the path. 27529if test "x$as_myself" = x; then 27530 as_myself=$0 27531fi 27532if test ! -f "$as_myself"; then 27533 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 27534 exit 1 27535fi 27536 27537# Unset variables that we do not need and which cause bugs (e.g. in 27538# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 27539# suppresses any "Segmentation fault" message there. '((' could 27540# trigger a bug in pdksh 5.2.14. 27541for as_var in BASH_ENV ENV MAIL MAILPATH 27542do eval test x\${$as_var+set} = xset \ 27543 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 27544done 27545PS1='$ ' 27546PS2='> ' 27547PS4='+ ' 27548 27549# NLS nuisances. 27550LC_ALL=C 27551export LC_ALL 27552LANGUAGE=C 27553export LANGUAGE 27554 27555# CDPATH. 27556(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 27557 27558 27559# as_fn_error STATUS ERROR [LINENO LOG_FD] 27560# ---------------------------------------- 27561# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 27562# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 27563# script with STATUS, using 1 if that was 0. 27564as_fn_error () 27565{ 27566 as_status=$1; test $as_status -eq 0 && as_status=1 27567 if test "$4"; then 27568 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 27569 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 27570 fi 27571 $as_echo "$as_me: error: $2" >&2 27572 as_fn_exit $as_status 27573} # as_fn_error 27574 27575 27576# as_fn_set_status STATUS 27577# ----------------------- 27578# Set $? to STATUS, without forking. 27579as_fn_set_status () 27580{ 27581 return $1 27582} # as_fn_set_status 27583 27584# as_fn_exit STATUS 27585# ----------------- 27586# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 27587as_fn_exit () 27588{ 27589 set +e 27590 as_fn_set_status $1 27591 exit $1 27592} # as_fn_exit 27593 27594# as_fn_unset VAR 27595# --------------- 27596# Portably unset VAR. 27597as_fn_unset () 27598{ 27599 { eval $1=; unset $1;} 27600} 27601as_unset=as_fn_unset 27602# as_fn_append VAR VALUE 27603# ---------------------- 27604# Append the text in VALUE to the end of the definition contained in VAR. Take 27605# advantage of any shell optimizations that allow amortized linear growth over 27606# repeated appends, instead of the typical quadratic growth present in naive 27607# implementations. 27608if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 27609 eval 'as_fn_append () 27610 { 27611 eval $1+=\$2 27612 }' 27613else 27614 as_fn_append () 27615 { 27616 eval $1=\$$1\$2 27617 } 27618fi # as_fn_append 27619 27620# as_fn_arith ARG... 27621# ------------------ 27622# Perform arithmetic evaluation on the ARGs, and store the result in the 27623# global $as_val. Take advantage of shells that can avoid forks. The arguments 27624# must be portable across $(()) and expr. 27625if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 27626 eval 'as_fn_arith () 27627 { 27628 as_val=$(( $* )) 27629 }' 27630else 27631 as_fn_arith () 27632 { 27633 as_val=`expr "$@" || test $? -eq 1` 27634 } 27635fi # as_fn_arith 27636 27637 27638if expr a : '\(a\)' >/dev/null 2>&1 && 27639 test "X`expr 00001 : '.*\(...\)'`" = X001; then 27640 as_expr=expr 27641else 27642 as_expr=false 27643fi 27644 27645if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 27646 as_basename=basename 27647else 27648 as_basename=false 27649fi 27650 27651if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 27652 as_dirname=dirname 27653else 27654 as_dirname=false 27655fi 27656 27657as_me=`$as_basename -- "$0" || 27658$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 27659 X"$0" : 'X\(//\)$' \| \ 27660 X"$0" : 'X\(/\)' \| . 2>/dev/null || 27661$as_echo X/"$0" | 27662 sed '/^.*\/\([^/][^/]*\)\/*$/{ 27663 s//\1/ 27664 q 27665 } 27666 /^X\/\(\/\/\)$/{ 27667 s//\1/ 27668 q 27669 } 27670 /^X\/\(\/\).*/{ 27671 s//\1/ 27672 q 27673 } 27674 s/.*/./; q'` 27675 27676# Avoid depending upon Character Ranges. 27677as_cr_letters='abcdefghijklmnopqrstuvwxyz' 27678as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 27679as_cr_Letters=$as_cr_letters$as_cr_LETTERS 27680as_cr_digits='0123456789' 27681as_cr_alnum=$as_cr_Letters$as_cr_digits 27682 27683ECHO_C= ECHO_N= ECHO_T= 27684case `echo -n x` in #((((( 27685-n*) 27686 case `echo 'xy\c'` in 27687 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 27688 xy) ECHO_C='\c';; 27689 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 27690 ECHO_T=' ';; 27691 esac;; 27692*) 27693 ECHO_N='-n';; 27694esac 27695 27696rm -f conf$$ conf$$.exe conf$$.file 27697if test -d conf$$.dir; then 27698 rm -f conf$$.dir/conf$$.file 27699else 27700 rm -f conf$$.dir 27701 mkdir conf$$.dir 2>/dev/null 27702fi 27703if (echo >conf$$.file) 2>/dev/null; then 27704 if ln -s conf$$.file conf$$ 2>/dev/null; then 27705 as_ln_s='ln -s' 27706 # ... but there are two gotchas: 27707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 27708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 27709 # In both cases, we have to default to `cp -pR'. 27710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 27711 as_ln_s='cp -pR' 27712 elif ln conf$$.file conf$$ 2>/dev/null; then 27713 as_ln_s=ln 27714 else 27715 as_ln_s='cp -pR' 27716 fi 27717else 27718 as_ln_s='cp -pR' 27719fi 27720rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 27721rmdir conf$$.dir 2>/dev/null 27722 27723 27724# as_fn_mkdir_p 27725# ------------- 27726# Create "$as_dir" as a directory, including parents if necessary. 27727as_fn_mkdir_p () 27728{ 27729 27730 case $as_dir in #( 27731 -*) as_dir=./$as_dir;; 27732 esac 27733 test -d "$as_dir" || eval $as_mkdir_p || { 27734 as_dirs= 27735 while :; do 27736 case $as_dir in #( 27737 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 27738 *) as_qdir=$as_dir;; 27739 esac 27740 as_dirs="'$as_qdir' $as_dirs" 27741 as_dir=`$as_dirname -- "$as_dir" || 27742$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 27743 X"$as_dir" : 'X\(//\)[^/]' \| \ 27744 X"$as_dir" : 'X\(//\)$' \| \ 27745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 27746$as_echo X"$as_dir" | 27747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 27748 s//\1/ 27749 q 27750 } 27751 /^X\(\/\/\)[^/].*/{ 27752 s//\1/ 27753 q 27754 } 27755 /^X\(\/\/\)$/{ 27756 s//\1/ 27757 q 27758 } 27759 /^X\(\/\).*/{ 27760 s//\1/ 27761 q 27762 } 27763 s/.*/./; q'` 27764 test -d "$as_dir" && break 27765 done 27766 test -z "$as_dirs" || eval "mkdir $as_dirs" 27767 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 27768 27769 27770} # as_fn_mkdir_p 27771if mkdir -p . 2>/dev/null; then 27772 as_mkdir_p='mkdir -p "$as_dir"' 27773else 27774 test -d ./-p && rmdir ./-p 27775 as_mkdir_p=false 27776fi 27777 27778 27779# as_fn_executable_p FILE 27780# ----------------------- 27781# Test if FILE is an executable regular file. 27782as_fn_executable_p () 27783{ 27784 test -f "$1" && test -x "$1" 27785} # as_fn_executable_p 27786as_test_x='test -x' 27787as_executable_p=as_fn_executable_p 27788 27789# Sed expression to map a string onto a valid CPP name. 27790as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 27791 27792# Sed expression to map a string onto a valid variable name. 27793as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27794 27795 27796exec 6>&1 27797## ----------------------------------- ## 27798## Main body of $CONFIG_STATUS script. ## 27799## ----------------------------------- ## 27800_ASEOF 27801test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 27802 27803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27804# Save the log message, to keep $0 and so on meaningful, and to 27805# report actual input values of CONFIG_FILES etc. instead of their 27806# values after options handling. 27807ac_log=" 27808This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was 27809generated by GNU Autoconf 2.69. Invocation command line was 27810 27811 CONFIG_FILES = $CONFIG_FILES 27812 CONFIG_HEADERS = $CONFIG_HEADERS 27813 CONFIG_LINKS = $CONFIG_LINKS 27814 CONFIG_COMMANDS = $CONFIG_COMMANDS 27815 $ $0 $@ 27816 27817on `(hostname || uname -n) 2>/dev/null | sed 1q` 27818" 27819 27820_ACEOF 27821 27822case $ac_config_files in *" 27823"*) set x $ac_config_files; shift; ac_config_files=$*;; 27824esac 27825 27826case $ac_config_headers in *" 27827"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 27828esac 27829 27830 27831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27832# Files that config.status was made for. 27833config_files="$ac_config_files" 27834config_headers="$ac_config_headers" 27835config_commands="$ac_config_commands" 27836 27837_ACEOF 27838 27839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27840ac_cs_usage="\ 27841\`$as_me' instantiates files and other configuration actions 27842from templates according to the current configuration. Unless the files 27843and actions are specified as TAGs, all are instantiated by default. 27844 27845Usage: $0 [OPTION]... [TAG]... 27846 27847 -h, --help print this help, then exit 27848 -V, --version print version number and configuration settings, then exit 27849 --config print configuration, then exit 27850 -q, --quiet, --silent 27851 do not print progress messages 27852 -d, --debug don't remove temporary files 27853 --recheck update $as_me by reconfiguring in the same conditions 27854 --file=FILE[:TEMPLATE] 27855 instantiate the configuration file FILE 27856 --header=FILE[:TEMPLATE] 27857 instantiate the configuration header FILE 27858 27859Configuration files: 27860$config_files 27861 27862Configuration headers: 27863$config_headers 27864 27865Configuration commands: 27866$config_commands 27867 27868Report bugs to the package provider. 27869GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>. 27870General help using GNU software: <http://www.gnu.org/gethelp/>." 27871 27872_ACEOF 27873cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27874ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 27875ac_cs_version="\\ 27876GNU Fortran Runtime Library config.status 0.3 27877configured by $0, generated by GNU Autoconf 2.69, 27878 with options \\"\$ac_cs_config\\" 27879 27880Copyright (C) 2012 Free Software Foundation, Inc. 27881This config.status script is free software; the Free Software Foundation 27882gives unlimited permission to copy, distribute and modify it." 27883 27884ac_pwd='$ac_pwd' 27885srcdir='$srcdir' 27886INSTALL='$INSTALL' 27887MKDIR_P='$MKDIR_P' 27888AWK='$AWK' 27889test -n "\$AWK" || AWK=awk 27890_ACEOF 27891 27892cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27893# The default lists apply if the user does not specify any file. 27894ac_need_defaults=: 27895while test $# != 0 27896do 27897 case $1 in 27898 --*=?*) 27899 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27900 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 27901 ac_shift=: 27902 ;; 27903 --*=) 27904 ac_option=`expr "X$1" : 'X\([^=]*\)='` 27905 ac_optarg= 27906 ac_shift=: 27907 ;; 27908 *) 27909 ac_option=$1 27910 ac_optarg=$2 27911 ac_shift=shift 27912 ;; 27913 esac 27914 27915 case $ac_option in 27916 # Handling of the options. 27917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27918 ac_cs_recheck=: ;; 27919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27920 $as_echo "$ac_cs_version"; exit ;; 27921 --config | --confi | --conf | --con | --co | --c ) 27922 $as_echo "$ac_cs_config"; exit ;; 27923 --debug | --debu | --deb | --de | --d | -d ) 27924 debug=: ;; 27925 --file | --fil | --fi | --f ) 27926 $ac_shift 27927 case $ac_optarg in 27928 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27929 '') as_fn_error $? "missing file argument" ;; 27930 esac 27931 as_fn_append CONFIG_FILES " '$ac_optarg'" 27932 ac_need_defaults=false;; 27933 --header | --heade | --head | --hea ) 27934 $ac_shift 27935 case $ac_optarg in 27936 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27937 esac 27938 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 27939 ac_need_defaults=false;; 27940 --he | --h) 27941 # Conflict between --help and --header 27942 as_fn_error $? "ambiguous option: \`$1' 27943Try \`$0 --help' for more information.";; 27944 --help | --hel | -h ) 27945 $as_echo "$ac_cs_usage"; exit ;; 27946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27947 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27948 ac_cs_silent=: ;; 27949 27950 # This is an error. 27951 -*) as_fn_error $? "unrecognized option: \`$1' 27952Try \`$0 --help' for more information." ;; 27953 27954 *) as_fn_append ac_config_targets " $1" 27955 ac_need_defaults=false ;; 27956 27957 esac 27958 shift 27959done 27960 27961ac_configure_extra_args= 27962 27963if $ac_cs_silent; then 27964 exec 6>/dev/null 27965 ac_configure_extra_args="$ac_configure_extra_args --silent" 27966fi 27967 27968_ACEOF 27969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27970if \$ac_cs_recheck; then 27971 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 27972 shift 27973 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 27974 CONFIG_SHELL='$SHELL' 27975 export CONFIG_SHELL 27976 exec "\$@" 27977fi 27978 27979_ACEOF 27980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27981exec 5>>config.log 27982{ 27983 echo 27984 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 27985## Running $as_me. ## 27986_ASBOX 27987 $as_echo "$ac_log" 27988} >&5 27989 27990_ACEOF 27991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27992# 27993# INIT-COMMANDS 27994# 27995 27996srcdir="$srcdir" 27997host="$host" 27998target="$target" 27999with_multisubdir="$with_multisubdir" 28000with_multisrctop="$with_multisrctop" 28001with_target_subdir="$with_target_subdir" 28002ac_configure_args="${multilib_arg} ${ac_configure_args}" 28003multi_basedir="$multi_basedir" 28004CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 28005CC="$CC" 28006CXX="$CXX" 28007GFORTRAN="$GFORTRAN" 28008GDC="$GDC" 28009AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 28010 28011 28012# The HP-UX ksh and POSIX shell print the target directory to stdout 28013# if CDPATH is set. 28014(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 28015 28016sed_quote_subst='$sed_quote_subst' 28017double_quote_subst='$double_quote_subst' 28018delay_variable_subst='$delay_variable_subst' 28019SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 28020Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 28021GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 28022EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 28023FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 28024SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 28025ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 28026LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 28027macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 28028macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 28029enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 28030enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 28031pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 28032enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 28033host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 28034host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 28035host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 28036build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 28037build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 28038build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 28039NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 28040LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 28041max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 28042ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 28043exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 28044lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 28045lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 28046lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 28047reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 28048reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 28049OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 28050deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 28051file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 28052AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 28053AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 28054STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 28055RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 28056old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 28057old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 28058old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 28059lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 28060CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 28061CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 28062compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 28063GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 28064lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 28065lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 28066lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 28067lt_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"`' 28068objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 28069MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 28070lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 28071lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 28072lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 28073lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 28074lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 28075need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 28076DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 28077NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 28078LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 28079OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 28080OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 28081libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 28082shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 28083extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 28084archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 28085enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 28086export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 28087whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 28088compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 28089old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 28090old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 28091archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 28092archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 28093module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 28094module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 28095with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 28096allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 28097no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 28098hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 28099hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 28100hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 28101hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 28102hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 28103hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 28104hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 28105hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 28106inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 28107link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 28108fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 28109always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 28110export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 28111exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 28112include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 28113prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 28114file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 28115variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 28116need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 28117need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 28118version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 28119runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 28120shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 28121shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 28122libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 28123library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 28124soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 28125install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 28126postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 28127postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 28128finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 28129finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 28130hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 28131sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 28132sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 28133hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 28134enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 28135enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 28136enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 28137old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 28138striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 28139compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 28140predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 28141postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 28142predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 28143postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 28144compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 28145LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 28146reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 28147reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 28148old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 28149compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 28150GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 28151lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 28152lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 28153lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 28154lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 28155lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 28156archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 28157enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 28158export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 28159whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 28160compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 28161old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 28162old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 28163archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 28164archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 28165module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 28166module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 28167with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 28168allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 28169no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 28170hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 28171hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`' 28172hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 28173hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 28174hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 28175hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 28176hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 28177hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 28178inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 28179link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 28180fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`' 28181always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 28182export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 28183exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 28184include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 28185prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 28186file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 28187hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 28188compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 28189predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 28190postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 28191predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 28192postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 28193compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 28194 28195LTCC='$LTCC' 28196LTCFLAGS='$LTCFLAGS' 28197compiler='$compiler_DEFAULT' 28198 28199# A function that is used when there is no print builtin or printf. 28200func_fallback_echo () 28201{ 28202 eval 'cat <<_LTECHO_EOF 28203\$1 28204_LTECHO_EOF' 28205} 28206 28207# Quote evaled strings. 28208for var in SED \ 28209GREP \ 28210EGREP \ 28211FGREP \ 28212SHELL \ 28213ECHO \ 28214LD \ 28215NM \ 28216LN_S \ 28217lt_SP2NL \ 28218lt_NL2SP \ 28219reload_flag \ 28220OBJDUMP \ 28221deplibs_check_method \ 28222file_magic_cmd \ 28223AR \ 28224AR_FLAGS \ 28225STRIP \ 28226RANLIB \ 28227CC \ 28228CFLAGS \ 28229compiler \ 28230lt_cv_sys_global_symbol_pipe \ 28231lt_cv_sys_global_symbol_to_cdecl \ 28232lt_cv_sys_global_symbol_to_c_name_address \ 28233lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 28234lt_prog_compiler_no_builtin_flag \ 28235lt_prog_compiler_wl \ 28236lt_prog_compiler_pic \ 28237lt_prog_compiler_static \ 28238lt_cv_prog_compiler_c_o \ 28239need_locks \ 28240DSYMUTIL \ 28241NMEDIT \ 28242LIPO \ 28243OTOOL \ 28244OTOOL64 \ 28245shrext_cmds \ 28246export_dynamic_flag_spec \ 28247whole_archive_flag_spec \ 28248compiler_needs_object \ 28249with_gnu_ld \ 28250allow_undefined_flag \ 28251no_undefined_flag \ 28252hardcode_libdir_flag_spec \ 28253hardcode_libdir_flag_spec_ld \ 28254hardcode_libdir_separator \ 28255fix_srcfile_path \ 28256exclude_expsyms \ 28257include_expsyms \ 28258file_list_spec \ 28259variables_saved_for_relink \ 28260libname_spec \ 28261library_names_spec \ 28262soname_spec \ 28263install_override_mode \ 28264finish_eval \ 28265old_striplib \ 28266striplib \ 28267compiler_lib_search_dirs \ 28268predep_objects \ 28269postdep_objects \ 28270predeps \ 28271postdeps \ 28272compiler_lib_search_path \ 28273LD_FC \ 28274reload_flag_FC \ 28275compiler_FC \ 28276lt_prog_compiler_no_builtin_flag_FC \ 28277lt_prog_compiler_wl_FC \ 28278lt_prog_compiler_pic_FC \ 28279lt_prog_compiler_static_FC \ 28280lt_cv_prog_compiler_c_o_FC \ 28281export_dynamic_flag_spec_FC \ 28282whole_archive_flag_spec_FC \ 28283compiler_needs_object_FC \ 28284with_gnu_ld_FC \ 28285allow_undefined_flag_FC \ 28286no_undefined_flag_FC \ 28287hardcode_libdir_flag_spec_FC \ 28288hardcode_libdir_flag_spec_ld_FC \ 28289hardcode_libdir_separator_FC \ 28290fix_srcfile_path_FC \ 28291exclude_expsyms_FC \ 28292include_expsyms_FC \ 28293file_list_spec_FC \ 28294compiler_lib_search_dirs_FC \ 28295predep_objects_FC \ 28296postdep_objects_FC \ 28297predeps_FC \ 28298postdeps_FC \ 28299compiler_lib_search_path_FC; do 28300 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 28301 *[\\\\\\\`\\"\\\$]*) 28302 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 28303 ;; 28304 *) 28305 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 28306 ;; 28307 esac 28308done 28309 28310# Double-quote double-evaled strings. 28311for var in reload_cmds \ 28312old_postinstall_cmds \ 28313old_postuninstall_cmds \ 28314old_archive_cmds \ 28315extract_expsyms_cmds \ 28316old_archive_from_new_cmds \ 28317old_archive_from_expsyms_cmds \ 28318archive_cmds \ 28319archive_expsym_cmds \ 28320module_cmds \ 28321module_expsym_cmds \ 28322export_symbols_cmds \ 28323prelink_cmds \ 28324postinstall_cmds \ 28325postuninstall_cmds \ 28326finish_cmds \ 28327sys_lib_search_path_spec \ 28328sys_lib_dlsearch_path_spec \ 28329reload_cmds_FC \ 28330old_archive_cmds_FC \ 28331old_archive_from_new_cmds_FC \ 28332old_archive_from_expsyms_cmds_FC \ 28333archive_cmds_FC \ 28334archive_expsym_cmds_FC \ 28335module_cmds_FC \ 28336module_expsym_cmds_FC \ 28337export_symbols_cmds_FC \ 28338prelink_cmds_FC; do 28339 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 28340 *[\\\\\\\`\\"\\\$]*) 28341 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 28342 ;; 28343 *) 28344 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 28345 ;; 28346 esac 28347done 28348 28349ac_aux_dir='$ac_aux_dir' 28350xsi_shell='$xsi_shell' 28351lt_shell_append='$lt_shell_append' 28352 28353# See if we are running on zsh, and set the options which allow our 28354# commands through without removal of \ escapes INIT. 28355if test -n "\${ZSH_VERSION+set}" ; then 28356 setopt NO_GLOB_SUBST 28357fi 28358 28359 28360 PACKAGE='$PACKAGE' 28361 VERSION='$VERSION' 28362 TIMESTAMP='$TIMESTAMP' 28363 RM='$RM' 28364 ofile='$ofile' 28365 28366 28367 28368 28369 28370 28371GCC="$GCC" 28372CC="$CC" 28373acx_cv_header_stdint="$acx_cv_header_stdint" 28374acx_cv_type_int8_t="$acx_cv_type_int8_t" 28375acx_cv_type_int16_t="$acx_cv_type_int16_t" 28376acx_cv_type_int32_t="$acx_cv_type_int32_t" 28377acx_cv_type_int64_t="$acx_cv_type_int64_t" 28378acx_cv_type_intptr_t="$acx_cv_type_intptr_t" 28379ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" 28380ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" 28381ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 28382ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 28383ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" 28384ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 28385ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 28386ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" 28387 28388 28389_ACEOF 28390 28391cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28392 28393# Handling of arguments. 28394for ac_config_target in $ac_config_targets 28395do 28396 case $ac_config_target in 28397 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 28398 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 28399 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 28400 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 28401 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; 28402 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28403 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;; 28404 28405 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 28406 esac 28407done 28408 28409 28410# If the user did not use the arguments to specify the items to instantiate, 28411# then the envvar interface is used. Set only those that are not. 28412# We use the long form for the default assignment because of an extremely 28413# bizarre bug on SunOS 4.1.3. 28414if $ac_need_defaults; then 28415 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 28416 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 28417 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 28418fi 28419 28420# Have a temporary directory for convenience. Make it in the build tree 28421# simply because there is no reason against having it here, and in addition, 28422# creating and moving files from /tmp can sometimes cause problems. 28423# Hook for its removal unless debugging. 28424# Note that there is a small window in which the directory will not be cleaned: 28425# after its creation but before its name has been assigned to `$tmp'. 28426$debug || 28427{ 28428 tmp= ac_tmp= 28429 trap 'exit_status=$? 28430 : "${ac_tmp:=$tmp}" 28431 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 28432' 0 28433 trap 'as_fn_exit 1' 1 2 13 15 28434} 28435# Create a (secure) tmp directory for tmp files. 28436 28437{ 28438 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 28439 test -d "$tmp" 28440} || 28441{ 28442 tmp=./conf$$-$RANDOM 28443 (umask 077 && mkdir "$tmp") 28444} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 28445ac_tmp=$tmp 28446 28447# Set up the scripts for CONFIG_FILES section. 28448# No need to generate them if there are no CONFIG_FILES. 28449# This happens for instance with `./config.status config.h'. 28450if test -n "$CONFIG_FILES"; then 28451 28452 28453ac_cr=`echo X | tr X '\015'` 28454# On cygwin, bash can eat \r inside `` if the user requested igncr. 28455# But we know of no other shell where ac_cr would be empty at this 28456# point, so we can use a bashism as a fallback. 28457if test "x$ac_cr" = x; then 28458 eval ac_cr=\$\'\\r\' 28459fi 28460ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 28461if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 28462 ac_cs_awk_cr='\\r' 28463else 28464 ac_cs_awk_cr=$ac_cr 28465fi 28466 28467echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 28468_ACEOF 28469 28470 28471{ 28472 echo "cat >conf$$subs.awk <<_ACEOF" && 28473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 28474 echo "_ACEOF" 28475} >conf$$subs.sh || 28476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28477ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 28478ac_delim='%!_!# ' 28479for ac_last_try in false false false false false :; do 28480 . ./conf$$subs.sh || 28481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28482 28483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 28484 if test $ac_delim_n = $ac_delim_num; then 28485 break 28486 elif $ac_last_try; then 28487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 28488 else 28489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28490 fi 28491done 28492rm -f conf$$subs.sh 28493 28494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28495cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 28496_ACEOF 28497sed -n ' 28498h 28499s/^/S["/; s/!.*/"]=/ 28500p 28501g 28502s/^[^!]*!// 28503:repl 28504t repl 28505s/'"$ac_delim"'$// 28506t delim 28507:nl 28508h 28509s/\(.\{148\}\)..*/\1/ 28510t more1 28511s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 28512p 28513n 28514b repl 28515:more1 28516s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28517p 28518g 28519s/.\{148\}// 28520t nl 28521:delim 28522h 28523s/\(.\{148\}\)..*/\1/ 28524t more2 28525s/["\\]/\\&/g; s/^/"/; s/$/"/ 28526p 28527b 28528:more2 28529s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 28530p 28531g 28532s/.\{148\}// 28533t delim 28534' <conf$$subs.awk | sed ' 28535/^[^""]/{ 28536 N 28537 s/\n// 28538} 28539' >>$CONFIG_STATUS || ac_write_fail=1 28540rm -f conf$$subs.awk 28541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28542_ACAWK 28543cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 28544 for (key in S) S_is_set[key] = 1 28545 FS = "" 28546 28547} 28548{ 28549 line = $ 0 28550 nfields = split(line, field, "@") 28551 substed = 0 28552 len = length(field[1]) 28553 for (i = 2; i < nfields; i++) { 28554 key = field[i] 28555 keylen = length(key) 28556 if (S_is_set[key]) { 28557 value = S[key] 28558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 28559 len += length(value) + length(field[++i]) 28560 substed = 1 28561 } else 28562 len += 1 + keylen 28563 } 28564 28565 print line 28566} 28567 28568_ACAWK 28569_ACEOF 28570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28571if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 28572 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 28573else 28574 cat 28575fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 28576 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 28577_ACEOF 28578 28579# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 28580# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 28581# trailing colons and then remove the whole line if VPATH becomes empty 28582# (actually we leave an empty line to preserve line numbers). 28583if test "x$srcdir" = x.; then 28584 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 28585h 28586s/// 28587s/^/:/ 28588s/[ ]*$/:/ 28589s/:\$(srcdir):/:/g 28590s/:\${srcdir}:/:/g 28591s/:@srcdir@:/:/g 28592s/^:*// 28593s/:*$// 28594x 28595s/\(=[ ]*\).*/\1/ 28596G 28597s/\n// 28598s/^[^=]*=[ ]*$// 28599}' 28600fi 28601 28602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28603fi # test -n "$CONFIG_FILES" 28604 28605# Set up the scripts for CONFIG_HEADERS section. 28606# No need to generate them if there are no CONFIG_HEADERS. 28607# This happens for instance with `./config.status Makefile'. 28608if test -n "$CONFIG_HEADERS"; then 28609cat >"$ac_tmp/defines.awk" <<\_ACAWK || 28610BEGIN { 28611_ACEOF 28612 28613# Transform confdefs.h into an awk script `defines.awk', embedded as 28614# here-document in config.status, that substitutes the proper values into 28615# config.h.in to produce config.h. 28616 28617# Create a delimiter string that does not exist in confdefs.h, to ease 28618# handling of long lines. 28619ac_delim='%!_!# ' 28620for ac_last_try in false false :; do 28621 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 28622 if test -z "$ac_tt"; then 28623 break 28624 elif $ac_last_try; then 28625 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 28626 else 28627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 28628 fi 28629done 28630 28631# For the awk script, D is an array of macro values keyed by name, 28632# likewise P contains macro parameters if any. Preserve backslash 28633# newline sequences. 28634 28635ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 28636sed -n ' 28637s/.\{148\}/&'"$ac_delim"'/g 28638t rset 28639:rset 28640s/^[ ]*#[ ]*define[ ][ ]*/ / 28641t def 28642d 28643:def 28644s/\\$// 28645t bsnl 28646s/["\\]/\\&/g 28647s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28648D["\1"]=" \3"/p 28649s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 28650d 28651:bsnl 28652s/["\\]/\\&/g 28653s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 28654D["\1"]=" \3\\\\\\n"\\/p 28655t cont 28656s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 28657t cont 28658d 28659:cont 28660n 28661s/.\{148\}/&'"$ac_delim"'/g 28662t clear 28663:clear 28664s/\\$// 28665t bsnlc 28666s/["\\]/\\&/g; s/^/"/; s/$/"/p 28667d 28668:bsnlc 28669s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 28670b cont 28671' <confdefs.h | sed ' 28672s/'"$ac_delim"'/"\\\ 28673"/g' >>$CONFIG_STATUS || ac_write_fail=1 28674 28675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28676 for (key in D) D_is_set[key] = 1 28677 FS = "" 28678} 28679/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 28680 line = \$ 0 28681 split(line, arg, " ") 28682 if (arg[1] == "#") { 28683 defundef = arg[2] 28684 mac1 = arg[3] 28685 } else { 28686 defundef = substr(arg[1], 2) 28687 mac1 = arg[2] 28688 } 28689 split(mac1, mac2, "(") #) 28690 macro = mac2[1] 28691 prefix = substr(line, 1, index(line, defundef) - 1) 28692 if (D_is_set[macro]) { 28693 # Preserve the white space surrounding the "#". 28694 print prefix "define", macro P[macro] D[macro] 28695 next 28696 } else { 28697 # Replace #undef with comments. This is necessary, for example, 28698 # in the case of _POSIX_SOURCE, which is predefined and required 28699 # on some systems where configure will not decide to define it. 28700 if (defundef == "undef") { 28701 print "/*", prefix defundef, macro, "*/" 28702 next 28703 } 28704 } 28705} 28706{ print } 28707_ACAWK 28708_ACEOF 28709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28710 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 28711fi # test -n "$CONFIG_HEADERS" 28712 28713 28714eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 28715shift 28716for ac_tag 28717do 28718 case $ac_tag in 28719 :[FHLC]) ac_mode=$ac_tag; continue;; 28720 esac 28721 case $ac_mode$ac_tag in 28722 :[FHL]*:*);; 28723 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 28724 :[FH]-) ac_tag=-:-;; 28725 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 28726 esac 28727 ac_save_IFS=$IFS 28728 IFS=: 28729 set x $ac_tag 28730 IFS=$ac_save_IFS 28731 shift 28732 ac_file=$1 28733 shift 28734 28735 case $ac_mode in 28736 :L) ac_source=$1;; 28737 :[FH]) 28738 ac_file_inputs= 28739 for ac_f 28740 do 28741 case $ac_f in 28742 -) ac_f="$ac_tmp/stdin";; 28743 *) # Look for the file first in the build tree, then in the source tree 28744 # (if the path is not absolute). The absolute path cannot be DOS-style, 28745 # because $ac_f cannot contain `:'. 28746 test -f "$ac_f" || 28747 case $ac_f in 28748 [\\/$]*) false;; 28749 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 28750 esac || 28751 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 28752 esac 28753 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 28754 as_fn_append ac_file_inputs " '$ac_f'" 28755 done 28756 28757 # Let's still pretend it is `configure' which instantiates (i.e., don't 28758 # use $as_me), people would be surprised to read: 28759 # /* config.h. Generated by config.status. */ 28760 configure_input='Generated from '` 28761 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 28762 `' by configure.' 28763 if test x"$ac_file" != x-; then 28764 configure_input="$ac_file. $configure_input" 28765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 28766$as_echo "$as_me: creating $ac_file" >&6;} 28767 fi 28768 # Neutralize special characters interpreted by sed in replacement strings. 28769 case $configure_input in #( 28770 *\&* | *\|* | *\\* ) 28771 ac_sed_conf_input=`$as_echo "$configure_input" | 28772 sed 's/[\\\\&|]/\\\\&/g'`;; #( 28773 *) ac_sed_conf_input=$configure_input;; 28774 esac 28775 28776 case $ac_tag in 28777 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 28778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 28779 esac 28780 ;; 28781 esac 28782 28783 ac_dir=`$as_dirname -- "$ac_file" || 28784$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28785 X"$ac_file" : 'X\(//\)[^/]' \| \ 28786 X"$ac_file" : 'X\(//\)$' \| \ 28787 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 28788$as_echo X"$ac_file" | 28789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28790 s//\1/ 28791 q 28792 } 28793 /^X\(\/\/\)[^/].*/{ 28794 s//\1/ 28795 q 28796 } 28797 /^X\(\/\/\)$/{ 28798 s//\1/ 28799 q 28800 } 28801 /^X\(\/\).*/{ 28802 s//\1/ 28803 q 28804 } 28805 s/.*/./; q'` 28806 as_dir="$ac_dir"; as_fn_mkdir_p 28807 ac_builddir=. 28808 28809case "$ac_dir" in 28810.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 28811*) 28812 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 28813 # A ".." for each directory in $ac_dir_suffix. 28814 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 28815 case $ac_top_builddir_sub in 28816 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 28817 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 28818 esac ;; 28819esac 28820ac_abs_top_builddir=$ac_pwd 28821ac_abs_builddir=$ac_pwd$ac_dir_suffix 28822# for backward compatibility: 28823ac_top_builddir=$ac_top_build_prefix 28824 28825case $srcdir in 28826 .) # We are building in place. 28827 ac_srcdir=. 28828 ac_top_srcdir=$ac_top_builddir_sub 28829 ac_abs_top_srcdir=$ac_pwd ;; 28830 [\\/]* | ?:[\\/]* ) # Absolute name. 28831 ac_srcdir=$srcdir$ac_dir_suffix; 28832 ac_top_srcdir=$srcdir 28833 ac_abs_top_srcdir=$srcdir ;; 28834 *) # Relative name. 28835 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 28836 ac_top_srcdir=$ac_top_build_prefix$srcdir 28837 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 28838esac 28839ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 28840 28841 28842 case $ac_mode in 28843 :F) 28844 # 28845 # CONFIG_FILE 28846 # 28847 28848 case $INSTALL in 28849 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 28850 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 28851 esac 28852 ac_MKDIR_P=$MKDIR_P 28853 case $MKDIR_P in 28854 [\\/$]* | ?:[\\/]* ) ;; 28855 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 28856 esac 28857_ACEOF 28858 28859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28860# If the template does not know about datarootdir, expand it. 28861# FIXME: This hack should be removed a few years after 2.60. 28862ac_datarootdir_hack=; ac_datarootdir_seen= 28863ac_sed_dataroot=' 28864/datarootdir/ { 28865 p 28866 q 28867} 28868/@datadir@/p 28869/@docdir@/p 28870/@infodir@/p 28871/@localedir@/p 28872/@mandir@/p' 28873case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 28874*datarootdir*) ac_datarootdir_seen=yes;; 28875*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 28876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 28877$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 28878_ACEOF 28879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28880 ac_datarootdir_hack=' 28881 s&@datadir@&$datadir&g 28882 s&@docdir@&$docdir&g 28883 s&@infodir@&$infodir&g 28884 s&@localedir@&$localedir&g 28885 s&@mandir@&$mandir&g 28886 s&\\\${datarootdir}&$datarootdir&g' ;; 28887esac 28888_ACEOF 28889 28890# Neutralize VPATH when `$srcdir' = `.'. 28891# Shell code in configure.ac might set extrasub. 28892# FIXME: do we really want to maintain this feature? 28893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 28894ac_sed_extra="$ac_vpsub 28895$extrasub 28896_ACEOF 28897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 28898:t 28899/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 28900s|@configure_input@|$ac_sed_conf_input|;t t 28901s&@top_builddir@&$ac_top_builddir_sub&;t t 28902s&@top_build_prefix@&$ac_top_build_prefix&;t t 28903s&@srcdir@&$ac_srcdir&;t t 28904s&@abs_srcdir@&$ac_abs_srcdir&;t t 28905s&@top_srcdir@&$ac_top_srcdir&;t t 28906s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 28907s&@builddir@&$ac_builddir&;t t 28908s&@abs_builddir@&$ac_abs_builddir&;t t 28909s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 28910s&@INSTALL@&$ac_INSTALL&;t t 28911s&@MKDIR_P@&$ac_MKDIR_P&;t t 28912$ac_datarootdir_hack 28913" 28914eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 28915 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28916 28917test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 28918 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 28919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 28920 "$ac_tmp/out"`; test -z "$ac_out"; } && 28921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28922which seems to be undefined. Please make sure it is defined" >&5 28923$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 28924which seems to be undefined. Please make sure it is defined" >&2;} 28925 28926 rm -f "$ac_tmp/stdin" 28927 case $ac_file in 28928 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 28929 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 28930 esac \ 28931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28932 ;; 28933 :H) 28934 # 28935 # CONFIG_HEADER 28936 # 28937 if test x"$ac_file" != x-; then 28938 { 28939 $as_echo "/* $configure_input */" \ 28940 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 28941 } >"$ac_tmp/config.h" \ 28942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28943 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 28944 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 28945$as_echo "$as_me: $ac_file is unchanged" >&6;} 28946 else 28947 rm -f "$ac_file" 28948 mv "$ac_tmp/config.h" "$ac_file" \ 28949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 28950 fi 28951 else 28952 $as_echo "/* $configure_input */" \ 28953 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 28954 || as_fn_error $? "could not create -" "$LINENO" 5 28955 fi 28956# Compute "$ac_file"'s index in $config_headers. 28957_am_arg="$ac_file" 28958_am_stamp_count=1 28959for _am_header in $config_headers :; do 28960 case $_am_header in 28961 $_am_arg | $_am_arg:* ) 28962 break ;; 28963 * ) 28964 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 28965 esac 28966done 28967echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 28968$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 28969 X"$_am_arg" : 'X\(//\)[^/]' \| \ 28970 X"$_am_arg" : 'X\(//\)$' \| \ 28971 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 28972$as_echo X"$_am_arg" | 28973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 28974 s//\1/ 28975 q 28976 } 28977 /^X\(\/\/\)[^/].*/{ 28978 s//\1/ 28979 q 28980 } 28981 /^X\(\/\/\)$/{ 28982 s//\1/ 28983 q 28984 } 28985 /^X\(\/\).*/{ 28986 s//\1/ 28987 q 28988 } 28989 s/.*/./; q'`/stamp-h$_am_stamp_count 28990 ;; 28991 28992 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 28993$as_echo "$as_me: executing $ac_file commands" >&6;} 28994 ;; 28995 esac 28996 28997 28998 case $ac_file$ac_mode in 28999 "default-1":C) 29000# Only add multilib support code if we just rebuilt the top-level 29001# Makefile. 29002case " $CONFIG_FILES " in 29003 *" Makefile "*) 29004 ac_file=Makefile . ${multi_basedir}/config-ml.in 29005 ;; 29006esac ;; 29007 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 29008 # Older Autoconf quotes --file arguments for eval, but not when files 29009 # are listed without --file. Let's play safe and only enable the eval 29010 # if we detect the quoting. 29011 case $CONFIG_FILES in 29012 *\'*) eval set x "$CONFIG_FILES" ;; 29013 *) set x $CONFIG_FILES ;; 29014 esac 29015 shift 29016 for mf 29017 do 29018 # Strip MF so we end up with the name of the file. 29019 mf=`echo "$mf" | sed -e 's/:.*$//'` 29020 # Check whether this is an Automake generated Makefile or not. 29021 # We used to match only the files named 'Makefile.in', but 29022 # some people rename them; so instead we look at the file content. 29023 # Grep'ing the first line is not enough: some people post-process 29024 # each Makefile.in and add a new line on top of each file to say so. 29025 # Grep'ing the whole file is not good either: AIX grep has a line 29026 # limit of 2048, but all sed's we know have understand at least 4000. 29027 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 29028 dirpart=`$as_dirname -- "$mf" || 29029$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29030 X"$mf" : 'X\(//\)[^/]' \| \ 29031 X"$mf" : 'X\(//\)$' \| \ 29032 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 29033$as_echo X"$mf" | 29034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29035 s//\1/ 29036 q 29037 } 29038 /^X\(\/\/\)[^/].*/{ 29039 s//\1/ 29040 q 29041 } 29042 /^X\(\/\/\)$/{ 29043 s//\1/ 29044 q 29045 } 29046 /^X\(\/\).*/{ 29047 s//\1/ 29048 q 29049 } 29050 s/.*/./; q'` 29051 else 29052 continue 29053 fi 29054 # Extract the definition of DEPDIR, am__include, and am__quote 29055 # from the Makefile without running 'make'. 29056 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 29057 test -z "$DEPDIR" && continue 29058 am__include=`sed -n 's/^am__include = //p' < "$mf"` 29059 test -z "$am__include" && continue 29060 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 29061 # Find all dependency output files, they are included files with 29062 # $(DEPDIR) in their names. We invoke sed twice because it is the 29063 # simplest approach to changing $(DEPDIR) to its actual value in the 29064 # expansion. 29065 for file in `sed -n " 29066 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 29067 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 29068 # Make sure the directory exists. 29069 test -f "$dirpart/$file" && continue 29070 fdir=`$as_dirname -- "$file" || 29071$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29072 X"$file" : 'X\(//\)[^/]' \| \ 29073 X"$file" : 'X\(//\)$' \| \ 29074 X"$file" : 'X\(/\)' \| . 2>/dev/null || 29075$as_echo X"$file" | 29076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29077 s//\1/ 29078 q 29079 } 29080 /^X\(\/\/\)[^/].*/{ 29081 s//\1/ 29082 q 29083 } 29084 /^X\(\/\/\)$/{ 29085 s//\1/ 29086 q 29087 } 29088 /^X\(\/\).*/{ 29089 s//\1/ 29090 q 29091 } 29092 s/.*/./; q'` 29093 as_dir=$dirpart/$fdir; as_fn_mkdir_p 29094 # echo "creating $dirpart/$file" 29095 echo '# dummy' > "$dirpart/$file" 29096 done 29097 done 29098} 29099 ;; 29100 "libtool":C) 29101 29102 # See if we are running on zsh, and set the options which allow our 29103 # commands through without removal of \ escapes. 29104 if test -n "${ZSH_VERSION+set}" ; then 29105 setopt NO_GLOB_SUBST 29106 fi 29107 29108 cfgfile="${ofile}T" 29109 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 29110 $RM "$cfgfile" 29111 29112 cat <<_LT_EOF >> "$cfgfile" 29113#! $SHELL 29114 29115# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 29116# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 29117# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 29118# NOTE: Changes made to this file will be lost: look at ltmain.sh. 29119# 29120# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 29121# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 29122# Written by Gordon Matzigkeit, 1996 29123# 29124# This file is part of GNU Libtool. 29125# 29126# GNU Libtool is free software; you can redistribute it and/or 29127# modify it under the terms of the GNU General Public License as 29128# published by the Free Software Foundation; either version 2 of 29129# the License, or (at your option) any later version. 29130# 29131# As a special exception to the GNU General Public License, 29132# if you distribute this file as part of a program or library that 29133# is built using GNU Libtool, you may include this file under the 29134# same distribution terms that you use for the rest of that program. 29135# 29136# GNU Libtool is distributed in the hope that it will be useful, 29137# but WITHOUT ANY WARRANTY; without even the implied warranty of 29138# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 29139# GNU General Public License for more details. 29140# 29141# You should have received a copy of the GNU General Public License 29142# along with GNU Libtool; see the file COPYING. If not, a copy 29143# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 29144# obtained by writing to the Free Software Foundation, Inc., 29145# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 29146 29147 29148# The names of the tagged configurations supported by this script. 29149available_tags="FC " 29150 29151# ### BEGIN LIBTOOL CONFIG 29152 29153# A sed program that does not truncate output. 29154SED=$lt_SED 29155 29156# Sed that helps us avoid accidentally triggering echo(1) options like -n. 29157Xsed="\$SED -e 1s/^X//" 29158 29159# A grep program that handles long lines. 29160GREP=$lt_GREP 29161 29162# An ERE matcher. 29163EGREP=$lt_EGREP 29164 29165# A literal string matcher. 29166FGREP=$lt_FGREP 29167 29168# Shell to use when invoking shell scripts. 29169SHELL=$lt_SHELL 29170 29171# An echo program that protects backslashes. 29172ECHO=$lt_ECHO 29173 29174# Which release of libtool.m4 was used? 29175macro_version=$macro_version 29176macro_revision=$macro_revision 29177 29178# Whether or not to build shared libraries. 29179build_libtool_libs=$enable_shared 29180 29181# Whether or not to build static libraries. 29182build_old_libs=$enable_static 29183 29184# What type of objects to build. 29185pic_mode=$pic_mode 29186 29187# Whether or not to optimize for fast installation. 29188fast_install=$enable_fast_install 29189 29190# The host system. 29191host_alias=$host_alias 29192host=$host 29193host_os=$host_os 29194 29195# The build system. 29196build_alias=$build_alias 29197build=$build 29198build_os=$build_os 29199 29200# A BSD- or MS-compatible name lister. 29201NM=$lt_NM 29202 29203# Whether we need soft or hard links. 29204LN_S=$lt_LN_S 29205 29206# What is the maximum length of a command? 29207max_cmd_len=$max_cmd_len 29208 29209# Object file suffix (normally "o"). 29210objext=$ac_objext 29211 29212# Executable file suffix (normally ""). 29213exeext=$exeext 29214 29215# whether the shell understands "unset". 29216lt_unset=$lt_unset 29217 29218# turn spaces into newlines. 29219SP2NL=$lt_lt_SP2NL 29220 29221# turn newlines into spaces. 29222NL2SP=$lt_lt_NL2SP 29223 29224# An object symbol dumper. 29225OBJDUMP=$lt_OBJDUMP 29226 29227# Method to check whether dependent libraries are shared objects. 29228deplibs_check_method=$lt_deplibs_check_method 29229 29230# Command to use when deplibs_check_method == "file_magic". 29231file_magic_cmd=$lt_file_magic_cmd 29232 29233# The archiver. 29234AR=$lt_AR 29235AR_FLAGS=$lt_AR_FLAGS 29236 29237# A symbol stripping program. 29238STRIP=$lt_STRIP 29239 29240# Commands used to install an old-style archive. 29241RANLIB=$lt_RANLIB 29242old_postinstall_cmds=$lt_old_postinstall_cmds 29243old_postuninstall_cmds=$lt_old_postuninstall_cmds 29244 29245# Whether to use a lock for old archive extraction. 29246lock_old_archive_extraction=$lock_old_archive_extraction 29247 29248# A C compiler. 29249LTCC=$lt_CC 29250 29251# LTCC compiler flags. 29252LTCFLAGS=$lt_CFLAGS 29253 29254# Take the output of nm and produce a listing of raw symbols and C names. 29255global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 29256 29257# Transform the output of nm in a proper C declaration. 29258global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 29259 29260# Transform the output of nm in a C name address pair. 29261global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 29262 29263# Transform the output of nm in a C name address pair when lib prefix is needed. 29264global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 29265 29266# The name of the directory that contains temporary libtool files. 29267objdir=$objdir 29268 29269# Used to examine libraries when file_magic_cmd begins with "file". 29270MAGIC_CMD=$MAGIC_CMD 29271 29272# Must we lock files when doing compilation? 29273need_locks=$lt_need_locks 29274 29275# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 29276DSYMUTIL=$lt_DSYMUTIL 29277 29278# Tool to change global to local symbols on Mac OS X. 29279NMEDIT=$lt_NMEDIT 29280 29281# Tool to manipulate fat objects and archives on Mac OS X. 29282LIPO=$lt_LIPO 29283 29284# ldd/readelf like tool for Mach-O binaries on Mac OS X. 29285OTOOL=$lt_OTOOL 29286 29287# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 29288OTOOL64=$lt_OTOOL64 29289 29290# Old archive suffix (normally "a"). 29291libext=$libext 29292 29293# Shared library suffix (normally ".so"). 29294shrext_cmds=$lt_shrext_cmds 29295 29296# The commands to extract the exported symbol list from a shared archive. 29297extract_expsyms_cmds=$lt_extract_expsyms_cmds 29298 29299# Variables whose values should be saved in libtool wrapper scripts and 29300# restored at link time. 29301variables_saved_for_relink=$lt_variables_saved_for_relink 29302 29303# Do we need the "lib" prefix for modules? 29304need_lib_prefix=$need_lib_prefix 29305 29306# Do we need a version for libraries? 29307need_version=$need_version 29308 29309# Library versioning type. 29310version_type=$version_type 29311 29312# Shared library runtime path variable. 29313runpath_var=$runpath_var 29314 29315# Shared library path variable. 29316shlibpath_var=$shlibpath_var 29317 29318# Is shlibpath searched before the hard-coded library search path? 29319shlibpath_overrides_runpath=$shlibpath_overrides_runpath 29320 29321# Format of library name prefix. 29322libname_spec=$lt_libname_spec 29323 29324# List of archive names. First name is the real one, the rest are links. 29325# The last name is the one that the linker finds with -lNAME 29326library_names_spec=$lt_library_names_spec 29327 29328# The coded name of the library, if different from the real name. 29329soname_spec=$lt_soname_spec 29330 29331# Permission mode override for installation of shared libraries. 29332install_override_mode=$lt_install_override_mode 29333 29334# Command to use after installation of a shared archive. 29335postinstall_cmds=$lt_postinstall_cmds 29336 29337# Command to use after uninstallation of a shared archive. 29338postuninstall_cmds=$lt_postuninstall_cmds 29339 29340# Commands used to finish a libtool library installation in a directory. 29341finish_cmds=$lt_finish_cmds 29342 29343# As "finish_cmds", except a single script fragment to be evaled but 29344# not shown. 29345finish_eval=$lt_finish_eval 29346 29347# Whether we should hardcode library paths into libraries. 29348hardcode_into_libs=$hardcode_into_libs 29349 29350# Compile-time system search path for libraries. 29351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 29352 29353# Run-time system search path for libraries. 29354sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 29355 29356# Whether dlopen is supported. 29357dlopen_support=$enable_dlopen 29358 29359# Whether dlopen of programs is supported. 29360dlopen_self=$enable_dlopen_self 29361 29362# Whether dlopen of statically linked programs is supported. 29363dlopen_self_static=$enable_dlopen_self_static 29364 29365# Commands to strip libraries. 29366old_striplib=$lt_old_striplib 29367striplib=$lt_striplib 29368 29369 29370# The linker used to build libraries. 29371LD=$lt_LD 29372 29373# How to create reloadable object files. 29374reload_flag=$lt_reload_flag 29375reload_cmds=$lt_reload_cmds 29376 29377# Commands used to build an old-style archive. 29378old_archive_cmds=$lt_old_archive_cmds 29379 29380# A language specific compiler. 29381CC=$lt_compiler 29382 29383# Is the compiler the GNU compiler? 29384with_gcc=$GCC 29385 29386# Compiler flag to turn off builtin functions. 29387no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 29388 29389# How to pass a linker flag through the compiler. 29390wl=$lt_lt_prog_compiler_wl 29391 29392# Additional compiler flags for building library objects. 29393pic_flag=$lt_lt_prog_compiler_pic 29394 29395# Compiler flag to prevent dynamic linking. 29396link_static_flag=$lt_lt_prog_compiler_static 29397 29398# Does compiler simultaneously support -c and -o options? 29399compiler_c_o=$lt_lt_cv_prog_compiler_c_o 29400 29401# Whether or not to add -lc for building shared libraries. 29402build_libtool_need_lc=$archive_cmds_need_lc 29403 29404# Whether or not to disallow shared libs when runtime libs are static. 29405allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 29406 29407# Compiler flag to allow reflexive dlopens. 29408export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 29409 29410# Compiler flag to generate shared objects directly from archives. 29411whole_archive_flag_spec=$lt_whole_archive_flag_spec 29412 29413# Whether the compiler copes with passing no objects directly. 29414compiler_needs_object=$lt_compiler_needs_object 29415 29416# Create an old-style archive from a shared archive. 29417old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 29418 29419# Create a temporary old-style archive to link instead of a shared archive. 29420old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 29421 29422# Commands used to build a shared archive. 29423archive_cmds=$lt_archive_cmds 29424archive_expsym_cmds=$lt_archive_expsym_cmds 29425 29426# Commands used to build a loadable module if different from building 29427# a shared archive. 29428module_cmds=$lt_module_cmds 29429module_expsym_cmds=$lt_module_expsym_cmds 29430 29431# Whether we are building with GNU ld or not. 29432with_gnu_ld=$lt_with_gnu_ld 29433 29434# Flag that allows shared libraries with undefined symbols to be built. 29435allow_undefined_flag=$lt_allow_undefined_flag 29436 29437# Flag that enforces no undefined symbols. 29438no_undefined_flag=$lt_no_undefined_flag 29439 29440# Flag to hardcode \$libdir into a binary during linking. 29441# This must work even if \$libdir does not exist 29442hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 29443 29444# If ld is used when linking, flag to hardcode \$libdir into a binary 29445# during linking. This must work even if \$libdir does not exist. 29446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 29447 29448# Whether we need a single "-rpath" flag with a separated argument. 29449hardcode_libdir_separator=$lt_hardcode_libdir_separator 29450 29451# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 29452# DIR into the resulting binary. 29453hardcode_direct=$hardcode_direct 29454 29455# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 29456# DIR into the resulting binary and the resulting library dependency is 29457# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 29458# library is relocated. 29459hardcode_direct_absolute=$hardcode_direct_absolute 29460 29461# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 29462# into the resulting binary. 29463hardcode_minus_L=$hardcode_minus_L 29464 29465# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 29466# into the resulting binary. 29467hardcode_shlibpath_var=$hardcode_shlibpath_var 29468 29469# Set to "yes" if building a shared library automatically hardcodes DIR 29470# into the library and all subsequent libraries and executables linked 29471# against it. 29472hardcode_automatic=$hardcode_automatic 29473 29474# Set to yes if linker adds runtime paths of dependent libraries 29475# to runtime path list. 29476inherit_rpath=$inherit_rpath 29477 29478# Whether libtool must link a program against all its dependency libraries. 29479link_all_deplibs=$link_all_deplibs 29480 29481# Fix the shell variable \$srcfile for the compiler. 29482fix_srcfile_path=$lt_fix_srcfile_path 29483 29484# Set to "yes" if exported symbols are required. 29485always_export_symbols=$always_export_symbols 29486 29487# The commands to list exported symbols. 29488export_symbols_cmds=$lt_export_symbols_cmds 29489 29490# Symbols that should not be listed in the preloaded symbols. 29491exclude_expsyms=$lt_exclude_expsyms 29492 29493# Symbols that must always be exported. 29494include_expsyms=$lt_include_expsyms 29495 29496# Commands necessary for linking programs (against libraries) with templates. 29497prelink_cmds=$lt_prelink_cmds 29498 29499# Specify filename containing input files. 29500file_list_spec=$lt_file_list_spec 29501 29502# How to hardcode a shared library path into an executable. 29503hardcode_action=$hardcode_action 29504 29505# The directories searched by this compiler when creating a shared library. 29506compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 29507 29508# Dependencies to place before and after the objects being linked to 29509# create a shared library. 29510predep_objects=$lt_predep_objects 29511postdep_objects=$lt_postdep_objects 29512predeps=$lt_predeps 29513postdeps=$lt_postdeps 29514 29515# The library search path used internally by the compiler when linking 29516# a shared library. 29517compiler_lib_search_path=$lt_compiler_lib_search_path 29518 29519# ### END LIBTOOL CONFIG 29520 29521_LT_EOF 29522 29523 case $host_os in 29524 aix3*) 29525 cat <<\_LT_EOF >> "$cfgfile" 29526# AIX sometimes has problems with the GCC collect2 program. For some 29527# reason, if we set the COLLECT_NAMES environment variable, the problems 29528# vanish in a puff of smoke. 29529if test "X${COLLECT_NAMES+set}" != Xset; then 29530 COLLECT_NAMES= 29531 export COLLECT_NAMES 29532fi 29533_LT_EOF 29534 ;; 29535 esac 29536 29537 29538ltmain="$ac_aux_dir/ltmain.sh" 29539 29540 29541 # We use sed instead of cat because bash on DJGPP gets confused if 29542 # if finds mixed CR/LF and LF-only lines. Since sed operates in 29543 # text mode, it properly converts lines to CR/LF. This bash problem 29544 # is reportedly fixed, but why not run on old versions too? 29545 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 29546 || (rm -f "$cfgfile"; exit 1) 29547 29548 case $xsi_shell in 29549 yes) 29550 cat << \_LT_EOF >> "$cfgfile" 29551 29552# func_dirname file append nondir_replacement 29553# Compute the dirname of FILE. If nonempty, add APPEND to the result, 29554# otherwise set result to NONDIR_REPLACEMENT. 29555func_dirname () 29556{ 29557 case ${1} in 29558 */*) func_dirname_result="${1%/*}${2}" ;; 29559 * ) func_dirname_result="${3}" ;; 29560 esac 29561} 29562 29563# func_basename file 29564func_basename () 29565{ 29566 func_basename_result="${1##*/}" 29567} 29568 29569# func_dirname_and_basename file append nondir_replacement 29570# perform func_basename and func_dirname in a single function 29571# call: 29572# dirname: Compute the dirname of FILE. If nonempty, 29573# add APPEND to the result, otherwise set result 29574# to NONDIR_REPLACEMENT. 29575# value returned in "$func_dirname_result" 29576# basename: Compute filename of FILE. 29577# value retuned in "$func_basename_result" 29578# Implementation must be kept synchronized with func_dirname 29579# and func_basename. For efficiency, we do not delegate to 29580# those functions but instead duplicate the functionality here. 29581func_dirname_and_basename () 29582{ 29583 case ${1} in 29584 */*) func_dirname_result="${1%/*}${2}" ;; 29585 * ) func_dirname_result="${3}" ;; 29586 esac 29587 func_basename_result="${1##*/}" 29588} 29589 29590# func_stripname prefix suffix name 29591# strip PREFIX and SUFFIX off of NAME. 29592# PREFIX and SUFFIX must not contain globbing or regex special 29593# characters, hashes, percent signs, but SUFFIX may contain a leading 29594# dot (in which case that matches only a dot). 29595func_stripname () 29596{ 29597 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 29598 # positional parameters, so assign one to ordinary parameter first. 29599 func_stripname_result=${3} 29600 func_stripname_result=${func_stripname_result#"${1}"} 29601 func_stripname_result=${func_stripname_result%"${2}"} 29602} 29603 29604# func_opt_split 29605func_opt_split () 29606{ 29607 func_opt_split_opt=${1%%=*} 29608 func_opt_split_arg=${1#*=} 29609} 29610 29611# func_lo2o object 29612func_lo2o () 29613{ 29614 case ${1} in 29615 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 29616 *) func_lo2o_result=${1} ;; 29617 esac 29618} 29619 29620# func_xform libobj-or-source 29621func_xform () 29622{ 29623 func_xform_result=${1%.*}.lo 29624} 29625 29626# func_arith arithmetic-term... 29627func_arith () 29628{ 29629 func_arith_result=$(( $* )) 29630} 29631 29632# func_len string 29633# STRING may not start with a hyphen. 29634func_len () 29635{ 29636 func_len_result=${#1} 29637} 29638 29639_LT_EOF 29640 ;; 29641 *) # Bourne compatible functions. 29642 cat << \_LT_EOF >> "$cfgfile" 29643 29644# func_dirname file append nondir_replacement 29645# Compute the dirname of FILE. If nonempty, add APPEND to the result, 29646# otherwise set result to NONDIR_REPLACEMENT. 29647func_dirname () 29648{ 29649 # Extract subdirectory from the argument. 29650 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 29651 if test "X$func_dirname_result" = "X${1}"; then 29652 func_dirname_result="${3}" 29653 else 29654 func_dirname_result="$func_dirname_result${2}" 29655 fi 29656} 29657 29658# func_basename file 29659func_basename () 29660{ 29661 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 29662} 29663 29664 29665# func_stripname prefix suffix name 29666# strip PREFIX and SUFFIX off of NAME. 29667# PREFIX and SUFFIX must not contain globbing or regex special 29668# characters, hashes, percent signs, but SUFFIX may contain a leading 29669# dot (in which case that matches only a dot). 29670# func_strip_suffix prefix name 29671func_stripname () 29672{ 29673 case ${2} in 29674 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 29675 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 29676 esac 29677} 29678 29679# sed scripts: 29680my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 29681my_sed_long_arg='1s/^-[^=]*=//' 29682 29683# func_opt_split 29684func_opt_split () 29685{ 29686 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 29687 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 29688} 29689 29690# func_lo2o object 29691func_lo2o () 29692{ 29693 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 29694} 29695 29696# func_xform libobj-or-source 29697func_xform () 29698{ 29699 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 29700} 29701 29702# func_arith arithmetic-term... 29703func_arith () 29704{ 29705 func_arith_result=`expr "$@"` 29706} 29707 29708# func_len string 29709# STRING may not start with a hyphen. 29710func_len () 29711{ 29712 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 29713} 29714 29715_LT_EOF 29716esac 29717 29718case $lt_shell_append in 29719 yes) 29720 cat << \_LT_EOF >> "$cfgfile" 29721 29722# func_append var value 29723# Append VALUE to the end of shell variable VAR. 29724func_append () 29725{ 29726 eval "$1+=\$2" 29727} 29728_LT_EOF 29729 ;; 29730 *) 29731 cat << \_LT_EOF >> "$cfgfile" 29732 29733# func_append var value 29734# Append VALUE to the end of shell variable VAR. 29735func_append () 29736{ 29737 eval "$1=\$$1\$2" 29738} 29739 29740_LT_EOF 29741 ;; 29742 esac 29743 29744 29745 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 29746 || (rm -f "$cfgfile"; exit 1) 29747 29748 mv -f "$cfgfile" "$ofile" || 29749 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 29750 chmod +x "$ofile" 29751 29752 29753 cat <<_LT_EOF >> "$ofile" 29754 29755# ### BEGIN LIBTOOL TAG CONFIG: FC 29756 29757# The linker used to build libraries. 29758LD=$lt_LD_FC 29759 29760# How to create reloadable object files. 29761reload_flag=$lt_reload_flag_FC 29762reload_cmds=$lt_reload_cmds_FC 29763 29764# Commands used to build an old-style archive. 29765old_archive_cmds=$lt_old_archive_cmds_FC 29766 29767# A language specific compiler. 29768CC=$lt_compiler_FC 29769 29770# Is the compiler the GNU compiler? 29771with_gcc=$GCC_FC 29772 29773# Compiler flag to turn off builtin functions. 29774no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 29775 29776# How to pass a linker flag through the compiler. 29777wl=$lt_lt_prog_compiler_wl_FC 29778 29779# Additional compiler flags for building library objects. 29780pic_flag=$lt_lt_prog_compiler_pic_FC 29781 29782# Compiler flag to prevent dynamic linking. 29783link_static_flag=$lt_lt_prog_compiler_static_FC 29784 29785# Does compiler simultaneously support -c and -o options? 29786compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 29787 29788# Whether or not to add -lc for building shared libraries. 29789build_libtool_need_lc=$archive_cmds_need_lc_FC 29790 29791# Whether or not to disallow shared libs when runtime libs are static. 29792allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 29793 29794# Compiler flag to allow reflexive dlopens. 29795export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 29796 29797# Compiler flag to generate shared objects directly from archives. 29798whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 29799 29800# Whether the compiler copes with passing no objects directly. 29801compiler_needs_object=$lt_compiler_needs_object_FC 29802 29803# Create an old-style archive from a shared archive. 29804old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 29805 29806# Create a temporary old-style archive to link instead of a shared archive. 29807old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 29808 29809# Commands used to build a shared archive. 29810archive_cmds=$lt_archive_cmds_FC 29811archive_expsym_cmds=$lt_archive_expsym_cmds_FC 29812 29813# Commands used to build a loadable module if different from building 29814# a shared archive. 29815module_cmds=$lt_module_cmds_FC 29816module_expsym_cmds=$lt_module_expsym_cmds_FC 29817 29818# Whether we are building with GNU ld or not. 29819with_gnu_ld=$lt_with_gnu_ld_FC 29820 29821# Flag that allows shared libraries with undefined symbols to be built. 29822allow_undefined_flag=$lt_allow_undefined_flag_FC 29823 29824# Flag that enforces no undefined symbols. 29825no_undefined_flag=$lt_no_undefined_flag_FC 29826 29827# Flag to hardcode \$libdir into a binary during linking. 29828# This must work even if \$libdir does not exist 29829hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 29830 29831# If ld is used when linking, flag to hardcode \$libdir into a binary 29832# during linking. This must work even if \$libdir does not exist. 29833hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC 29834 29835# Whether we need a single "-rpath" flag with a separated argument. 29836hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 29837 29838# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 29839# DIR into the resulting binary. 29840hardcode_direct=$hardcode_direct_FC 29841 29842# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 29843# DIR into the resulting binary and the resulting library dependency is 29844# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 29845# library is relocated. 29846hardcode_direct_absolute=$hardcode_direct_absolute_FC 29847 29848# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 29849# into the resulting binary. 29850hardcode_minus_L=$hardcode_minus_L_FC 29851 29852# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 29853# into the resulting binary. 29854hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 29855 29856# Set to "yes" if building a shared library automatically hardcodes DIR 29857# into the library and all subsequent libraries and executables linked 29858# against it. 29859hardcode_automatic=$hardcode_automatic_FC 29860 29861# Set to yes if linker adds runtime paths of dependent libraries 29862# to runtime path list. 29863inherit_rpath=$inherit_rpath_FC 29864 29865# Whether libtool must link a program against all its dependency libraries. 29866link_all_deplibs=$link_all_deplibs_FC 29867 29868# Fix the shell variable \$srcfile for the compiler. 29869fix_srcfile_path=$lt_fix_srcfile_path_FC 29870 29871# Set to "yes" if exported symbols are required. 29872always_export_symbols=$always_export_symbols_FC 29873 29874# The commands to list exported symbols. 29875export_symbols_cmds=$lt_export_symbols_cmds_FC 29876 29877# Symbols that should not be listed in the preloaded symbols. 29878exclude_expsyms=$lt_exclude_expsyms_FC 29879 29880# Symbols that must always be exported. 29881include_expsyms=$lt_include_expsyms_FC 29882 29883# Commands necessary for linking programs (against libraries) with templates. 29884prelink_cmds=$lt_prelink_cmds_FC 29885 29886# Specify filename containing input files. 29887file_list_spec=$lt_file_list_spec_FC 29888 29889# How to hardcode a shared library path into an executable. 29890hardcode_action=$hardcode_action_FC 29891 29892# The directories searched by this compiler when creating a shared library. 29893compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 29894 29895# Dependencies to place before and after the objects being linked to 29896# create a shared library. 29897predep_objects=$lt_predep_objects_FC 29898postdep_objects=$lt_postdep_objects_FC 29899predeps=$lt_predeps_FC 29900postdeps=$lt_postdeps_FC 29901 29902# The library search path used internally by the compiler when linking 29903# a shared library. 29904compiler_lib_search_path=$lt_compiler_lib_search_path_FC 29905 29906# ### END LIBTOOL TAG CONFIG: FC 29907_LT_EOF 29908 29909 ;; 29910 "gstdint.h":C) 29911if test "$GCC" = yes; then 29912 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h 29913else 29914 echo "/* generated for $CC */" > tmp-stdint.h 29915fi 29916 29917sed 's/^ *//' >> tmp-stdint.h <<EOF 29918 29919 #ifndef GCC_GENERATED_STDINT_H 29920 #define GCC_GENERATED_STDINT_H 1 29921 29922 #include <sys/types.h> 29923EOF 29924 29925if test "$acx_cv_header_stdint" != stdint.h; then 29926 echo "#include <stddef.h>" >> tmp-stdint.h 29927fi 29928if test "$acx_cv_header_stdint" != stddef.h; then 29929 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h 29930fi 29931 29932sed 's/^ *//' >> tmp-stdint.h <<EOF 29933 /* glibc uses these symbols as guards to prevent redefinitions. */ 29934 #ifdef __int8_t_defined 29935 #define _INT8_T 29936 #define _INT16_T 29937 #define _INT32_T 29938 #endif 29939 #ifdef __uint32_t_defined 29940 #define _UINT32_T 29941 #endif 29942 29943EOF 29944 29945# ----------------- done header, emit basic int types ------------- 29946if test "$acx_cv_header_stdint" = stddef.h; then 29947 sed 's/^ *//' >> tmp-stdint.h <<EOF 29948 29949 #ifndef _UINT8_T 29950 #define _UINT8_T 29951 #ifndef __uint8_t_defined 29952 #define __uint8_t_defined 29953 #ifndef uint8_t 29954 typedef unsigned $acx_cv_type_int8_t uint8_t; 29955 #endif 29956 #endif 29957 #endif 29958 29959 #ifndef _UINT16_T 29960 #define _UINT16_T 29961 #ifndef __uint16_t_defined 29962 #define __uint16_t_defined 29963 #ifndef uint16_t 29964 typedef unsigned $acx_cv_type_int16_t uint16_t; 29965 #endif 29966 #endif 29967 #endif 29968 29969 #ifndef _UINT32_T 29970 #define _UINT32_T 29971 #ifndef __uint32_t_defined 29972 #define __uint32_t_defined 29973 #ifndef uint32_t 29974 typedef unsigned $acx_cv_type_int32_t uint32_t; 29975 #endif 29976 #endif 29977 #endif 29978 29979 #ifndef _INT8_T 29980 #define _INT8_T 29981 #ifndef __int8_t_defined 29982 #define __int8_t_defined 29983 #ifndef int8_t 29984 typedef $acx_cv_type_int8_t int8_t; 29985 #endif 29986 #endif 29987 #endif 29988 29989 #ifndef _INT16_T 29990 #define _INT16_T 29991 #ifndef __int16_t_defined 29992 #define __int16_t_defined 29993 #ifndef int16_t 29994 typedef $acx_cv_type_int16_t int16_t; 29995 #endif 29996 #endif 29997 #endif 29998 29999 #ifndef _INT32_T 30000 #define _INT32_T 30001 #ifndef __int32_t_defined 30002 #define __int32_t_defined 30003 #ifndef int32_t 30004 typedef $acx_cv_type_int32_t int32_t; 30005 #endif 30006 #endif 30007 #endif 30008EOF 30009elif test "$ac_cv_type_u_int32_t" = yes; then 30010 sed 's/^ *//' >> tmp-stdint.h <<EOF 30011 30012 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ 30013 #ifndef _INT8_T 30014 #define _INT8_T 30015 #endif 30016 #ifndef _INT16_T 30017 #define _INT16_T 30018 #endif 30019 #ifndef _INT32_T 30020 #define _INT32_T 30021 #endif 30022 30023 #ifndef _UINT8_T 30024 #define _UINT8_T 30025 #ifndef __uint8_t_defined 30026 #define __uint8_t_defined 30027 #ifndef uint8_t 30028 typedef u_int8_t uint8_t; 30029 #endif 30030 #endif 30031 #endif 30032 30033 #ifndef _UINT16_T 30034 #define _UINT16_T 30035 #ifndef __uint16_t_defined 30036 #define __uint16_t_defined 30037 #ifndef uint16_t 30038 typedef u_int16_t uint16_t; 30039 #endif 30040 #endif 30041 #endif 30042 30043 #ifndef _UINT32_T 30044 #define _UINT32_T 30045 #ifndef __uint32_t_defined 30046 #define __uint32_t_defined 30047 #ifndef uint32_t 30048 typedef u_int32_t uint32_t; 30049 #endif 30050 #endif 30051 #endif 30052EOF 30053else 30054 sed 's/^ *//' >> tmp-stdint.h <<EOF 30055 30056 /* Some systems have guard macros to prevent redefinitions, define them. */ 30057 #ifndef _INT8_T 30058 #define _INT8_T 30059 #endif 30060 #ifndef _INT16_T 30061 #define _INT16_T 30062 #endif 30063 #ifndef _INT32_T 30064 #define _INT32_T 30065 #endif 30066 #ifndef _UINT8_T 30067 #define _UINT8_T 30068 #endif 30069 #ifndef _UINT16_T 30070 #define _UINT16_T 30071 #endif 30072 #ifndef _UINT32_T 30073 #define _UINT32_T 30074 #endif 30075EOF 30076fi 30077 30078# ------------- done basic int types, emit int64_t types ------------ 30079if test "$ac_cv_type_uint64_t" = yes; then 30080 sed 's/^ *//' >> tmp-stdint.h <<EOF 30081 30082 /* system headers have good uint64_t and int64_t */ 30083 #ifndef _INT64_T 30084 #define _INT64_T 30085 #endif 30086 #ifndef _UINT64_T 30087 #define _UINT64_T 30088 #endif 30089EOF 30090elif test "$ac_cv_type_u_int64_t" = yes; then 30091 sed 's/^ *//' >> tmp-stdint.h <<EOF 30092 30093 /* system headers have an u_int64_t (and int64_t) */ 30094 #ifndef _INT64_T 30095 #define _INT64_T 30096 #endif 30097 #ifndef _UINT64_T 30098 #define _UINT64_T 30099 #ifndef __uint64_t_defined 30100 #define __uint64_t_defined 30101 #ifndef uint64_t 30102 typedef u_int64_t uint64_t; 30103 #endif 30104 #endif 30105 #endif 30106EOF 30107elif test -n "$acx_cv_type_int64_t"; then 30108 sed 's/^ *//' >> tmp-stdint.h <<EOF 30109 30110 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 30111 #ifndef _INT64_T 30112 #define _INT64_T 30113 #ifndef int64_t 30114 typedef $acx_cv_type_int64_t int64_t; 30115 #endif 30116 #endif 30117 #ifndef _UINT64_T 30118 #define _UINT64_T 30119 #ifndef __uint64_t_defined 30120 #define __uint64_t_defined 30121 #ifndef uint64_t 30122 typedef unsigned $acx_cv_type_int64_t uint64_t; 30123 #endif 30124 #endif 30125 #endif 30126EOF 30127else 30128 sed 's/^ *//' >> tmp-stdint.h <<EOF 30129 30130 /* some common heuristics for int64_t, using compiler-specific tests */ 30131 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 30132 #ifndef _INT64_T 30133 #define _INT64_T 30134 #ifndef __int64_t_defined 30135 #ifndef int64_t 30136 typedef long long int64_t; 30137 #endif 30138 #endif 30139 #endif 30140 #ifndef _UINT64_T 30141 #define _UINT64_T 30142 #ifndef uint64_t 30143 typedef unsigned long long uint64_t; 30144 #endif 30145 #endif 30146 30147 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 30148 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 30149 does not implement __extension__. But that compiler doesn't define 30150 __GNUC_MINOR__. */ 30151 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) 30152 # define __extension__ 30153 # endif 30154 30155 # ifndef _INT64_T 30156 # define _INT64_T 30157 # ifndef int64_t 30158 __extension__ typedef long long int64_t; 30159 # endif 30160 # endif 30161 # ifndef _UINT64_T 30162 # define _UINT64_T 30163 # ifndef uint64_t 30164 __extension__ typedef unsigned long long uint64_t; 30165 # endif 30166 # endif 30167 30168 #elif !defined __STRICT_ANSI__ 30169 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 30170 30171 # ifndef _INT64_T 30172 # define _INT64_T 30173 # ifndef int64_t 30174 typedef __int64 int64_t; 30175 # endif 30176 # endif 30177 # ifndef _UINT64_T 30178 # define _UINT64_T 30179 # ifndef uint64_t 30180 typedef unsigned __int64 uint64_t; 30181 # endif 30182 # endif 30183 # endif /* compiler */ 30184 30185 #endif /* ANSI version */ 30186EOF 30187fi 30188 30189# ------------- done int64_t types, emit intptr types ------------ 30190if test "$ac_cv_type_uintptr_t" != yes; then 30191 sed 's/^ *//' >> tmp-stdint.h <<EOF 30192 30193 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 30194 #ifndef __uintptr_t_defined 30195 #ifndef uintptr_t 30196 typedef u$acx_cv_type_intptr_t uintptr_t; 30197 #endif 30198 #endif 30199 #ifndef __intptr_t_defined 30200 #ifndef intptr_t 30201 typedef $acx_cv_type_intptr_t intptr_t; 30202 #endif 30203 #endif 30204EOF 30205fi 30206 30207# ------------- done intptr types, emit int_least types ------------ 30208if test "$ac_cv_type_int_least32_t" != yes; then 30209 sed 's/^ *//' >> tmp-stdint.h <<EOF 30210 30211 /* Define int_least types */ 30212 typedef int8_t int_least8_t; 30213 typedef int16_t int_least16_t; 30214 typedef int32_t int_least32_t; 30215 #ifdef _INT64_T 30216 typedef int64_t int_least64_t; 30217 #endif 30218 30219 typedef uint8_t uint_least8_t; 30220 typedef uint16_t uint_least16_t; 30221 typedef uint32_t uint_least32_t; 30222 #ifdef _UINT64_T 30223 typedef uint64_t uint_least64_t; 30224 #endif 30225EOF 30226fi 30227 30228# ------------- done intptr types, emit int_fast types ------------ 30229if test "$ac_cv_type_int_fast32_t" != yes; then 30230 sed 's/^ *//' >> tmp-stdint.h <<EOF 30231 30232 /* Define int_fast types. short is often slow */ 30233 typedef int8_t int_fast8_t; 30234 typedef int int_fast16_t; 30235 typedef int32_t int_fast32_t; 30236 #ifdef _INT64_T 30237 typedef int64_t int_fast64_t; 30238 #endif 30239 30240 typedef uint8_t uint_fast8_t; 30241 typedef unsigned int uint_fast16_t; 30242 typedef uint32_t uint_fast32_t; 30243 #ifdef _UINT64_T 30244 typedef uint64_t uint_fast64_t; 30245 #endif 30246EOF 30247fi 30248 30249if test "$ac_cv_type_uintmax_t" != yes; then 30250 sed 's/^ *//' >> tmp-stdint.h <<EOF 30251 30252 /* Define intmax based on what we found */ 30253 #ifndef intmax_t 30254 #ifdef _INT64_T 30255 typedef int64_t intmax_t; 30256 #else 30257 typedef long intmax_t; 30258 #endif 30259 #endif 30260 #ifndef uintmax_t 30261 #ifdef _UINT64_T 30262 typedef uint64_t uintmax_t; 30263 #else 30264 typedef unsigned long uintmax_t; 30265 #endif 30266 #endif 30267EOF 30268fi 30269 30270sed 's/^ *//' >> tmp-stdint.h <<EOF 30271 30272 #endif /* GCC_GENERATED_STDINT_H */ 30273EOF 30274 30275if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then 30276 rm -f tmp-stdint.h 30277else 30278 mv -f tmp-stdint.h gstdint.h 30279fi 30280 30281 ;; 30282 30283 esac 30284done # for ac_tag 30285 30286 30287as_fn_exit 0 30288_ACEOF 30289ac_clean_files=$ac_clean_files_save 30290 30291test $ac_write_fail = 0 || 30292 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 30293 30294 30295# configure is writing to config.log, and then calls config.status. 30296# config.status does its own redirection, appending to config.log. 30297# Unfortunately, on DOS this fails, as config.log is still kept open 30298# by configure, so config.status won't be able to write to it; its 30299# output is simply discarded. So we exec the FD to /dev/null, 30300# effectively closing config.log, so it can be properly (re)opened and 30301# appended to by config.status. When coming back to configure, we 30302# need to make the FD available again. 30303if test "$no_create" != yes; then 30304 ac_cs_success=: 30305 ac_config_status_args= 30306 test "$silent" = yes && 30307 ac_config_status_args="$ac_config_status_args --quiet" 30308 exec 5>/dev/null 30309 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 30310 exec 5>>config.log 30311 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 30312 # would make configure fail if this is the last instruction. 30313 $ac_cs_success || as_fn_exit 1 30314fi 30315if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 30316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 30317$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 30318fi 30319 30320