1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for lis 2.0.30. 4# 5# Report bugs to <devel@ssisc.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and devel@ssisc.org 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='lis' 592PACKAGE_TARNAME='lis' 593PACKAGE_VERSION='2.0.30' 594PACKAGE_STRING='lis 2.0.30' 595PACKAGE_BUGREPORT='devel@ssisc.org' 596PACKAGE_URL='' 597 598ac_unique_file="src/fortran/lisf_matrix.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639FCLDFLAGS 640SIZEOF_VOID_P 641AMDEFS 642MPINP 643enable_f90 644enable_fortran 645enable_complex 646enable_longdouble 647enable_quad 648enable_saamg 649enable_omp 650enable_mpi 651DISABLE_TEST_FALSE 652DISABLE_TEST_TRUE 653ENABLE_SSE2_FALSE 654ENABLE_SSE2_TRUE 655ENABLE_QUAD_FALSE 656ENABLE_QUAD_TRUE 657ENABLE_OMP_FALSE 658ENABLE_OMP_TRUE 659ENABLE_MPI_FALSE 660ENABLE_MPI_TRUE 661ENABLE_SAAMG_FALSE 662ENABLE_SAAMG_TRUE 663ENABLE_F90_FALSE 664ENABLE_F90_TRUE 665ENABLE_FORTRAN_FALSE 666ENABLE_FORTRAN_TRUE 667LT_SYS_LIBRARY_PATH 668OTOOL64 669OTOOL 670LIPO 671NMEDIT 672DSYMUTIL 673MANIFEST_TOOL 674RANLIB 675ac_ct_AR 676AR 677DLLTOOL 678OBJDUMP 679LN_S 680NM 681ac_ct_DUMPBIN 682DUMPBIN 683LD 684FGREP 685SED 686LIBTOOL 687EGREP 688GREP 689CPP 690FLIBS 691MPIFC 692ac_ct_FC 693FCFLAGS 694FC 695ac_ct_F77 696FFLAGS 697F77 698CLIBS 699am__fastdepCC_FALSE 700am__fastdepCC_TRUE 701CCDEPMODE 702am__nodep 703AMDEPBACKSLASH 704AMDEP_FALSE 705AMDEP_TRUE 706am__quote 707am__include 708DEPDIR 709OBJEXT 710EXEEXT 711ac_ct_CC 712CPPFLAGS 713LDFLAGS 714CFLAGS 715CC 716LIBSUFFIX 717TARGET 718MPFLAG 719OMPFLAG 720MPIRUN 721MPIF77 722MPICC 723MAINT 724MAINTAINER_MODE_FALSE 725MAINTAINER_MODE_TRUE 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749target_os 750target_vendor 751target_cpu 752target 753host_os 754host_vendor 755host_cpu 756host 757build_os 758build_vendor 759build_cpu 760build 761target_alias 762host_alias 763build_alias 764LIBS 765ECHO_T 766ECHO_N 767ECHO_C 768DEFS 769mandir 770localedir 771libdir 772psdir 773pdfdir 774dvidir 775htmldir 776infodir 777docdir 778oldincludedir 779includedir 780localstatedir 781sharedstatedir 782sysconfdir 783datadir 784datarootdir 785libexecdir 786sbindir 787bindir 788program_transform_name 789prefix 790exec_prefix 791PACKAGE_URL 792PACKAGE_BUGREPORT 793PACKAGE_STRING 794PACKAGE_VERSION 795PACKAGE_TARNAME 796PACKAGE_NAME 797PATH_SEPARATOR 798SHELL' 799ac_subst_files='' 800ac_user_opts=' 801enable_option_checking 802enable_maintainer_mode 803enable_fortran 804enable_f90 805enable_saamg 806enable_mpi 807enable_omp 808enable_quad 809enable_sse2 810enable_fma 811enable_debug 812enable_gprof 813enable_64bit 814enable_32bit 815enable_longlong 816enable_longdouble 817enable_complex 818enable_test 819with_library_suffix 820enable_dependency_tracking 821enable_shared 822enable_static 823with_pic 824enable_fast_install 825with_aix_soname 826with_gnu_ld 827with_sysroot 828enable_libtool_lock 829' 830 ac_precious_vars='build_alias 831host_alias 832target_alias 833MPICC 834MPIF77 835MPIRUN 836OMPFLAG 837MPFLAG 838TARGET 839CC 840CFLAGS 841LDFLAGS 842LIBS 843CPPFLAGS 844F77 845FFLAGS 846FC 847FCFLAGS 848CPP 849LT_SYS_LIBRARY_PATH' 850 851 852# Initialize some variables set by options. 853ac_init_help= 854ac_init_version=false 855ac_unrecognized_opts= 856ac_unrecognized_sep= 857# The variables have the same names as the options, with 858# dashes changed to underlines. 859cache_file=/dev/null 860exec_prefix=NONE 861no_create= 862no_recursion= 863prefix=NONE 864program_prefix=NONE 865program_suffix=NONE 866program_transform_name=s,x,x, 867silent= 868site= 869srcdir= 870verbose= 871x_includes=NONE 872x_libraries=NONE 873 874# Installation directory options. 875# These are left unexpanded so users can "make install exec_prefix=/foo" 876# and all the variables that are supposed to be based on exec_prefix 877# by default will actually change. 878# Use braces instead of parens because sh, perl, etc. also accept them. 879# (The list follows the same order as the GNU Coding Standards.) 880bindir='${exec_prefix}/bin' 881sbindir='${exec_prefix}/sbin' 882libexecdir='${exec_prefix}/libexec' 883datarootdir='${prefix}/share' 884datadir='${datarootdir}' 885sysconfdir='${prefix}/etc' 886sharedstatedir='${prefix}/com' 887localstatedir='${prefix}/var' 888includedir='${prefix}/include' 889oldincludedir='/usr/include' 890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 891infodir='${datarootdir}/info' 892htmldir='${docdir}' 893dvidir='${docdir}' 894pdfdir='${docdir}' 895psdir='${docdir}' 896libdir='${exec_prefix}/lib' 897localedir='${datarootdir}/locale' 898mandir='${datarootdir}/man' 899 900ac_prev= 901ac_dashdash= 902for ac_option 903do 904 # If the previous option needs an argument, assign it. 905 if test -n "$ac_prev"; then 906 eval $ac_prev=\$ac_option 907 ac_prev= 908 continue 909 fi 910 911 case $ac_option in 912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 913 *=) ac_optarg= ;; 914 *) ac_optarg=yes ;; 915 esac 916 917 # Accept the important Cygnus configure options, so we can diagnose typos. 918 919 case $ac_dashdash$ac_option in 920 --) 921 ac_dashdash=yes ;; 922 923 -bindir | --bindir | --bindi | --bind | --bin | --bi) 924 ac_prev=bindir ;; 925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 926 bindir=$ac_optarg ;; 927 928 -build | --build | --buil | --bui | --bu) 929 ac_prev=build_alias ;; 930 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 931 build_alias=$ac_optarg ;; 932 933 -cache-file | --cache-file | --cache-fil | --cache-fi \ 934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 935 ac_prev=cache_file ;; 936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 938 cache_file=$ac_optarg ;; 939 940 --config-cache | -C) 941 cache_file=config.cache ;; 942 943 -datadir | --datadir | --datadi | --datad) 944 ac_prev=datadir ;; 945 -datadir=* | --datadir=* | --datadi=* | --datad=*) 946 datadir=$ac_optarg ;; 947 948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 949 | --dataroo | --dataro | --datar) 950 ac_prev=datarootdir ;; 951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 953 datarootdir=$ac_optarg ;; 954 955 -disable-* | --disable-*) 956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 as_fn_error $? "invalid feature name: $ac_useropt" 960 ac_useropt_orig=$ac_useropt 961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 962 case $ac_user_opts in 963 *" 964"enable_$ac_useropt" 965"*) ;; 966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 967 ac_unrecognized_sep=', ';; 968 esac 969 eval enable_$ac_useropt=no ;; 970 971 -docdir | --docdir | --docdi | --doc | --do) 972 ac_prev=docdir ;; 973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 974 docdir=$ac_optarg ;; 975 976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 977 ac_prev=dvidir ;; 978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 979 dvidir=$ac_optarg ;; 980 981 -enable-* | --enable-*) 982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 983 # Reject names that are not valid shell variable names. 984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 985 as_fn_error $? "invalid feature name: $ac_useropt" 986 ac_useropt_orig=$ac_useropt 987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 988 case $ac_user_opts in 989 *" 990"enable_$ac_useropt" 991"*) ;; 992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 993 ac_unrecognized_sep=', ';; 994 esac 995 eval enable_$ac_useropt=\$ac_optarg ;; 996 997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 999 | --exec | --exe | --ex) 1000 ac_prev=exec_prefix ;; 1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1003 | --exec=* | --exe=* | --ex=*) 1004 exec_prefix=$ac_optarg ;; 1005 1006 -gas | --gas | --ga | --g) 1007 # Obsolete; use --with-gas. 1008 with_gas=yes ;; 1009 1010 -help | --help | --hel | --he | -h) 1011 ac_init_help=long ;; 1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1013 ac_init_help=recursive ;; 1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1015 ac_init_help=short ;; 1016 1017 -host | --host | --hos | --ho) 1018 ac_prev=host_alias ;; 1019 -host=* | --host=* | --hos=* | --ho=*) 1020 host_alias=$ac_optarg ;; 1021 1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1023 ac_prev=htmldir ;; 1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1025 | --ht=*) 1026 htmldir=$ac_optarg ;; 1027 1028 -includedir | --includedir | --includedi | --included | --include \ 1029 | --includ | --inclu | --incl | --inc) 1030 ac_prev=includedir ;; 1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1032 | --includ=* | --inclu=* | --incl=* | --inc=*) 1033 includedir=$ac_optarg ;; 1034 1035 -infodir | --infodir | --infodi | --infod | --info | --inf) 1036 ac_prev=infodir ;; 1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1038 infodir=$ac_optarg ;; 1039 1040 -libdir | --libdir | --libdi | --libd) 1041 ac_prev=libdir ;; 1042 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1043 libdir=$ac_optarg ;; 1044 1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1046 | --libexe | --libex | --libe) 1047 ac_prev=libexecdir ;; 1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1049 | --libexe=* | --libex=* | --libe=*) 1050 libexecdir=$ac_optarg ;; 1051 1052 -localedir | --localedir | --localedi | --localed | --locale) 1053 ac_prev=localedir ;; 1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1055 localedir=$ac_optarg ;; 1056 1057 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1058 | --localstate | --localstat | --localsta | --localst | --locals) 1059 ac_prev=localstatedir ;; 1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1062 localstatedir=$ac_optarg ;; 1063 1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1065 ac_prev=mandir ;; 1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1067 mandir=$ac_optarg ;; 1068 1069 -nfp | --nfp | --nf) 1070 # Obsolete; use --without-fp. 1071 with_fp=no ;; 1072 1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1074 | --no-cr | --no-c | -n) 1075 no_create=yes ;; 1076 1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1079 no_recursion=yes ;; 1080 1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1083 | --oldin | --oldi | --old | --ol | --o) 1084 ac_prev=oldincludedir ;; 1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1088 oldincludedir=$ac_optarg ;; 1089 1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1091 ac_prev=prefix ;; 1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1093 prefix=$ac_optarg ;; 1094 1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1096 | --program-pre | --program-pr | --program-p) 1097 ac_prev=program_prefix ;; 1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1100 program_prefix=$ac_optarg ;; 1101 1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1103 | --program-suf | --program-su | --program-s) 1104 ac_prev=program_suffix ;; 1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1107 program_suffix=$ac_optarg ;; 1108 1109 -program-transform-name | --program-transform-name \ 1110 | --program-transform-nam | --program-transform-na \ 1111 | --program-transform-n | --program-transform- \ 1112 | --program-transform | --program-transfor \ 1113 | --program-transfo | --program-transf \ 1114 | --program-trans | --program-tran \ 1115 | --progr-tra | --program-tr | --program-t) 1116 ac_prev=program_transform_name ;; 1117 -program-transform-name=* | --program-transform-name=* \ 1118 | --program-transform-nam=* | --program-transform-na=* \ 1119 | --program-transform-n=* | --program-transform-=* \ 1120 | --program-transform=* | --program-transfor=* \ 1121 | --program-transfo=* | --program-transf=* \ 1122 | --program-trans=* | --program-tran=* \ 1123 | --progr-tra=* | --program-tr=* | --program-t=*) 1124 program_transform_name=$ac_optarg ;; 1125 1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1127 ac_prev=pdfdir ;; 1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1129 pdfdir=$ac_optarg ;; 1130 1131 -psdir | --psdir | --psdi | --psd | --ps) 1132 ac_prev=psdir ;; 1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1134 psdir=$ac_optarg ;; 1135 1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1137 | -silent | --silent | --silen | --sile | --sil) 1138 silent=yes ;; 1139 1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1141 ac_prev=sbindir ;; 1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1143 | --sbi=* | --sb=*) 1144 sbindir=$ac_optarg ;; 1145 1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1148 | --sharedst | --shareds | --shared | --share | --shar \ 1149 | --sha | --sh) 1150 ac_prev=sharedstatedir ;; 1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1154 | --sha=* | --sh=*) 1155 sharedstatedir=$ac_optarg ;; 1156 1157 -site | --site | --sit) 1158 ac_prev=site ;; 1159 -site=* | --site=* | --sit=*) 1160 site=$ac_optarg ;; 1161 1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1163 ac_prev=srcdir ;; 1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1165 srcdir=$ac_optarg ;; 1166 1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1168 | --syscon | --sysco | --sysc | --sys | --sy) 1169 ac_prev=sysconfdir ;; 1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1172 sysconfdir=$ac_optarg ;; 1173 1174 -target | --target | --targe | --targ | --tar | --ta | --t) 1175 ac_prev=target_alias ;; 1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1177 target_alias=$ac_optarg ;; 1178 1179 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1180 verbose=yes ;; 1181 1182 -version | --version | --versio | --versi | --vers | -V) 1183 ac_init_version=: ;; 1184 1185 -with-* | --with-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=\$ac_optarg ;; 1200 1201 -without-* | --without-*) 1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1203 # Reject names that are not valid shell variable names. 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1205 as_fn_error $? "invalid package name: $ac_useropt" 1206 ac_useropt_orig=$ac_useropt 1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1208 case $ac_user_opts in 1209 *" 1210"with_$ac_useropt" 1211"*) ;; 1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1213 ac_unrecognized_sep=', ';; 1214 esac 1215 eval with_$ac_useropt=no ;; 1216 1217 --x) 1218 # Obsolete; use --with-x. 1219 with_x=yes ;; 1220 1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1222 | --x-incl | --x-inc | --x-in | --x-i) 1223 ac_prev=x_includes ;; 1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1226 x_includes=$ac_optarg ;; 1227 1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1230 ac_prev=x_libraries ;; 1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1233 x_libraries=$ac_optarg ;; 1234 1235 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1236Try \`$0 --help' for more information" 1237 ;; 1238 1239 *=*) 1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1241 # Reject names that are not valid shell variable names. 1242 case $ac_envvar in #( 1243 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1245 esac 1246 eval $ac_envvar=\$ac_optarg 1247 export $ac_envvar ;; 1248 1249 *) 1250 # FIXME: should be removed in autoconf 3.0. 1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1255 ;; 1256 1257 esac 1258done 1259 1260if test -n "$ac_prev"; then 1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1262 as_fn_error $? "missing argument to $ac_option" 1263fi 1264 1265if test -n "$ac_unrecognized_opts"; then 1266 case $enable_option_checking in 1267 no) ;; 1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1270 esac 1271fi 1272 1273# Check all directory arguments for consistency. 1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1275 datadir sysconfdir sharedstatedir localstatedir includedir \ 1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1277 libdir localedir mandir 1278do 1279 eval ac_val=\$$ac_var 1280 # Remove trailing slashes. 1281 case $ac_val in 1282 */ ) 1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1284 eval $ac_var=\$ac_val;; 1285 esac 1286 # Be sure to have absolute directory names. 1287 case $ac_val in 1288 [\\/$]* | ?:[\\/]* ) continue;; 1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1290 esac 1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1292done 1293 1294# There might be people who depend on the old broken behavior: `$host' 1295# used to hold the argument of --host etc. 1296# FIXME: To remove some day. 1297build=$build_alias 1298host=$host_alias 1299target=$target_alias 1300 1301# FIXME: To remove some day. 1302if test "x$host_alias" != x; then 1303 if test "x$build_alias" = x; then 1304 cross_compiling=maybe 1305 elif test "x$build_alias" != "x$host_alias"; then 1306 cross_compiling=yes 1307 fi 1308fi 1309 1310ac_tool_prefix= 1311test -n "$host_alias" && ac_tool_prefix=$host_alias- 1312 1313test "$silent" = yes && exec 6>/dev/null 1314 1315 1316ac_pwd=`pwd` && test -n "$ac_pwd" && 1317ac_ls_di=`ls -di .` && 1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1319 as_fn_error $? "working directory cannot be determined" 1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1321 as_fn_error $? "pwd does not report name of working directory" 1322 1323 1324# Find the source files, if location was not specified. 1325if test -z "$srcdir"; then 1326 ac_srcdir_defaulted=yes 1327 # Try the directory containing this script, then the parent directory. 1328 ac_confdir=`$as_dirname -- "$as_myself" || 1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1330 X"$as_myself" : 'X\(//\)[^/]' \| \ 1331 X"$as_myself" : 'X\(//\)$' \| \ 1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1333$as_echo X"$as_myself" | 1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)[^/].*/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\).*/{ 1347 s//\1/ 1348 q 1349 } 1350 s/.*/./; q'` 1351 srcdir=$ac_confdir 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 srcdir=.. 1354 fi 1355else 1356 ac_srcdir_defaulted=no 1357fi 1358if test ! -r "$srcdir/$ac_unique_file"; then 1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1361fi 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1363ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1365 pwd)` 1366# When building in place, set srcdir=. 1367if test "$ac_abs_confdir" = "$ac_pwd"; then 1368 srcdir=. 1369fi 1370# Remove unnecessary trailing slashes from srcdir. 1371# Double slashes in file names in object file debugging info 1372# mess up M-x gdb in Emacs. 1373case $srcdir in 1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1375esac 1376for ac_var in $ac_precious_vars; do 1377 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1378 eval ac_env_${ac_var}_value=\$${ac_var} 1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1381done 1382 1383# 1384# Report the --help message. 1385# 1386if test "$ac_init_help" = "long"; then 1387 # Omit some internal or obsolete options to make the list less imposing. 1388 # This message is too long to be a string in the A/UX 3.1 sh. 1389 cat <<_ACEOF 1390\`configure' configures lis 2.0.30 to adapt to many kinds of systems. 1391 1392Usage: $0 [OPTION]... [VAR=VALUE]... 1393 1394To assign environment variables (e.g., CC, CFLAGS...), specify them as 1395VAR=VALUE. See below for descriptions of some of the useful variables. 1396 1397Defaults for the options are specified in brackets. 1398 1399Configuration: 1400 -h, --help display this help and exit 1401 --help=short display options specific to this package 1402 --help=recursive display the short help of all the included packages 1403 -V, --version display version information and exit 1404 -q, --quiet, --silent do not print \`checking ...' messages 1405 --cache-file=FILE cache test results in FILE [disabled] 1406 -C, --config-cache alias for \`--cache-file=config.cache' 1407 -n, --no-create do not create output files 1408 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1409 1410Installation directories: 1411 --prefix=PREFIX install architecture-independent files in PREFIX 1412 [$ac_default_prefix] 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1414 [PREFIX] 1415 1416By default, \`make install' will install all the files in 1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1418an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1419for instance \`--prefix=\$HOME'. 1420 1421For better control, use the options below. 1422 1423Fine tuning of the installation directories: 1424 --bindir=DIR user executables [EPREFIX/bin] 1425 --sbindir=DIR system admin executables [EPREFIX/sbin] 1426 --libexecdir=DIR program executables [EPREFIX/libexec] 1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1430 --libdir=DIR object code libraries [EPREFIX/lib] 1431 --includedir=DIR C header files [PREFIX/include] 1432 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1435 --infodir=DIR info documentation [DATAROOTDIR/info] 1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1437 --mandir=DIR man documentation [DATAROOTDIR/man] 1438 --docdir=DIR documentation root [DATAROOTDIR/doc/lis] 1439 --htmldir=DIR html documentation [DOCDIR] 1440 --dvidir=DIR dvi documentation [DOCDIR] 1441 --pdfdir=DIR pdf documentation [DOCDIR] 1442 --psdir=DIR ps documentation [DOCDIR] 1443_ACEOF 1444 1445 cat <<\_ACEOF 1446 1447Program names: 1448 --program-prefix=PREFIX prepend PREFIX to installed program names 1449 --program-suffix=SUFFIX append SUFFIX to installed program names 1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1451 1452System types: 1453 --build=BUILD configure for building on BUILD [guessed] 1454 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1455 --target=TARGET configure for building compilers for TARGET [HOST] 1456_ACEOF 1457fi 1458 1459if test -n "$ac_init_help"; then 1460 case $ac_init_help in 1461 short | recursive ) echo "Configuration of lis 2.0.30:";; 1462 esac 1463 cat <<\_ACEOF 1464 1465Optional Features: 1466 --disable-option-checking ignore unrecognized --enable/--with options 1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1469 --enable-maintainer-mode enable make rules and dependencies not useful 1470 (and sometimes confusing) to the casual installer 1471 --enable-fortran enable FORTRAN 77 compatible interfaces 1472 [[default=no]] 1473 --enable-f90 enable Fortran 90 compatible interface 1474 [[default=no]] 1475 --enable-saamg enable SA-AMG preconditioner [[default=no]] 1476 --enable-mpi build with MPI library [[default=no]] 1477 --enable-omp build with OpenMP library [[default=no]] 1478 --enable-quad enable quadruple precision operations [[default=no]] 1479 --enable-sse2 use Intel Streaming SIMD Extensions [[default=yes]] 1480 --enable-fma use fused multiply add [[default=no]] 1481 --enable-debug enable debugging [[default=no]] 1482 --enable-gprof enable profiling [[default=no]] 1483 --enable-64bit build 64bit binary on AIX and Solaris x86 1484 [[default=no]] 1485 --enable-32bit build 32bit binary on Mac OS X [[default=no]] 1486 --enable-longlong enable long long int support [[default=no]] 1487 --enable-longdouble enable long double support [[default=no]] 1488 --enable-complex enable complex scalar support [[default=no]] 1489 --enable-test enable test programs [[default=yes]] 1490 --disable-dependency-tracking speeds up one-time build 1491 --enable-dependency-tracking do not reject slow dependency extractors 1492 --enable-shared[=PKGS] build shared libraries [default=no] 1493 --enable-static[=PKGS] build static libraries [default=yes] 1494 --enable-fast-install[=PKGS] 1495 optimize for fast installation [default=yes] 1496 --disable-libtool-lock avoid locking (might break parallel builds) 1497 1498Optional Packages: 1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1501 --with-library-suffix=LIBSUFFIX tag a suffix to the library names [default=] 1502 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1503 both] 1504 --with-aix-soname=aix|svr4|both 1505 shared library versioning (aka "SONAME") variant to 1506 provide on AIX, [default=aix]. 1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1508 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1509 compiler's sysroot if not specified). 1510 1511Some influential environment variables: 1512 MPICC MPI C compiler 1513 MPIF77 MPI Fortran compiler 1514 MPIRUN command to execute MPI programs 1515 OMPFLAG OpenMP flags 1516 MPFLAG floating point precision flags 1517 TARGET system architecture 1518 CC C compiler command 1519 CFLAGS C compiler flags 1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1521 nonstandard directory <lib dir> 1522 LIBS libraries to pass to the linker, e.g. -l<library> 1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1524 you have headers in a nonstandard directory <include dir> 1525 F77 Fortran 77 compiler command 1526 FFLAGS Fortran 77 compiler flags 1527 FC Fortran compiler command 1528 FCFLAGS Fortran compiler flags 1529 CPP C preprocessor 1530 LT_SYS_LIBRARY_PATH 1531 User-defined run-time library search path. 1532 1533Use these variables to override the choices made by `configure' or to help 1534it to find libraries and programs with nonstandard names/locations. 1535 1536Report bugs to <devel@ssisc.org>. 1537_ACEOF 1538ac_status=$? 1539fi 1540 1541if test "$ac_init_help" = "recursive"; then 1542 # If there are subdirs, report their specific --help. 1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1544 test -d "$ac_dir" || 1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1546 continue 1547 ac_builddir=. 1548 1549case "$ac_dir" in 1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551*) 1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1553 # A ".." for each directory in $ac_dir_suffix. 1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1555 case $ac_top_builddir_sub in 1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1558 esac ;; 1559esac 1560ac_abs_top_builddir=$ac_pwd 1561ac_abs_builddir=$ac_pwd$ac_dir_suffix 1562# for backward compatibility: 1563ac_top_builddir=$ac_top_build_prefix 1564 1565case $srcdir in 1566 .) # We are building in place. 1567 ac_srcdir=. 1568 ac_top_srcdir=$ac_top_builddir_sub 1569 ac_abs_top_srcdir=$ac_pwd ;; 1570 [\\/]* | ?:[\\/]* ) # Absolute name. 1571 ac_srcdir=$srcdir$ac_dir_suffix; 1572 ac_top_srcdir=$srcdir 1573 ac_abs_top_srcdir=$srcdir ;; 1574 *) # Relative name. 1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1576 ac_top_srcdir=$ac_top_build_prefix$srcdir 1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1578esac 1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1580 1581 cd "$ac_dir" || { ac_status=$?; continue; } 1582 # Check for guested configure. 1583 if test -f "$ac_srcdir/configure.gnu"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1586 elif test -f "$ac_srcdir/configure"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure" --help=recursive 1589 else 1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1591 fi || ac_status=$? 1592 cd "$ac_pwd" || { ac_status=$?; break; } 1593 done 1594fi 1595 1596test -n "$ac_init_help" && exit $ac_status 1597if $ac_init_version; then 1598 cat <<\_ACEOF 1599lis configure 2.0.30 1600generated by GNU Autoconf 2.69 1601 1602Copyright (C) 2012 Free Software Foundation, Inc. 1603This configure script is free software; the Free Software Foundation 1604gives unlimited permission to copy, distribute and modify it. 1605_ACEOF 1606 exit 1607fi 1608 1609## ------------------------ ## 1610## Autoconf initialization. ## 1611## ------------------------ ## 1612 1613# ac_fn_c_try_compile LINENO 1614# -------------------------- 1615# Try to compile conftest.$ac_ext, and return whether this succeeded. 1616ac_fn_c_try_compile () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 rm -f conftest.$ac_objext 1620 if { { ac_try="$ac_compile" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626$as_echo "$ac_try_echo"; } >&5 1627 (eval "$ac_compile") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { 1636 test -z "$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 } && test -s conftest.$ac_objext; then : 1639 ac_retval=0 1640else 1641 $as_echo "$as_me: failed program was:" >&5 1642sed 's/^/| /' conftest.$ac_ext >&5 1643 1644 ac_retval=1 1645fi 1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1647 as_fn_set_status $ac_retval 1648 1649} # ac_fn_c_try_compile 1650 1651# ac_fn_c_try_link LINENO 1652# ----------------------- 1653# Try to link conftest.$ac_ext, and return whether this succeeded. 1654ac_fn_c_try_link () 1655{ 1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1657 rm -f conftest.$ac_objext conftest$ac_exeext 1658 if { { ac_try="$ac_link" 1659case "(($ac_try" in 1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1661 *) ac_try_echo=$ac_try;; 1662esac 1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1664$as_echo "$ac_try_echo"; } >&5 1665 (eval "$ac_link") 2>conftest.err 1666 ac_status=$? 1667 if test -s conftest.err; then 1668 grep -v '^ *+' conftest.err >conftest.er1 1669 cat conftest.er1 >&5 1670 mv -f conftest.er1 conftest.err 1671 fi 1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1673 test $ac_status = 0; } && { 1674 test -z "$ac_c_werror_flag" || 1675 test ! -s conftest.err 1676 } && test -s conftest$ac_exeext && { 1677 test "$cross_compiling" = yes || 1678 test -x conftest$ac_exeext 1679 }; then : 1680 ac_retval=0 1681else 1682 $as_echo "$as_me: failed program was:" >&5 1683sed 's/^/| /' conftest.$ac_ext >&5 1684 1685 ac_retval=1 1686fi 1687 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1688 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1689 # interfere with the next link command; also delete a directory that is 1690 # left behind by Apple's compiler. We do this before executing the actions. 1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_link 1696 1697# ac_fn_c_check_func LINENO FUNC VAR 1698# ---------------------------------- 1699# Tests whether FUNC exists, setting the cache variable VAR accordingly 1700ac_fn_c_check_func () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1704$as_echo_n "checking for $2... " >&6; } 1705if eval \${$3+:} false; then : 1706 $as_echo_n "(cached) " >&6 1707else 1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1709/* end confdefs.h. */ 1710/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1711 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1712#define $2 innocuous_$2 1713 1714/* System header to define __stub macros and hopefully few prototypes, 1715 which can conflict with char $2 (); below. 1716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1717 <limits.h> exists even on freestanding compilers. */ 1718 1719#ifdef __STDC__ 1720# include <limits.h> 1721#else 1722# include <assert.h> 1723#endif 1724 1725#undef $2 1726 1727/* Override any GCC internal prototype to avoid an error. 1728 Use char because int might match the return type of a GCC 1729 builtin and then its argument prototype would still apply. */ 1730#ifdef __cplusplus 1731extern "C" 1732#endif 1733char $2 (); 1734/* The GNU C library defines this for functions which it implements 1735 to always fail with ENOSYS. Some functions are actually named 1736 something starting with __ and the normal name is an alias. */ 1737#if defined __stub_$2 || defined __stub___$2 1738choke me 1739#endif 1740 1741int 1742main () 1743{ 1744return $2 (); 1745 ; 1746 return 0; 1747} 1748_ACEOF 1749if ac_fn_c_try_link "$LINENO"; then : 1750 eval "$3=yes" 1751else 1752 eval "$3=no" 1753fi 1754rm -f core conftest.err conftest.$ac_objext \ 1755 conftest$ac_exeext conftest.$ac_ext 1756fi 1757eval ac_res=\$$3 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1759$as_echo "$ac_res" >&6; } 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 1762} # ac_fn_c_check_func 1763 1764# ac_fn_f77_try_compile LINENO 1765# ---------------------------- 1766# Try to compile conftest.$ac_ext, and return whether this succeeded. 1767ac_fn_f77_try_compile () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 rm -f conftest.$ac_objext 1771 if { { ac_try="$ac_compile" 1772case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777$as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_compile") 2>conftest.err 1779 ac_status=$? 1780 if test -s conftest.err; then 1781 grep -v '^ *+' conftest.err >conftest.er1 1782 cat conftest.er1 >&5 1783 mv -f conftest.er1 conftest.err 1784 fi 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } && { 1787 test -z "$ac_f77_werror_flag" || 1788 test ! -s conftest.err 1789 } && test -s conftest.$ac_objext; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=1 1796fi 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_f77_try_compile 1801 1802# ac_fn_fc_try_compile LINENO 1803# --------------------------- 1804# Try to compile conftest.$ac_ext, and return whether this succeeded. 1805ac_fn_fc_try_compile () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 rm -f conftest.$ac_objext 1809 if { { ac_try="$ac_compile" 1810case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_compile") 2>conftest.err 1817 ac_status=$? 1818 if test -s conftest.err; then 1819 grep -v '^ *+' conftest.err >conftest.er1 1820 cat conftest.er1 >&5 1821 mv -f conftest.er1 conftest.err 1822 fi 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { 1825 test -z "$ac_fc_werror_flag" || 1826 test ! -s conftest.err 1827 } && test -s conftest.$ac_objext; then : 1828 ac_retval=0 1829else 1830 $as_echo "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833 ac_retval=1 1834fi 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 as_fn_set_status $ac_retval 1837 1838} # ac_fn_fc_try_compile 1839 1840# ac_fn_c_try_run LINENO 1841# ---------------------- 1842# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1843# that executables *can* be run. 1844ac_fn_c_try_run () 1845{ 1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1847 if { { ac_try="$ac_link" 1848case "(($ac_try" in 1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1850 *) ac_try_echo=$ac_try;; 1851esac 1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1853$as_echo "$ac_try_echo"; } >&5 1854 (eval "$ac_link") 2>&5 1855 ac_status=$? 1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1857 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1858 { { case "(($ac_try" in 1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1860 *) ac_try_echo=$ac_try;; 1861esac 1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1863$as_echo "$ac_try_echo"; } >&5 1864 (eval "$ac_try") 2>&5 1865 ac_status=$? 1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1867 test $ac_status = 0; }; }; then : 1868 ac_retval=0 1869else 1870 $as_echo "$as_me: program exited with status $ac_status" >&5 1871 $as_echo "$as_me: failed program was:" >&5 1872sed 's/^/| /' conftest.$ac_ext >&5 1873 1874 ac_retval=$ac_status 1875fi 1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 as_fn_set_status $ac_retval 1879 1880} # ac_fn_c_try_run 1881 1882# ac_fn_c_try_cpp LINENO 1883# ---------------------- 1884# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1885ac_fn_c_try_cpp () 1886{ 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 if { { ac_try="$ac_cpp conftest.$ac_ext" 1889case "(($ac_try" in 1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1891 *) ac_try_echo=$ac_try;; 1892esac 1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1894$as_echo "$ac_try_echo"; } >&5 1895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1896 ac_status=$? 1897 if test -s conftest.err; then 1898 grep -v '^ *+' conftest.err >conftest.er1 1899 cat conftest.er1 >&5 1900 mv -f conftest.er1 conftest.err 1901 fi 1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1903 test $ac_status = 0; } > conftest.i && { 1904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1905 test ! -s conftest.err 1906 }; then : 1907 ac_retval=0 1908else 1909 $as_echo "$as_me: failed program was:" >&5 1910sed 's/^/| /' conftest.$ac_ext >&5 1911 1912 ac_retval=1 1913fi 1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1915 as_fn_set_status $ac_retval 1916 1917} # ac_fn_c_try_cpp 1918 1919# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1920# ------------------------------------------------------- 1921# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1922# the include files in INCLUDES and setting the cache variable VAR 1923# accordingly. 1924ac_fn_c_check_header_mongrel () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 if eval \${$3+:} false; then : 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1929$as_echo_n "checking for $2... " >&6; } 1930if eval \${$3+:} false; then : 1931 $as_echo_n "(cached) " >&6 1932fi 1933eval ac_res=\$$3 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1935$as_echo "$ac_res" >&6; } 1936else 1937 # Is the header compilable? 1938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1939$as_echo_n "checking $2 usability... " >&6; } 1940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942$4 1943#include <$2> 1944_ACEOF 1945if ac_fn_c_try_compile "$LINENO"; then : 1946 ac_header_compiler=yes 1947else 1948 ac_header_compiler=no 1949fi 1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1952$as_echo "$ac_header_compiler" >&6; } 1953 1954# Is the header present? 1955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1956$as_echo_n "checking $2 presence... " >&6; } 1957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1958/* end confdefs.h. */ 1959#include <$2> 1960_ACEOF 1961if ac_fn_c_try_cpp "$LINENO"; then : 1962 ac_header_preproc=yes 1963else 1964 ac_header_preproc=no 1965fi 1966rm -f conftest.err conftest.i conftest.$ac_ext 1967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1968$as_echo "$ac_header_preproc" >&6; } 1969 1970# So? What about this header? 1971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1972 yes:no: ) 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1974$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1976$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1977 ;; 1978 no:yes:* ) 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1980$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1982$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1984$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1986$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1988$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1989( $as_echo "## ------------------------------ ## 1990## Report this to devel@ssisc.org ## 1991## ------------------------------ ##" 1992 ) | sed "s/^/$as_me: WARNING: /" >&2 1993 ;; 1994esac 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1996$as_echo_n "checking for $2... " >&6; } 1997if eval \${$3+:} false; then : 1998 $as_echo_n "(cached) " >&6 1999else 2000 eval "$3=\$ac_header_compiler" 2001fi 2002eval ac_res=\$$3 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2004$as_echo "$ac_res" >&6; } 2005fi 2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2007 2008} # ac_fn_c_check_header_mongrel 2009 2010# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2011# ------------------------------------------------------- 2012# Tests whether HEADER exists and can be compiled using the include files in 2013# INCLUDES, setting the cache variable VAR accordingly. 2014ac_fn_c_check_header_compile () 2015{ 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2018$as_echo_n "checking for $2... " >&6; } 2019if eval \${$3+:} false; then : 2020 $as_echo_n "(cached) " >&6 2021else 2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2023/* end confdefs.h. */ 2024$4 2025#include <$2> 2026_ACEOF 2027if ac_fn_c_try_compile "$LINENO"; then : 2028 eval "$3=yes" 2029else 2030 eval "$3=no" 2031fi 2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2033fi 2034eval ac_res=\$$3 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036$as_echo "$ac_res" >&6; } 2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2038 2039} # ac_fn_c_check_header_compile 2040 2041# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2042# -------------------------------------------- 2043# Tries to find the compile-time value of EXPR in a program that includes 2044# INCLUDES, setting VAR accordingly. Returns whether the value could be 2045# computed 2046ac_fn_c_compute_int () 2047{ 2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2049 if test "$cross_compiling" = yes; then 2050 # Depending upon the size, compute the lo and hi bounds. 2051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2052/* end confdefs.h. */ 2053$4 2054#ifdef F77_DUMMY_MAIN 2055 2056# ifdef __cplusplus 2057 extern "C" 2058# endif 2059 int F77_DUMMY_MAIN() { return 1; } 2060 2061#endif 2062int 2063main () 2064{ 2065static int test_array [1 - 2 * !(($2) >= 0)]; 2066test_array [0] = 0; 2067return test_array [0]; 2068 2069 ; 2070 return 0; 2071} 2072_ACEOF 2073if ac_fn_c_try_compile "$LINENO"; then : 2074 ac_lo=0 ac_mid=0 2075 while :; do 2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2077/* end confdefs.h. */ 2078$4 2079#ifdef F77_DUMMY_MAIN 2080 2081# ifdef __cplusplus 2082 extern "C" 2083# endif 2084 int F77_DUMMY_MAIN() { return 1; } 2085 2086#endif 2087int 2088main () 2089{ 2090static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2091test_array [0] = 0; 2092return test_array [0]; 2093 2094 ; 2095 return 0; 2096} 2097_ACEOF 2098if ac_fn_c_try_compile "$LINENO"; then : 2099 ac_hi=$ac_mid; break 2100else 2101 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2102 if test $ac_lo -le $ac_mid; then 2103 ac_lo= ac_hi= 2104 break 2105 fi 2106 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2107fi 2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2109 done 2110else 2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2112/* end confdefs.h. */ 2113$4 2114#ifdef F77_DUMMY_MAIN 2115 2116# ifdef __cplusplus 2117 extern "C" 2118# endif 2119 int F77_DUMMY_MAIN() { return 1; } 2120 2121#endif 2122int 2123main () 2124{ 2125static int test_array [1 - 2 * !(($2) < 0)]; 2126test_array [0] = 0; 2127return test_array [0]; 2128 2129 ; 2130 return 0; 2131} 2132_ACEOF 2133if ac_fn_c_try_compile "$LINENO"; then : 2134 ac_hi=-1 ac_mid=-1 2135 while :; do 2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2137/* end confdefs.h. */ 2138$4 2139#ifdef F77_DUMMY_MAIN 2140 2141# ifdef __cplusplus 2142 extern "C" 2143# endif 2144 int F77_DUMMY_MAIN() { return 1; } 2145 2146#endif 2147int 2148main () 2149{ 2150static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2151test_array [0] = 0; 2152return test_array [0]; 2153 2154 ; 2155 return 0; 2156} 2157_ACEOF 2158if ac_fn_c_try_compile "$LINENO"; then : 2159 ac_lo=$ac_mid; break 2160else 2161 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2162 if test $ac_mid -le $ac_hi; then 2163 ac_lo= ac_hi= 2164 break 2165 fi 2166 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2167fi 2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2169 done 2170else 2171 ac_lo= ac_hi= 2172fi 2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2174fi 2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2176# Binary search between lo and hi bounds. 2177while test "x$ac_lo" != "x$ac_hi"; do 2178 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2180/* end confdefs.h. */ 2181$4 2182#ifdef F77_DUMMY_MAIN 2183 2184# ifdef __cplusplus 2185 extern "C" 2186# endif 2187 int F77_DUMMY_MAIN() { return 1; } 2188 2189#endif 2190int 2191main () 2192{ 2193static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2194test_array [0] = 0; 2195return test_array [0]; 2196 2197 ; 2198 return 0; 2199} 2200_ACEOF 2201if ac_fn_c_try_compile "$LINENO"; then : 2202 ac_hi=$ac_mid 2203else 2204 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2205fi 2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2207done 2208case $ac_lo in #(( 2209?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2210'') ac_retval=1 ;; 2211esac 2212 else 2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2214/* end confdefs.h. */ 2215$4 2216static long int longval () { return $2; } 2217static unsigned long int ulongval () { return $2; } 2218#include <stdio.h> 2219#include <stdlib.h> 2220#ifdef F77_DUMMY_MAIN 2221 2222# ifdef __cplusplus 2223 extern "C" 2224# endif 2225 int F77_DUMMY_MAIN() { return 1; } 2226 2227#endif 2228int 2229main () 2230{ 2231 2232 FILE *f = fopen ("conftest.val", "w"); 2233 if (! f) 2234 return 1; 2235 if (($2) < 0) 2236 { 2237 long int i = longval (); 2238 if (i != ($2)) 2239 return 1; 2240 fprintf (f, "%ld", i); 2241 } 2242 else 2243 { 2244 unsigned long int i = ulongval (); 2245 if (i != ($2)) 2246 return 1; 2247 fprintf (f, "%lu", i); 2248 } 2249 /* Do not output a trailing newline, as this causes \r\n confusion 2250 on some platforms. */ 2251 return ferror (f) || fclose (f) != 0; 2252 2253 ; 2254 return 0; 2255} 2256_ACEOF 2257if ac_fn_c_try_run "$LINENO"; then : 2258 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2259else 2260 ac_retval=1 2261fi 2262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2263 conftest.$ac_objext conftest.beam conftest.$ac_ext 2264rm -f conftest.val 2265 2266 fi 2267 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2268 as_fn_set_status $ac_retval 2269 2270} # ac_fn_c_compute_int 2271 2272# ac_fn_f77_try_link LINENO 2273# ------------------------- 2274# Try to link conftest.$ac_ext, and return whether this succeeded. 2275ac_fn_f77_try_link () 2276{ 2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2278 rm -f conftest.$ac_objext conftest$ac_exeext 2279 if { { ac_try="$ac_link" 2280case "(($ac_try" in 2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2282 *) ac_try_echo=$ac_try;; 2283esac 2284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2285$as_echo "$ac_try_echo"; } >&5 2286 (eval "$ac_link") 2>conftest.err 2287 ac_status=$? 2288 if test -s conftest.err; then 2289 grep -v '^ *+' conftest.err >conftest.er1 2290 cat conftest.er1 >&5 2291 mv -f conftest.er1 conftest.err 2292 fi 2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2294 test $ac_status = 0; } && { 2295 test -z "$ac_f77_werror_flag" || 2296 test ! -s conftest.err 2297 } && test -s conftest$ac_exeext && { 2298 test "$cross_compiling" = yes || 2299 test -x conftest$ac_exeext 2300 }; then : 2301 ac_retval=0 2302else 2303 $as_echo "$as_me: failed program was:" >&5 2304sed 's/^/| /' conftest.$ac_ext >&5 2305 2306 ac_retval=1 2307fi 2308 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2309 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2310 # interfere with the next link command; also delete a directory that is 2311 # left behind by Apple's compiler. We do this before executing the actions. 2312 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2313 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2314 as_fn_set_status $ac_retval 2315 2316} # ac_fn_f77_try_link 2317 2318# ac_fn_fc_try_link LINENO 2319# ------------------------ 2320# Try to link conftest.$ac_ext, and return whether this succeeded. 2321ac_fn_fc_try_link () 2322{ 2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2324 rm -f conftest.$ac_objext conftest$ac_exeext 2325 if { { ac_try="$ac_link" 2326case "(($ac_try" in 2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2328 *) ac_try_echo=$ac_try;; 2329esac 2330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2331$as_echo "$ac_try_echo"; } >&5 2332 (eval "$ac_link") 2>conftest.err 2333 ac_status=$? 2334 if test -s conftest.err; then 2335 grep -v '^ *+' conftest.err >conftest.er1 2336 cat conftest.er1 >&5 2337 mv -f conftest.er1 conftest.err 2338 fi 2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2340 test $ac_status = 0; } && { 2341 test -z "$ac_fc_werror_flag" || 2342 test ! -s conftest.err 2343 } && test -s conftest$ac_exeext && { 2344 test "$cross_compiling" = yes || 2345 test -x conftest$ac_exeext 2346 }; then : 2347 ac_retval=0 2348else 2349 $as_echo "$as_me: failed program was:" >&5 2350sed 's/^/| /' conftest.$ac_ext >&5 2351 2352 ac_retval=1 2353fi 2354 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2355 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2356 # interfere with the next link command; also delete a directory that is 2357 # left behind by Apple's compiler. We do this before executing the actions. 2358 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2360 as_fn_set_status $ac_retval 2361 2362} # ac_fn_fc_try_link 2363 2364# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2365# ------------------------------------------- 2366# Tests whether TYPE exists after having included INCLUDES, setting cache 2367# variable VAR accordingly. 2368ac_fn_c_check_type () 2369{ 2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2372$as_echo_n "checking for $2... " >&6; } 2373if eval \${$3+:} false; then : 2374 $as_echo_n "(cached) " >&6 2375else 2376 eval "$3=no" 2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2378/* end confdefs.h. */ 2379$4 2380#ifdef F77_DUMMY_MAIN 2381 2382# ifdef __cplusplus 2383 extern "C" 2384# endif 2385 int F77_DUMMY_MAIN() { return 1; } 2386 2387#endif 2388int 2389main () 2390{ 2391if (sizeof ($2)) 2392 return 0; 2393 ; 2394 return 0; 2395} 2396_ACEOF 2397if ac_fn_c_try_compile "$LINENO"; then : 2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2399/* end confdefs.h. */ 2400$4 2401#ifdef F77_DUMMY_MAIN 2402 2403# ifdef __cplusplus 2404 extern "C" 2405# endif 2406 int F77_DUMMY_MAIN() { return 1; } 2407 2408#endif 2409int 2410main () 2411{ 2412if (sizeof (($2))) 2413 return 0; 2414 ; 2415 return 0; 2416} 2417_ACEOF 2418if ac_fn_c_try_compile "$LINENO"; then : 2419 2420else 2421 eval "$3=yes" 2422fi 2423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2424fi 2425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2426fi 2427eval ac_res=\$$3 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2429$as_echo "$ac_res" >&6; } 2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2431 2432} # ac_fn_c_check_type 2433cat >config.log <<_ACEOF 2434This file contains any messages produced by compilers while 2435running configure, to aid debugging if configure makes a mistake. 2436 2437It was created by lis $as_me 2.0.30, which was 2438generated by GNU Autoconf 2.69. Invocation command line was 2439 2440 $ $0 $@ 2441 2442_ACEOF 2443exec 5>>config.log 2444{ 2445cat <<_ASUNAME 2446## --------- ## 2447## Platform. ## 2448## --------- ## 2449 2450hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2451uname -m = `(uname -m) 2>/dev/null || echo unknown` 2452uname -r = `(uname -r) 2>/dev/null || echo unknown` 2453uname -s = `(uname -s) 2>/dev/null || echo unknown` 2454uname -v = `(uname -v) 2>/dev/null || echo unknown` 2455 2456/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2457/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2458 2459/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2460/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2461/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2462/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2463/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2464/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2465/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2466 2467_ASUNAME 2468 2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2470for as_dir in $PATH 2471do 2472 IFS=$as_save_IFS 2473 test -z "$as_dir" && as_dir=. 2474 $as_echo "PATH: $as_dir" 2475 done 2476IFS=$as_save_IFS 2477 2478} >&5 2479 2480cat >&5 <<_ACEOF 2481 2482 2483## ----------- ## 2484## Core tests. ## 2485## ----------- ## 2486 2487_ACEOF 2488 2489 2490# Keep a trace of the command line. 2491# Strip out --no-create and --no-recursion so they do not pile up. 2492# Strip out --silent because we don't want to record it for future runs. 2493# Also quote any args containing shell meta-characters. 2494# Make two passes to allow for proper duplicate-argument suppression. 2495ac_configure_args= 2496ac_configure_args0= 2497ac_configure_args1= 2498ac_must_keep_next=false 2499for ac_pass in 1 2 2500do 2501 for ac_arg 2502 do 2503 case $ac_arg in 2504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2506 | -silent | --silent | --silen | --sile | --sil) 2507 continue ;; 2508 *\'*) 2509 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2510 esac 2511 case $ac_pass in 2512 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2513 2) 2514 as_fn_append ac_configure_args1 " '$ac_arg'" 2515 if test $ac_must_keep_next = true; then 2516 ac_must_keep_next=false # Got value, back to normal. 2517 else 2518 case $ac_arg in 2519 *=* | --config-cache | -C | -disable-* | --disable-* \ 2520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2522 | -with-* | --with-* | -without-* | --without-* | --x) 2523 case "$ac_configure_args0 " in 2524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2525 esac 2526 ;; 2527 -* ) ac_must_keep_next=true ;; 2528 esac 2529 fi 2530 as_fn_append ac_configure_args " '$ac_arg'" 2531 ;; 2532 esac 2533 done 2534done 2535{ ac_configure_args0=; unset ac_configure_args0;} 2536{ ac_configure_args1=; unset ac_configure_args1;} 2537 2538# When interrupted or exit'd, cleanup temporary files, and complete 2539# config.log. We remove comments because anyway the quotes in there 2540# would cause problems or look ugly. 2541# WARNING: Use '\'' to represent an apostrophe within the trap. 2542# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2543trap 'exit_status=$? 2544 # Save into config.log some information that might help in debugging. 2545 { 2546 echo 2547 2548 $as_echo "## ---------------- ## 2549## Cache variables. ## 2550## ---------------- ##" 2551 echo 2552 # The following way of writing the cache mishandles newlines in values, 2553( 2554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2555 eval ac_val=\$$ac_var 2556 case $ac_val in #( 2557 *${as_nl}*) 2558 case $ac_var in #( 2559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2560$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2561 esac 2562 case $ac_var in #( 2563 _ | IFS | as_nl) ;; #( 2564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2565 *) { eval $ac_var=; unset $ac_var;} ;; 2566 esac ;; 2567 esac 2568 done 2569 (set) 2>&1 | 2570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2571 *${as_nl}ac_space=\ *) 2572 sed -n \ 2573 "s/'\''/'\''\\\\'\'''\''/g; 2574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2575 ;; #( 2576 *) 2577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2578 ;; 2579 esac | 2580 sort 2581) 2582 echo 2583 2584 $as_echo "## ----------------- ## 2585## Output variables. ## 2586## ----------------- ##" 2587 echo 2588 for ac_var in $ac_subst_vars 2589 do 2590 eval ac_val=\$$ac_var 2591 case $ac_val in 2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2593 esac 2594 $as_echo "$ac_var='\''$ac_val'\''" 2595 done | sort 2596 echo 2597 2598 if test -n "$ac_subst_files"; then 2599 $as_echo "## ------------------- ## 2600## File substitutions. ## 2601## ------------------- ##" 2602 echo 2603 for ac_var in $ac_subst_files 2604 do 2605 eval ac_val=\$$ac_var 2606 case $ac_val in 2607 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2608 esac 2609 $as_echo "$ac_var='\''$ac_val'\''" 2610 done | sort 2611 echo 2612 fi 2613 2614 if test -s confdefs.h; then 2615 $as_echo "## ----------- ## 2616## confdefs.h. ## 2617## ----------- ##" 2618 echo 2619 cat confdefs.h 2620 echo 2621 fi 2622 test "$ac_signal" != 0 && 2623 $as_echo "$as_me: caught signal $ac_signal" 2624 $as_echo "$as_me: exit $exit_status" 2625 } >&5 2626 rm -f core *.core core.conftest.* && 2627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2628 exit $exit_status 2629' 0 2630for ac_signal in 1 2 13 15; do 2631 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2632done 2633ac_signal=0 2634 2635# confdefs.h avoids OS command line length limits that DEFS can exceed. 2636rm -f -r conftest* confdefs.h 2637 2638$as_echo "/* confdefs.h */" > confdefs.h 2639 2640# Predefined preprocessor variables. 2641 2642cat >>confdefs.h <<_ACEOF 2643#define PACKAGE_NAME "$PACKAGE_NAME" 2644_ACEOF 2645 2646cat >>confdefs.h <<_ACEOF 2647#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2648_ACEOF 2649 2650cat >>confdefs.h <<_ACEOF 2651#define PACKAGE_VERSION "$PACKAGE_VERSION" 2652_ACEOF 2653 2654cat >>confdefs.h <<_ACEOF 2655#define PACKAGE_STRING "$PACKAGE_STRING" 2656_ACEOF 2657 2658cat >>confdefs.h <<_ACEOF 2659#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2660_ACEOF 2661 2662cat >>confdefs.h <<_ACEOF 2663#define PACKAGE_URL "$PACKAGE_URL" 2664_ACEOF 2665 2666 2667# Let the site file select an alternate cache file if it wants to. 2668# Prefer an explicitly selected file to automatically selected ones. 2669ac_site_file1=NONE 2670ac_site_file2=NONE 2671if test -n "$CONFIG_SITE"; then 2672 # We do not want a PATH search for config.site. 2673 case $CONFIG_SITE in #(( 2674 -*) ac_site_file1=./$CONFIG_SITE;; 2675 */*) ac_site_file1=$CONFIG_SITE;; 2676 *) ac_site_file1=./$CONFIG_SITE;; 2677 esac 2678elif test "x$prefix" != xNONE; then 2679 ac_site_file1=$prefix/share/config.site 2680 ac_site_file2=$prefix/etc/config.site 2681else 2682 ac_site_file1=$ac_default_prefix/share/config.site 2683 ac_site_file2=$ac_default_prefix/etc/config.site 2684fi 2685for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2686do 2687 test "x$ac_site_file" = xNONE && continue 2688 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2690$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2691 sed 's/^/| /' "$ac_site_file" >&5 2692 . "$ac_site_file" \ 2693 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2695as_fn_error $? "failed to load site script $ac_site_file 2696See \`config.log' for more details" "$LINENO" 5; } 2697 fi 2698done 2699 2700if test -r "$cache_file"; then 2701 # Some versions of bash will fail to source /dev/null (special files 2702 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2703 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2705$as_echo "$as_me: loading cache $cache_file" >&6;} 2706 case $cache_file in 2707 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2708 *) . "./$cache_file";; 2709 esac 2710 fi 2711else 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2713$as_echo "$as_me: creating cache $cache_file" >&6;} 2714 >$cache_file 2715fi 2716 2717# Check that the precious variables saved in the cache have kept the same 2718# value. 2719ac_cache_corrupted=false 2720for ac_var in $ac_precious_vars; do 2721 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2722 eval ac_new_set=\$ac_env_${ac_var}_set 2723 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2724 eval ac_new_val=\$ac_env_${ac_var}_value 2725 case $ac_old_set,$ac_new_set in 2726 set,) 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2728$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2729 ac_cache_corrupted=: ;; 2730 ,set) 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2732$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2733 ac_cache_corrupted=: ;; 2734 ,);; 2735 *) 2736 if test "x$ac_old_val" != "x$ac_new_val"; then 2737 # differences in whitespace do not lead to failure. 2738 ac_old_val_w=`echo x $ac_old_val` 2739 ac_new_val_w=`echo x $ac_new_val` 2740 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2742$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2743 ac_cache_corrupted=: 2744 else 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2746$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2747 eval $ac_var=\$ac_old_val 2748 fi 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2750$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2751 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2752$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2753 fi;; 2754 esac 2755 # Pass precious variables to config.status. 2756 if test "$ac_new_set" = set; then 2757 case $ac_new_val in 2758 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2759 *) ac_arg=$ac_var=$ac_new_val ;; 2760 esac 2761 case " $ac_configure_args " in 2762 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2763 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2764 esac 2765 fi 2766done 2767if $ac_cache_corrupted; then 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2771$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2772 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2773fi 2774## -------------------- ## 2775## Main body of script. ## 2776## -------------------- ## 2777 2778ac_ext=c 2779ac_cpp='$CPP $CPPFLAGS' 2780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2782ac_compiler_gnu=$ac_cv_c_compiler_gnu 2783 2784 2785 2786ac_aux_dir= 2787for ac_dir in config "$srcdir"/config; do 2788 if test -f "$ac_dir/install-sh"; then 2789 ac_aux_dir=$ac_dir 2790 ac_install_sh="$ac_aux_dir/install-sh -c" 2791 break 2792 elif test -f "$ac_dir/install.sh"; then 2793 ac_aux_dir=$ac_dir 2794 ac_install_sh="$ac_aux_dir/install.sh -c" 2795 break 2796 elif test -f "$ac_dir/shtool"; then 2797 ac_aux_dir=$ac_dir 2798 ac_install_sh="$ac_aux_dir/shtool install -c" 2799 break 2800 fi 2801done 2802if test -z "$ac_aux_dir"; then 2803 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2804fi 2805 2806# These three variables are undocumented and unsupported, 2807# and are intended to be withdrawn in a future Autoconf release. 2808# They can cause serious problems if a builder's source tree is in a directory 2809# whose full name contains unusual characters. 2810ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2811ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2812ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2813 2814 2815 2816 2817# Make sure we can run config.sub. 2818$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2819 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2820 2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2822$as_echo_n "checking build system type... " >&6; } 2823if ${ac_cv_build+:} false; then : 2824 $as_echo_n "(cached) " >&6 2825else 2826 ac_build_alias=$build_alias 2827test "x$ac_build_alias" = x && 2828 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2829test "x$ac_build_alias" = x && 2830 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2831ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2832 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2833 2834fi 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2836$as_echo "$ac_cv_build" >&6; } 2837case $ac_cv_build in 2838*-*-*) ;; 2839*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2840esac 2841build=$ac_cv_build 2842ac_save_IFS=$IFS; IFS='-' 2843set x $ac_cv_build 2844shift 2845build_cpu=$1 2846build_vendor=$2 2847shift; shift 2848# Remember, the first character of IFS is used to create $*, 2849# except with old shells: 2850build_os=$* 2851IFS=$ac_save_IFS 2852case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2853 2854 2855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2856$as_echo_n "checking host system type... " >&6; } 2857if ${ac_cv_host+:} false; then : 2858 $as_echo_n "(cached) " >&6 2859else 2860 if test "x$host_alias" = x; then 2861 ac_cv_host=$ac_cv_build 2862else 2863 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2864 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2865fi 2866 2867fi 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2869$as_echo "$ac_cv_host" >&6; } 2870case $ac_cv_host in 2871*-*-*) ;; 2872*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2873esac 2874host=$ac_cv_host 2875ac_save_IFS=$IFS; IFS='-' 2876set x $ac_cv_host 2877shift 2878host_cpu=$1 2879host_vendor=$2 2880shift; shift 2881# Remember, the first character of IFS is used to create $*, 2882# except with old shells: 2883host_os=$* 2884IFS=$ac_save_IFS 2885case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2886 2887 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2889$as_echo_n "checking target system type... " >&6; } 2890if ${ac_cv_target+:} false; then : 2891 $as_echo_n "(cached) " >&6 2892else 2893 if test "x$target_alias" = x; then 2894 ac_cv_target=$ac_cv_host 2895else 2896 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2897 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2898fi 2899 2900fi 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2902$as_echo "$ac_cv_target" >&6; } 2903case $ac_cv_target in 2904*-*-*) ;; 2905*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2906esac 2907target=$ac_cv_target 2908ac_save_IFS=$IFS; IFS='-' 2909set x $ac_cv_target 2910shift 2911target_cpu=$1 2912target_vendor=$2 2913shift; shift 2914# Remember, the first character of IFS is used to create $*, 2915# except with old shells: 2916target_os=$* 2917IFS=$ac_save_IFS 2918case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2919 2920 2921# The aliases save the names the user supplied, while $host etc. 2922# will get canonicalized. 2923test -n "$target_alias" && 2924 test "$program_prefix$program_suffix$program_transform_name" = \ 2925 NONENONEs,x,x, && 2926 program_prefix=${target_alias}- 2927 2928am__api_version='1.11' 2929 2930# Find a good install program. We prefer a C program (faster), 2931# so one script is as good as another. But avoid the broken or 2932# incompatible versions: 2933# SysV /etc/install, /usr/sbin/install 2934# SunOS /usr/etc/install 2935# IRIX /sbin/install 2936# AIX /bin/install 2937# AmigaOS /C/install, which installs bootblocks on floppy discs 2938# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2939# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2940# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2941# OS/2's system install, which has a completely different semantic 2942# ./install, which can be erroneously created by make from ./install.sh. 2943# Reject install programs that cannot install multiple files. 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2945$as_echo_n "checking for a BSD-compatible install... " >&6; } 2946if test -z "$INSTALL"; then 2947if ${ac_cv_path_install+:} false; then : 2948 $as_echo_n "(cached) " >&6 2949else 2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951for as_dir in $PATH 2952do 2953 IFS=$as_save_IFS 2954 test -z "$as_dir" && as_dir=. 2955 # Account for people who put trailing slashes in PATH elements. 2956case $as_dir/ in #(( 2957 ./ | .// | /[cC]/* | \ 2958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2959 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2960 /usr/ucb/* ) ;; 2961 *) 2962 # OSF1 and SCO ODT 3.0 have their own names for install. 2963 # Don't use installbsd from OSF since it installs stuff as root 2964 # by default. 2965 for ac_prog in ginstall scoinst install; do 2966 for ac_exec_ext in '' $ac_executable_extensions; do 2967 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2968 if test $ac_prog = install && 2969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2970 # AIX install. It has an incompatible calling convention. 2971 : 2972 elif test $ac_prog = install && 2973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2974 # program-specific install script used by HP pwplus--don't use. 2975 : 2976 else 2977 rm -rf conftest.one conftest.two conftest.dir 2978 echo one > conftest.one 2979 echo two > conftest.two 2980 mkdir conftest.dir 2981 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2982 test -s conftest.one && test -s conftest.two && 2983 test -s conftest.dir/conftest.one && 2984 test -s conftest.dir/conftest.two 2985 then 2986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2987 break 3 2988 fi 2989 fi 2990 fi 2991 done 2992 done 2993 ;; 2994esac 2995 2996 done 2997IFS=$as_save_IFS 2998 2999rm -rf conftest.one conftest.two conftest.dir 3000 3001fi 3002 if test "${ac_cv_path_install+set}" = set; then 3003 INSTALL=$ac_cv_path_install 3004 else 3005 # As a last resort, use the slow shell script. Don't cache a 3006 # value for INSTALL within a source directory, because that will 3007 # break other packages using the cache if that directory is 3008 # removed, or if the value is a relative name. 3009 INSTALL=$ac_install_sh 3010 fi 3011fi 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3013$as_echo "$INSTALL" >&6; } 3014 3015# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3016# It thinks the first close brace ends the variable substitution. 3017test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3018 3019test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3020 3021test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3022 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3024$as_echo_n "checking whether build environment is sane... " >&6; } 3025# Just in case 3026sleep 1 3027echo timestamp > conftest.file 3028# Reject unsafe characters in $srcdir or the absolute working directory 3029# name. Accept space and tab only in the latter. 3030am_lf=' 3031' 3032case `pwd` in 3033 *[\\\"\#\$\&\'\`$am_lf]*) 3034 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3035esac 3036case $srcdir in 3037 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3038 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3039esac 3040 3041# Do `set' in a subshell so we don't clobber the current shell's 3042# arguments. Must try -L first in case configure is actually a 3043# symlink; some systems play weird games with the mod time of symlinks 3044# (eg FreeBSD returns the mod time of the symlink's containing 3045# directory). 3046if ( 3047 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3048 if test "$*" = "X"; then 3049 # -L didn't work. 3050 set X `ls -t "$srcdir/configure" conftest.file` 3051 fi 3052 rm -f conftest.file 3053 if test "$*" != "X $srcdir/configure conftest.file" \ 3054 && test "$*" != "X conftest.file $srcdir/configure"; then 3055 3056 # If neither matched, then we have a broken ls. This can happen 3057 # if, for instance, CONFIG_SHELL is bash and it inherits a 3058 # broken ls alias from the environment. This has actually 3059 # happened. Such a system could not be considered "sane". 3060 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3061alias in your environment" "$LINENO" 5 3062 fi 3063 3064 test "$2" = conftest.file 3065 ) 3066then 3067 # Ok. 3068 : 3069else 3070 as_fn_error $? "newly created file is older than distributed files! 3071Check your system clock" "$LINENO" 5 3072fi 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3074$as_echo "yes" >&6; } 3075test "$program_prefix" != NONE && 3076 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3077# Use a double $ so make ignores it. 3078test "$program_suffix" != NONE && 3079 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3080# Double any \ or $. 3081# By default was `s,x,x', remove it if useless. 3082ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3083program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3084 3085# expand $ac_aux_dir to an absolute path 3086am_aux_dir=`cd $ac_aux_dir && pwd` 3087 3088if test x"${MISSING+set}" != xset; then 3089 case $am_aux_dir in 3090 *\ * | *\ *) 3091 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3092 *) 3093 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3094 esac 3095fi 3096# Use eval to expand $SHELL 3097if eval "$MISSING --run true"; then 3098 am_missing_run="$MISSING --run " 3099else 3100 am_missing_run= 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3102$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3103fi 3104 3105if test x"${install_sh}" != xset; then 3106 case $am_aux_dir in 3107 *\ * | *\ *) 3108 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3109 *) 3110 install_sh="\${SHELL} $am_aux_dir/install-sh" 3111 esac 3112fi 3113 3114# Installed binaries are usually stripped using `strip' when the user 3115# run `make install-strip'. However `strip' might not be the right 3116# tool to use in cross-compilation environments, therefore Automake 3117# will honor the `STRIP' environment variable to overrule this program. 3118if test "$cross_compiling" != no; then 3119 if test -n "$ac_tool_prefix"; then 3120 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3121set dummy ${ac_tool_prefix}strip; ac_word=$2 3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3123$as_echo_n "checking for $ac_word... " >&6; } 3124if ${ac_cv_prog_STRIP+:} false; then : 3125 $as_echo_n "(cached) " >&6 3126else 3127 if test -n "$STRIP"; then 3128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3129else 3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3131for as_dir in $PATH 3132do 3133 IFS=$as_save_IFS 3134 test -z "$as_dir" && as_dir=. 3135 for ac_exec_ext in '' $ac_executable_extensions; do 3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3137 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3139 break 2 3140 fi 3141done 3142 done 3143IFS=$as_save_IFS 3144 3145fi 3146fi 3147STRIP=$ac_cv_prog_STRIP 3148if test -n "$STRIP"; then 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3150$as_echo "$STRIP" >&6; } 3151else 3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3153$as_echo "no" >&6; } 3154fi 3155 3156 3157fi 3158if test -z "$ac_cv_prog_STRIP"; then 3159 ac_ct_STRIP=$STRIP 3160 # Extract the first word of "strip", so it can be a program name with args. 3161set dummy strip; ac_word=$2 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3163$as_echo_n "checking for $ac_word... " >&6; } 3164if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3165 $as_echo_n "(cached) " >&6 3166else 3167 if test -n "$ac_ct_STRIP"; then 3168 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3169else 3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH 3172do 3173 IFS=$as_save_IFS 3174 test -z "$as_dir" && as_dir=. 3175 for ac_exec_ext in '' $ac_executable_extensions; do 3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3177 ac_cv_prog_ac_ct_STRIP="strip" 3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3179 break 2 3180 fi 3181done 3182 done 3183IFS=$as_save_IFS 3184 3185fi 3186fi 3187ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3188if test -n "$ac_ct_STRIP"; then 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3190$as_echo "$ac_ct_STRIP" >&6; } 3191else 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3193$as_echo "no" >&6; } 3194fi 3195 3196 if test "x$ac_ct_STRIP" = x; then 3197 STRIP=":" 3198 else 3199 case $cross_compiling:$ac_tool_warned in 3200yes:) 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3203ac_tool_warned=yes ;; 3204esac 3205 STRIP=$ac_ct_STRIP 3206 fi 3207else 3208 STRIP="$ac_cv_prog_STRIP" 3209fi 3210 3211fi 3212INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3213 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3215$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3216if test -z "$MKDIR_P"; then 3217 if ${ac_cv_path_mkdir+:} false; then : 3218 $as_echo_n "(cached) " >&6 3219else 3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3221for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3222do 3223 IFS=$as_save_IFS 3224 test -z "$as_dir" && as_dir=. 3225 for ac_prog in mkdir gmkdir; do 3226 for ac_exec_ext in '' $ac_executable_extensions; do 3227 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3228 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3229 'mkdir (GNU coreutils) '* | \ 3230 'mkdir (coreutils) '* | \ 3231 'mkdir (fileutils) '4.1*) 3232 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3233 break 3;; 3234 esac 3235 done 3236 done 3237 done 3238IFS=$as_save_IFS 3239 3240fi 3241 3242 test -d ./--version && rmdir ./--version 3243 if test "${ac_cv_path_mkdir+set}" = set; then 3244 MKDIR_P="$ac_cv_path_mkdir -p" 3245 else 3246 # As a last resort, use the slow shell script. Don't cache a 3247 # value for MKDIR_P within a source directory, because that will 3248 # break other packages using the cache if that directory is 3249 # removed, or if the value is a relative name. 3250 MKDIR_P="$ac_install_sh -d" 3251 fi 3252fi 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3254$as_echo "$MKDIR_P" >&6; } 3255 3256mkdir_p="$MKDIR_P" 3257case $mkdir_p in 3258 [\\/$]* | ?:[\\/]*) ;; 3259 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3260esac 3261 3262for ac_prog in gawk mawk nawk awk 3263do 3264 # Extract the first word of "$ac_prog", so it can be a program name with args. 3265set dummy $ac_prog; ac_word=$2 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3267$as_echo_n "checking for $ac_word... " >&6; } 3268if ${ac_cv_prog_AWK+:} false; then : 3269 $as_echo_n "(cached) " >&6 3270else 3271 if test -n "$AWK"; then 3272 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3273else 3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3275for as_dir in $PATH 3276do 3277 IFS=$as_save_IFS 3278 test -z "$as_dir" && as_dir=. 3279 for ac_exec_ext in '' $ac_executable_extensions; do 3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3281 ac_cv_prog_AWK="$ac_prog" 3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3283 break 2 3284 fi 3285done 3286 done 3287IFS=$as_save_IFS 3288 3289fi 3290fi 3291AWK=$ac_cv_prog_AWK 3292if test -n "$AWK"; then 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3294$as_echo "$AWK" >&6; } 3295else 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3297$as_echo "no" >&6; } 3298fi 3299 3300 3301 test -n "$AWK" && break 3302done 3303 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3305$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3306set x ${MAKE-make} 3307ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3308if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3309 $as_echo_n "(cached) " >&6 3310else 3311 cat >conftest.make <<\_ACEOF 3312SHELL = /bin/sh 3313all: 3314 @echo '@@@%%%=$(MAKE)=@@@%%%' 3315_ACEOF 3316# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3317case `${MAKE-make} -f conftest.make 2>/dev/null` in 3318 *@@@%%%=?*=@@@%%%*) 3319 eval ac_cv_prog_make_${ac_make}_set=yes;; 3320 *) 3321 eval ac_cv_prog_make_${ac_make}_set=no;; 3322esac 3323rm -f conftest.make 3324fi 3325if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3327$as_echo "yes" >&6; } 3328 SET_MAKE= 3329else 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3331$as_echo "no" >&6; } 3332 SET_MAKE="MAKE=${MAKE-make}" 3333fi 3334 3335rm -rf .tst 2>/dev/null 3336mkdir .tst 2>/dev/null 3337if test -d .tst; then 3338 am__leading_dot=. 3339else 3340 am__leading_dot=_ 3341fi 3342rmdir .tst 2>/dev/null 3343 3344if test "`cd $srcdir && pwd`" != "`pwd`"; then 3345 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3346 # is not polluted with repeated "-I." 3347 am__isrc=' -I$(srcdir)' 3348 # test to see if srcdir already configured 3349 if test -f $srcdir/config.status; then 3350 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3351 fi 3352fi 3353 3354# test whether we have cygpath 3355if test -z "$CYGPATH_W"; then 3356 if (cygpath --version) >/dev/null 2>/dev/null; then 3357 CYGPATH_W='cygpath -w' 3358 else 3359 CYGPATH_W=echo 3360 fi 3361fi 3362 3363 3364# Define the identity of the package. 3365 PACKAGE='lis' 3366 VERSION='2.0.30' 3367 3368 3369cat >>confdefs.h <<_ACEOF 3370#define PACKAGE "$PACKAGE" 3371_ACEOF 3372 3373 3374cat >>confdefs.h <<_ACEOF 3375#define VERSION "$VERSION" 3376_ACEOF 3377 3378# Some tools Automake needs. 3379 3380ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3381 3382 3383AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3384 3385 3386AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3387 3388 3389AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3390 3391 3392MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3393 3394# We need awk for the "check" target. The system "awk" is bad on 3395# some platforms. 3396# Always define AMTAR for backward compatibility. Yes, it's still used 3397# in the wild :-( We should find a proper way to deprecate it ... 3398AMTAR='$${TAR-tar}' 3399 3400am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3401 3402 3403 3404 3405 3406ac_config_headers="$ac_config_headers include/lis_config.h" 3407 3408 3409 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3411$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3412 # Check whether --enable-maintainer-mode was given. 3413if test "${enable_maintainer_mode+set}" = set; then : 3414 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3415else 3416 USE_MAINTAINER_MODE=no 3417fi 3418 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3420$as_echo "$USE_MAINTAINER_MODE" >&6; } 3421 if test $USE_MAINTAINER_MODE = yes; then 3422 MAINTAINER_MODE_TRUE= 3423 MAINTAINER_MODE_FALSE='#' 3424else 3425 MAINTAINER_MODE_TRUE='#' 3426 MAINTAINER_MODE_FALSE= 3427fi 3428 3429 MAINT=$MAINTAINER_MODE_TRUE 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441# Build Options 3442 3443# Check whether --enable-fortran was given. 3444if test "${enable_fortran+set}" = set; then : 3445 enableval=$enable_fortran; 3446fi 3447 3448# Check whether --enable-f90 was given. 3449if test "${enable_f90+set}" = set; then : 3450 enableval=$enable_f90; 3451fi 3452 3453# Check whether --enable-saamg was given. 3454if test "${enable_saamg+set}" = set; then : 3455 enableval=$enable_saamg; 3456fi 3457 3458# Check whether --enable-mpi was given. 3459if test "${enable_mpi+set}" = set; then : 3460 enableval=$enable_mpi; 3461fi 3462 3463# Check whether --enable-omp was given. 3464if test "${enable_omp+set}" = set; then : 3465 enableval=$enable_omp; 3466fi 3467 3468# Check whether --enable-quad was given. 3469if test "${enable_quad+set}" = set; then : 3470 enableval=$enable_quad; 3471fi 3472 3473# Check whether --enable-sse2 was given. 3474if test "${enable_sse2+set}" = set; then : 3475 enableval=$enable_sse2; 3476else 3477 enable_sse2=yes 3478fi 3479 3480# Check whether --enable-fma was given. 3481if test "${enable_fma+set}" = set; then : 3482 enableval=$enable_fma; 3483fi 3484 3485# Check whether --enable-debug was given. 3486if test "${enable_debug+set}" = set; then : 3487 enableval=$enable_debug; 3488fi 3489 3490# Check whether --enable-gprof was given. 3491if test "${enable_gprof+set}" = set; then : 3492 enableval=$enable_gprof; 3493fi 3494 3495# Check whether --enable-64bit was given. 3496if test "${enable_64bit+set}" = set; then : 3497 enableval=$enable_64bit; 3498fi 3499 3500# Check whether --enable-32bit was given. 3501if test "${enable_32bit+set}" = set; then : 3502 enableval=$enable_32bit; 3503fi 3504 3505# Check whether --enable-longlong was given. 3506if test "${enable_longlong+set}" = set; then : 3507 enableval=$enable_longlong; 3508fi 3509 3510# Check whether --enable-longdouble was given. 3511if test "${enable_longdouble+set}" = set; then : 3512 enableval=$enable_longdouble; 3513fi 3514 3515# Check whether --enable-complex was given. 3516if test "${enable_complex+set}" = set; then : 3517 enableval=$enable_complex; 3518fi 3519 3520# Check whether --enable-test was given. 3521if test "${enable_test+set}" = set; then : 3522 enableval=$enable_test; 3523fi 3524 3525 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5 3527$as_echo_n "checking for a library suffix to use... " >&6; } 3528 3529# Check whether --with-library-suffix was given. 3530if test "${with_library_suffix+set}" = set; then : 3531 withval=$with_library_suffix; LIBSUFFIX="${withval}" 3532else 3533 LIBSUFFIX= 3534fi 3535 3536 3537 3538 3539# Configurations for Some Specific Systems 3540 3541if test "$TARGET" != ""; then 3542 case "$TARGET" in 3543# Cray XT3 Cross Compiler 3544 cray_xt3_cross) CC="cc" 3545 F77="ftn" 3546 FC="ftn" 3547 MPICC="$CC" 3548 MPIF77="$F77" 3549 MPIFC="$FC" 3550 MPIRUN="yod" 3551 CFLAGS="-O3 -B -fastsse -tp k8-64" 3552 FFLAGS="-O3 -fastsse -tp k8-64 -Mpreprocess" 3553 FCFLAGS="-O3 -fastsse -tp k8-64 -Mpreprocess" 3554 FCLDFLAGS="-Mnomain" 3555 enable_mpi="yes" 3556 ac_cv_sizeof_void_p=8 3557 cross_compiling="yes" 3558 ax_f77_mangling="lower case, underscore, no extra underscore" 3559 ;; 3560# Fujitsu Compiler for PRIMERGY 3561 fujitsu_pg) CC="fcc" 3562 F77="frt" 3563 FC="frt" 3564 MPICC="mpifcc" 3565 MPIF77="mpifrt" 3566 MPIFC="mpifrt" 3567 CFLAGS="-Kfast,ocl,preex -w" 3568 FFLAGS="-Kfast,ocl,preex -Cpp -fs" 3569 FCFLAGS="-Kfast,ocl,preex -Cpp -Am -fs" 3570 FCLDFLAGS="" 3571 ac_cv_sizeof_void_p=8 3572 ax_f77_mangling="lower case, underscore, no extra underscore" 3573 ax_cv_c_compiler_vendor="fujitsu" 3574 ax_cv_f77_compiler_vendor="fujitsu" 3575 cross_compiling="yes" 3576 MPIRUN="mpiexec" 3577 MPINP="-n" 3578 OMPFLAG="-KOMP" 3579 AMDEFS="-PG" 3580 ;; 3581# Fujitsu Compiler for PRIMEQUEST 3582 fujitsu_pq) CC="fcc" 3583 F77="frt" 3584 FC="frt" 3585 MPICC="mpifcc" 3586 MPIF77="mpifrt" 3587 MPIFC="mpifrt" 3588 CFLAGS="-Kfast,ocl,preex -w" 3589 FFLAGS="-Kfast,ocl,preex -Cpp -fs" 3590 FCFLAGS="-Kfast,ocl,preex -Cpp -Am -fs" 3591 FCLDFLAGS="" 3592 ac_cv_sizeof_void_p=8 3593 ax_f77_mangling="lower case, underscore, no extra underscore" 3594 ax_cv_c_compiler_vendor="fujitsu" 3595 ax_cv_f77_compiler_vendor="fujitsu" 3596 MPIRUN="mpiexec" 3597 MPINP="-n" 3598 OMPFLAG="-KOMP" 3599 ;; 3600# Fujitsu Technical Computing Suite (for FX and PRIMERGY) 3601 fujitsu_tcs) CC="fcc" 3602 F77="frt" 3603 FC="frt" 3604 MPICC="mpifcc" 3605 MPIF77="mpifrt" 3606 MPIFC="mpifrt" 3607 CFLAGS="-Kfast,ocl,preex -w" 3608 FFLAGS="-Kfast,ocl,preex -Cpp -fs" 3609 FCFLAGS="-Kfast,ocl,preex -Cpp -fs" 3610 FCLDFLAGS="" 3611 ac_cv_sizeof_void_p=8 3612 ax_f77_mangling="lower case, underscore, no extra underscore" 3613 ax_cv_c_compiler_vendor="fujitsu" 3614 ax_cv_f77_compiler_vendor="fujitsu" 3615 MPIRUN="mpiexec" 3616 MPINP="-n" 3617 OMPFLAG="-Kopenmp" 3618 ;; 3619# Fujitsu Cross Compiler for FX10 3620 fujitsu_fx10_cross) CC="fccpx" 3621 F77="frtpx" 3622 FC="frtpx" 3623 MPICC="mpifccpx" 3624 MPIF77="mpifrtpx" 3625 MPIFC="mpifrtpx" 3626 CFLAGS="-Kfast,ocl,preex -w" 3627 FFLAGS="-Kfast,ocl,preex -Cpp -fs" 3628 FCFLAGS="-Kfast,ocl,preex -Cpp -fs" 3629 FCLDFLAGS="-mlcmain=main" 3630 ac_cv_sizeof_void_p=8 3631 cross_compiling="yes" 3632 enable_sse2="no" 3633 target="s64fx" 3634 ax_f77_mangling="lower case, underscore, no extra underscore" 3635 ax_cv_c_compiler_vendor="fujitsu" 3636 ax_cv_f77_compiler_vendor="fujitsu" 3637 MPIRUN="mpiexec" 3638 MPINP="-n" 3639 OMPFLAG="-Kopenmp" 3640 ;; 3641# Fujitsu Compiler for K 3642 K_shared) CC="fcc" 3643 F77="frt" 3644 FC="frt" 3645 MPICC="mpifcc" 3646 MPIF77="mpifrt" 3647 MPIFC="mpifrt" 3648 CFLAGS="-Kfast,ocl,preex,noeval -w" 3649 FFLAGS="-Kfast,ocl,preex,noeval -Cpp -fs -KPIC" 3650 FCFLAGS="-Kfast,ocl,preex,noeval -Cpp -fs -KPIC" 3651 FCLDFLAGS="" 3652 ac_cv_sizeof_void_p=8 3653 ax_f77_mangling="lower case, underscore, no extra underscore" 3654 ax_cv_c_compiler_vendor="fujitsu" 3655 ax_cv_f77_compiler_vendor="fujitsu" 3656 OMPFLAG="-Kopenmp" 3657 ;; 3658# Fujitsu Compiler for K 3659 K_mpi_shared) CC="fcc" 3660 F77="mpifrt" 3661 FC="mpifrt" 3662 MPICC="mpifcc" 3663 MPIF77="mpifrt" 3664 MPIFC="mpifrt" 3665 CFLAGS="-Kfast,ocl,preex,noeval -w" 3666 FFLAGS="-Kfast,ocl,preex,noeval -Cpp -fs -KPIC" 3667 FCFLAGS="-Kfast,ocl,preex,noeval -Cpp -fs -KPIC" 3668 FCLDFLAGS="" 3669 ac_cv_sizeof_void_p=8 3670 ax_f77_mangling="lower case, underscore, no extra underscore" 3671 ax_cv_c_compiler_vendor="fujitsu" 3672 ax_cv_f77_compiler_vendor="fujitsu" 3673 MPIRUN="mpiexec" 3674 MPINP="-n" 3675 OMPFLAG="-Kopenmp" 3676 ;; 3677# Fujitsu Technical Computing Suite (for PRIMEHPC FX1000/FX700) 3678 fujitsu_arm) CC="fcc" 3679 F77="frt" 3680 FC="frt" 3681 MPICC="mpifcc" 3682 MPIF77="mpifrt" 3683 MPIFC="mpifrt" 3684 CFLAGS="-Kfast,ocl,preex -w" 3685 FFLAGS="-Kfast,ocl,preex -Cpp -fs" 3686 FCFLAGS="-Kfast,ocl,preex -Cpp -fs" 3687 FCLDFLAGS="" 3688 ac_cv_sizeof_void_p=8 3689 ax_f77_mangling="lower case, underscore, no extra underscore" 3690 ax_cv_c_compiler_vendor="fujitsu" 3691 ax_cv_f77_compiler_vendor="fujitsu" 3692 MPIRUN="mpiexec" 3693 MPINP="-n" 3694 OMPFLAG="-Kopenmp -Nlibomp" 3695 ;; 3696# Hitachi Optimizing Compiler for SR16000 3697 hitachi_sr16k) CC="cc" 3698 F77="f90" 3699 FC="f90" 3700 MPICC="mpicc" 3701 MPIF77="mpif90" 3702 MPIFC="mpif90" 3703 CFLAGS="-Os -64 -nolimit" 3704 FFLAGS="-Oss -64 -nolimit -cpp" 3705 FCFLAGS="-Oss -64 -nolimit -cpp -c" 3706 FCLDFLAGS="-lf90s" 3707 ac_cv_sizeof_void_p=8 3708 ax_f77_mangling="lower case, underscore, no extra underscore" 3709 ax_cv_c_compiler_vendor="hitachi" 3710 ax_cv_f77_compiler_vendor="hitachi" 3711 MPIRUN="mpirun" 3712 MPINP="-np" 3713 OMPFLAG="-parallel -omp" 3714 ;; 3715# Hitachi Optimizing Compiler for HA8000 3716 hitachi_ha8k) CC="cc" 3717 F77="f90" 3718 FC="f90" 3719 MPICC="mpicc" 3720 MPIF77="mpif90" 3721 MPIFC="mpif90" 3722 CFLAGS="-Os -64 -nolimit" 3723 FFLAGS="-Oss -64 -nolimit -cpp" 3724 FCFLAGS="-Oss -64 -nolimit -cpp -c" 3725 FCLDFLAGS="-lf90s" 3726 ac_cv_sizeof_void_p=8 3727 ax_f77_mangling="lower case, underscore, no extra underscore" 3728 ax_cv_c_compiler_vendor="hitachi" 3729 ax_cv_f77_compiler_vendor="hitachi" 3730 MPIRUN="mpirun" 3731 MPINP="-np" 3732 OMPFLAG="-parallel -omp" 3733 ;; 3734# IBM XL Compiler for Blue Gene Solution 3735 ibm_bgl_cross) CC="blrts_xlc" 3736 F77="blrts_xlf90" 3737 FC="blrts_xlf90" 3738 MPICC="$CC" 3739 MPIF77="$F77" 3740 MPIFC="$FC" 3741 CFLAGS="-O3 -qarch=440d -qtune=440 -qstrict -I/bgl/BlueLight/ppcfloor/bglsys/include" 3742 FFLAGS="-O3 -qarch=440d -qtune=440 -qsuffix=cpp=F -qfixed=72 -w -I/bgl/BlueLight/ppcfloor/bglsys/include" 3743 FCFLAGS="-O3 -qarch=440d -qtune=440 -qsuffix=cpp=F90 -w -I/bgl/BlueLight/ppcfloor/bglsys/include" 3744 MPILIBS="-L/bgl/BlueLight/ppcfloor/bglsys/lib -lmpich.rts -lmsglayer.rts -lrts.rts -ldevices.rts" 3745 enable_mpi="yes" 3746 ac_cv_sizeof_void_p=8 3747 cross_compiling="yes" 3748 ax_cv_f77_compiler_vendor="ibm" 3749 ax_cv_c_compiler_vendor="ibm" 3750 ax_f77_mangling="lower case, no underscore, no extra underscore" 3751 ;; 3752# NEC Compiler for SX-6i 3753 nec_sx6i) CC="c++" 3754 F77="f90" 3755 FC="f90" 3756 RANLIB="true" 3757 CFLAGS="" 3758 FFLAGS="" 3759 FCFLAGS="" 3760 FCLDFLAGS="" 3761 ac_cv_sizeof_void_p=8 3762 ax_f77_mangling="lower case, no underscore, extra underscore" 3763 ax_vector_machine="yes" 3764 ;; 3765# NEC Cross Compiler for SX-6i 3766 nec_sx6i_cross) CC="sxc++" 3767 F77="sxf90" 3768 FC="sxf90" 3769 AR="sxar" 3770 RANLIB="true" 3771 STRIP="sxstrip" 3772 CFLAGS="" 3773 FFLAGS="" 3774 FCFLAGS="" 3775 FCLDFLAGS="" 3776 ac_cv_sizeof_void_p=8 3777 cross_compiling="yes" 3778 ax_f77_mangling="lower case, no underscore, extra underscore" 3779 ax_vector_machine="yes" 3780 ;; 3781# NEC Cross Compiler for Earth Simulator 3782 nec_es_cross) CC="esmpic++" 3783 F77="esmpif90" 3784 FC="esmpif90" 3785 MPICC="$CC" 3786 MPIF77="$F77" 3787 MPIFC="$FC" 3788 AR="esar" 3789 RANLIB="true" 3790 CFLAGS="" 3791 FFLAGS="" 3792 FCFLAGS="" 3793 FCLDFLAGS="" 3794 LDFLAGS="" 3795 enable_mpi="yes" 3796 enable_omp="yes" 3797 ac_cv_sizeof_void_p=8 3798 cross_compiling="yes" 3799 ax_f77_mangling="lower case, no underscore, extra underscore" 3800 ax_vector_machine="yes" 3801 OMPFLAG="-Popenmp" 3802 ;; 3803# NEC Compiler for SX-9 3804 nec_sx9) CC="sxmpic++" 3805 F77="sxmpif90" 3806 FC="sxmpif90" 3807 MPICC="$CC" 3808 MPIF77="$F77" 3809 MPIFC="$FC" 3810 AR="ar" 3811 RANLIB="true" 3812 CFLAGS="" 3813 FFLAGS="" 3814 FCFLAGS="" 3815 FCLDFLAGS="" 3816 LDFLAGS="" 3817 ac_cv_sizeof_void_p=8 3818 ax_f77_mangling="lower case, no underscore, extra underscore" 3819 ax_vector_machine="yes" 3820 OMPFLAG="-Popenmp" 3821 ;; 3822# NEC Cross Compiler for SX-9 3823 nec_sx9_cross) CC="sxmpic++" 3824 F77="sxmpif90" 3825 FC="sxmpif90" 3826 MPICC="$CC" 3827 MPIF77="$F77" 3828 MPIFC="$FC" 3829 AR="sxar" 3830 RANLIB="true" 3831 CFLAGS="" 3832 FFLAGS="" 3833 FCFLAGS="" 3834 FCLDFLAGS="" 3835 LDFLAGS="" 3836 ac_cv_sizeof_void_p=8 3837 cross_compiling="yes" 3838 ax_f77_mangling="lower case, no underscore, extra underscore" 3839 ax_vector_machine="yes" 3840 OMPFLAG="-Popenmp" 3841 ;; 3842# NEC Compiler for SX-Aurora 3843 nec_sxaurora) CC="ncc" 3844 F77="nfort" 3845 FC="nfort" 3846 MPICC="mpincc" 3847 MPIF77="mpinfort" 3848 MPIFC="mpinfort" 3849 AR="ar" 3850 RANLIB="true" 3851 CFLAGS="" 3852 FFLAGS="" 3853 FCFLAGS="" 3854 FCLDFLAGS="" 3855 LDFLAGS="" 3856 ac_cv_sizeof_void_p=8 3857 ax_f77_mangling="lower case, no underscore, extra underscore" 3858 ax_vector_machine="yes" 3859 OMPFLAG="-fopenmp" 3860 ;; 3861# Intel Compiler for MIC 3862 intel_mic) CC="icc" 3863 F77="ifort" 3864 FC="ifort" 3865 MPICC="mpiicc" 3866 MPIF77="mpiifort" 3867 MPIFC="mpiifort" 3868 CFLAGS="-mmic" 3869 FFLAGS="-mmic" 3870 FCFLAGS="-mmic" 3871 FCLDFLAGS="-mmic" 3872 LDFLAGS="-mmic" 3873 ax_cv_c_compiler_vendor="intel" 3874 ax_cv_f77_compiler_vendor="intel" 3875 OMPFLAG="-openmp" 3876 ;; 3877# Intel Cross Compiler for MIC 3878 intel_mic_cross) CC="icc" 3879 F77="ifort" 3880 FC="ifort" 3881 MPICC="mpiicc" 3882 MPIF77="mpiifort" 3883 MPIFC="mpiifort" 3884 CFLAGS="-mmic" 3885 FFLAGS="-mmic" 3886 FCFLAGS="-mmic" 3887 FCLDFLAGS="-mmic" 3888 LDFLAGS="-mmic" 3889 cross_compiling="yes" 3890 host="x86_64-pc-linux-gnu" 3891 host_alias="x86_64-linux-gnu" 3892 host_cpu="x86_64" 3893 host_os="linux-gnu" 3894 host_vendor="pc" 3895 target="k1om-mpss-linux-gnu" 3896 target_alias="k1om-mpss-linux" 3897 target_cpu="k1om" 3898 target_os="linux-gnu" 3899 target_vendor="mpss" 3900 ax_cv_c_compiler_vendor="intel" 3901 ax_cv_f77_compiler_vendor="intel" 3902 OMPFLAG="-openmp" 3903 ;; 3904 *) echo 'TARGET' $TARGET 'cannot be specified.' 3905 exit 1 3906 ;; 3907 esac 3908fi 3909 3910# GNU Compiler for Apple Mac OS X 3911if test "$build_vendor" = "apple"; then 3912 if test -z "$CC"; then 3913 CC="gcc" 3914 fi 3915 if test -z "$FC"; then 3916 FC="gfortran" 3917 fi 3918 if test "$enable_32bit" = "yes"; then 3919 CFLAGS="$CFLAGS -m32" 3920 FCFLAGS="$FCFLAGS -m32" 3921 else 3922 CFLAGS="$CFLAGS -m64" 3923 FCFLAGS="$FCFLAGS -m64" 3924 fi 3925 if test "$enable_omp" = "yes"; then 3926 if $CC --version 2>&1 | grep clang > /dev/null ; then 3927 OMPFLAG="-Xclang -fopenmp" 3928 LDFLAGS="$LDFLAGS -lomp" 3929 fi 3930 fi 3931fi 3932 3933enable_dependency_tracking="no" 3934 3935 3936# Configurations for C and Fortran Compilers 3937 3938########## Check C Compilers ########## 3939cflags_save="$CFLAGS" 3940ac_ext=c 3941ac_cpp='$CPP $CPPFLAGS' 3942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3944ac_compiler_gnu=$ac_cv_c_compiler_gnu 3945if test -n "$ac_tool_prefix"; then 3946 for ac_prog in icc ecc xlc_r xlc fcc pgcc pathcc cc gcc clang 3947 do 3948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3949set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3951$as_echo_n "checking for $ac_word... " >&6; } 3952if ${ac_cv_prog_CC+:} false; then : 3953 $as_echo_n "(cached) " >&6 3954else 3955 if test -n "$CC"; then 3956 ac_cv_prog_CC="$CC" # Let the user override the test. 3957else 3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3959for as_dir in $PATH 3960do 3961 IFS=$as_save_IFS 3962 test -z "$as_dir" && as_dir=. 3963 for ac_exec_ext in '' $ac_executable_extensions; do 3964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3965 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3967 break 2 3968 fi 3969done 3970 done 3971IFS=$as_save_IFS 3972 3973fi 3974fi 3975CC=$ac_cv_prog_CC 3976if test -n "$CC"; then 3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3978$as_echo "$CC" >&6; } 3979else 3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3981$as_echo "no" >&6; } 3982fi 3983 3984 3985 test -n "$CC" && break 3986 done 3987fi 3988if test -z "$CC"; then 3989 ac_ct_CC=$CC 3990 for ac_prog in icc ecc xlc_r xlc fcc pgcc pathcc cc gcc clang 3991do 3992 # Extract the first word of "$ac_prog", so it can be a program name with args. 3993set dummy $ac_prog; ac_word=$2 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3995$as_echo_n "checking for $ac_word... " >&6; } 3996if ${ac_cv_prog_ac_ct_CC+:} false; then : 3997 $as_echo_n "(cached) " >&6 3998else 3999 if test -n "$ac_ct_CC"; then 4000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4001else 4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4003for as_dir in $PATH 4004do 4005 IFS=$as_save_IFS 4006 test -z "$as_dir" && as_dir=. 4007 for ac_exec_ext in '' $ac_executable_extensions; do 4008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4009 ac_cv_prog_ac_ct_CC="$ac_prog" 4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4011 break 2 4012 fi 4013done 4014 done 4015IFS=$as_save_IFS 4016 4017fi 4018fi 4019ac_ct_CC=$ac_cv_prog_ac_ct_CC 4020if test -n "$ac_ct_CC"; then 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4022$as_echo "$ac_ct_CC" >&6; } 4023else 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4025$as_echo "no" >&6; } 4026fi 4027 4028 4029 test -n "$ac_ct_CC" && break 4030done 4031 4032 if test "x$ac_ct_CC" = x; then 4033 CC="" 4034 else 4035 case $cross_compiling:$ac_tool_warned in 4036yes:) 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4039ac_tool_warned=yes ;; 4040esac 4041 CC=$ac_ct_CC 4042 fi 4043fi 4044 4045 4046test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4048as_fn_error $? "no acceptable C compiler found in \$PATH 4049See \`config.log' for more details" "$LINENO" 5; } 4050 4051# Provide some information about the compiler. 4052$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4053set X $ac_compile 4054ac_compiler=$2 4055for ac_option in --version -v -V -qversion; do 4056 { { ac_try="$ac_compiler $ac_option >&5" 4057case "(($ac_try" in 4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4059 *) ac_try_echo=$ac_try;; 4060esac 4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4062$as_echo "$ac_try_echo"; } >&5 4063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4064 ac_status=$? 4065 if test -s conftest.err; then 4066 sed '10a\ 4067... rest of stderr output deleted ... 4068 10q' conftest.err >conftest.er1 4069 cat conftest.er1 >&5 4070 fi 4071 rm -f conftest.er1 conftest.err 4072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4073 test $ac_status = 0; } 4074done 4075 4076cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4077/* end confdefs.h. */ 4078 4079int 4080main () 4081{ 4082 4083 ; 4084 return 0; 4085} 4086_ACEOF 4087ac_clean_files_save=$ac_clean_files 4088ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4089# Try to create an executable without -o first, disregard a.out. 4090# It will help us diagnose broken compilers, and finding out an intuition 4091# of exeext. 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4093$as_echo_n "checking whether the C compiler works... " >&6; } 4094ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4095 4096# The possible output files: 4097ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4098 4099ac_rmfiles= 4100for ac_file in $ac_files 4101do 4102 case $ac_file in 4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4104 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4105 esac 4106done 4107rm -f $ac_rmfiles 4108 4109if { { ac_try="$ac_link_default" 4110case "(($ac_try" in 4111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4112 *) ac_try_echo=$ac_try;; 4113esac 4114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4115$as_echo "$ac_try_echo"; } >&5 4116 (eval "$ac_link_default") 2>&5 4117 ac_status=$? 4118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4119 test $ac_status = 0; }; then : 4120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4121# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4122# in a Makefile. We should not override ac_cv_exeext if it was cached, 4123# so that the user can short-circuit this test for compilers unknown to 4124# Autoconf. 4125for ac_file in $ac_files '' 4126do 4127 test -f "$ac_file" || continue 4128 case $ac_file in 4129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4130 ;; 4131 [ab].out ) 4132 # We found the default executable, but exeext='' is most 4133 # certainly right. 4134 break;; 4135 *.* ) 4136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4137 then :; else 4138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4139 fi 4140 # We set ac_cv_exeext here because the later test for it is not 4141 # safe: cross compilers may not add the suffix if given an `-o' 4142 # argument, so we may need to know it at that point already. 4143 # Even if this section looks crufty: it has the advantage of 4144 # actually working. 4145 break;; 4146 * ) 4147 break;; 4148 esac 4149done 4150test "$ac_cv_exeext" = no && ac_cv_exeext= 4151 4152else 4153 ac_file='' 4154fi 4155if test -z "$ac_file"; then : 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4157$as_echo "no" >&6; } 4158$as_echo "$as_me: failed program was:" >&5 4159sed 's/^/| /' conftest.$ac_ext >&5 4160 4161{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4163as_fn_error 77 "C compiler cannot create executables 4164See \`config.log' for more details" "$LINENO" 5; } 4165else 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4167$as_echo "yes" >&6; } 4168fi 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4170$as_echo_n "checking for C compiler default output file name... " >&6; } 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4172$as_echo "$ac_file" >&6; } 4173ac_exeext=$ac_cv_exeext 4174 4175rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4176ac_clean_files=$ac_clean_files_save 4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4178$as_echo_n "checking for suffix of executables... " >&6; } 4179if { { ac_try="$ac_link" 4180case "(($ac_try" in 4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4182 *) ac_try_echo=$ac_try;; 4183esac 4184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4185$as_echo "$ac_try_echo"; } >&5 4186 (eval "$ac_link") 2>&5 4187 ac_status=$? 4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4189 test $ac_status = 0; }; then : 4190 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4191# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4192# work properly (i.e., refer to `conftest.exe'), while it won't with 4193# `rm'. 4194for ac_file in conftest.exe conftest conftest.*; do 4195 test -f "$ac_file" || continue 4196 case $ac_file in 4197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4199 break;; 4200 * ) break;; 4201 esac 4202done 4203else 4204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4206as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4207See \`config.log' for more details" "$LINENO" 5; } 4208fi 4209rm -f conftest conftest$ac_cv_exeext 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4211$as_echo "$ac_cv_exeext" >&6; } 4212 4213rm -f conftest.$ac_ext 4214EXEEXT=$ac_cv_exeext 4215ac_exeext=$EXEEXT 4216cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4217/* end confdefs.h. */ 4218#include <stdio.h> 4219int 4220main () 4221{ 4222FILE *f = fopen ("conftest.out", "w"); 4223 return ferror (f) || fclose (f) != 0; 4224 4225 ; 4226 return 0; 4227} 4228_ACEOF 4229ac_clean_files="$ac_clean_files conftest.out" 4230# Check that the compiler produces executables we can run. If not, either 4231# the compiler is broken, or we cross compile. 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4233$as_echo_n "checking whether we are cross compiling... " >&6; } 4234if test "$cross_compiling" != yes; then 4235 { { ac_try="$ac_link" 4236case "(($ac_try" in 4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4238 *) ac_try_echo=$ac_try;; 4239esac 4240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4241$as_echo "$ac_try_echo"; } >&5 4242 (eval "$ac_link") 2>&5 4243 ac_status=$? 4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4245 test $ac_status = 0; } 4246 if { ac_try='./conftest$ac_cv_exeext' 4247 { { case "(($ac_try" in 4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4249 *) ac_try_echo=$ac_try;; 4250esac 4251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4252$as_echo "$ac_try_echo"; } >&5 4253 (eval "$ac_try") 2>&5 4254 ac_status=$? 4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4256 test $ac_status = 0; }; }; then 4257 cross_compiling=no 4258 else 4259 if test "$cross_compiling" = maybe; then 4260 cross_compiling=yes 4261 else 4262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4264as_fn_error $? "cannot run C compiled programs. 4265If you meant to cross compile, use \`--host'. 4266See \`config.log' for more details" "$LINENO" 5; } 4267 fi 4268 fi 4269fi 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4271$as_echo "$cross_compiling" >&6; } 4272 4273rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4274ac_clean_files=$ac_clean_files_save 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4276$as_echo_n "checking for suffix of object files... " >&6; } 4277if ${ac_cv_objext+:} false; then : 4278 $as_echo_n "(cached) " >&6 4279else 4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4281/* end confdefs.h. */ 4282 4283int 4284main () 4285{ 4286 4287 ; 4288 return 0; 4289} 4290_ACEOF 4291rm -f conftest.o conftest.obj 4292if { { ac_try="$ac_compile" 4293case "(($ac_try" in 4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4295 *) ac_try_echo=$ac_try;; 4296esac 4297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4298$as_echo "$ac_try_echo"; } >&5 4299 (eval "$ac_compile") 2>&5 4300 ac_status=$? 4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4302 test $ac_status = 0; }; then : 4303 for ac_file in conftest.o conftest.obj conftest.*; do 4304 test -f "$ac_file" || continue; 4305 case $ac_file in 4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4307 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4308 break;; 4309 esac 4310done 4311else 4312 $as_echo "$as_me: failed program was:" >&5 4313sed 's/^/| /' conftest.$ac_ext >&5 4314 4315{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4317as_fn_error $? "cannot compute suffix of object files: cannot compile 4318See \`config.log' for more details" "$LINENO" 5; } 4319fi 4320rm -f conftest.$ac_cv_objext conftest.$ac_ext 4321fi 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4323$as_echo "$ac_cv_objext" >&6; } 4324OBJEXT=$ac_cv_objext 4325ac_objext=$OBJEXT 4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4327$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4328if ${ac_cv_c_compiler_gnu+:} false; then : 4329 $as_echo_n "(cached) " >&6 4330else 4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4332/* end confdefs.h. */ 4333 4334int 4335main () 4336{ 4337#ifndef __GNUC__ 4338 choke me 4339#endif 4340 4341 ; 4342 return 0; 4343} 4344_ACEOF 4345if ac_fn_c_try_compile "$LINENO"; then : 4346 ac_compiler_gnu=yes 4347else 4348 ac_compiler_gnu=no 4349fi 4350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4351ac_cv_c_compiler_gnu=$ac_compiler_gnu 4352 4353fi 4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4355$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4356if test $ac_compiler_gnu = yes; then 4357 GCC=yes 4358else 4359 GCC= 4360fi 4361ac_test_CFLAGS=${CFLAGS+set} 4362ac_save_CFLAGS=$CFLAGS 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4364$as_echo_n "checking whether $CC accepts -g... " >&6; } 4365if ${ac_cv_prog_cc_g+:} false; then : 4366 $as_echo_n "(cached) " >&6 4367else 4368 ac_save_c_werror_flag=$ac_c_werror_flag 4369 ac_c_werror_flag=yes 4370 ac_cv_prog_cc_g=no 4371 CFLAGS="-g" 4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4373/* end confdefs.h. */ 4374 4375int 4376main () 4377{ 4378 4379 ; 4380 return 0; 4381} 4382_ACEOF 4383if ac_fn_c_try_compile "$LINENO"; then : 4384 ac_cv_prog_cc_g=yes 4385else 4386 CFLAGS="" 4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4388/* end confdefs.h. */ 4389 4390int 4391main () 4392{ 4393 4394 ; 4395 return 0; 4396} 4397_ACEOF 4398if ac_fn_c_try_compile "$LINENO"; then : 4399 4400else 4401 ac_c_werror_flag=$ac_save_c_werror_flag 4402 CFLAGS="-g" 4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4404/* end confdefs.h. */ 4405 4406int 4407main () 4408{ 4409 4410 ; 4411 return 0; 4412} 4413_ACEOF 4414if ac_fn_c_try_compile "$LINENO"; then : 4415 ac_cv_prog_cc_g=yes 4416fi 4417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4418fi 4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4420fi 4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4422 ac_c_werror_flag=$ac_save_c_werror_flag 4423fi 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4425$as_echo "$ac_cv_prog_cc_g" >&6; } 4426if test "$ac_test_CFLAGS" = set; then 4427 CFLAGS=$ac_save_CFLAGS 4428elif test $ac_cv_prog_cc_g = yes; then 4429 if test "$GCC" = yes; then 4430 CFLAGS="-g -O2" 4431 else 4432 CFLAGS="-g" 4433 fi 4434else 4435 if test "$GCC" = yes; then 4436 CFLAGS="-O2" 4437 else 4438 CFLAGS= 4439 fi 4440fi 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4442$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4443if ${ac_cv_prog_cc_c89+:} false; then : 4444 $as_echo_n "(cached) " >&6 4445else 4446 ac_cv_prog_cc_c89=no 4447ac_save_CC=$CC 4448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4449/* end confdefs.h. */ 4450#include <stdarg.h> 4451#include <stdio.h> 4452struct stat; 4453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4454struct buf { int x; }; 4455FILE * (*rcsopen) (struct buf *, struct stat *, int); 4456static char *e (p, i) 4457 char **p; 4458 int i; 4459{ 4460 return p[i]; 4461} 4462static char *f (char * (*g) (char **, int), char **p, ...) 4463{ 4464 char *s; 4465 va_list v; 4466 va_start (v,p); 4467 s = g (p, va_arg (v,int)); 4468 va_end (v); 4469 return s; 4470} 4471 4472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4473 function prototypes and stuff, but not '\xHH' hex character constants. 4474 These don't provoke an error unfortunately, instead are silently treated 4475 as 'x'. The following induces an error, until -std is added to get 4476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4477 array size at least. It's necessary to write '\x00'==0 to get something 4478 that's true only with -std. */ 4479int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4480 4481/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4482 inside strings and character constants. */ 4483#define FOO(x) 'x' 4484int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4485 4486int test (int i, double x); 4487struct s1 {int (*f) (int a);}; 4488struct s2 {int (*f) (double a);}; 4489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4490int argc; 4491char **argv; 4492int 4493main () 4494{ 4495return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4496 ; 4497 return 0; 4498} 4499_ACEOF 4500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4502do 4503 CC="$ac_save_CC $ac_arg" 4504 if ac_fn_c_try_compile "$LINENO"; then : 4505 ac_cv_prog_cc_c89=$ac_arg 4506fi 4507rm -f core conftest.err conftest.$ac_objext 4508 test "x$ac_cv_prog_cc_c89" != "xno" && break 4509done 4510rm -f conftest.$ac_ext 4511CC=$ac_save_CC 4512 4513fi 4514# AC_CACHE_VAL 4515case "x$ac_cv_prog_cc_c89" in 4516 x) 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4518$as_echo "none needed" >&6; } ;; 4519 xno) 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4521$as_echo "unsupported" >&6; } ;; 4522 *) 4523 CC="$CC $ac_cv_prog_cc_c89" 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4525$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4526esac 4527if test "x$ac_cv_prog_cc_c89" != xno; then : 4528 4529fi 4530 4531ac_ext=c 4532ac_cpp='$CPP $CPPFLAGS' 4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4535ac_compiler_gnu=$ac_cv_c_compiler_gnu 4536DEPDIR="${am__leading_dot}deps" 4537 4538ac_config_commands="$ac_config_commands depfiles" 4539 4540 4541am_make=${MAKE-make} 4542cat > confinc << 'END' 4543am__doit: 4544 @echo this is the am__doit target 4545.PHONY: am__doit 4546END 4547# If we don't find an include directive, just comment out the code. 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4549$as_echo_n "checking for style of include used by $am_make... " >&6; } 4550am__include="#" 4551am__quote= 4552_am_result=none 4553# First try GNU make style include. 4554echo "include confinc" > confmf 4555# Ignore all kinds of additional output from `make'. 4556case `$am_make -s -f confmf 2> /dev/null` in #( 4557*the\ am__doit\ target*) 4558 am__include=include 4559 am__quote= 4560 _am_result=GNU 4561 ;; 4562esac 4563# Now try BSD make style include. 4564if test "$am__include" = "#"; then 4565 echo '.include "confinc"' > confmf 4566 case `$am_make -s -f confmf 2> /dev/null` in #( 4567 *the\ am__doit\ target*) 4568 am__include=.include 4569 am__quote="\"" 4570 _am_result=BSD 4571 ;; 4572 esac 4573fi 4574 4575 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4577$as_echo "$_am_result" >&6; } 4578rm -f confinc confmf 4579 4580# Check whether --enable-dependency-tracking was given. 4581if test "${enable_dependency_tracking+set}" = set; then : 4582 enableval=$enable_dependency_tracking; 4583fi 4584 4585if test "x$enable_dependency_tracking" != xno; then 4586 am_depcomp="$ac_aux_dir/depcomp" 4587 AMDEPBACKSLASH='\' 4588 am__nodep='_no' 4589fi 4590 if test "x$enable_dependency_tracking" != xno; then 4591 AMDEP_TRUE= 4592 AMDEP_FALSE='#' 4593else 4594 AMDEP_TRUE='#' 4595 AMDEP_FALSE= 4596fi 4597 4598 4599 4600depcc="$CC" am_compiler_list= 4601 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4603$as_echo_n "checking dependency style of $depcc... " >&6; } 4604if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4605 $as_echo_n "(cached) " >&6 4606else 4607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4608 # We make a subdir and do the tests there. Otherwise we can end up 4609 # making bogus files that we don't know about and never remove. For 4610 # instance it was reported that on HP-UX the gcc test will end up 4611 # making a dummy file named `D' -- because `-MD' means `put the output 4612 # in D'. 4613 rm -rf conftest.dir 4614 mkdir conftest.dir 4615 # Copy depcomp to subdir because otherwise we won't find it if we're 4616 # using a relative directory. 4617 cp "$am_depcomp" conftest.dir 4618 cd conftest.dir 4619 # We will build objects and dependencies in a subdirectory because 4620 # it helps to detect inapplicable dependency modes. For instance 4621 # both Tru64's cc and ICC support -MD to output dependencies as a 4622 # side effect of compilation, but ICC will put the dependencies in 4623 # the current directory while Tru64 will put them in the object 4624 # directory. 4625 mkdir sub 4626 4627 am_cv_CC_dependencies_compiler_type=none 4628 if test "$am_compiler_list" = ""; then 4629 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4630 fi 4631 am__universal=false 4632 case " $depcc " in #( 4633 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4634 esac 4635 4636 for depmode in $am_compiler_list; do 4637 # Setup a source with many dependencies, because some compilers 4638 # like to wrap large dependency lists on column 80 (with \), and 4639 # we should not choose a depcomp mode which is confused by this. 4640 # 4641 # We need to recreate these files for each test, as the compiler may 4642 # overwrite some of them when testing with obscure command lines. 4643 # This happens at least with the AIX C compiler. 4644 : > sub/conftest.c 4645 for i in 1 2 3 4 5 6; do 4646 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4647 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4648 # Solaris 8's {/usr,}/bin/sh. 4649 touch sub/conftst$i.h 4650 done 4651 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4652 4653 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4654 # mode. It turns out that the SunPro C++ compiler does not properly 4655 # handle `-M -o', and we need to detect this. Also, some Intel 4656 # versions had trouble with output in subdirs 4657 am__obj=sub/conftest.${OBJEXT-o} 4658 am__minus_obj="-o $am__obj" 4659 case $depmode in 4660 gcc) 4661 # This depmode causes a compiler race in universal mode. 4662 test "$am__universal" = false || continue 4663 ;; 4664 nosideeffect) 4665 # after this tag, mechanisms are not by side-effect, so they'll 4666 # only be used when explicitly requested 4667 if test "x$enable_dependency_tracking" = xyes; then 4668 continue 4669 else 4670 break 4671 fi 4672 ;; 4673 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4674 # This compiler won't grok `-c -o', but also, the minuso test has 4675 # not run yet. These depmodes are late enough in the game, and 4676 # so weak that their functioning should not be impacted. 4677 am__obj=conftest.${OBJEXT-o} 4678 am__minus_obj= 4679 ;; 4680 none) break ;; 4681 esac 4682 if depmode=$depmode \ 4683 source=sub/conftest.c object=$am__obj \ 4684 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4685 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4686 >/dev/null 2>conftest.err && 4687 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4688 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4689 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4690 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4691 # icc doesn't choke on unknown options, it will just issue warnings 4692 # or remarks (even with -Werror). So we grep stderr for any message 4693 # that says an option was ignored or not supported. 4694 # When given -MP, icc 7.0 and 7.1 complain thusly: 4695 # icc: Command line warning: ignoring option '-M'; no argument required 4696 # The diagnosis changed in icc 8.0: 4697 # icc: Command line remark: option '-MP' not supported 4698 if (grep 'ignoring option' conftest.err || 4699 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4700 am_cv_CC_dependencies_compiler_type=$depmode 4701 break 4702 fi 4703 fi 4704 done 4705 4706 cd .. 4707 rm -rf conftest.dir 4708else 4709 am_cv_CC_dependencies_compiler_type=none 4710fi 4711 4712fi 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4714$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4715CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4716 4717 if 4718 test "x$enable_dependency_tracking" != xno \ 4719 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4720 am__fastdepCC_TRUE= 4721 am__fastdepCC_FALSE='#' 4722else 4723 am__fastdepCC_TRUE='#' 4724 am__fastdepCC_FALSE= 4725fi 4726 4727 4728CFLAGS="$cflags_save" 4729if test "$TARGET" = ""; then 4730 if test "$CC" = "fcc"; then 4731 CFLAGS="-O3 -w" 4732 FFLAGS="-O3 -Cpp -fs" 4733 FCFLAGS="-O3 -Cpp -Am -fs" 4734 ax_f77_mangling="lower case, underscore, no extra underscore" 4735 MPIRUN="mpiexec" 4736 MPINP="-n" 4737 fi 4738fi 4739 4740if test "$TARGET" = ""; then 4741 if test "$enable_mpi" = "yes"; then 4742 for ac_prog in $MPICC mpicc mpifcc hcc mpcc_r mpcc mpxlc cmpicc blrts_xlc esmpic++ 4743do 4744 # Extract the first word of "$ac_prog", so it can be a program name with args. 4745set dummy $ac_prog; ac_word=$2 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4747$as_echo_n "checking for $ac_word... " >&6; } 4748if ${ac_cv_prog_MPICC+:} false; then : 4749 $as_echo_n "(cached) " >&6 4750else 4751 if test -n "$MPICC"; then 4752 ac_cv_prog_MPICC="$MPICC" # Let the user override the test. 4753else 4754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4755for as_dir in $PATH 4756do 4757 IFS=$as_save_IFS 4758 test -z "$as_dir" && as_dir=. 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4761 ac_cv_prog_MPICC="$ac_prog" 4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4763 break 2 4764 fi 4765done 4766 done 4767IFS=$as_save_IFS 4768 4769fi 4770fi 4771MPICC=$ac_cv_prog_MPICC 4772if test -n "$MPICC"; then 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 4774$as_echo "$MPICC" >&6; } 4775else 4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4777$as_echo "no" >&6; } 4778fi 4779 4780 4781 test -n "$MPICC" && break 4782done 4783test -n "$MPICC" || MPICC="$CC" 4784 4785 save_cc="$CC" 4786 CC="$MPICC" 4787 if test x = x"$MPILIBS"; then 4788 4789ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" 4790if test "x$ac_cv_func_MPI_Init" = xyes; then : 4791 MPILIBS=" " 4792fi 4793 4794 fi 4795 if test x = x"$MPILIBS"; then 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 4797$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } 4798if ${ac_cv_lib_mpi_MPI_Init+:} false; then : 4799 $as_echo_n "(cached) " >&6 4800else 4801 ac_check_lib_save_LIBS=$LIBS 4802LIBS="-lmpi $LIBS" 4803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804/* end confdefs.h. */ 4805 4806/* Override any GCC internal prototype to avoid an error. 4807 Use char because int might match the return type of a GCC 4808 builtin and then its argument prototype would still apply. */ 4809#ifdef __cplusplus 4810extern "C" 4811#endif 4812char MPI_Init (); 4813int 4814main () 4815{ 4816return MPI_Init (); 4817 ; 4818 return 0; 4819} 4820_ACEOF 4821if ac_fn_c_try_link "$LINENO"; then : 4822 ac_cv_lib_mpi_MPI_Init=yes 4823else 4824 ac_cv_lib_mpi_MPI_Init=no 4825fi 4826rm -f core conftest.err conftest.$ac_objext \ 4827 conftest$ac_exeext conftest.$ac_ext 4828LIBS=$ac_check_lib_save_LIBS 4829fi 4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 4831$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } 4832if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : 4833 MPILIBS="-lmpi" 4834fi 4835 4836 fi 4837 if test x = x"$MPILIBS"; then 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 4839$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } 4840if ${ac_cv_lib_mpich_MPI_Init+:} false; then : 4841 $as_echo_n "(cached) " >&6 4842else 4843 ac_check_lib_save_LIBS=$LIBS 4844LIBS="-lmpich $LIBS" 4845cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4846/* end confdefs.h. */ 4847 4848/* Override any GCC internal prototype to avoid an error. 4849 Use char because int might match the return type of a GCC 4850 builtin and then its argument prototype would still apply. */ 4851#ifdef __cplusplus 4852extern "C" 4853#endif 4854char MPI_Init (); 4855int 4856main () 4857{ 4858return MPI_Init (); 4859 ; 4860 return 0; 4861} 4862_ACEOF 4863if ac_fn_c_try_link "$LINENO"; then : 4864 ac_cv_lib_mpich_MPI_Init=yes 4865else 4866 ac_cv_lib_mpich_MPI_Init=no 4867fi 4868rm -f core conftest.err conftest.$ac_objext \ 4869 conftest$ac_exeext conftest.$ac_ext 4870LIBS=$ac_check_lib_save_LIBS 4871fi 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 4873$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } 4874if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : 4875 MPILIBS="-lmpich" 4876fi 4877 4878 fi 4879 if test x != x"$MPILIBS"; then 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 4881$as_echo_n "checking for mpi.h... " >&6; } 4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4883/* end confdefs.h. */ 4884#include <mpi.h> 4885int 4886main () 4887{ 4888 4889 ; 4890 return 0; 4891} 4892_ACEOF 4893if ac_fn_c_try_compile "$LINENO"; then : 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4895$as_echo "yes" >&6; } 4896else 4897 MPILIBS="" 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4899$as_echo "no" >&6; } 4900fi 4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4902 else 4903 enable_mpi="not found" 4904 fi 4905 CC="$save_cc" 4906 CC=$MPICC 4907 fi 4908 4909########## Check C Flags ########## 4910 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI pathscale:__PATHCC__,__PATHSCALE__; do 4911 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" 4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4913/* end confdefs.h. */ 4914 4915int 4916main () 4917{ 4918 4919 #if !($vencpp) 4920 thisisanerror; 4921 #endif 4922 4923 ; 4924 return 0; 4925} 4926_ACEOF 4927if ac_fn_c_try_compile "$LINENO"; then : 4928 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break 4929fi 4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4931 done 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 4933$as_echo_n "checking for C compiler vendor... " >&6; } 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 4935$as_echo "$ax_cv_c_compiler_vendor" >&6; } 4936 case $ax_cv_c_compiler_vendor in 4937 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host $CFLAGS" ;; 4938 gnu) CFLAGS="-O3 -fomit-frame-pointer $CFLAGS" ;; 4939 intel) CFLAGS="-ansi_alias $CFLAGS" ;; 4940 portland) CFLAGS="-O3 -B -fastsse $CFLAGS" ;; 4941 pathscale) CFLAGS="-O3 $CFLAGS" ;; 4942 ibm) CFLAGS="-O3 -qansialias -w -qarch=auto -qtune=auto $CFLAGS" 4943 AR="ar -X any" 4944 ;; 4945 sun) case `(uname -m) 2>/dev/null` in 4946 "i86pc") CFLAGS="-xtarget=native -xO5 -dalign $CFLAGS" 4947 LDFLAGS="-xtarget=native -xO5" 4948 ;; 4949 *) CFLAGS="-xtarget=native64 -xO5 -dalign $CFLAGS" 4950 LDFLAGS="-xtarget=native64 -xO5" 4951 ;; 4952 esac 4953 ;; 4954 hp) CFLAGS="+Oall +Optrs_ansi +DSnative $CFLAGS" ;; 4955 esac 4956 4957 4958 4959 4960 4961 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from C" >&5 4963$as_echo_n "checking how to get verbose linking output from C... " >&6; } 4964if ${ac_cv_prog_c_v+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4968/* end confdefs.h. */ 4969 4970int 4971main () 4972{ 4973 4974 ; 4975 return 0; 4976} 4977_ACEOF 4978if ac_fn_c_try_compile "$LINENO"; then : 4979 ac_cv_prog_c_v= 4980 # Try some options frequently used verbose output 4981 for ac_verb in -v -verbose --verbose -V -\#\#\#; do 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984 4985int 4986main () 4987{ 4988 4989 ; 4990 return 0; 4991} 4992_ACEOF 4993 4994 # Compile and link our simple test program by passing a flag (argument 4995 # 1 to this macro) to the Fortran compiler in order to get 4996 # "verbose" output that we can then parse for the Fortran linker 4997 # flags. 4998 ac_save_CFLAGS=$CFLAGS 4999 CFLAGS="$CFLAGS $ac_verb" 5000 (eval echo $as_me:5000: \"$ac_link\") >&5 5001 ac_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 5002 echo "$ac_c_v_output" >&5 5003 CFLAGS=$ac_save_CFLAGS 5004 5005 rm -f conftest* 5006 5007 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 5008 # /foo, /bar, and /baz are search directories for the Fortran linker. 5009 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): 5010 ac_c_v_output="`echo $ac_c_v_output | grep 'LPATH is:' | sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_c_v_output" 5011 5012 case $ac_c_v_output in 5013 # If we are using xlf then replace all the commas with spaces. 5014 *xlcentry*) 5015 ac_c_v_output=`echo $ac_c_v_output | sed 's/,/ /g'` ;; 5016 5017 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 5018 # $LIBS confuse us, and the libraries appear later in the output anyway). 5019 *mGLOB_options_string*) 5020 ac_c_v_output=`echo $ac_c_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 5021 5022 esac 5023 5024 # look for -l* and *.a constructs in the output 5025 for ac_arg in $ac_c_v_output; do 5026 case $ac_arg in 5027 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 5028 ac_cv_prog_c_v=$ac_verb 5029 break 2 ;; 5030 esac 5031 done 5032 done 5033 if test -z "$ac_cv_prog_c_v"; then 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from C" >&5 5035$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from C" >&2;} 5036 fi 5037else 5038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 5039$as_echo "$as_me: WARNING: compilation failed" >&2;} 5040fi 5041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5042 5043fi 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_v" >&5 5045$as_echo "$ac_cv_prog_c_v" >&6; } 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C libraries" >&5 5047$as_echo_n "checking for C libraries... " >&6; } 5048if ${ac_cv_c_libs+:} false; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 if test "x$CLIBS" != "x"; then 5052 ac_cv_c_libs="$CLIBS" # Let the user override the test. 5053 else 5054 5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5056/* end confdefs.h. */ 5057 5058int 5059main () 5060{ 5061 5062 ; 5063 return 0; 5064} 5065_ACEOF 5066 5067 # Compile and link our simple test program by passing a flag (argument 5068 # 1 to this macro) to the Fortran compiler in order to get 5069 # "verbose" output that we can then parse for the Fortran linker 5070 # flags. 5071 ac_save_CFLAGS=$CFLAGS 5072 CFLAGS="$CFLAGS $ac_cv_prog_c_v" 5073 (eval echo $as_me:5073: \"$ac_link\") >&5 5074 ac_c_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 5075 echo "$ac_c_v_output" >&5 5076 CFLAGS=$ac_save_CFLAGS 5077 5078 rm -f conftest* 5079 5080 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 5081 # /foo, /bar, and /baz are search directories for the Fortran linker. 5082 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): 5083 ac_c_v_output="`echo $ac_c_v_output | grep 'LPATH is:' | sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_c_v_output" 5084 5085 case $ac_c_v_output in 5086 # If we are using xlf then replace all the commas with spaces. 5087 *xlcentry*) 5088 ac_c_v_output=`echo $ac_c_v_output | sed 's/,/ /g'` ;; 5089 5090 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 5091 # $LIBS confuse us, and the libraries appear later in the output anyway). 5092 *mGLOB_options_string*) 5093 ac_c_v_output=`echo $ac_c_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 5094 5095 esac 5096 5097 5098 ac_cv_c_libs= 5099 5100 # Save positional arguments (if any) 5101 ac_save_positional="$@" 5102 5103 set X $ac_c_v_output 5104 while test $# != 1; do 5105 shift 5106 ac_arg=$1 5107 case $ac_arg in 5108 [\\/]*.a | ?:[\\/]*.a) 5109 ac_exists=false 5110 for ac_i in $ac_cv_c_libs; do 5111 if test x"$ac_arg" = x"$ac_i"; then 5112 ac_exists=true 5113 break 5114 fi 5115 done 5116 5117 if test x"$ac_exists" = xtrue; then : 5118 5119else 5120 ac_cv_c_libs="$ac_cv_c_libs $ac_arg" 5121fi 5122 ;; 5123 -bI:*) 5124 ac_exists=false 5125 for ac_i in $ac_cv_c_libs; do 5126 if test x"$ac_arg" = x"$ac_i"; then 5127 ac_exists=true 5128 break 5129 fi 5130 done 5131 5132 if test x"$ac_exists" = xtrue; then : 5133 5134else 5135 if test "$ac_compiler_gnu" = yes; then 5136 for ac_link_opt in $ac_arg; do 5137 ac_cv_c_libs="$ac_cv_c_libs -Xlinker $ac_link_opt" 5138 done 5139else 5140 ac_cv_c_libs="$ac_cv_c_libs $ac_arg" 5141fi 5142fi 5143 ;; 5144 # Ignore these flags. 5145 -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) 5146 ;; 5147 -lkernel32) 5148 test x"$CYGWIN" != xyes && ac_cv_c_libs="$ac_cv_c_libs $ac_arg" 5149 ;; 5150 -[LRuY]) 5151 # These flags, when seen by themselves, take an argument. 5152 # We remove the space between option and argument and re-iterate 5153 # unless we find an empty arg or a new option (starting with -) 5154 case $2 in 5155 "" | -*);; 5156 *) 5157 ac_arg="$ac_arg$2" 5158 shift; shift 5159 set X $ac_arg "$@" 5160 ;; 5161 esac 5162 ;; 5163 -YP,*) 5164 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 5165 ac_exists=false 5166 for ac_i in $ac_cv_c_libs; do 5167 if test x"$ac_j" = x"$ac_i"; then 5168 ac_exists=true 5169 break 5170 fi 5171 done 5172 5173 if test x"$ac_exists" = xtrue; then : 5174 5175else 5176 ac_arg="$ac_arg $ac_j" 5177 ac_cv_c_libs="$ac_cv_c_libs $ac_j" 5178fi 5179 done 5180 ;; 5181 -[lLR]*) 5182 ac_exists=false 5183 for ac_i in $ac_cv_c_libs; do 5184 if test x"$ac_arg" = x"$ac_i"; then 5185 ac_exists=true 5186 break 5187 fi 5188 done 5189 5190 if test x"$ac_exists" = xtrue; then : 5191 5192else 5193 ac_cv_c_libs="$ac_cv_c_libs $ac_arg" 5194fi 5195 ;; 5196 # Ignore everything else. 5197 esac 5198 done 5199 # restore positional arguments 5200 set X $ac_save_positional; shift 5201 5202 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 5203 # then we insist that the "run path" must be an absolute path (i.e. it 5204 # must begin with a "/"). 5205 case `(uname -sr) 2>/dev/null` in 5206 "SunOS 5"*) 5207 ac_ld_run_path=`echo $ac_c_v_output | 5208 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 5209 test "x$ac_ld_run_path" != x && 5210 if test "$ac_compiler_gnu" = yes; then 5211 for ac_link_opt in $ac_ld_run_path; do 5212 ac_cv_c_libs="$ac_cv_c_libs -Xlinker $ac_link_opt" 5213 done 5214else 5215 ac_cv_c_libs="$ac_cv_c_libs $ac_ld_run_path" 5216fi 5217 ;; 5218 esac 5219 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 5220 5221fi 5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_libs" >&5 5223$as_echo "$ac_cv_c_libs" >&6; } 5224 CLIBS="$ac_cv_c_libs" 5225 5226fi 5227 5228########## Check Fortran Compilers ########## 5229if test "$enable_fortran" = "yes" || test "$enable_f90" = "yes" || test "$enable_saamg" = "yes"; then 5230 if test -z "$F77"; then 5231 F77=$FC 5232 fi 5233 ac_ext=f 5234ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5235ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5236ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5237 5238 fflags_save="$FFLAGS" 5239 ac_ext=f 5240ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5241ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5242ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5243if test -n "$ac_tool_prefix"; then 5244 for ac_prog in ifort ifc efc xlf95_r xlf90_r xlf_r xlf95 xlf90 xlf ftn frt pgf95 pgf90 pathf95 pathf90 epcf90 f95 fort lf95 gfortran f90 g77 5245 do 5246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5247set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5249$as_echo_n "checking for $ac_word... " >&6; } 5250if ${ac_cv_prog_F77+:} false; then : 5251 $as_echo_n "(cached) " >&6 5252else 5253 if test -n "$F77"; then 5254 ac_cv_prog_F77="$F77" # Let the user override the test. 5255else 5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5257for as_dir in $PATH 5258do 5259 IFS=$as_save_IFS 5260 test -z "$as_dir" && as_dir=. 5261 for ac_exec_ext in '' $ac_executable_extensions; do 5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5263 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5265 break 2 5266 fi 5267done 5268 done 5269IFS=$as_save_IFS 5270 5271fi 5272fi 5273F77=$ac_cv_prog_F77 5274if test -n "$F77"; then 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 5276$as_echo "$F77" >&6; } 5277else 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5279$as_echo "no" >&6; } 5280fi 5281 5282 5283 test -n "$F77" && break 5284 done 5285fi 5286if test -z "$F77"; then 5287 ac_ct_F77=$F77 5288 for ac_prog in ifort ifc efc xlf95_r xlf90_r xlf_r xlf95 xlf90 xlf ftn frt pgf95 pgf90 pathf95 pathf90 epcf90 f95 fort lf95 gfortran f90 g77 5289do 5290 # Extract the first word of "$ac_prog", so it can be a program name with args. 5291set dummy $ac_prog; ac_word=$2 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5293$as_echo_n "checking for $ac_word... " >&6; } 5294if ${ac_cv_prog_ac_ct_F77+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 if test -n "$ac_ct_F77"; then 5298 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5299else 5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5301for as_dir in $PATH 5302do 5303 IFS=$as_save_IFS 5304 test -z "$as_dir" && as_dir=. 5305 for ac_exec_ext in '' $ac_executable_extensions; do 5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5307 ac_cv_prog_ac_ct_F77="$ac_prog" 5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5309 break 2 5310 fi 5311done 5312 done 5313IFS=$as_save_IFS 5314 5315fi 5316fi 5317ac_ct_F77=$ac_cv_prog_ac_ct_F77 5318if test -n "$ac_ct_F77"; then 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 5320$as_echo "$ac_ct_F77" >&6; } 5321else 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5323$as_echo "no" >&6; } 5324fi 5325 5326 5327 test -n "$ac_ct_F77" && break 5328done 5329 5330 if test "x$ac_ct_F77" = x; then 5331 F77="" 5332 else 5333 case $cross_compiling:$ac_tool_warned in 5334yes:) 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5337ac_tool_warned=yes ;; 5338esac 5339 F77=$ac_ct_F77 5340 fi 5341fi 5342 5343 5344# Provide some information about the compiler. 5345$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 5346set X $ac_compile 5347ac_compiler=$2 5348for ac_option in --version -v -V -qversion; do 5349 { { ac_try="$ac_compiler $ac_option >&5" 5350case "(($ac_try" in 5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5352 *) ac_try_echo=$ac_try;; 5353esac 5354eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5355$as_echo "$ac_try_echo"; } >&5 5356 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5357 ac_status=$? 5358 if test -s conftest.err; then 5359 sed '10a\ 5360... rest of stderr output deleted ... 5361 10q' conftest.err >conftest.er1 5362 cat conftest.er1 >&5 5363 fi 5364 rm -f conftest.er1 conftest.err 5365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5366 test $ac_status = 0; } 5367done 5368rm -f a.out 5369 5370# If we don't use `.F' as extension, the preprocessor is not run on the 5371# input file. (Note that this only needs to work for GNU compilers.) 5372ac_save_ext=$ac_ext 5373ac_ext=F 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 5375$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 5376if ${ac_cv_f77_compiler_gnu+:} false; then : 5377 $as_echo_n "(cached) " >&6 5378else 5379 cat > conftest.$ac_ext <<_ACEOF 5380 program main 5381#ifndef __GNUC__ 5382 choke me 5383#endif 5384 5385 end 5386_ACEOF 5387if ac_fn_f77_try_compile "$LINENO"; then : 5388 ac_compiler_gnu=yes 5389else 5390 ac_compiler_gnu=no 5391fi 5392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5393ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5394 5395fi 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 5397$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 5398ac_ext=$ac_save_ext 5399ac_test_FFLAGS=${FFLAGS+set} 5400ac_save_FFLAGS=$FFLAGS 5401FFLAGS= 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 5403$as_echo_n "checking whether $F77 accepts -g... " >&6; } 5404if ${ac_cv_prog_f77_g+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406else 5407 FFLAGS=-g 5408cat > conftest.$ac_ext <<_ACEOF 5409 program main 5410 5411 end 5412_ACEOF 5413if ac_fn_f77_try_compile "$LINENO"; then : 5414 ac_cv_prog_f77_g=yes 5415else 5416 ac_cv_prog_f77_g=no 5417fi 5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5419 5420fi 5421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 5422$as_echo "$ac_cv_prog_f77_g" >&6; } 5423if test "$ac_test_FFLAGS" = set; then 5424 FFLAGS=$ac_save_FFLAGS 5425elif test $ac_cv_prog_f77_g = yes; then 5426 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5427 FFLAGS="-g -O2" 5428 else 5429 FFLAGS="-g" 5430 fi 5431else 5432 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5433 FFLAGS="-O2" 5434 else 5435 FFLAGS= 5436 fi 5437fi 5438 5439if test $ac_compiler_gnu = yes; then 5440 G77=yes 5441else 5442 G77= 5443fi 5444ac_ext=f 5445ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5446ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5447ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5448 5449 FFLAGS="$fflags_save" 5450 if test "$TARGET" = ""; then 5451 if test "$enable_mpi" = "yes"; then 5452 for ac_prog in mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpifrt cmpifc cmpif90c mpf90 mpif90 hf77 mpxlf_r mpxlf mpf77 mpif77 5453do 5454 # Extract the first word of "$ac_prog", so it can be a program name with args. 5455set dummy $ac_prog; ac_word=$2 5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5457$as_echo_n "checking for $ac_word... " >&6; } 5458if ${ac_cv_prog_MPIF77+:} false; then : 5459 $as_echo_n "(cached) " >&6 5460else 5461 if test -n "$MPIF77"; then 5462 ac_cv_prog_MPIF77="$MPIF77" # Let the user override the test. 5463else 5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5465for as_dir in $PATH 5466do 5467 IFS=$as_save_IFS 5468 test -z "$as_dir" && as_dir=. 5469 for ac_exec_ext in '' $ac_executable_extensions; do 5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5471 ac_cv_prog_MPIF77="$ac_prog" 5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5473 break 2 5474 fi 5475done 5476 done 5477IFS=$as_save_IFS 5478 5479fi 5480fi 5481MPIF77=$ac_cv_prog_MPIF77 5482if test -n "$MPIF77"; then 5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIF77" >&5 5484$as_echo "$MPIF77" >&6; } 5485else 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5487$as_echo "no" >&6; } 5488fi 5489 5490 5491 test -n "$MPIF77" && break 5492done 5493test -n "$MPIF77" || MPIF77="$F77" 5494 5495 F77=$MPIF77 5496 fi 5497 fi 5498 ac_ext=c 5499ac_cpp='$CPP $CPPFLAGS' 5500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5502ac_compiler_gnu=$ac_cv_c_compiler_gnu 5503 5504 if test -n "$F77"; then 5505 FC=$F77 5506 MPIFC=$MPIF77 5507 fi 5508fi 5509 5510if test "$enable_f90" = "yes" || test "$enable_saamg" = "yes"; then 5511 ac_ext=${ac_fc_srcext-f} 5512ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 5513ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 5514ac_compiler_gnu=$ac_cv_fc_compiler_gnu 5515 5516 fcflags_save="$FCFLAGS" 5517 ac_ext=${ac_fc_srcext-f} 5518ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 5519ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 5520ac_compiler_gnu=$ac_cv_fc_compiler_gnu 5521if test -n "$ac_tool_prefix"; then 5522 for ac_prog in ifort ifc efc xlf95_r xlf90_r xlf_r xlf95 xlf90 xlf ftn frt pgf95 pgf90 pathf95 pathf90 epcf90 f95 fort lf95 gfortran f90 5523 do 5524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5525set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5527$as_echo_n "checking for $ac_word... " >&6; } 5528if ${ac_cv_prog_FC+:} false; then : 5529 $as_echo_n "(cached) " >&6 5530else 5531 if test -n "$FC"; then 5532 ac_cv_prog_FC="$FC" # Let the user override the test. 5533else 5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5535for as_dir in $PATH 5536do 5537 IFS=$as_save_IFS 5538 test -z "$as_dir" && as_dir=. 5539 for ac_exec_ext in '' $ac_executable_extensions; do 5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5541 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5543 break 2 5544 fi 5545done 5546 done 5547IFS=$as_save_IFS 5548 5549fi 5550fi 5551FC=$ac_cv_prog_FC 5552if test -n "$FC"; then 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5 5554$as_echo "$FC" >&6; } 5555else 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5557$as_echo "no" >&6; } 5558fi 5559 5560 5561 test -n "$FC" && break 5562 done 5563fi 5564if test -z "$FC"; then 5565 ac_ct_FC=$FC 5566 for ac_prog in ifort ifc efc xlf95_r xlf90_r xlf_r xlf95 xlf90 xlf ftn frt pgf95 pgf90 pathf95 pathf90 epcf90 f95 fort lf95 gfortran f90 5567do 5568 # Extract the first word of "$ac_prog", so it can be a program name with args. 5569set dummy $ac_prog; ac_word=$2 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5571$as_echo_n "checking for $ac_word... " >&6; } 5572if ${ac_cv_prog_ac_ct_FC+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 if test -n "$ac_ct_FC"; then 5576 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 5577else 5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5579for as_dir in $PATH 5580do 5581 IFS=$as_save_IFS 5582 test -z "$as_dir" && as_dir=. 5583 for ac_exec_ext in '' $ac_executable_extensions; do 5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5585 ac_cv_prog_ac_ct_FC="$ac_prog" 5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5587 break 2 5588 fi 5589done 5590 done 5591IFS=$as_save_IFS 5592 5593fi 5594fi 5595ac_ct_FC=$ac_cv_prog_ac_ct_FC 5596if test -n "$ac_ct_FC"; then 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5 5598$as_echo "$ac_ct_FC" >&6; } 5599else 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5601$as_echo "no" >&6; } 5602fi 5603 5604 5605 test -n "$ac_ct_FC" && break 5606done 5607 5608 if test "x$ac_ct_FC" = x; then 5609 FC="" 5610 else 5611 case $cross_compiling:$ac_tool_warned in 5612yes:) 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5615ac_tool_warned=yes ;; 5616esac 5617 FC=$ac_ct_FC 5618 fi 5619fi 5620 5621 5622# Provide some information about the compiler. 5623$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5 5624set X $ac_compile 5625ac_compiler=$2 5626for ac_option in --version -v -V -qversion; do 5627 { { ac_try="$ac_compiler $ac_option >&5" 5628case "(($ac_try" in 5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5630 *) ac_try_echo=$ac_try;; 5631esac 5632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5633$as_echo "$ac_try_echo"; } >&5 5634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5635 ac_status=$? 5636 if test -s conftest.err; then 5637 sed '10a\ 5638... rest of stderr output deleted ... 5639 10q' conftest.err >conftest.er1 5640 cat conftest.er1 >&5 5641 fi 5642 rm -f conftest.er1 conftest.err 5643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5644 test $ac_status = 0; } 5645done 5646rm -f a.out 5647 5648# If we don't use `.F' as extension, the preprocessor is not run on the 5649# input file. (Note that this only needs to work for GNU compilers.) 5650ac_save_ext=$ac_ext 5651ac_ext=F 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5 5653$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; } 5654if ${ac_cv_fc_compiler_gnu+:} false; then : 5655 $as_echo_n "(cached) " >&6 5656else 5657 cat > conftest.$ac_ext <<_ACEOF 5658 program main 5659#ifndef __GNUC__ 5660 choke me 5661#endif 5662 5663 end 5664_ACEOF 5665if ac_fn_fc_try_compile "$LINENO"; then : 5666 ac_compiler_gnu=yes 5667else 5668 ac_compiler_gnu=no 5669fi 5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5671ac_cv_fc_compiler_gnu=$ac_compiler_gnu 5672 5673fi 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5 5675$as_echo "$ac_cv_fc_compiler_gnu" >&6; } 5676ac_ext=$ac_save_ext 5677ac_test_FCFLAGS=${FCFLAGS+set} 5678ac_save_FCFLAGS=$FCFLAGS 5679FCFLAGS= 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5 5681$as_echo_n "checking whether $FC accepts -g... " >&6; } 5682if ${ac_cv_prog_fc_g+:} false; then : 5683 $as_echo_n "(cached) " >&6 5684else 5685 FCFLAGS=-g 5686cat > conftest.$ac_ext <<_ACEOF 5687 program main 5688 5689 end 5690_ACEOF 5691if ac_fn_fc_try_compile "$LINENO"; then : 5692 ac_cv_prog_fc_g=yes 5693else 5694 ac_cv_prog_fc_g=no 5695fi 5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5697 5698fi 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5 5700$as_echo "$ac_cv_prog_fc_g" >&6; } 5701if test "$ac_test_FCFLAGS" = set; then 5702 FCFLAGS=$ac_save_FCFLAGS 5703elif test $ac_cv_prog_fc_g = yes; then 5704 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 5705 FCFLAGS="-g -O2" 5706 else 5707 FCFLAGS="-g" 5708 fi 5709else 5710 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 5711 FCFLAGS="-O2" 5712 else 5713 FCFLAGS= 5714 fi 5715fi 5716 5717if test $ac_compiler_gnu = yes; then 5718 GFC=yes 5719else 5720 GFC= 5721fi 5722ac_ext=${ac_fc_srcext-f} 5723ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 5724ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 5725ac_compiler_gnu=$ac_cv_fc_compiler_gnu 5726 5727 FCFLAGS="$fcflags_save" 5728 if test "$TARGET" = ""; then 5729 if test "$enable_mpi" = "yes"; then 5730 for ac_prog in mpxlf95_r mpxlf90_r mpxlf95 mpxlf90 mpifrt cmpifc cmpif90c mpf90 mpif90 hf77 5731do 5732 # Extract the first word of "$ac_prog", so it can be a program name with args. 5733set dummy $ac_prog; ac_word=$2 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5735$as_echo_n "checking for $ac_word... " >&6; } 5736if ${ac_cv_prog_MPIFC+:} false; then : 5737 $as_echo_n "(cached) " >&6 5738else 5739 if test -n "$MPIFC"; then 5740 ac_cv_prog_MPIFC="$MPIFC" # Let the user override the test. 5741else 5742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5743for as_dir in $PATH 5744do 5745 IFS=$as_save_IFS 5746 test -z "$as_dir" && as_dir=. 5747 for ac_exec_ext in '' $ac_executable_extensions; do 5748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5749 ac_cv_prog_MPIFC="$ac_prog" 5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5751 break 2 5752 fi 5753done 5754 done 5755IFS=$as_save_IFS 5756 5757fi 5758fi 5759MPIFC=$ac_cv_prog_MPIFC 5760if test -n "$MPIFC"; then 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIFC" >&5 5762$as_echo "$MPIFC" >&6; } 5763else 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5765$as_echo "no" >&6; } 5766fi 5767 5768 5769 test -n "$MPIFC" && break 5770done 5771test -n "$MPIFC" || MPIFC="$F77" 5772 5773 FC=$MPIFC 5774 fi 5775 fi 5776# AC_FC_SRCEXT(F90) 5777 ac_ext=c 5778ac_cpp='$CPP $CPPFLAGS' 5779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5781ac_compiler_gnu=$ac_cv_c_compiler_gnu 5782 5783fi 5784 5785########## Check Fortran Flags ########## 5786if test "$TARGET" = ""; then 5787 ac_ext=f 5788ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5789ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5790ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5791 5792 ac_ext=F 5793 for ventest in intel:__INTEL_COMPILER ibm:__IBMC__ gnu:__GNUC__ sun:__SUNPRO_F77,__SUNPRO_F90,__SUNPRO_F95 portland:__PGI pathscale:__PATHCC__,__PATHSCALE__; do 5794 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")" 5795 5796cat > conftest.$ac_ext <<_ACEOF 5797 program main 5798 5799#if !($vencpp) 5800 thisisanerror; 5801#endif 5802 5803 end 5804_ACEOF 5805if ac_fn_f77_try_compile "$LINENO"; then : 5806 ax_cv_f77_compiler_vendor=`echo $ventest | cut -d: -f1`; break 5807fi 5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5809 done 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler vendor" >&5 5811$as_echo_n "checking for Fortran compiler vendor... " >&6; } 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f77_compiler_vendor" >&5 5813$as_echo "$ax_cv_f77_compiler_vendor" >&6; } 5814 ac_ext=c 5815ac_cpp='$CPP $CPPFLAGS' 5816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5818ac_compiler_gnu=$ac_cv_c_compiler_gnu 5819 5820 case $ax_cv_f77_compiler_vendor in 5821 gnu) FFLAGS="-O3 -fomit-frame-pointer $FFLAGS" 5822 FCFLAGS="-O3 -fomit-frame-pointer $FCFLAGS" ;; 5823 intel) FFLAGS="-fpp $FFLAGS" 5824 FCFLAGS="-fpp $FCFLAGS" 5825 LDFLAGS="-Vaxlib" 5826 FCLDFLAGS="-nofor_main" ;; 5827 portland) FFLAGS="-O3 -fastsse -Mpreprocess $FFLAGS" 5828 FCFLAGS="-O3 -fastsse -Mpreprocess $FCFLAGS" 5829 FCLDFLAGS="-Mnomain" ;; 5830 pathscale) FFLAGS="-O3 $FFLAGS" ;; 5831 ibm) FFLAGS="-O3 -qsuffix=cpp=F -qfixed=72 -w -qarch=auto -qtune=auto $FFLAGS" 5832 FCFLAGS="-O3 -qsuffix=cpp=F90 -w -qarch=auto -qtune=auto $FCFLAGS" ;; 5833 sun) case `(uname -m) 2>/dev/null` in 5834 "i86pc") FFLAGS="-fpp -xtarget=native -xO5 -dalign $FFLAGS" 5835 FCFLAGS="-fpp -xtarget=native -xO5 -dalign $FCFLAGS" 5836 FCLDFLAGS="-xO5" ;; 5837 *) FFLAGS="-fpp -xtarget=native64 -xO5 -dalign $FFLAGS" 5838 FCFLAGS="-fpp -xtarget=native64 -xO5 -dalign $FCFLAGS" 5839 FCLDFLAGS="-xO5" ;; 5840 esac 5841 ;; 5842 esac 5843 5844 if test x$ax_cv_c_compiler_vendor = x$ax_cv_f77_compiler_vendor; then 5845 CLIBS="" 5846 fi 5847fi 5848 5849if test "$enable_fortran" = "yes" || test "$enable_f90" = "yes" || test "$enable_saamg" = "yes"; then 5850 ac_ext=f 5851ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5852ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5853ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5854 5855 if test "$ax_cv_f77_compiler_vendor" = "sun"; then 5856 ax_f77_mangling="lower case, underscore, no extra underscore" 5857 fi 5858 if test -z "$ax_f77_mangling"; then 5859 ac_ext=f 5860ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5861ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5862ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 5864$as_echo_n "checking how to get verbose linking output from $F77... " >&6; } 5865if ${ac_cv_prog_f77_v+:} false; then : 5866 $as_echo_n "(cached) " >&6 5867else 5868 cat > conftest.$ac_ext <<_ACEOF 5869 program main 5870 5871 end 5872_ACEOF 5873if ac_fn_f77_try_compile "$LINENO"; then : 5874 ac_cv_prog_f77_v= 5875# Try some options frequently used verbose output 5876for ac_verb in -v -verbose --verbose -V -\#\#\#; do 5877 cat > conftest.$ac_ext <<_ACEOF 5878 program main 5879 5880 end 5881_ACEOF 5882 5883# Compile and link our simple test program by passing a flag (argument 5884# 1 to this macro) to the Fortran compiler in order to get 5885# "verbose" output that we can then parse for the Fortran linker 5886# flags. 5887ac_save_FFLAGS=$FFLAGS 5888FFLAGS="$FFLAGS $ac_verb" 5889eval "set x $ac_link" 5890shift 5891$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 5892# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 5893# LIBRARY_PATH; skip all such settings. 5894ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | 5895 sed '/^Driving:/d; /^Configured with:/d; 5896 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 5897$as_echo "$ac_f77_v_output" >&5 5898FFLAGS=$ac_save_FFLAGS 5899 5900rm -rf conftest* 5901 5902# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 5903# /foo, /bar, and /baz are search directories for the Fortran linker. 5904# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 5905ac_f77_v_output="`echo $ac_f77_v_output | 5906 grep 'LPATH is:' | 5907 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" 5908 5909# FIXME: we keep getting bitten by quoted arguments; a more general fix 5910# that detects unbalanced quotes in FLIBS should be implemented 5911# and (ugh) tested at some point. 5912case $ac_f77_v_output in 5913 # With xlf replace commas with spaces, 5914 # and remove "-link" and closing parenthesis. 5915 *xlfentry*) 5916 ac_f77_v_output=`echo $ac_f77_v_output | 5917 sed ' 5918 s/,/ /g 5919 s/ -link / /g 5920 s/) *$// 5921 ' 5922 ` ;; 5923 5924 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 5925 # $LIBS confuse us, and the libraries appear later in the output anyway). 5926 *mGLOB_options_string*) 5927 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 5928 5929 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 5930 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 5931 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 5932 *-cmdline\ * | *-ignore\ * | *-def\ *) 5933 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ 5934 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 5935 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 5936 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 5937 5938 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 5939 *fort77*f2c*gcc*) 5940 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' 5941 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 5942 /"-c"/d 5943 /[.]c"*/d 5944 s/^.*"gcc"/"gcc"/ 5945 s/"//gp 5946 }'` ;; 5947 5948 # If we are using Cray Fortran then delete quotes. 5949 *cft90*) 5950 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; 5951esac 5952 5953 5954 # look for -l* and *.a constructs in the output 5955 for ac_arg in $ac_f77_v_output; do 5956 case $ac_arg in 5957 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 5958 ac_cv_prog_f77_v=$ac_verb 5959 break 2 ;; 5960 esac 5961 done 5962done 5963if test -z "$ac_cv_prog_f77_v"; then 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 5965$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} 5966fi 5967else 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 5969$as_echo "$as_me: WARNING: compilation failed" >&2;} 5970fi 5971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5972 5973fi 5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 5975$as_echo "$ac_cv_prog_f77_v" >&6; } 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 5977$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } 5978if ${ac_cv_f77_libs+:} false; then : 5979 $as_echo_n "(cached) " >&6 5980else 5981 if test "x$FLIBS" != "x"; then 5982 ac_cv_f77_libs="$FLIBS" # Let the user override the test. 5983else 5984 5985cat > conftest.$ac_ext <<_ACEOF 5986 program main 5987 5988 end 5989_ACEOF 5990 5991# Compile and link our simple test program by passing a flag (argument 5992# 1 to this macro) to the Fortran compiler in order to get 5993# "verbose" output that we can then parse for the Fortran linker 5994# flags. 5995ac_save_FFLAGS=$FFLAGS 5996FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 5997eval "set x $ac_link" 5998shift 5999$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 6000# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 6001# LIBRARY_PATH; skip all such settings. 6002ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | 6003 sed '/^Driving:/d; /^Configured with:/d; 6004 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 6005$as_echo "$ac_f77_v_output" >&5 6006FFLAGS=$ac_save_FFLAGS 6007 6008rm -rf conftest* 6009 6010# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 6011# /foo, /bar, and /baz are search directories for the Fortran linker. 6012# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 6013ac_f77_v_output="`echo $ac_f77_v_output | 6014 grep 'LPATH is:' | 6015 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" 6016 6017# FIXME: we keep getting bitten by quoted arguments; a more general fix 6018# that detects unbalanced quotes in FLIBS should be implemented 6019# and (ugh) tested at some point. 6020case $ac_f77_v_output in 6021 # With xlf replace commas with spaces, 6022 # and remove "-link" and closing parenthesis. 6023 *xlfentry*) 6024 ac_f77_v_output=`echo $ac_f77_v_output | 6025 sed ' 6026 s/,/ /g 6027 s/ -link / /g 6028 s/) *$// 6029 ' 6030 ` ;; 6031 6032 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 6033 # $LIBS confuse us, and the libraries appear later in the output anyway). 6034 *mGLOB_options_string*) 6035 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 6036 6037 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 6038 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 6039 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 6040 *-cmdline\ * | *-ignore\ * | *-def\ *) 6041 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ 6042 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 6043 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 6044 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 6045 6046 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 6047 *fort77*f2c*gcc*) 6048 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' 6049 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 6050 /"-c"/d 6051 /[.]c"*/d 6052 s/^.*"gcc"/"gcc"/ 6053 s/"//gp 6054 }'` ;; 6055 6056 # If we are using Cray Fortran then delete quotes. 6057 *cft90*) 6058 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; 6059esac 6060 6061 6062 6063ac_cv_f77_libs= 6064 6065# Save positional arguments (if any) 6066ac_save_positional="$@" 6067 6068set X $ac_f77_v_output 6069while test $# != 1; do 6070 shift 6071 ac_arg=$1 6072 case $ac_arg in 6073 [\\/]*.a | ?:[\\/]*.a) 6074 ac_exists=false 6075 for ac_i in $ac_cv_f77_libs; do 6076 if test x"$ac_arg" = x"$ac_i"; then 6077 ac_exists=true 6078 break 6079 fi 6080 done 6081 6082 if test x"$ac_exists" = xtrue; then : 6083 6084else 6085 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 6086fi 6087 ;; 6088 -bI:*) 6089 ac_exists=false 6090 for ac_i in $ac_cv_f77_libs; do 6091 if test x"$ac_arg" = x"$ac_i"; then 6092 ac_exists=true 6093 break 6094 fi 6095 done 6096 6097 if test x"$ac_exists" = xtrue; then : 6098 6099else 6100 if test "$ac_compiler_gnu" = yes; then 6101 for ac_link_opt in $ac_arg; do 6102 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 6103 done 6104else 6105 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 6106fi 6107fi 6108 ;; 6109 # Ignore these flags. 6110 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ 6111 |-LANG:=* | -LIST:* | -LNO:* | -link) 6112 ;; 6113 -lkernel32) 6114 case $host_os in 6115 *cygwin*) ;; 6116 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 6117 ;; 6118 esac 6119 ;; 6120 -[LRuYz]) 6121 # These flags, when seen by themselves, take an argument. 6122 # We remove the space between option and argument and re-iterate 6123 # unless we find an empty arg or a new option (starting with -) 6124 case $2 in 6125 "" | -*);; 6126 *) 6127 ac_arg="$ac_arg$2" 6128 shift; shift 6129 set X $ac_arg "$@" 6130 ;; 6131 esac 6132 ;; 6133 -YP,*) 6134 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 6135 ac_exists=false 6136 for ac_i in $ac_cv_f77_libs; do 6137 if test x"$ac_j" = x"$ac_i"; then 6138 ac_exists=true 6139 break 6140 fi 6141 done 6142 6143 if test x"$ac_exists" = xtrue; then : 6144 6145else 6146 ac_arg="$ac_arg $ac_j" 6147 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" 6148fi 6149 done 6150 ;; 6151 -[lLR]*) 6152 ac_exists=false 6153 for ac_i in $ac_cv_f77_libs; do 6154 if test x"$ac_arg" = x"$ac_i"; then 6155 ac_exists=true 6156 break 6157 fi 6158 done 6159 6160 if test x"$ac_exists" = xtrue; then : 6161 6162else 6163 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 6164fi 6165 ;; 6166 -zallextract*| -zdefaultextract) 6167 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 6168 ;; 6169 # Ignore everything else. 6170 esac 6171done 6172# restore positional arguments 6173set X $ac_save_positional; shift 6174 6175# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 6176# then we insist that the "run path" must be an absolute path (i.e. it 6177# must begin with a "/"). 6178case `(uname -sr) 2>/dev/null` in 6179 "SunOS 5"*) 6180 ac_ld_run_path=`$as_echo "$ac_f77_v_output" | 6181 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 6182 test "x$ac_ld_run_path" != x && 6183 if test "$ac_compiler_gnu" = yes; then 6184 for ac_link_opt in $ac_ld_run_path; do 6185 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 6186 done 6187else 6188 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" 6189fi 6190 ;; 6191esac 6192fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 6193 6194fi 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 6196$as_echo "$ac_cv_f77_libs" >&6; } 6197FLIBS="$ac_cv_f77_libs" 6198 6199 6200ac_ext=f 6201ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6202ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6203ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6204 6205ac_ext=f 6206ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6207ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6208ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6209 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 6211$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } 6212if ${ac_cv_f77_dummy_main+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214else 6215 ac_f77_dm_save_LIBS=$LIBS 6216 LIBS="$LIBS $FLIBS" 6217 ac_fortran_dm_var=F77_DUMMY_MAIN 6218 ac_ext=c 6219ac_cpp='$CPP $CPPFLAGS' 6220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6222ac_compiler_gnu=$ac_cv_c_compiler_gnu 6223 6224 # First, try linking without a dummy main: 6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226/* end confdefs.h. */ 6227 6228#ifdef F77_DUMMY_MAIN 6229 6230# ifdef __cplusplus 6231 extern "C" 6232# endif 6233 int F77_DUMMY_MAIN() { return 1; } 6234 6235#endif 6236int 6237main () 6238{ 6239 6240 ; 6241 return 0; 6242} 6243_ACEOF 6244if ac_fn_c_try_link "$LINENO"; then : 6245 ac_cv_fortran_dummy_main=none 6246else 6247 ac_cv_fortran_dummy_main=unknown 6248fi 6249rm -f core conftest.err conftest.$ac_objext \ 6250 conftest$ac_exeext conftest.$ac_ext 6251 6252 if test $ac_cv_fortran_dummy_main = unknown; then 6253 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6255/* end confdefs.h. */ 6256#define $ac_fortran_dm_var $ac_func 6257#ifdef F77_DUMMY_MAIN 6258 6259# ifdef __cplusplus 6260 extern "C" 6261# endif 6262 int F77_DUMMY_MAIN() { return 1; } 6263 6264#endif 6265int 6266main () 6267{ 6268 6269 ; 6270 return 0; 6271} 6272_ACEOF 6273if ac_fn_c_try_link "$LINENO"; then : 6274 ac_cv_fortran_dummy_main=$ac_func; break 6275fi 6276rm -f core conftest.err conftest.$ac_objext \ 6277 conftest$ac_exeext conftest.$ac_ext 6278 done 6279 fi 6280 ac_ext=f 6281ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6282ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6283ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6284 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main 6285 rm -rf conftest* 6286 LIBS=$ac_f77_dm_save_LIBS 6287 6288fi 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 6290$as_echo "$ac_cv_f77_dummy_main" >&6; } 6291F77_DUMMY_MAIN=$ac_cv_f77_dummy_main 6292if test "$F77_DUMMY_MAIN" != unknown; then : 6293 if test $F77_DUMMY_MAIN != none; then 6294 6295cat >>confdefs.h <<_ACEOF 6296#define F77_DUMMY_MAIN $F77_DUMMY_MAIN 6297_ACEOF 6298 6299 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 6300 6301$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h 6302 6303 fi 6304fi 6305else 6306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6308as_fn_error $? "linking to Fortran libraries from C fails 6309See \`config.log' for more details" "$LINENO" 5; } 6310fi 6311 6312ac_ext=f 6313ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6314ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6315ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6316 6317ac_ext=f 6318ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6319ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6320ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 6322$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } 6323if ${ac_cv_f77_mangling+:} false; then : 6324 $as_echo_n "(cached) " >&6 6325else 6326 cat > conftest.$ac_ext <<_ACEOF 6327 subroutine foobar() 6328 return 6329 end 6330 subroutine foo_bar() 6331 return 6332 end 6333_ACEOF 6334if ac_fn_f77_try_compile "$LINENO"; then : 6335 mv conftest.$ac_objext cfortran_test.$ac_objext 6336 6337 ac_save_LIBS=$LIBS 6338 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" 6339 6340 ac_ext=c 6341ac_cpp='$CPP $CPPFLAGS' 6342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6344ac_compiler_gnu=$ac_cv_c_compiler_gnu 6345 ac_success=no 6346 for ac_foobar in foobar FOOBAR; do 6347 for ac_underscore in "" "_"; do 6348 ac_func="$ac_foobar$ac_underscore" 6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6350/* end confdefs.h. */ 6351 6352/* Override any GCC internal prototype to avoid an error. 6353 Use char because int might match the return type of a GCC 6354 builtin and then its argument prototype would still apply. */ 6355#ifdef __cplusplus 6356extern "C" 6357#endif 6358char $ac_func (); 6359#ifdef F77_DUMMY_MAIN 6360 6361# ifdef __cplusplus 6362 extern "C" 6363# endif 6364 int F77_DUMMY_MAIN() { return 1; } 6365 6366#endif 6367int 6368main () 6369{ 6370return $ac_func (); 6371 ; 6372 return 0; 6373} 6374_ACEOF 6375if ac_fn_c_try_link "$LINENO"; then : 6376 ac_success=yes; break 2 6377fi 6378rm -f core conftest.err conftest.$ac_objext \ 6379 conftest$ac_exeext conftest.$ac_ext 6380 done 6381 done 6382 ac_ext=f 6383ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6384ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6385ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6386 6387 if test "$ac_success" = "yes"; then 6388 case $ac_foobar in 6389 foobar) 6390 ac_case=lower 6391 ac_foo_bar=foo_bar 6392 ;; 6393 FOOBAR) 6394 ac_case=upper 6395 ac_foo_bar=FOO_BAR 6396 ;; 6397 esac 6398 6399 ac_ext=c 6400ac_cpp='$CPP $CPPFLAGS' 6401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6403ac_compiler_gnu=$ac_cv_c_compiler_gnu 6404 ac_success_extra=no 6405 for ac_extra in "" "_"; do 6406 ac_func="$ac_foo_bar$ac_underscore$ac_extra" 6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6408/* end confdefs.h. */ 6409 6410/* Override any GCC internal prototype to avoid an error. 6411 Use char because int might match the return type of a GCC 6412 builtin and then its argument prototype would still apply. */ 6413#ifdef __cplusplus 6414extern "C" 6415#endif 6416char $ac_func (); 6417#ifdef F77_DUMMY_MAIN 6418 6419# ifdef __cplusplus 6420 extern "C" 6421# endif 6422 int F77_DUMMY_MAIN() { return 1; } 6423 6424#endif 6425int 6426main () 6427{ 6428return $ac_func (); 6429 ; 6430 return 0; 6431} 6432_ACEOF 6433if ac_fn_c_try_link "$LINENO"; then : 6434 ac_success_extra=yes; break 6435fi 6436rm -f core conftest.err conftest.$ac_objext \ 6437 conftest$ac_exeext conftest.$ac_ext 6438 done 6439 ac_ext=f 6440ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6441ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6442ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6443 6444 if test "$ac_success_extra" = "yes"; then 6445 ac_cv_f77_mangling="$ac_case case" 6446 if test -z "$ac_underscore"; then 6447 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" 6448 else 6449 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" 6450 fi 6451 if test -z "$ac_extra"; then 6452 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" 6453 else 6454 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" 6455 fi 6456 else 6457 ac_cv_f77_mangling="unknown" 6458 fi 6459 else 6460 ac_cv_f77_mangling="unknown" 6461 fi 6462 6463 LIBS=$ac_save_LIBS 6464 rm -rf conftest* 6465 rm -f cfortran_test* 6466else 6467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6469as_fn_error $? "cannot compile a simple Fortran program 6470See \`config.log' for more details" "$LINENO" 5; } 6471fi 6472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6473 6474fi 6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 6476$as_echo "$ac_cv_f77_mangling" >&6; } 6477 6478ac_ext=f 6479ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6480ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6481ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6482 6483ac_ext=f 6484ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6485ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6486ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6487case $ac_cv_f77_mangling in 6488 "lower case, no underscore, no extra underscore") 6489 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h 6490 6491 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h 6492 ;; 6493 "lower case, no underscore, extra underscore") 6494 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h 6495 6496 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h 6497 ;; 6498 "lower case, underscore, no extra underscore") 6499 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h 6500 6501 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h 6502 ;; 6503 "lower case, underscore, extra underscore") 6504 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h 6505 6506 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h 6507 ;; 6508 "upper case, no underscore, no extra underscore") 6509 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h 6510 6511 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h 6512 ;; 6513 "upper case, no underscore, extra underscore") 6514 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h 6515 6516 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h 6517 ;; 6518 "upper case, underscore, no extra underscore") 6519 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h 6520 6521 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h 6522 ;; 6523 "upper case, underscore, extra underscore") 6524 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h 6525 6526 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h 6527 ;; 6528 *) 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 6530$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} 6531 ;; 6532esac 6533 6534ac_ext=f 6535ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6536ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6537ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6538 6539 ac_ext=f 6540ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6541ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6542ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6543 6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 6545$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } 6546if ${ac_cv_f77_dummy_main+:} false; then : 6547 $as_echo_n "(cached) " >&6 6548else 6549 ac_f77_dm_save_LIBS=$LIBS 6550 LIBS="$LIBS $FLIBS" 6551 ac_fortran_dm_var=F77_DUMMY_MAIN 6552 ac_ext=c 6553ac_cpp='$CPP $CPPFLAGS' 6554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6556ac_compiler_gnu=$ac_cv_c_compiler_gnu 6557 6558 # First, try linking without a dummy main: 6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560/* end confdefs.h. */ 6561 6562#ifdef F77_DUMMY_MAIN 6563 6564# ifdef __cplusplus 6565 extern "C" 6566# endif 6567 int F77_DUMMY_MAIN() { return 1; } 6568 6569#endif 6570int 6571main () 6572{ 6573 6574 ; 6575 return 0; 6576} 6577_ACEOF 6578if ac_fn_c_try_link "$LINENO"; then : 6579 ac_cv_fortran_dummy_main=none 6580else 6581 ac_cv_fortran_dummy_main=unknown 6582fi 6583rm -f core conftest.err conftest.$ac_objext \ 6584 conftest$ac_exeext conftest.$ac_ext 6585 6586 if test $ac_cv_fortran_dummy_main = unknown; then 6587 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 6588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6589/* end confdefs.h. */ 6590#define $ac_fortran_dm_var $ac_func 6591#ifdef F77_DUMMY_MAIN 6592 6593# ifdef __cplusplus 6594 extern "C" 6595# endif 6596 int F77_DUMMY_MAIN() { return 1; } 6597 6598#endif 6599int 6600main () 6601{ 6602 6603 ; 6604 return 0; 6605} 6606_ACEOF 6607if ac_fn_c_try_link "$LINENO"; then : 6608 ac_cv_fortran_dummy_main=$ac_func; break 6609fi 6610rm -f core conftest.err conftest.$ac_objext \ 6611 conftest$ac_exeext conftest.$ac_ext 6612 done 6613 fi 6614 ac_ext=f 6615ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6616ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6617ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6618 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main 6619 rm -rf conftest* 6620 LIBS=$ac_f77_dm_save_LIBS 6621 6622fi 6623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 6624$as_echo "$ac_cv_f77_dummy_main" >&6; } 6625F77_DUMMY_MAIN=$ac_cv_f77_dummy_main 6626if test "$F77_DUMMY_MAIN" != unknown; then : 6627 if test $F77_DUMMY_MAIN != none; then 6628 6629cat >>confdefs.h <<_ACEOF 6630#define F77_DUMMY_MAIN $F77_DUMMY_MAIN 6631_ACEOF 6632 6633 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 6634 6635$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h 6636 6637 fi 6638fi 6639else 6640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6642as_fn_error $? "linking to Fortran libraries from C fails 6643See \`config.log' for more details" "$LINENO" 5; } 6644fi 6645 6646ac_ext=f 6647ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6648ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6649ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6650 6651 else 6652 case $ax_f77_mangling in 6653 "lower case, no underscore, no extra underscore") 6654 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h 6655 6656 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h 6657 6658 ;; 6659 "lower case, no underscore, extra underscore") 6660 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h 6661 6662 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h 6663 6664 ;; 6665 "lower case, underscore, no extra underscore") 6666 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h 6667 6668 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h 6669 6670 ;; 6671 "lower case, underscore, extra underscore") 6672 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h 6673 6674 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h 6675 6676 ;; 6677 "upper case, no underscore, no extra underscore") 6678 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h 6679 6680 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h 6681 6682 ;; 6683 "upper case, no underscore, extra underscore") 6684 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h 6685 6686 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h 6687 6688 ;; 6689 "upper case, underscore, no extra underscore") 6690 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h 6691 6692 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h 6693 6694 ;; 6695 "upper case, underscore, extra underscore") 6696 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h 6697 6698 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h 6699 6700 ;; 6701 esac 6702 fi 6703 ac_ext=c 6704ac_cpp='$CPP $CPPFLAGS' 6705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6707ac_compiler_gnu=$ac_cv_c_compiler_gnu 6708 6709fi 6710 6711 6712# Configurations for Build Options 6713 6714######### Enable Fortran Interface ########## 6715if test "$enable_fortran" = "yes"; then 6716 6717$as_echo "#define USE_FORTRAN 1" >>confdefs.h 6718 6719else 6720 enable_fortran="no" 6721 if test "$enable_f90" = "yes"; then 6722 6723$as_echo "#define USE_FORTRAN 1" >>confdefs.h 6724 6725 enable_fortran="yes" 6726 else 6727 enable_f90="no" 6728 fi 6729fi 6730if test "$enable_fortran" = "yes"; then 6731 if test "$CC" = "fcc"; then 6732 6733$as_echo "#define USE_MAIN__ 1" >>confdefs.h 6734 6735 else 6736 if test "$CC" = "mpifcc"; then 6737 6738$as_echo "#define USE_MAIN__ 1" >>confdefs.h 6739 6740 fi 6741 fi 6742fi 6743 6744######### Enable SA-AMG Preconditioner ########## 6745if test "$enable_saamg" = "yes"; then 6746 6747$as_echo "#define USE_FORTRAN 1" >>confdefs.h 6748 6749 6750$as_echo "#define USE_SAAMG 1" >>confdefs.h 6751 6752 case $ax_cv_f77_compiler_vendor in 6753 ibm) FCFLAGS="$FCFLAGS -WF,-DZERO_ORIGIN=1" ;; 6754 gnu) FCFLAGS="$FCFLAGS -Wp,-DZERO_ORIGIN=1" ;; 6755 hitachi) FCFLAGS="$FCFLAGS" ;; 6756 *) FCFLAGS="$FCFLAGS -DZERO_ORIGIN=1" ;; 6757 esac 6758else 6759 enable_saamg="no" 6760fi 6761if test "$enable_fortran" = "yes"; then 6762 if test "$CC" = "fcc"; then 6763 6764$as_echo "#define USE_MAIN__ 1" >>confdefs.h 6765 6766 else 6767 if test "$CC" = "mpifcc"; then 6768 6769$as_echo "#define USE_MAIN__ 1" >>confdefs.h 6770 6771 fi 6772 fi 6773else 6774 if test "$enable_saamg" = "yes"; then 6775 if test "$CC" = "fcc"; then 6776 6777$as_echo "#define USE_MAIN__ 1" >>confdefs.h 6778 6779 else 6780 if test "$CC" = "mpifcc"; then 6781 6782$as_echo "#define USE_MAIN__ 1" >>confdefs.h 6783 6784 fi 6785 fi 6786 fi 6787fi 6788 6789########## Enable MPI and OpenMP Directives ########## 6790if test "$TARGET" = ""; then 6791 if test -z "$enable_mpi"; then 6792 enable_mpi="no" 6793 MPIRUN="" 6794 else 6795 if test -z "$MPIRUN"; then 6796 for ac_prog in mpirun mpiexec 6797do 6798 # Extract the first word of "$ac_prog", so it can be a program name with args. 6799set dummy $ac_prog; ac_word=$2 6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6801$as_echo_n "checking for $ac_word... " >&6; } 6802if ${ac_cv_prog_MPIRUN+:} false; then : 6803 $as_echo_n "(cached) " >&6 6804else 6805 if test -n "$MPIRUN"; then 6806 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test. 6807else 6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809for as_dir in $PATH 6810do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6815 ac_cv_prog_MPIRUN="$ac_prog" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819done 6820 done 6821IFS=$as_save_IFS 6822 6823fi 6824fi 6825MPIRUN=$ac_cv_prog_MPIRUN 6826if test -n "$MPIRUN"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5 6828$as_echo "$MPIRUN" >&6; } 6829else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831$as_echo "no" >&6; } 6832fi 6833 6834 6835 test -n "$MPIRUN" && break 6836done 6837test -n "$MPIRUN" || MPIRUN="mpirun" 6838 6839 fi 6840 if test -z "$MPINP"; then 6841 if test "$MPIRUN" = "mpiexec"; then 6842 MPINP="-n" 6843 else 6844 MPINP="-np" 6845 fi 6846 fi 6847 fi 6848 if test "$enable_omp" = "yes"; then 6849 save_cflags="$CFLAGS" 6850 openmp_flags="-openmp -qopenmp -qsmp=omp -xopenmp -fopenmp -KOMP -mp -omp -Popenmp none" 6851 for ompf in $openmp_flags; do 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag $ompf" >&5 6853$as_echo_n "checking for OpenMP flag $ompf... " >&6; } 6854 case $ompf in 6855 none) CFLAGS=$save_cflags ;; 6856 *) CFLAGS="$save_cflags $ompf" ;; 6857 esac 6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859/* end confdefs.h. */ 6860#include <omp.h> 6861#ifdef F77_DUMMY_MAIN 6862 6863# ifdef __cplusplus 6864 extern "C" 6865# endif 6866 int F77_DUMMY_MAIN() { return 1; } 6867 6868#endif 6869int 6870main () 6871{ 6872 6873 #pragma omp parallel 6874 omp_set_num_threads(1) 6875 6876 ; 6877 return 0; 6878} 6879_ACEOF 6880if ac_fn_c_try_link "$LINENO"; then : 6881 OMPFLAG=$ompf; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6882$as_echo "yes" >&6; }; break 6883fi 6884rm -f core conftest.err conftest.$ac_objext \ 6885 conftest$ac_exeext conftest.$ac_ext 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6887$as_echo "no" >&6; } 6888 done 6889 CFLAGS=$save_cflags 6890 if test "$OMPFLAG" = ""; then 6891 enable_omp="not found" 6892 else 6893 if test "$OMPFLAG" = "none"; then 6894 OMPFLAG="" 6895 fi 6896 fi 6897 else 6898 case $ax_cv_c_compiler_vendor in 6899 hitachi) OMPFLAG="-noparallel" ;; 6900 esac 6901 case $ax_cv_f77_compiler_vendor in 6902 hitachi) OMPFLAG="-noparallel" ;; 6903 esac 6904 enable_omp="no" 6905 6906 fi 6907fi 6908 6909if test "$enable_mpi" = "yes"; then 6910 CC=$MPICC 6911 F77=$MPIF77 6912 FC=$MPIFC 6913 CFLAGS="$CFLAGS -DUSE_MPI" 6914 case $ax_cv_f77_compiler_vendor in 6915 ibm) FCFLAGS="$FCFLAGS -WF,-DUSE_MPI" 6916 FFLAGS="$FFLAGS -WF,-DUSE_MPI" 6917 ;; 6918 gnu) FCFLAGS="$FCFLAGS -Wp,-DUSE_MPI" 6919 FFLAGS="$FFLAGS -Wp,-DUSE_MPI" 6920 ;; 6921 *) FCFLAGS="$FCFLAGS -DUSE_MPI" 6922 FFLAGS="$FFLAGS -DUSE_MPI" 6923 ;; 6924 esac 6925else 6926 enable_mpi="no" 6927fi 6928 6929if test "$enable_omp" = "yes"; then 6930 if test "$OMPFLAG" != ""; then 6931 CFLAGS="$CFLAGS $OMPFLAG" 6932 FFLAGS="$FFLAGS $OMPFLAG" 6933 FCFLAGS="$FCFLAGS $OMPFLAG" 6934 LDFLAGS="$LDFLAGS $OMPFLAG" 6935 fi 6936fi 6937 6938########## Enable x87 FPUs ########## 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87 FPU" >&5 6940$as_echo_n "checking for x87 FPU... " >&6; } 6941 case $target in 6942 i*86-* | x86*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6943$as_echo "yes" >&6; } 6944 6945$as_echo "#define HAS_X87_FPU 1" >>confdefs.h 6946 6947 ;; 6948 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6949$as_echo "no" >&6; } ;; 6950 esac 6951# enable_sse2="no" 6952 6953if test "$enable_quad" = "yes"; then 6954 6955########## Enable Intel Streaming SIMD Extensions ########## 6956# enable_sse2="yes" 6957if test "$enable_sse2" = "yes"; then 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSE2" >&5 6959$as_echo_n "checking for SSE2... " >&6; } 6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6961/* end confdefs.h. */ 6962#include <emmintrin.h> 6963#ifdef F77_DUMMY_MAIN 6964 6965# ifdef __cplusplus 6966 extern "C" 6967# endif 6968 int F77_DUMMY_MAIN() { return 1; } 6969 6970#endif 6971int 6972main () 6973{ 6974 6975 __m128d xs; 6976 double hi; 6977 xs = _mm_set_pd(1.0,1.0); 6978 _mm_store_sd(&hi,xs); 6979 6980 ; 6981 return 0; 6982} 6983_ACEOF 6984if ac_fn_c_try_compile "$LINENO"; then : 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6986$as_echo "yes" >&6; } 6987 6988$as_echo "#define USE_SSE2 1" >>confdefs.h 6989 6990 6991$as_echo "#define USE_FMA2_SSE2 1" >>confdefs.h 6992 6993 6994else 6995 enable_sse2="no"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6996$as_echo "no" >&6; } 6997fi 6998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6999fi 7000 if test "$TARGET" = ""; then 7001 if test "$enable_sse2" != "yes"; then 7002 save_cflags="$CFLAGS" 7003 case $ax_cv_c_compiler_vendor in 7004 intel) quad_flags="-mp" ;; 7005 ibm) quad_flags="-qstrict none" ;; 7006 sun) quad_flags="-fsimple=0 none" ;; 7007 *) quad_flags="none" ;; 7008 esac 7009 if test "$MPFLAG" != ""; then 7010 quad_flags="$MPFLAG $quad_flags" 7011 fi 7012 for mpf in $quad_flags; do 7013 case $ax_cv_c_compiler_vendor in 7014 sun) mpf="$mpf -fns=no" ;; 7015 esac 7016 case $mpf in 7017 none) CFLAGS=$save_cflags ;; 7018 *) CFLAGS="$save_cflags $mpf" ;; 7019 esac 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp flag $mpf" >&5 7021$as_echo_n "checking for mp flag $mpf... " >&6; } 7022 if test "$cross_compiling" = yes; then : 7023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7025as_fn_error $? "cannot run test program while cross compiling 7026See \`config.log' for more details" "$LINENO" 5; } 7027else 7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7029/* end confdefs.h. */ 7030#include <stdio.h> 7031#ifdef F77_DUMMY_MAIN 7032 7033# ifdef __cplusplus 7034 extern "C" 7035# endif 7036 int F77_DUMMY_MAIN() { return 1; } 7037 7038#endif 7039int 7040main () 7041{ 7042double r,e; 7043 double a=1.0; 7044 double b=1.1e-16; 7045 r=a+b; 7046 e=b-(r-a); 7047 printf("r=%e e=%e ",r,e); 7048 if(e==0.0) return 1; 7049 7050 ; 7051 return 0; 7052} 7053_ACEOF 7054if ac_fn_c_try_run "$LINENO"; then : 7055 MPFLAG=$mpf; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7056$as_echo "yes" >&6; }; break 7057else 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7059$as_echo "no" >&6; } 7060fi 7061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7062 conftest.$ac_objext conftest.beam conftest.$ac_ext 7063fi 7064 7065 done 7066 CFLAGS=$save_cflags 7067 if test "$MPFLAG" = ""; then 7068 enable_quad="not found" 7069 else 7070 if test "$MPFLAG" = "none"; then 7071 MPFLAG="" 7072 fi 7073 fi 7074 fi 7075 fi 7076 if test "$enable_quad" = "yes"; then 7077 7078$as_echo "#define USE_QUAD_PRECISION 1" >>confdefs.h 7079 7080 7081$as_echo "#define USE_FAST_QUAD_ADD 1" >>confdefs.h 7082 7083 if test "$enable_sse2" = "yes"; then 7084 case $ax_cv_c_compiler_vendor in 7085 gnu) MPFLAG="-msse2" ;; 7086 esac 7087 fi 7088 fi 7089else 7090 enable_quad="no" 7091fi 7092 7093########## Enable SIMD Optimization for Intel Fused Multiply and Add ########## 7094if test "$enable_fma" = "yes"; then 7095 7096$as_echo "#define HAS_FMA 1" >>confdefs.h 7097 7098 case $ax_cv_c_compiler_vendor in 7099 intel) MPFLAG="$MPFLAG -fma" ;; 7100 esac 7101else 7102 enable_fma="no" 7103fi 7104 7105########## Enable Vectorization for NEC SX Series ########## 7106if test "$ax_vector_machine" = "yes"; then 7107 7108$as_echo "#define USE_VEC_COMP 1" >>confdefs.h 7109 7110else 7111 ax_vector_machine="no" 7112fi 7113 7114########## Enable Debugging ########### 7115if test "$enable_debug" = "yes"; then 7116 CFLAGS="$CFLAGS -g -D_DEBUG" 7117 if test "$enable_fortran" = "yes"; then 7118 FFLAGS="$FFLAGS -g -DDEBUG" 7119 case $ax_cv_f77_compiler_vendor in 7120 ibm) FCFLAGS="$FCFLAGS -g -WF,-DDEBUG" ;; 7121 gnu) FCFLAGS="$FCFLAGS -g -Wp,-DDEBUG" ;; 7122 *) FCFLAGS="$FCFLAGS -g -DDEBUG" ;; 7123 esac 7124 fi 7125else 7126 enable_debug="no" 7127fi 7128 7129########## Enable Profiling ########## 7130if test "$enable_gprof" = "yes"; then 7131 case $ax_cv_c_compiler_vendor in 7132 sun) CFLAGS="$CFLAGS -xpg" 7133 FFLAGS="$FFLAGS -xpg" 7134 FCFLAGS="$FCFLAGS -xpg" 7135 LDFLAGS="$LDFLAGS -xpg" 7136 ;; 7137 fujitsu) CFLAGS="$CFLAGS -p" 7138 FFLAGS="$FFLAGS -p" 7139 FCFLAGS="$FCFLAGS -p" 7140 LDFLAGS="$LDFLAGS -p" 7141 ;; 7142 hp) CFLAGS="$CFLAGS -p" 7143 FFLAGS="$FFLAGS -p" 7144 FCFLAGS="$FCFLAGS -p" 7145 LDFLAGS="$LDFLAGS -p" 7146 ;; 7147 gnu) CFLAGS="$CFLAGS -fno-omit-frame-pointer -pg" 7148 FFLAGS="$FFLAGS -fno-omit-frame-pointer -pg" 7149 FCFLAGS="$FCFLAGS -fno-omit-frame-pointer -pg" 7150 LDFLAGS="$LDFLAGS -fno-omit-frame-pointer -pg" 7151 ;; 7152 *) CFLAGS="$CFLAGS -pg" 7153 FFLAGS="$FFLAGS -pg" 7154 FCFLAGS="$FCFLAGS -pg" 7155 LDFLAGS="$LDFLAGS -pg" 7156 ;; 7157 esac 7158else 7159 enable_gprof="no" 7160fi 7161 7162########## Enable 64bit Binary Executables ########## 7163if test "$enable_64bit" = "yes"; then 7164 case $ax_cv_c_compiler_vendor in 7165 sun) CFLAGS="$CFLAGS -m64" 7166 FFLAGS="$FFLAGS -m64" 7167 FCFLAGS="$FCFLAGS -m64" 7168 LDFLAGS="$LDFLAGS -m64" 7169 ;; 7170 ibm) CFLAGS="$CFLAGS -q64" 7171 FFLAGS="$FFLAGS -q64" 7172 FCFLAGS="$FCFLAGS -q64" 7173 LDFLAGS="$LDFLAGS -q64" 7174 ;; 7175 esac 7176else 7177 enable_64bit="no" 7178fi 7179 7180########## Enable 64bit Integer ########## 7181if test "$enable_longlong" = "yes"; then 7182 7183 case $ax_cv_c_compiler_vendor in 7184 sun) CFLAGS="$CFLAGS -m64" 7185 FFLAGS="$FFLAGS -m64" 7186 FCFLAGS="$FCFLAGS -m64" 7187 LDFLAGS="$LDFLAGS -m64" 7188 ;; 7189 ibm) CFLAGS="$CFLAGS -q64" 7190 FFLAGS="$FFLAGS -q64" 7191 FCFLAGS="$FCFLAGS -q64" 7192 LDFLAGS="$LDFLAGS -q64" 7193 ;; 7194 esac 7195 CFLAGS="$CFLAGS -D_LONG__LONG" 7196 7197 case $ax_cv_f77_compiler_vendor in 7198 intel) FFLAGS="$FFLAGS -DLONG__LONG -integer-size 64" 7199 FCFLAGS="$FCFLAGS -DLONG__LONG -integer-size 64" 7200 ;; 7201 ibm) FFLAGS="$FFLAGS -WF,-DLONG__LONG -qintsize=8" 7202 FCFLAGS="$FCFLAGS -WF,-DLONG__LONG -qintsize=8" 7203 ;; 7204 fujitsu) FFLAGS="$FFLAGS -DLONG__LONG -CcdII8" 7205 FCFLAGS="$FCFLAGS -DLONG__LONG -CcdII8" 7206 ;; 7207 gnu) FFLAGS="$FFLAGS -Wp,-DLONG__LONG -fdefault-integer-8" 7208 FCFLAGS="$FCFLAGS -Wp,-DLONG__LONG -fdefault-integer-8" 7209 ;; 7210 *) FFLAGS="$FFLAGS -DLONG__LONG" 7211 FCFLAGS="$FCFLAGS -DLONG__LONG" 7212 ;; 7213 esac 7214else 7215 enable_longlong="no" 7216fi 7217 7218########## Enable Long Double (Quadruple) Precision Operations ########## 7219if test "$enable_longdouble" = "yes"; then 7220 7221 case $ax_cv_c_compiler_vendor in 7222 ibm) CFLAGS="$CFLAGS -qldbl128" 7223 ;; 7224 esac 7225 CFLAGS="$CFLAGS -D_LONG__DOUBLE" 7226 7227 case $ax_cv_f77_compiler_vendor in 7228 intel) FFLAGS="$FFLAGS -DLONG__DOUBLE -real-size 128" 7229 FCFLAGS="$FCFLAGS -DLONG__DOUBLE -real-size 128" 7230 ;; 7231 *) FFLAGS="$FFLAGS -DLONG__DOUBLE" 7232 FCFLAGS="$FCFLAGS -DLONG__DOUBLE" 7233 ;; 7234 esac 7235else 7236 enable_longdouble="no" 7237fi 7238 7239 7240########## Enable Complex Scalar Operations ########## 7241ac_ext=c 7242ac_cpp='$CPP $CPPFLAGS' 7243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7245ac_compiler_gnu=$ac_cv_c_compiler_gnu 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7247$as_echo_n "checking how to run the C preprocessor... " >&6; } 7248# On Suns, sometimes $CPP names a directory. 7249if test -n "$CPP" && test -d "$CPP"; then 7250 CPP= 7251fi 7252if test -z "$CPP"; then 7253 if ${ac_cv_prog_CPP+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 # Double quotes because CPP needs to be expanded 7257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7258 do 7259 ac_preproc_ok=false 7260for ac_c_preproc_warn_flag in '' yes 7261do 7262 # Use a header file that comes with gcc, so configuring glibc 7263 # with a fresh cross-compiler works. 7264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7265 # <limits.h> exists even on freestanding compilers. 7266 # On the NeXT, cc -E runs the code through the compiler's parser, 7267 # not just through cpp. "Syntax error" is here to catch this case. 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269/* end confdefs.h. */ 7270#ifdef __STDC__ 7271# include <limits.h> 7272#else 7273# include <assert.h> 7274#endif 7275 Syntax error 7276_ACEOF 7277if ac_fn_c_try_cpp "$LINENO"; then : 7278 7279else 7280 # Broken: fails on valid input. 7281continue 7282fi 7283rm -f conftest.err conftest.i conftest.$ac_ext 7284 7285 # OK, works on sane cases. Now check whether nonexistent headers 7286 # can be detected and how. 7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288/* end confdefs.h. */ 7289#include <ac_nonexistent.h> 7290_ACEOF 7291if ac_fn_c_try_cpp "$LINENO"; then : 7292 # Broken: success on invalid input. 7293continue 7294else 7295 # Passes both tests. 7296ac_preproc_ok=: 7297break 7298fi 7299rm -f conftest.err conftest.i conftest.$ac_ext 7300 7301done 7302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7303rm -f conftest.i conftest.err conftest.$ac_ext 7304if $ac_preproc_ok; then : 7305 break 7306fi 7307 7308 done 7309 ac_cv_prog_CPP=$CPP 7310 7311fi 7312 CPP=$ac_cv_prog_CPP 7313else 7314 ac_cv_prog_CPP=$CPP 7315fi 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7317$as_echo "$CPP" >&6; } 7318ac_preproc_ok=false 7319for ac_c_preproc_warn_flag in '' yes 7320do 7321 # Use a header file that comes with gcc, so configuring glibc 7322 # with a fresh cross-compiler works. 7323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7324 # <limits.h> exists even on freestanding compilers. 7325 # On the NeXT, cc -E runs the code through the compiler's parser, 7326 # not just through cpp. "Syntax error" is here to catch this case. 7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329#ifdef __STDC__ 7330# include <limits.h> 7331#else 7332# include <assert.h> 7333#endif 7334 Syntax error 7335_ACEOF 7336if ac_fn_c_try_cpp "$LINENO"; then : 7337 7338else 7339 # Broken: fails on valid input. 7340continue 7341fi 7342rm -f conftest.err conftest.i conftest.$ac_ext 7343 7344 # OK, works on sane cases. Now check whether nonexistent headers 7345 # can be detected and how. 7346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7347/* end confdefs.h. */ 7348#include <ac_nonexistent.h> 7349_ACEOF 7350if ac_fn_c_try_cpp "$LINENO"; then : 7351 # Broken: success on invalid input. 7352continue 7353else 7354 # Passes both tests. 7355ac_preproc_ok=: 7356break 7357fi 7358rm -f conftest.err conftest.i conftest.$ac_ext 7359 7360done 7361# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7362rm -f conftest.i conftest.err conftest.$ac_ext 7363if $ac_preproc_ok; then : 7364 7365else 7366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7368as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7369See \`config.log' for more details" "$LINENO" 5; } 7370fi 7371 7372ac_ext=c 7373ac_cpp='$CPP $CPPFLAGS' 7374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7376ac_compiler_gnu=$ac_cv_c_compiler_gnu 7377 7378 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7380$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7381if ${ac_cv_path_GREP+:} false; then : 7382 $as_echo_n "(cached) " >&6 7383else 7384 if test -z "$GREP"; then 7385 ac_path_GREP_found=false 7386 # Loop through the user's path and test for each of PROGNAME-LIST 7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7388for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7389do 7390 IFS=$as_save_IFS 7391 test -z "$as_dir" && as_dir=. 7392 for ac_prog in grep ggrep; do 7393 for ac_exec_ext in '' $ac_executable_extensions; do 7394 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7395 as_fn_executable_p "$ac_path_GREP" || continue 7396# Check for GNU ac_path_GREP and select it if it is found. 7397 # Check for GNU $ac_path_GREP 7398case `"$ac_path_GREP" --version 2>&1` in 7399*GNU*) 7400 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7401*) 7402 ac_count=0 7403 $as_echo_n 0123456789 >"conftest.in" 7404 while : 7405 do 7406 cat "conftest.in" "conftest.in" >"conftest.tmp" 7407 mv "conftest.tmp" "conftest.in" 7408 cp "conftest.in" "conftest.nl" 7409 $as_echo 'GREP' >> "conftest.nl" 7410 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7412 as_fn_arith $ac_count + 1 && ac_count=$as_val 7413 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7414 # Best one so far, save it but keep looking for a better one 7415 ac_cv_path_GREP="$ac_path_GREP" 7416 ac_path_GREP_max=$ac_count 7417 fi 7418 # 10*(2^10) chars as input seems more than enough 7419 test $ac_count -gt 10 && break 7420 done 7421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7422esac 7423 7424 $ac_path_GREP_found && break 3 7425 done 7426 done 7427 done 7428IFS=$as_save_IFS 7429 if test -z "$ac_cv_path_GREP"; then 7430 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7431 fi 7432else 7433 ac_cv_path_GREP=$GREP 7434fi 7435 7436fi 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7438$as_echo "$ac_cv_path_GREP" >&6; } 7439 GREP="$ac_cv_path_GREP" 7440 7441 7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7443$as_echo_n "checking for egrep... " >&6; } 7444if ${ac_cv_path_EGREP+:} false; then : 7445 $as_echo_n "(cached) " >&6 7446else 7447 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7448 then ac_cv_path_EGREP="$GREP -E" 7449 else 7450 if test -z "$EGREP"; then 7451 ac_path_EGREP_found=false 7452 # Loop through the user's path and test for each of PROGNAME-LIST 7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7454for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7455do 7456 IFS=$as_save_IFS 7457 test -z "$as_dir" && as_dir=. 7458 for ac_prog in egrep; do 7459 for ac_exec_ext in '' $ac_executable_extensions; do 7460 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7461 as_fn_executable_p "$ac_path_EGREP" || continue 7462# Check for GNU ac_path_EGREP and select it if it is found. 7463 # Check for GNU $ac_path_EGREP 7464case `"$ac_path_EGREP" --version 2>&1` in 7465*GNU*) 7466 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7467*) 7468 ac_count=0 7469 $as_echo_n 0123456789 >"conftest.in" 7470 while : 7471 do 7472 cat "conftest.in" "conftest.in" >"conftest.tmp" 7473 mv "conftest.tmp" "conftest.in" 7474 cp "conftest.in" "conftest.nl" 7475 $as_echo 'EGREP' >> "conftest.nl" 7476 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7478 as_fn_arith $ac_count + 1 && ac_count=$as_val 7479 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7480 # Best one so far, save it but keep looking for a better one 7481 ac_cv_path_EGREP="$ac_path_EGREP" 7482 ac_path_EGREP_max=$ac_count 7483 fi 7484 # 10*(2^10) chars as input seems more than enough 7485 test $ac_count -gt 10 && break 7486 done 7487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7488esac 7489 7490 $ac_path_EGREP_found && break 3 7491 done 7492 done 7493 done 7494IFS=$as_save_IFS 7495 if test -z "$ac_cv_path_EGREP"; then 7496 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7497 fi 7498else 7499 ac_cv_path_EGREP=$EGREP 7500fi 7501 7502 fi 7503fi 7504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7505$as_echo "$ac_cv_path_EGREP" >&6; } 7506 EGREP="$ac_cv_path_EGREP" 7507 7508 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7510$as_echo_n "checking for ANSI C header files... " >&6; } 7511if ${ac_cv_header_stdc+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516#include <stdlib.h> 7517#include <stdarg.h> 7518#include <string.h> 7519#include <float.h> 7520 7521#ifdef F77_DUMMY_MAIN 7522 7523# ifdef __cplusplus 7524 extern "C" 7525# endif 7526 int F77_DUMMY_MAIN() { return 1; } 7527 7528#endif 7529int 7530main () 7531{ 7532 7533 ; 7534 return 0; 7535} 7536_ACEOF 7537if ac_fn_c_try_compile "$LINENO"; then : 7538 ac_cv_header_stdc=yes 7539else 7540 ac_cv_header_stdc=no 7541fi 7542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7543 7544if test $ac_cv_header_stdc = yes; then 7545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7547/* end confdefs.h. */ 7548#include <string.h> 7549 7550_ACEOF 7551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7552 $EGREP "memchr" >/dev/null 2>&1; then : 7553 7554else 7555 ac_cv_header_stdc=no 7556fi 7557rm -f conftest* 7558 7559fi 7560 7561if test $ac_cv_header_stdc = yes; then 7562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7564/* end confdefs.h. */ 7565#include <stdlib.h> 7566 7567_ACEOF 7568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7569 $EGREP "free" >/dev/null 2>&1; then : 7570 7571else 7572 ac_cv_header_stdc=no 7573fi 7574rm -f conftest* 7575 7576fi 7577 7578if test $ac_cv_header_stdc = yes; then 7579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7580 if test "$cross_compiling" = yes; then : 7581 : 7582else 7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7584/* end confdefs.h. */ 7585#include <ctype.h> 7586#include <stdlib.h> 7587#if ((' ' & 0x0FF) == 0x020) 7588# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7589# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7590#else 7591# define ISLOWER(c) \ 7592 (('a' <= (c) && (c) <= 'i') \ 7593 || ('j' <= (c) && (c) <= 'r') \ 7594 || ('s' <= (c) && (c) <= 'z')) 7595# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7596#endif 7597 7598#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7599int 7600main () 7601{ 7602 int i; 7603 for (i = 0; i < 256; i++) 7604 if (XOR (islower (i), ISLOWER (i)) 7605 || toupper (i) != TOUPPER (i)) 7606 return 2; 7607 return 0; 7608} 7609_ACEOF 7610if ac_fn_c_try_run "$LINENO"; then : 7611 7612else 7613 ac_cv_header_stdc=no 7614fi 7615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7616 conftest.$ac_objext conftest.beam conftest.$ac_ext 7617fi 7618 7619fi 7620fi 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7622$as_echo "$ac_cv_header_stdc" >&6; } 7623if test $ac_cv_header_stdc = yes; then 7624 7625$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7626 7627fi 7628 7629# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7630for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7631 inttypes.h stdint.h unistd.h 7632do : 7633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7634ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7635" 7636if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7637 cat >>confdefs.h <<_ACEOF 7638#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7639_ACEOF 7640 7641fi 7642 7643done 7644 7645 7646for ac_header in complex.h 7647do : 7648 ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default" 7649if test "x$ac_cv_header_complex_h" = xyes; then : 7650 cat >>confdefs.h <<_ACEOF 7651#define HAVE_COMPLEX_H 1 7652_ACEOF 7653 7654fi 7655 7656done 7657 7658if test "$enable_complex" = "yes"; then 7659 7660$as_echo "#define USE_COMPLEX 1" >>confdefs.h 7661 7662 if test -z "$HAVE_COMPLEX_H"; then 7663 CFLAGS="$CFLAGS -D_COMPLEX" 7664 FFLAGS="$FFLAGS -DCOMPLEX" 7665 FCFLAGS="$FCFLAGS -DCOMPLEX" 7666 else 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no complex.h" >&5 7668$as_echo "$as_me: WARNING: no complex.h" >&2;} 7669 enable_complex="no" 7670 fi 7671else 7672 enable_complex="no" 7673fi 7674 7675 7676########## Enable Quadmath Operations ########## 7677for ac_header in quadmath.h 7678do : 7679 ac_fn_c_check_header_mongrel "$LINENO" "quadmath.h" "ac_cv_header_quadmath_h" "$ac_includes_default" 7680if test "x$ac_cv_header_quadmath_h" = xyes; then : 7681 cat >>confdefs.h <<_ACEOF 7682#define HAVE_QUADMATH_H 1 7683_ACEOF 7684 7685fi 7686 7687done 7688 7689if test "$enable_longdouble" = "yes"; then 7690 if test -z "$HAVE_QUADMATH_H"; then 7691 CFLAGS="$CFLAGS -lquadmath" 7692 FFLAGS="$FFLAGS -lquadmath" 7693 FCFLAGS="$FCFLAGS -lquadmath" 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GCC libquadmath is used if long double is enabled" >&5 7695$as_echo "$as_me: WARNING: GCC libquadmath is used if long double is enabled" >&2;} 7696 fi 7697fi 7698 7699 7700# Configurations for Environment-Dependent Data Sizes 7701 7702########## Check Size of int ########## 7703if test "$TARGET" = ""; then 7704 # The cast to long int works around a bug in the HP C Compiler 7705# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7706# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7707# This bug is HP SR number 8606223364. 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 7709$as_echo_n "checking size of int... " >&6; } 7710if ${ac_cv_sizeof_int+:} false; then : 7711 $as_echo_n "(cached) " >&6 7712else 7713 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 7714 7715else 7716 if test "$ac_cv_type_int" = yes; then 7717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7719as_fn_error 77 "cannot compute sizeof (int) 7720See \`config.log' for more details" "$LINENO" 5; } 7721 else 7722 ac_cv_sizeof_int=0 7723 fi 7724fi 7725 7726fi 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 7728$as_echo "$ac_cv_sizeof_int" >&6; } 7729 7730 7731 7732cat >>confdefs.h <<_ACEOF 7733#define SIZEOF_INT $ac_cv_sizeof_int 7734_ACEOF 7735 7736 7737else 7738 7739$as_echo "#define SIZEOF_INT \$ac_cv_sizeof_int" >>confdefs.h 7740 7741fi 7742 7743########## Check Size of long int ########## 7744if test "$TARGET" = ""; then 7745 # The cast to long int works around a bug in the HP C Compiler 7746# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7747# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7748# This bug is HP SR number 8606223364. 7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 7750$as_echo_n "checking size of long... " >&6; } 7751if ${ac_cv_sizeof_long+:} false; then : 7752 $as_echo_n "(cached) " >&6 7753else 7754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 7755 7756else 7757 if test "$ac_cv_type_long" = yes; then 7758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7760as_fn_error 77 "cannot compute sizeof (long) 7761See \`config.log' for more details" "$LINENO" 5; } 7762 else 7763 ac_cv_sizeof_long=0 7764 fi 7765fi 7766 7767fi 7768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 7769$as_echo "$ac_cv_sizeof_long" >&6; } 7770 7771 7772 7773cat >>confdefs.h <<_ACEOF 7774#define SIZEOF_LONG $ac_cv_sizeof_long 7775_ACEOF 7776 7777 7778else 7779 7780$as_echo "#define SIZEOF_LONG \$ac_cv_sizeof_long" >>confdefs.h 7781 7782fi 7783 7784########## Check Size of long long int ########## 7785if test "$TARGET" = ""; then 7786 # The cast to long int works around a bug in the HP C Compiler 7787# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7788# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7789# This bug is HP SR number 8606223364. 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 7791$as_echo_n "checking size of long long... " >&6; } 7792if ${ac_cv_sizeof_long_long+:} false; then : 7793 $as_echo_n "(cached) " >&6 7794else 7795 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 7796 7797else 7798 if test "$ac_cv_type_long_long" = yes; then 7799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7801as_fn_error 77 "cannot compute sizeof (long long) 7802See \`config.log' for more details" "$LINENO" 5; } 7803 else 7804 ac_cv_sizeof_long_long=0 7805 fi 7806fi 7807 7808fi 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 7810$as_echo "$ac_cv_sizeof_long_long" >&6; } 7811 7812 7813 7814cat >>confdefs.h <<_ACEOF 7815#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 7816_ACEOF 7817 7818 7819else 7820 7821$as_echo "#define SIZEOF_LONG_LONG \$ac_cv_sizeof_long_long" >>confdefs.h 7822 7823fi 7824 7825########## Check Size of float ########## 7826if test "$TARGET" = ""; then 7827 # The cast to long int works around a bug in the HP C Compiler 7828# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7829# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7830# This bug is HP SR number 8606223364. 7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 7832$as_echo_n "checking size of float... " >&6; } 7833if ${ac_cv_sizeof_float+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 7837 7838else 7839 if test "$ac_cv_type_float" = yes; then 7840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7842as_fn_error 77 "cannot compute sizeof (float) 7843See \`config.log' for more details" "$LINENO" 5; } 7844 else 7845 ac_cv_sizeof_float=0 7846 fi 7847fi 7848 7849fi 7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 7851$as_echo "$ac_cv_sizeof_float" >&6; } 7852 7853 7854 7855cat >>confdefs.h <<_ACEOF 7856#define SIZEOF_FLOAT $ac_cv_sizeof_float 7857_ACEOF 7858 7859 7860else 7861 7862$as_echo "#define SIZEOF_FLOAT \$ac_cv_sizeof_float" >>confdefs.h 7863 7864fi 7865 7866########## Check Size of double ########## 7867if test "$TARGET" = ""; then 7868 # The cast to long int works around a bug in the HP C Compiler 7869# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7870# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7871# This bug is HP SR number 8606223364. 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 7873$as_echo_n "checking size of double... " >&6; } 7874if ${ac_cv_sizeof_double+:} false; then : 7875 $as_echo_n "(cached) " >&6 7876else 7877 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 7878 7879else 7880 if test "$ac_cv_type_double" = yes; then 7881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7883as_fn_error 77 "cannot compute sizeof (double) 7884See \`config.log' for more details" "$LINENO" 5; } 7885 else 7886 ac_cv_sizeof_double=0 7887 fi 7888fi 7889 7890fi 7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 7892$as_echo "$ac_cv_sizeof_double" >&6; } 7893 7894 7895 7896cat >>confdefs.h <<_ACEOF 7897#define SIZEOF_DOUBLE $ac_cv_sizeof_double 7898_ACEOF 7899 7900 7901else 7902 7903$as_echo "#define SIZEOF_DOUBLE \$ac_cv_sizeof_double" >>confdefs.h 7904 7905fi 7906 7907########## Check Size of long double ########## 7908if test "$TARGET" = ""; then 7909 # The cast to long int works around a bug in the HP C Compiler 7910# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7911# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7912# This bug is HP SR number 8606223364. 7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 7914$as_echo_n "checking size of long double... " >&6; } 7915if ${ac_cv_sizeof_long_double+:} false; then : 7916 $as_echo_n "(cached) " >&6 7917else 7918 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 7919 7920else 7921 if test "$ac_cv_type_long_double" = yes; then 7922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7924as_fn_error 77 "cannot compute sizeof (long double) 7925See \`config.log' for more details" "$LINENO" 5; } 7926 else 7927 ac_cv_sizeof_long_double=0 7928 fi 7929fi 7930 7931fi 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 7933$as_echo "$ac_cv_sizeof_long_double" >&6; } 7934 7935 7936 7937cat >>confdefs.h <<_ACEOF 7938#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 7939_ACEOF 7940 7941 7942else 7943 7944$as_echo "#define SIZEOF_LONG_DOUBLE \$ac_cv_sizeof_long_double" >>confdefs.h 7945 7946fi 7947 7948########## Check Size of __float128 ########## 7949if test -z "$HAVE_QUADMATH_H"; then 7950 if test "$TARGET" = ""; then 7951 # The cast to long int works around a bug in the HP C Compiler 7952# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7953# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7954# This bug is HP SR number 8606223364. 7955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __float128" >&5 7956$as_echo_n "checking size of __float128... " >&6; } 7957if ${ac_cv_sizeof___float128+:} false; then : 7958 $as_echo_n "(cached) " >&6 7959else 7960 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__float128))" "ac_cv_sizeof___float128" "$ac_includes_default"; then : 7961 7962else 7963 if test "$ac_cv_type___float128" = yes; then 7964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7966as_fn_error 77 "cannot compute sizeof (__float128) 7967See \`config.log' for more details" "$LINENO" 5; } 7968 else 7969 ac_cv_sizeof___float128=0 7970 fi 7971fi 7972 7973fi 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___float128" >&5 7975$as_echo "$ac_cv_sizeof___float128" >&6; } 7976 7977 7978 7979cat >>confdefs.h <<_ACEOF 7980#define SIZEOF___FLOAT128 $ac_cv_sizeof___float128 7981_ACEOF 7982 7983 7984 else 7985 7986$as_echo "#define SIZEOF_LONG_DOUBLE \$ac_cv_sizeof___float128" >>confdefs.h 7987 7988 fi 7989fi 7990 7991########## Check Size of size_t ########## 7992if test "$TARGET" = ""; then 7993 # The cast to long int works around a bug in the HP C Compiler 7994# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7995# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7996# This bug is HP SR number 8606223364. 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 7998$as_echo_n "checking size of size_t... " >&6; } 7999if ${ac_cv_sizeof_size_t+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 8003 8004else 8005 if test "$ac_cv_type_size_t" = yes; then 8006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8008as_fn_error 77 "cannot compute sizeof (size_t) 8009See \`config.log' for more details" "$LINENO" 5; } 8010 else 8011 ac_cv_sizeof_size_t=0 8012 fi 8013fi 8014 8015fi 8016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 8017$as_echo "$ac_cv_sizeof_size_t" >&6; } 8018 8019 8020 8021cat >>confdefs.h <<_ACEOF 8022#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 8023_ACEOF 8024 8025 8026else 8027 8028$as_echo "#define SIZEOF_SIZE_T \$ac_cv_sizeof_size_t" >>confdefs.h 8029 8030fi 8031 8032########## Check Size of void_p ########## 8033if test "$TARGET" = ""; then 8034 # The cast to long int works around a bug in the HP C Compiler 8035# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8036# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8037# This bug is HP SR number 8606223364. 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 8039$as_echo_n "checking size of void *... " >&6; } 8040if ${ac_cv_sizeof_void_p+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 8044 8045else 8046 if test "$ac_cv_type_void_p" = yes; then 8047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8049as_fn_error 77 "cannot compute sizeof (void *) 8050See \`config.log' for more details" "$LINENO" 5; } 8051 else 8052 ac_cv_sizeof_void_p=0 8053 fi 8054fi 8055 8056fi 8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 8058$as_echo "$ac_cv_sizeof_void_p" >&6; } 8059 8060 8061 8062cat >>confdefs.h <<_ACEOF 8063#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 8064_ACEOF 8065 8066 8067else 8068 8069$as_echo "#define SIZEOF_VOID_P \$ac_cv_sizeof_void_p" >>confdefs.h 8070 8071fi 8072 8073 8074# Configurations for Autotools 8075 8076# Check whether --enable-shared was given. 8077if test "${enable_shared+set}" = set; then : 8078 enableval=$enable_shared; p=${PACKAGE-default} 8079 case $enableval in 8080 yes) enable_shared=yes ;; 8081 no) enable_shared=no ;; 8082 *) 8083 enable_shared=no 8084 # Look at the argument we got. We use all the common list separators. 8085 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8086 for pkg in $enableval; do 8087 IFS=$lt_save_ifs 8088 if test "X$pkg" = "X$p"; then 8089 enable_shared=yes 8090 fi 8091 done 8092 IFS=$lt_save_ifs 8093 ;; 8094 esac 8095else 8096 enable_shared=no 8097fi 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107case `pwd` in 8108 *\ * | *\ *) 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 8110$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 8111esac 8112 8113 8114 8115macro_version='2.4.6' 8116macro_revision='2.4.6' 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130ltmain=$ac_aux_dir/ltmain.sh 8131 8132# Backslashify metacharacters that are still active within 8133# double-quoted strings. 8134sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8135 8136# Same as above, but do not quote variable references. 8137double_quote_subst='s/\(["`\\]\)/\\\1/g' 8138 8139# Sed substitution to delay expansion of an escaped shell variable in a 8140# double_quote_subst'ed string. 8141delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8142 8143# Sed substitution to delay expansion of an escaped single quote. 8144delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8145 8146# Sed substitution to avoid accidental globbing in evaled expressions 8147no_glob_subst='s/\*/\\\*/g' 8148 8149ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8150ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 8151ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 8152 8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 8154$as_echo_n "checking how to print strings... " >&6; } 8155# Test print first, because it will be a builtin if present. 8156if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 8157 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 8158 ECHO='print -r --' 8159elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 8160 ECHO='printf %s\n' 8161else 8162 # Use this function as a fallback that always works. 8163 func_fallback_echo () 8164 { 8165 eval 'cat <<_LTECHO_EOF 8166$1 8167_LTECHO_EOF' 8168 } 8169 ECHO='func_fallback_echo' 8170fi 8171 8172# func_echo_all arg... 8173# Invoke $ECHO with all args, space-separated. 8174func_echo_all () 8175{ 8176 $ECHO "" 8177} 8178 8179case $ECHO in 8180 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 8181$as_echo "printf" >&6; } ;; 8182 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 8183$as_echo "print -r" >&6; } ;; 8184 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 8185$as_echo "cat" >&6; } ;; 8186esac 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 8202$as_echo_n "checking for a sed that does not truncate output... " >&6; } 8203if ${ac_cv_path_SED+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205else 8206 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 8207 for ac_i in 1 2 3 4 5 6 7; do 8208 ac_script="$ac_script$as_nl$ac_script" 8209 done 8210 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 8211 { ac_script=; unset ac_script;} 8212 if test -z "$SED"; then 8213 ac_path_SED_found=false 8214 # Loop through the user's path and test for each of PROGNAME-LIST 8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8216for as_dir in $PATH 8217do 8218 IFS=$as_save_IFS 8219 test -z "$as_dir" && as_dir=. 8220 for ac_prog in sed gsed; do 8221 for ac_exec_ext in '' $ac_executable_extensions; do 8222 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 8223 as_fn_executable_p "$ac_path_SED" || continue 8224# Check for GNU ac_path_SED and select it if it is found. 8225 # Check for GNU $ac_path_SED 8226case `"$ac_path_SED" --version 2>&1` in 8227*GNU*) 8228 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 8229*) 8230 ac_count=0 8231 $as_echo_n 0123456789 >"conftest.in" 8232 while : 8233 do 8234 cat "conftest.in" "conftest.in" >"conftest.tmp" 8235 mv "conftest.tmp" "conftest.in" 8236 cp "conftest.in" "conftest.nl" 8237 $as_echo '' >> "conftest.nl" 8238 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 8239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8240 as_fn_arith $ac_count + 1 && ac_count=$as_val 8241 if test $ac_count -gt ${ac_path_SED_max-0}; then 8242 # Best one so far, save it but keep looking for a better one 8243 ac_cv_path_SED="$ac_path_SED" 8244 ac_path_SED_max=$ac_count 8245 fi 8246 # 10*(2^10) chars as input seems more than enough 8247 test $ac_count -gt 10 && break 8248 done 8249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8250esac 8251 8252 $ac_path_SED_found && break 3 8253 done 8254 done 8255 done 8256IFS=$as_save_IFS 8257 if test -z "$ac_cv_path_SED"; then 8258 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 8259 fi 8260else 8261 ac_cv_path_SED=$SED 8262fi 8263 8264fi 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 8266$as_echo "$ac_cv_path_SED" >&6; } 8267 SED="$ac_cv_path_SED" 8268 rm -f conftest.sed 8269 8270test -z "$SED" && SED=sed 8271Xsed="$SED -e 1s/^X//" 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 8284$as_echo_n "checking for fgrep... " >&6; } 8285if ${ac_cv_path_FGREP+:} false; then : 8286 $as_echo_n "(cached) " >&6 8287else 8288 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 8289 then ac_cv_path_FGREP="$GREP -F" 8290 else 8291 if test -z "$FGREP"; then 8292 ac_path_FGREP_found=false 8293 # Loop through the user's path and test for each of PROGNAME-LIST 8294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 8296do 8297 IFS=$as_save_IFS 8298 test -z "$as_dir" && as_dir=. 8299 for ac_prog in fgrep; do 8300 for ac_exec_ext in '' $ac_executable_extensions; do 8301 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 8302 as_fn_executable_p "$ac_path_FGREP" || continue 8303# Check for GNU ac_path_FGREP and select it if it is found. 8304 # Check for GNU $ac_path_FGREP 8305case `"$ac_path_FGREP" --version 2>&1` in 8306*GNU*) 8307 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 8308*) 8309 ac_count=0 8310 $as_echo_n 0123456789 >"conftest.in" 8311 while : 8312 do 8313 cat "conftest.in" "conftest.in" >"conftest.tmp" 8314 mv "conftest.tmp" "conftest.in" 8315 cp "conftest.in" "conftest.nl" 8316 $as_echo 'FGREP' >> "conftest.nl" 8317 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 8318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 8319 as_fn_arith $ac_count + 1 && ac_count=$as_val 8320 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 8321 # Best one so far, save it but keep looking for a better one 8322 ac_cv_path_FGREP="$ac_path_FGREP" 8323 ac_path_FGREP_max=$ac_count 8324 fi 8325 # 10*(2^10) chars as input seems more than enough 8326 test $ac_count -gt 10 && break 8327 done 8328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 8329esac 8330 8331 $ac_path_FGREP_found && break 3 8332 done 8333 done 8334 done 8335IFS=$as_save_IFS 8336 if test -z "$ac_cv_path_FGREP"; then 8337 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 8338 fi 8339else 8340 ac_cv_path_FGREP=$FGREP 8341fi 8342 8343 fi 8344fi 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 8346$as_echo "$ac_cv_path_FGREP" >&6; } 8347 FGREP="$ac_cv_path_FGREP" 8348 8349 8350test -z "$GREP" && GREP=grep 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370# Check whether --with-gnu-ld was given. 8371if test "${with_gnu_ld+set}" = set; then : 8372 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 8373else 8374 with_gnu_ld=no 8375fi 8376 8377ac_prog=ld 8378if test yes = "$GCC"; then 8379 # Check if gcc -print-prog-name=ld gives a path. 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 8381$as_echo_n "checking for ld used by $CC... " >&6; } 8382 case $host in 8383 *-*-mingw*) 8384 # gcc leaves a trailing carriage return, which upsets mingw 8385 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 8386 *) 8387 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 8388 esac 8389 case $ac_prog in 8390 # Accept absolute paths. 8391 [\\/]* | ?:[\\/]*) 8392 re_direlt='/[^/][^/]*/\.\./' 8393 # Canonicalize the pathname of ld 8394 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 8395 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 8396 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 8397 done 8398 test -z "$LD" && LD=$ac_prog 8399 ;; 8400 "") 8401 # If it fails, then pretend we aren't using GCC. 8402 ac_prog=ld 8403 ;; 8404 *) 8405 # If it is relative, then search for the first ld in PATH. 8406 with_gnu_ld=unknown 8407 ;; 8408 esac 8409elif test yes = "$with_gnu_ld"; then 8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 8411$as_echo_n "checking for GNU ld... " >&6; } 8412else 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 8414$as_echo_n "checking for non-GNU ld... " >&6; } 8415fi 8416if ${lt_cv_path_LD+:} false; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 if test -z "$LD"; then 8420 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8421 for ac_dir in $PATH; do 8422 IFS=$lt_save_ifs 8423 test -z "$ac_dir" && ac_dir=. 8424 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 8425 lt_cv_path_LD=$ac_dir/$ac_prog 8426 # Check to see if the program is GNU ld. I'd rather use --version, 8427 # but apparently some variants of GNU ld only accept -v. 8428 # Break only if it was the GNU/non-GNU ld that we prefer. 8429 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 8430 *GNU* | *'with BFD'*) 8431 test no != "$with_gnu_ld" && break 8432 ;; 8433 *) 8434 test yes != "$with_gnu_ld" && break 8435 ;; 8436 esac 8437 fi 8438 done 8439 IFS=$lt_save_ifs 8440else 8441 lt_cv_path_LD=$LD # Let the user override the test with a path. 8442fi 8443fi 8444 8445LD=$lt_cv_path_LD 8446if test -n "$LD"; then 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8448$as_echo "$LD" >&6; } 8449else 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8451$as_echo "no" >&6; } 8452fi 8453test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 8454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 8455$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 8456if ${lt_cv_prog_gnu_ld+:} false; then : 8457 $as_echo_n "(cached) " >&6 8458else 8459 # I'd rather use --version here, but apparently some GNU lds only accept -v. 8460case `$LD -v 2>&1 </dev/null` in 8461*GNU* | *'with BFD'*) 8462 lt_cv_prog_gnu_ld=yes 8463 ;; 8464*) 8465 lt_cv_prog_gnu_ld=no 8466 ;; 8467esac 8468fi 8469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 8470$as_echo "$lt_cv_prog_gnu_ld" >&6; } 8471with_gnu_ld=$lt_cv_prog_gnu_ld 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 8482$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 8483if ${lt_cv_path_NM+:} false; then : 8484 $as_echo_n "(cached) " >&6 8485else 8486 if test -n "$NM"; then 8487 # Let the user override the test. 8488 lt_cv_path_NM=$NM 8489else 8490 lt_nm_to_check=${ac_tool_prefix}nm 8491 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 8492 lt_nm_to_check="$lt_nm_to_check nm" 8493 fi 8494 for lt_tmp_nm in $lt_nm_to_check; do 8495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8496 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 8497 IFS=$lt_save_ifs 8498 test -z "$ac_dir" && ac_dir=. 8499 tmp_nm=$ac_dir/$lt_tmp_nm 8500 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 8501 # Check to see if the nm accepts a BSD-compat flag. 8502 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 8503 # nm: unknown option "B" ignored 8504 # Tru64's nm complains that /dev/null is an invalid object file 8505 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 8506 case $build_os in 8507 mingw*) lt_bad_file=conftest.nm/nofile ;; 8508 *) lt_bad_file=/dev/null ;; 8509 esac 8510 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 8511 *$lt_bad_file* | *'Invalid file or object type'*) 8512 lt_cv_path_NM="$tmp_nm -B" 8513 break 2 8514 ;; 8515 *) 8516 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 8517 */dev/null*) 8518 lt_cv_path_NM="$tmp_nm -p" 8519 break 2 8520 ;; 8521 *) 8522 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 8523 continue # so that we can try to find one that supports BSD flags 8524 ;; 8525 esac 8526 ;; 8527 esac 8528 fi 8529 done 8530 IFS=$lt_save_ifs 8531 done 8532 : ${lt_cv_path_NM=no} 8533fi 8534fi 8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 8536$as_echo "$lt_cv_path_NM" >&6; } 8537if test no != "$lt_cv_path_NM"; then 8538 NM=$lt_cv_path_NM 8539else 8540 # Didn't find any BSD compatible name lister, look for dumpbin. 8541 if test -n "$DUMPBIN"; then : 8542 # Let the user override the test. 8543 else 8544 if test -n "$ac_tool_prefix"; then 8545 for ac_prog in dumpbin "link -dump" 8546 do 8547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8548set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8550$as_echo_n "checking for $ac_word... " >&6; } 8551if ${ac_cv_prog_DUMPBIN+:} false; then : 8552 $as_echo_n "(cached) " >&6 8553else 8554 if test -n "$DUMPBIN"; then 8555 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 8556else 8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8558for as_dir in $PATH 8559do 8560 IFS=$as_save_IFS 8561 test -z "$as_dir" && as_dir=. 8562 for ac_exec_ext in '' $ac_executable_extensions; do 8563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8564 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8566 break 2 8567 fi 8568done 8569 done 8570IFS=$as_save_IFS 8571 8572fi 8573fi 8574DUMPBIN=$ac_cv_prog_DUMPBIN 8575if test -n "$DUMPBIN"; then 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 8577$as_echo "$DUMPBIN" >&6; } 8578else 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8580$as_echo "no" >&6; } 8581fi 8582 8583 8584 test -n "$DUMPBIN" && break 8585 done 8586fi 8587if test -z "$DUMPBIN"; then 8588 ac_ct_DUMPBIN=$DUMPBIN 8589 for ac_prog in dumpbin "link -dump" 8590do 8591 # Extract the first word of "$ac_prog", so it can be a program name with args. 8592set dummy $ac_prog; ac_word=$2 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8594$as_echo_n "checking for $ac_word... " >&6; } 8595if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 8596 $as_echo_n "(cached) " >&6 8597else 8598 if test -n "$ac_ct_DUMPBIN"; then 8599 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 8600else 8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8602for as_dir in $PATH 8603do 8604 IFS=$as_save_IFS 8605 test -z "$as_dir" && as_dir=. 8606 for ac_exec_ext in '' $ac_executable_extensions; do 8607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8608 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8610 break 2 8611 fi 8612done 8613 done 8614IFS=$as_save_IFS 8615 8616fi 8617fi 8618ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8619if test -n "$ac_ct_DUMPBIN"; then 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8621$as_echo "$ac_ct_DUMPBIN" >&6; } 8622else 8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8624$as_echo "no" >&6; } 8625fi 8626 8627 8628 test -n "$ac_ct_DUMPBIN" && break 8629done 8630 8631 if test "x$ac_ct_DUMPBIN" = x; then 8632 DUMPBIN=":" 8633 else 8634 case $cross_compiling:$ac_tool_warned in 8635yes:) 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8638ac_tool_warned=yes ;; 8639esac 8640 DUMPBIN=$ac_ct_DUMPBIN 8641 fi 8642fi 8643 8644 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 8645 *COFF*) 8646 DUMPBIN="$DUMPBIN -symbols -headers" 8647 ;; 8648 *) 8649 DUMPBIN=: 8650 ;; 8651 esac 8652 fi 8653 8654 if test : != "$DUMPBIN"; then 8655 NM=$DUMPBIN 8656 fi 8657fi 8658test -z "$NM" && NM=nm 8659 8660 8661 8662 8663 8664 8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8666$as_echo_n "checking the name lister ($NM) interface... " >&6; } 8667if ${lt_cv_nm_interface+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 lt_cv_nm_interface="BSD nm" 8671 echo "int some_variable = 0;" > conftest.$ac_ext 8672 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8673 (eval "$ac_compile" 2>conftest.err) 8674 cat conftest.err >&5 8675 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8676 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8677 cat conftest.err >&5 8678 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8679 cat conftest.out >&5 8680 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8681 lt_cv_nm_interface="MS dumpbin" 8682 fi 8683 rm -f conftest* 8684fi 8685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8686$as_echo "$lt_cv_nm_interface" >&6; } 8687 8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8689$as_echo_n "checking whether ln -s works... " >&6; } 8690LN_S=$as_ln_s 8691if test "$LN_S" = "ln -s"; then 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8693$as_echo "yes" >&6; } 8694else 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8696$as_echo "no, using $LN_S" >&6; } 8697fi 8698 8699# find the maximum length of command line arguments 8700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8701$as_echo_n "checking the maximum length of command line arguments... " >&6; } 8702if ${lt_cv_sys_max_cmd_len+:} false; then : 8703 $as_echo_n "(cached) " >&6 8704else 8705 i=0 8706 teststring=ABCD 8707 8708 case $build_os in 8709 msdosdjgpp*) 8710 # On DJGPP, this test can blow up pretty badly due to problems in libc 8711 # (any single argument exceeding 2000 bytes causes a buffer overrun 8712 # during glob expansion). Even if it were fixed, the result of this 8713 # check would be larger than it should be. 8714 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8715 ;; 8716 8717 gnu*) 8718 # Under GNU Hurd, this test is not required because there is 8719 # no limit to the length of command line arguments. 8720 # Libtool will interpret -1 as no limit whatsoever 8721 lt_cv_sys_max_cmd_len=-1; 8722 ;; 8723 8724 cygwin* | mingw* | cegcc*) 8725 # On Win9x/ME, this test blows up -- it succeeds, but takes 8726 # about 5 minutes as the teststring grows exponentially. 8727 # Worse, since 9x/ME are not pre-emptively multitasking, 8728 # you end up with a "frozen" computer, even though with patience 8729 # the test eventually succeeds (with a max line length of 256k). 8730 # Instead, let's just punt: use the minimum linelength reported by 8731 # all of the supported platforms: 8192 (on NT/2K/XP). 8732 lt_cv_sys_max_cmd_len=8192; 8733 ;; 8734 8735 mint*) 8736 # On MiNT this can take a long time and run out of memory. 8737 lt_cv_sys_max_cmd_len=8192; 8738 ;; 8739 8740 amigaos*) 8741 # On AmigaOS with pdksh, this test takes hours, literally. 8742 # So we just punt and use a minimum line length of 8192. 8743 lt_cv_sys_max_cmd_len=8192; 8744 ;; 8745 8746 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 8747 # This has been around since 386BSD, at least. Likely further. 8748 if test -x /sbin/sysctl; then 8749 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8750 elif test -x /usr/sbin/sysctl; then 8751 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8752 else 8753 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8754 fi 8755 # And add a safety zone 8756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8758 ;; 8759 8760 interix*) 8761 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8762 lt_cv_sys_max_cmd_len=196608 8763 ;; 8764 8765 os2*) 8766 # The test takes a long time on OS/2. 8767 lt_cv_sys_max_cmd_len=8192 8768 ;; 8769 8770 osf*) 8771 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8772 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8773 # nice to cause kernel panics so lets avoid the loop below. 8774 # First set a reasonable default. 8775 lt_cv_sys_max_cmd_len=16384 8776 # 8777 if test -x /sbin/sysconfig; then 8778 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8779 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8780 esac 8781 fi 8782 ;; 8783 sco3.2v5*) 8784 lt_cv_sys_max_cmd_len=102400 8785 ;; 8786 sysv5* | sco5v6* | sysv4.2uw2*) 8787 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8788 if test -n "$kargmax"; then 8789 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8790 else 8791 lt_cv_sys_max_cmd_len=32768 8792 fi 8793 ;; 8794 *) 8795 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8796 if test -n "$lt_cv_sys_max_cmd_len" && \ 8797 test undefined != "$lt_cv_sys_max_cmd_len"; then 8798 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8800 else 8801 # Make teststring a little bigger before we do anything with it. 8802 # a 1K string should be a reasonable start. 8803 for i in 1 2 3 4 5 6 7 8; do 8804 teststring=$teststring$teststring 8805 done 8806 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8807 # If test is not a shell built-in, we'll probably end up computing a 8808 # maximum length that is only half of the actual maximum length, but 8809 # we can't tell. 8810 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 8811 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8812 test 17 != "$i" # 1/2 MB should be enough 8813 do 8814 i=`expr $i + 1` 8815 teststring=$teststring$teststring 8816 done 8817 # Only check the string length outside the loop. 8818 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8819 teststring= 8820 # Add a significant safety factor because C++ compilers can tack on 8821 # massive amounts of additional arguments before passing them to the 8822 # linker. It appears as though 1/2 is a usable value. 8823 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8824 fi 8825 ;; 8826 esac 8827 8828fi 8829 8830if test -n "$lt_cv_sys_max_cmd_len"; then 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8832$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8833else 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8835$as_echo "none" >&6; } 8836fi 8837max_cmd_len=$lt_cv_sys_max_cmd_len 8838 8839 8840 8841 8842 8843 8844: ${CP="cp -f"} 8845: ${MV="mv -f"} 8846: ${RM="rm -f"} 8847 8848if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8849 lt_unset=unset 8850else 8851 lt_unset=false 8852fi 8853 8854 8855 8856 8857 8858# test EBCDIC or ASCII 8859case `echo X|tr X '\101'` in 8860 A) # ASCII based system 8861 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8862 lt_SP2NL='tr \040 \012' 8863 lt_NL2SP='tr \015\012 \040\040' 8864 ;; 8865 *) # EBCDIC based system 8866 lt_SP2NL='tr \100 \n' 8867 lt_NL2SP='tr \r\n \100\100' 8868 ;; 8869esac 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 8880$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 8881if ${lt_cv_to_host_file_cmd+:} false; then : 8882 $as_echo_n "(cached) " >&6 8883else 8884 case $host in 8885 *-*-mingw* ) 8886 case $build in 8887 *-*-mingw* ) # actually msys 8888 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8889 ;; 8890 *-*-cygwin* ) 8891 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8892 ;; 8893 * ) # otherwise, assume *nix 8894 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8895 ;; 8896 esac 8897 ;; 8898 *-*-cygwin* ) 8899 case $build in 8900 *-*-mingw* ) # actually msys 8901 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8902 ;; 8903 *-*-cygwin* ) 8904 lt_cv_to_host_file_cmd=func_convert_file_noop 8905 ;; 8906 * ) # otherwise, assume *nix 8907 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8908 ;; 8909 esac 8910 ;; 8911 * ) # unhandled hosts (and "normal" native builds) 8912 lt_cv_to_host_file_cmd=func_convert_file_noop 8913 ;; 8914esac 8915 8916fi 8917 8918to_host_file_cmd=$lt_cv_to_host_file_cmd 8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 8920$as_echo "$lt_cv_to_host_file_cmd" >&6; } 8921 8922 8923 8924 8925 8926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 8927$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 8928if ${lt_cv_to_tool_file_cmd+:} false; then : 8929 $as_echo_n "(cached) " >&6 8930else 8931 #assume ordinary cross tools, or native build. 8932lt_cv_to_tool_file_cmd=func_convert_file_noop 8933case $host in 8934 *-*-mingw* ) 8935 case $build in 8936 *-*-mingw* ) # actually msys 8937 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8938 ;; 8939 esac 8940 ;; 8941esac 8942 8943fi 8944 8945to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 8947$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 8948 8949 8950 8951 8952 8953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8954$as_echo_n "checking for $LD option to reload object files... " >&6; } 8955if ${lt_cv_ld_reload_flag+:} false; then : 8956 $as_echo_n "(cached) " >&6 8957else 8958 lt_cv_ld_reload_flag='-r' 8959fi 8960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8961$as_echo "$lt_cv_ld_reload_flag" >&6; } 8962reload_flag=$lt_cv_ld_reload_flag 8963case $reload_flag in 8964"" | " "*) ;; 8965*) reload_flag=" $reload_flag" ;; 8966esac 8967reload_cmds='$LD$reload_flag -o $output$reload_objs' 8968case $host_os in 8969 cygwin* | mingw* | pw32* | cegcc*) 8970 if test yes != "$GCC"; then 8971 reload_cmds=false 8972 fi 8973 ;; 8974 darwin*) 8975 if test yes = "$GCC"; then 8976 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 8977 else 8978 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8979 fi 8980 ;; 8981esac 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991if test -n "$ac_tool_prefix"; then 8992 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8993set dummy ${ac_tool_prefix}objdump; ac_word=$2 8994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8995$as_echo_n "checking for $ac_word... " >&6; } 8996if ${ac_cv_prog_OBJDUMP+:} false; then : 8997 $as_echo_n "(cached) " >&6 8998else 8999 if test -n "$OBJDUMP"; then 9000 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 9001else 9002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9003for as_dir in $PATH 9004do 9005 IFS=$as_save_IFS 9006 test -z "$as_dir" && as_dir=. 9007 for ac_exec_ext in '' $ac_executable_extensions; do 9008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9009 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9011 break 2 9012 fi 9013done 9014 done 9015IFS=$as_save_IFS 9016 9017fi 9018fi 9019OBJDUMP=$ac_cv_prog_OBJDUMP 9020if test -n "$OBJDUMP"; then 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9022$as_echo "$OBJDUMP" >&6; } 9023else 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9025$as_echo "no" >&6; } 9026fi 9027 9028 9029fi 9030if test -z "$ac_cv_prog_OBJDUMP"; then 9031 ac_ct_OBJDUMP=$OBJDUMP 9032 # Extract the first word of "objdump", so it can be a program name with args. 9033set dummy objdump; ac_word=$2 9034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9035$as_echo_n "checking for $ac_word... " >&6; } 9036if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9037 $as_echo_n "(cached) " >&6 9038else 9039 if test -n "$ac_ct_OBJDUMP"; then 9040 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9041else 9042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9043for as_dir in $PATH 9044do 9045 IFS=$as_save_IFS 9046 test -z "$as_dir" && as_dir=. 9047 for ac_exec_ext in '' $ac_executable_extensions; do 9048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9049 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9051 break 2 9052 fi 9053done 9054 done 9055IFS=$as_save_IFS 9056 9057fi 9058fi 9059ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9060if test -n "$ac_ct_OBJDUMP"; then 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9062$as_echo "$ac_ct_OBJDUMP" >&6; } 9063else 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9065$as_echo "no" >&6; } 9066fi 9067 9068 if test "x$ac_ct_OBJDUMP" = x; then 9069 OBJDUMP="false" 9070 else 9071 case $cross_compiling:$ac_tool_warned in 9072yes:) 9073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9075ac_tool_warned=yes ;; 9076esac 9077 OBJDUMP=$ac_ct_OBJDUMP 9078 fi 9079else 9080 OBJDUMP="$ac_cv_prog_OBJDUMP" 9081fi 9082 9083test -z "$OBJDUMP" && OBJDUMP=objdump 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 9094$as_echo_n "checking how to recognize dependent libraries... " >&6; } 9095if ${lt_cv_deplibs_check_method+:} false; then : 9096 $as_echo_n "(cached) " >&6 9097else 9098 lt_cv_file_magic_cmd='$MAGIC_CMD' 9099lt_cv_file_magic_test_file= 9100lt_cv_deplibs_check_method='unknown' 9101# Need to set the preceding variable on all platforms that support 9102# interlibrary dependencies. 9103# 'none' -- dependencies not supported. 9104# 'unknown' -- same as none, but documents that we really don't know. 9105# 'pass_all' -- all dependencies passed with no checks. 9106# 'test_compile' -- check by making test program. 9107# 'file_magic [[regex]]' -- check by looking for files in library path 9108# that responds to the $file_magic_cmd with a given extended regex. 9109# If you have 'file' or equivalent on your system and you're not sure 9110# whether 'pass_all' will *always* work, you probably want this one. 9111 9112case $host_os in 9113aix[4-9]*) 9114 lt_cv_deplibs_check_method=pass_all 9115 ;; 9116 9117beos*) 9118 lt_cv_deplibs_check_method=pass_all 9119 ;; 9120 9121bsdi[45]*) 9122 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 9123 lt_cv_file_magic_cmd='/usr/bin/file -L' 9124 lt_cv_file_magic_test_file=/shlib/libc.so 9125 ;; 9126 9127cygwin*) 9128 # func_win32_libid is a shell function defined in ltmain.sh 9129 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9130 lt_cv_file_magic_cmd='func_win32_libid' 9131 ;; 9132 9133mingw* | pw32*) 9134 # Base MSYS/MinGW do not provide the 'file' command needed by 9135 # func_win32_libid shell function, so use a weaker test based on 'objdump', 9136 # unless we find 'file', for example because we are cross-compiling. 9137 if ( file / ) >/dev/null 2>&1; then 9138 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 9139 lt_cv_file_magic_cmd='func_win32_libid' 9140 else 9141 # Keep this pattern in sync with the one in func_win32_libid. 9142 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 9143 lt_cv_file_magic_cmd='$OBJDUMP -f' 9144 fi 9145 ;; 9146 9147cegcc*) 9148 # use the weaker test based on 'objdump'. See mingw*. 9149 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 9150 lt_cv_file_magic_cmd='$OBJDUMP -f' 9151 ;; 9152 9153darwin* | rhapsody*) 9154 lt_cv_deplibs_check_method=pass_all 9155 ;; 9156 9157freebsd* | dragonfly*) 9158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9159 case $host_cpu in 9160 i*86 ) 9161 # Not sure whether the presence of OpenBSD here was a mistake. 9162 # Let's accept both of them until this is cleared up. 9163 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 9164 lt_cv_file_magic_cmd=/usr/bin/file 9165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 9166 ;; 9167 esac 9168 else 9169 lt_cv_deplibs_check_method=pass_all 9170 fi 9171 ;; 9172 9173haiku*) 9174 lt_cv_deplibs_check_method=pass_all 9175 ;; 9176 9177hpux10.20* | hpux11*) 9178 lt_cv_file_magic_cmd=/usr/bin/file 9179 case $host_cpu in 9180 ia64*) 9181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 9182 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 9183 ;; 9184 hppa*64*) 9185 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]' 9186 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 9187 ;; 9188 *) 9189 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 9190 lt_cv_file_magic_test_file=/usr/lib/libc.sl 9191 ;; 9192 esac 9193 ;; 9194 9195interix[3-9]*) 9196 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 9197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 9198 ;; 9199 9200irix5* | irix6* | nonstopux*) 9201 case $LD in 9202 *-32|*"-32 ") libmagic=32-bit;; 9203 *-n32|*"-n32 ") libmagic=N32;; 9204 *-64|*"-64 ") libmagic=64-bit;; 9205 *) libmagic=never-match;; 9206 esac 9207 lt_cv_deplibs_check_method=pass_all 9208 ;; 9209 9210# This must be glibc/ELF. 9211linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9212 lt_cv_deplibs_check_method=pass_all 9213 ;; 9214 9215netbsd*) 9216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 9217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9218 else 9219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 9220 fi 9221 ;; 9222 9223newos6*) 9224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 9225 lt_cv_file_magic_cmd=/usr/bin/file 9226 lt_cv_file_magic_test_file=/usr/lib/libnls.so 9227 ;; 9228 9229*nto* | *qnx*) 9230 lt_cv_deplibs_check_method=pass_all 9231 ;; 9232 9233openbsd* | bitrig*) 9234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 9236 else 9237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 9238 fi 9239 ;; 9240 9241osf3* | osf4* | osf5*) 9242 lt_cv_deplibs_check_method=pass_all 9243 ;; 9244 9245rdos*) 9246 lt_cv_deplibs_check_method=pass_all 9247 ;; 9248 9249solaris*) 9250 lt_cv_deplibs_check_method=pass_all 9251 ;; 9252 9253sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9254 lt_cv_deplibs_check_method=pass_all 9255 ;; 9256 9257sysv4 | sysv4.3*) 9258 case $host_vendor in 9259 motorola) 9260 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]' 9261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 9262 ;; 9263 ncr) 9264 lt_cv_deplibs_check_method=pass_all 9265 ;; 9266 sequent) 9267 lt_cv_file_magic_cmd='/bin/file' 9268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 9269 ;; 9270 sni) 9271 lt_cv_file_magic_cmd='/bin/file' 9272 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 9273 lt_cv_file_magic_test_file=/lib/libc.so 9274 ;; 9275 siemens) 9276 lt_cv_deplibs_check_method=pass_all 9277 ;; 9278 pc) 9279 lt_cv_deplibs_check_method=pass_all 9280 ;; 9281 esac 9282 ;; 9283 9284tpf*) 9285 lt_cv_deplibs_check_method=pass_all 9286 ;; 9287os2*) 9288 lt_cv_deplibs_check_method=pass_all 9289 ;; 9290esac 9291 9292fi 9293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 9294$as_echo "$lt_cv_deplibs_check_method" >&6; } 9295 9296file_magic_glob= 9297want_nocaseglob=no 9298if test "$build" = "$host"; then 9299 case $host_os in 9300 mingw* | pw32*) 9301 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 9302 want_nocaseglob=yes 9303 else 9304 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 9305 fi 9306 ;; 9307 esac 9308fi 9309 9310file_magic_cmd=$lt_cv_file_magic_cmd 9311deplibs_check_method=$lt_cv_deplibs_check_method 9312test -z "$deplibs_check_method" && deplibs_check_method=unknown 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335if test -n "$ac_tool_prefix"; then 9336 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 9337set dummy ${ac_tool_prefix}dlltool; ac_word=$2 9338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9339$as_echo_n "checking for $ac_word... " >&6; } 9340if ${ac_cv_prog_DLLTOOL+:} false; then : 9341 $as_echo_n "(cached) " >&6 9342else 9343 if test -n "$DLLTOOL"; then 9344 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 9345else 9346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9347for as_dir in $PATH 9348do 9349 IFS=$as_save_IFS 9350 test -z "$as_dir" && as_dir=. 9351 for ac_exec_ext in '' $ac_executable_extensions; do 9352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9353 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 9354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9355 break 2 9356 fi 9357done 9358 done 9359IFS=$as_save_IFS 9360 9361fi 9362fi 9363DLLTOOL=$ac_cv_prog_DLLTOOL 9364if test -n "$DLLTOOL"; then 9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 9366$as_echo "$DLLTOOL" >&6; } 9367else 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9369$as_echo "no" >&6; } 9370fi 9371 9372 9373fi 9374if test -z "$ac_cv_prog_DLLTOOL"; then 9375 ac_ct_DLLTOOL=$DLLTOOL 9376 # Extract the first word of "dlltool", so it can be a program name with args. 9377set dummy dlltool; ac_word=$2 9378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9379$as_echo_n "checking for $ac_word... " >&6; } 9380if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 9381 $as_echo_n "(cached) " >&6 9382else 9383 if test -n "$ac_ct_DLLTOOL"; then 9384 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 9385else 9386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9387for as_dir in $PATH 9388do 9389 IFS=$as_save_IFS 9390 test -z "$as_dir" && as_dir=. 9391 for ac_exec_ext in '' $ac_executable_extensions; do 9392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9393 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 9394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9395 break 2 9396 fi 9397done 9398 done 9399IFS=$as_save_IFS 9400 9401fi 9402fi 9403ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 9404if test -n "$ac_ct_DLLTOOL"; then 9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 9406$as_echo "$ac_ct_DLLTOOL" >&6; } 9407else 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9409$as_echo "no" >&6; } 9410fi 9411 9412 if test "x$ac_ct_DLLTOOL" = x; then 9413 DLLTOOL="false" 9414 else 9415 case $cross_compiling:$ac_tool_warned in 9416yes:) 9417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9419ac_tool_warned=yes ;; 9420esac 9421 DLLTOOL=$ac_ct_DLLTOOL 9422 fi 9423else 9424 DLLTOOL="$ac_cv_prog_DLLTOOL" 9425fi 9426 9427test -z "$DLLTOOL" && DLLTOOL=dlltool 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 9439$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 9440if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 9441 $as_echo_n "(cached) " >&6 9442else 9443 lt_cv_sharedlib_from_linklib_cmd='unknown' 9444 9445case $host_os in 9446cygwin* | mingw* | pw32* | cegcc*) 9447 # two different shell functions defined in ltmain.sh; 9448 # decide which one to use based on capabilities of $DLLTOOL 9449 case `$DLLTOOL --help 2>&1` in 9450 *--identify-strict*) 9451 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 9452 ;; 9453 *) 9454 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 9455 ;; 9456 esac 9457 ;; 9458*) 9459 # fallback: assume linklib IS sharedlib 9460 lt_cv_sharedlib_from_linklib_cmd=$ECHO 9461 ;; 9462esac 9463 9464fi 9465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 9466$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 9467sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 9468test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 9469 9470 9471 9472 9473 9474 9475 9476if test -n "$ac_tool_prefix"; then 9477 for ac_prog in ar 9478 do 9479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9480set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9482$as_echo_n "checking for $ac_word... " >&6; } 9483if ${ac_cv_prog_AR+:} false; then : 9484 $as_echo_n "(cached) " >&6 9485else 9486 if test -n "$AR"; then 9487 ac_cv_prog_AR="$AR" # Let the user override the test. 9488else 9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9490for as_dir in $PATH 9491do 9492 IFS=$as_save_IFS 9493 test -z "$as_dir" && as_dir=. 9494 for ac_exec_ext in '' $ac_executable_extensions; do 9495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9496 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9498 break 2 9499 fi 9500done 9501 done 9502IFS=$as_save_IFS 9503 9504fi 9505fi 9506AR=$ac_cv_prog_AR 9507if test -n "$AR"; then 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9509$as_echo "$AR" >&6; } 9510else 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9512$as_echo "no" >&6; } 9513fi 9514 9515 9516 test -n "$AR" && break 9517 done 9518fi 9519if test -z "$AR"; then 9520 ac_ct_AR=$AR 9521 for ac_prog in ar 9522do 9523 # Extract the first word of "$ac_prog", so it can be a program name with args. 9524set dummy $ac_prog; ac_word=$2 9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9526$as_echo_n "checking for $ac_word... " >&6; } 9527if ${ac_cv_prog_ac_ct_AR+:} false; then : 9528 $as_echo_n "(cached) " >&6 9529else 9530 if test -n "$ac_ct_AR"; then 9531 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9532else 9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9534for as_dir in $PATH 9535do 9536 IFS=$as_save_IFS 9537 test -z "$as_dir" && as_dir=. 9538 for ac_exec_ext in '' $ac_executable_extensions; do 9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9540 ac_cv_prog_ac_ct_AR="$ac_prog" 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9542 break 2 9543 fi 9544done 9545 done 9546IFS=$as_save_IFS 9547 9548fi 9549fi 9550ac_ct_AR=$ac_cv_prog_ac_ct_AR 9551if test -n "$ac_ct_AR"; then 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9553$as_echo "$ac_ct_AR" >&6; } 9554else 9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9556$as_echo "no" >&6; } 9557fi 9558 9559 9560 test -n "$ac_ct_AR" && break 9561done 9562 9563 if test "x$ac_ct_AR" = x; then 9564 AR="false" 9565 else 9566 case $cross_compiling:$ac_tool_warned in 9567yes:) 9568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9570ac_tool_warned=yes ;; 9571esac 9572 AR=$ac_ct_AR 9573 fi 9574fi 9575 9576: ${AR=ar} 9577: ${AR_FLAGS=cru} 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 9590$as_echo_n "checking for archiver @FILE support... " >&6; } 9591if ${lt_cv_ar_at_file+:} false; then : 9592 $as_echo_n "(cached) " >&6 9593else 9594 lt_cv_ar_at_file=no 9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9596/* end confdefs.h. */ 9597 9598#ifdef F77_DUMMY_MAIN 9599 9600# ifdef __cplusplus 9601 extern "C" 9602# endif 9603 int F77_DUMMY_MAIN() { return 1; } 9604 9605#endif 9606int 9607main () 9608{ 9609 9610 ; 9611 return 0; 9612} 9613_ACEOF 9614if ac_fn_c_try_compile "$LINENO"; then : 9615 echo conftest.$ac_objext > conftest.lst 9616 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 9617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9618 (eval $lt_ar_try) 2>&5 9619 ac_status=$? 9620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9621 test $ac_status = 0; } 9622 if test 0 -eq "$ac_status"; then 9623 # Ensure the archiver fails upon bogus file names. 9624 rm -f conftest.$ac_objext libconftest.a 9625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 9626 (eval $lt_ar_try) 2>&5 9627 ac_status=$? 9628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9629 test $ac_status = 0; } 9630 if test 0 -ne "$ac_status"; then 9631 lt_cv_ar_at_file=@ 9632 fi 9633 fi 9634 rm -f conftest.* libconftest.a 9635 9636fi 9637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9638 9639fi 9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 9641$as_echo "$lt_cv_ar_at_file" >&6; } 9642 9643if test no = "$lt_cv_ar_at_file"; then 9644 archiver_list_spec= 9645else 9646 archiver_list_spec=$lt_cv_ar_at_file 9647fi 9648 9649 9650 9651 9652 9653 9654 9655if test -n "$ac_tool_prefix"; then 9656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9657set dummy ${ac_tool_prefix}strip; ac_word=$2 9658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9659$as_echo_n "checking for $ac_word... " >&6; } 9660if ${ac_cv_prog_STRIP+:} false; then : 9661 $as_echo_n "(cached) " >&6 9662else 9663 if test -n "$STRIP"; then 9664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9665else 9666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9667for as_dir in $PATH 9668do 9669 IFS=$as_save_IFS 9670 test -z "$as_dir" && as_dir=. 9671 for ac_exec_ext in '' $ac_executable_extensions; do 9672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9673 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9675 break 2 9676 fi 9677done 9678 done 9679IFS=$as_save_IFS 9680 9681fi 9682fi 9683STRIP=$ac_cv_prog_STRIP 9684if test -n "$STRIP"; then 9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9686$as_echo "$STRIP" >&6; } 9687else 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9689$as_echo "no" >&6; } 9690fi 9691 9692 9693fi 9694if test -z "$ac_cv_prog_STRIP"; then 9695 ac_ct_STRIP=$STRIP 9696 # Extract the first word of "strip", so it can be a program name with args. 9697set dummy strip; ac_word=$2 9698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9699$as_echo_n "checking for $ac_word... " >&6; } 9700if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9701 $as_echo_n "(cached) " >&6 9702else 9703 if test -n "$ac_ct_STRIP"; then 9704 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9705else 9706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9707for as_dir in $PATH 9708do 9709 IFS=$as_save_IFS 9710 test -z "$as_dir" && as_dir=. 9711 for ac_exec_ext in '' $ac_executable_extensions; do 9712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9713 ac_cv_prog_ac_ct_STRIP="strip" 9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9715 break 2 9716 fi 9717done 9718 done 9719IFS=$as_save_IFS 9720 9721fi 9722fi 9723ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9724if test -n "$ac_ct_STRIP"; then 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9726$as_echo "$ac_ct_STRIP" >&6; } 9727else 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9729$as_echo "no" >&6; } 9730fi 9731 9732 if test "x$ac_ct_STRIP" = x; then 9733 STRIP=":" 9734 else 9735 case $cross_compiling:$ac_tool_warned in 9736yes:) 9737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9739ac_tool_warned=yes ;; 9740esac 9741 STRIP=$ac_ct_STRIP 9742 fi 9743else 9744 STRIP="$ac_cv_prog_STRIP" 9745fi 9746 9747test -z "$STRIP" && STRIP=: 9748 9749 9750 9751 9752 9753 9754if test -n "$ac_tool_prefix"; then 9755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9756set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9758$as_echo_n "checking for $ac_word... " >&6; } 9759if ${ac_cv_prog_RANLIB+:} false; then : 9760 $as_echo_n "(cached) " >&6 9761else 9762 if test -n "$RANLIB"; then 9763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9764else 9765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9766for as_dir in $PATH 9767do 9768 IFS=$as_save_IFS 9769 test -z "$as_dir" && as_dir=. 9770 for ac_exec_ext in '' $ac_executable_extensions; do 9771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9774 break 2 9775 fi 9776done 9777 done 9778IFS=$as_save_IFS 9779 9780fi 9781fi 9782RANLIB=$ac_cv_prog_RANLIB 9783if test -n "$RANLIB"; then 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9785$as_echo "$RANLIB" >&6; } 9786else 9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9788$as_echo "no" >&6; } 9789fi 9790 9791 9792fi 9793if test -z "$ac_cv_prog_RANLIB"; then 9794 ac_ct_RANLIB=$RANLIB 9795 # Extract the first word of "ranlib", so it can be a program name with args. 9796set dummy ranlib; ac_word=$2 9797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9798$as_echo_n "checking for $ac_word... " >&6; } 9799if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9800 $as_echo_n "(cached) " >&6 9801else 9802 if test -n "$ac_ct_RANLIB"; then 9803 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9804else 9805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9806for as_dir in $PATH 9807do 9808 IFS=$as_save_IFS 9809 test -z "$as_dir" && as_dir=. 9810 for ac_exec_ext in '' $ac_executable_extensions; do 9811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9812 ac_cv_prog_ac_ct_RANLIB="ranlib" 9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9814 break 2 9815 fi 9816done 9817 done 9818IFS=$as_save_IFS 9819 9820fi 9821fi 9822ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9823if test -n "$ac_ct_RANLIB"; then 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9825$as_echo "$ac_ct_RANLIB" >&6; } 9826else 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9828$as_echo "no" >&6; } 9829fi 9830 9831 if test "x$ac_ct_RANLIB" = x; then 9832 RANLIB=":" 9833 else 9834 case $cross_compiling:$ac_tool_warned in 9835yes:) 9836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9838ac_tool_warned=yes ;; 9839esac 9840 RANLIB=$ac_ct_RANLIB 9841 fi 9842else 9843 RANLIB="$ac_cv_prog_RANLIB" 9844fi 9845 9846test -z "$RANLIB" && RANLIB=: 9847 9848 9849 9850 9851 9852 9853# Determine commands to create old-style static archives. 9854old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9855old_postinstall_cmds='chmod 644 $oldlib' 9856old_postuninstall_cmds= 9857 9858if test -n "$RANLIB"; then 9859 case $host_os in 9860 bitrig* | openbsd*) 9861 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 9862 ;; 9863 *) 9864 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 9865 ;; 9866 esac 9867 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 9868fi 9869 9870case $host_os in 9871 darwin*) 9872 lock_old_archive_extraction=yes ;; 9873 *) 9874 lock_old_archive_extraction=no ;; 9875esac 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915# If no C compiler was specified, use CC. 9916LTCC=${LTCC-"$CC"} 9917 9918# If no C compiler flags were specified, use CFLAGS. 9919LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9920 9921# Allow CC to be a program name with arguments. 9922compiler=$CC 9923 9924 9925# Check for command to grab the raw symbol name followed by C symbol from nm. 9926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9927$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9928if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9929 $as_echo_n "(cached) " >&6 9930else 9931 9932# These are sane defaults that work on at least a few old systems. 9933# [They come from Ultrix. What could be older than Ultrix?!! ;)] 9934 9935# Character class describing NM global symbol codes. 9936symcode='[BCDEGRST]' 9937 9938# Regexp to match symbols that can be accessed directly from C. 9939sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9940 9941# Define system-specific variables. 9942case $host_os in 9943aix*) 9944 symcode='[BCDT]' 9945 ;; 9946cygwin* | mingw* | pw32* | cegcc*) 9947 symcode='[ABCDGISTW]' 9948 ;; 9949hpux*) 9950 if test ia64 = "$host_cpu"; then 9951 symcode='[ABCDEGRST]' 9952 fi 9953 ;; 9954irix* | nonstopux*) 9955 symcode='[BCDEGRST]' 9956 ;; 9957osf*) 9958 symcode='[BCDEGQRST]' 9959 ;; 9960solaris*) 9961 symcode='[BDRT]' 9962 ;; 9963sco3.2v5*) 9964 symcode='[DT]' 9965 ;; 9966sysv4.2uw2*) 9967 symcode='[DT]' 9968 ;; 9969sysv5* | sco5v6* | unixware* | OpenUNIX*) 9970 symcode='[ABDT]' 9971 ;; 9972sysv4) 9973 symcode='[DFNSTU]' 9974 ;; 9975esac 9976 9977# If we're using GNU nm, then use its standard symbol codes. 9978case `$NM -V 2>&1` in 9979*GNU* | *'with BFD'*) 9980 symcode='[ABCDGIRSTW]' ;; 9981esac 9982 9983if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9984 # Gets list of data symbols to import. 9985 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 9986 # Adjust the below global symbol transforms to fixup imported variables. 9987 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 9988 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 9989 lt_c_name_lib_hook="\ 9990 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 9991 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 9992else 9993 # Disable hooks by default. 9994 lt_cv_sys_global_symbol_to_import= 9995 lt_cdecl_hook= 9996 lt_c_name_hook= 9997 lt_c_name_lib_hook= 9998fi 9999 10000# Transform an extracted symbol line into a proper C declaration. 10001# Some systems (esp. on ia64) link data and code symbols differently, 10002# so use this general approach. 10003lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 10004$lt_cdecl_hook\ 10005" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 10006" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 10007 10008# Transform an extracted symbol line into symbol name and symbol address 10009lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 10010$lt_c_name_hook\ 10011" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10012" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 10013 10014# Transform an extracted symbol line into symbol name with lib prefix and 10015# symbol address. 10016lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 10017$lt_c_name_lib_hook\ 10018" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 10019" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 10020" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 10021 10022# Handle CRLF in mingw tool chain 10023opt_cr= 10024case $build_os in 10025mingw*) 10026 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10027 ;; 10028esac 10029 10030# Try without a prefix underscore, then with it. 10031for ac_symprfx in "" "_"; do 10032 10033 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 10034 symxfrm="\\1 $ac_symprfx\\2 \\2" 10035 10036 # Write the raw and C identifiers. 10037 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10038 # Fake it for dumpbin and say T for any non-static function, 10039 # D for any global variable and I for any imported variable. 10040 # Also find C++ and __fastcall symbols from MSVC++, 10041 # which start with @ or ?. 10042 lt_cv_sys_global_symbol_pipe="$AWK '"\ 10043" {last_section=section; section=\$ 3};"\ 10044" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 10045" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 10046" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 10047" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 10048" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 10049" \$ 0!~/External *\|/{next};"\ 10050" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 10051" {if(hide[section]) next};"\ 10052" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 10053" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 10054" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 10055" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 10056" ' prfx=^$ac_symprfx" 10057 else 10058 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 10059 fi 10060 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 10061 10062 # Check to see that the pipe works correctly. 10063 pipe_works=no 10064 10065 rm -f conftest* 10066 cat > conftest.$ac_ext <<_LT_EOF 10067#ifdef __cplusplus 10068extern "C" { 10069#endif 10070char nm_test_var; 10071void nm_test_func(void); 10072void nm_test_func(void){} 10073#ifdef __cplusplus 10074} 10075#endif 10076int main(){nm_test_var='a';nm_test_func();return(0);} 10077_LT_EOF 10078 10079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10080 (eval $ac_compile) 2>&5 10081 ac_status=$? 10082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10083 test $ac_status = 0; }; then 10084 # Now try to grab the symbols. 10085 nlist=conftest.nm 10086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 10087 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 10088 ac_status=$? 10089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10090 test $ac_status = 0; } && test -s "$nlist"; then 10091 # Try sorting and uniquifying the output. 10092 if sort "$nlist" | uniq > "$nlist"T; then 10093 mv -f "$nlist"T "$nlist" 10094 else 10095 rm -f "$nlist"T 10096 fi 10097 10098 # Make sure that we snagged all the symbols we need. 10099 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 10100 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 10101 cat <<_LT_EOF > conftest.$ac_ext 10102/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 10103#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 10104/* DATA imports from DLLs on WIN32 can't be const, because runtime 10105 relocations are performed -- see ld's documentation on pseudo-relocs. */ 10106# define LT_DLSYM_CONST 10107#elif defined __osf__ 10108/* This system does not cope well with relocations in const data. */ 10109# define LT_DLSYM_CONST 10110#else 10111# define LT_DLSYM_CONST const 10112#endif 10113 10114#ifdef __cplusplus 10115extern "C" { 10116#endif 10117 10118_LT_EOF 10119 # Now generate the symbol file. 10120 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 10121 10122 cat <<_LT_EOF >> conftest.$ac_ext 10123 10124/* The mapping between symbol names and symbols. */ 10125LT_DLSYM_CONST struct { 10126 const char *name; 10127 void *address; 10128} 10129lt__PROGRAM__LTX_preloaded_symbols[] = 10130{ 10131 { "@PROGRAM@", (void *) 0 }, 10132_LT_EOF 10133 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 10134 cat <<\_LT_EOF >> conftest.$ac_ext 10135 {0, (void *) 0} 10136}; 10137 10138/* This works around a problem in FreeBSD linker */ 10139#ifdef FREEBSD_WORKAROUND 10140static const void *lt_preloaded_setup() { 10141 return lt__PROGRAM__LTX_preloaded_symbols; 10142} 10143#endif 10144 10145#ifdef __cplusplus 10146} 10147#endif 10148_LT_EOF 10149 # Now try linking the two files. 10150 mv conftest.$ac_objext conftstm.$ac_objext 10151 lt_globsym_save_LIBS=$LIBS 10152 lt_globsym_save_CFLAGS=$CFLAGS 10153 LIBS=conftstm.$ac_objext 10154 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 10155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10156 (eval $ac_link) 2>&5 10157 ac_status=$? 10158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10159 test $ac_status = 0; } && test -s conftest$ac_exeext; then 10160 pipe_works=yes 10161 fi 10162 LIBS=$lt_globsym_save_LIBS 10163 CFLAGS=$lt_globsym_save_CFLAGS 10164 else 10165 echo "cannot find nm_test_func in $nlist" >&5 10166 fi 10167 else 10168 echo "cannot find nm_test_var in $nlist" >&5 10169 fi 10170 else 10171 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 10172 fi 10173 else 10174 echo "$progname: failed program was:" >&5 10175 cat conftest.$ac_ext >&5 10176 fi 10177 rm -rf conftest* conftst* 10178 10179 # Do not use the global_symbol_pipe unless it works. 10180 if test yes = "$pipe_works"; then 10181 break 10182 else 10183 lt_cv_sys_global_symbol_pipe= 10184 fi 10185done 10186 10187fi 10188 10189if test -z "$lt_cv_sys_global_symbol_pipe"; then 10190 lt_cv_sys_global_symbol_to_cdecl= 10191fi 10192if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 10194$as_echo "failed" >&6; } 10195else 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 10197$as_echo "ok" >&6; } 10198fi 10199 10200# Response file support. 10201if test "$lt_cv_nm_interface" = "MS dumpbin"; then 10202 nm_file_list_spec='@' 10203elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 10204 nm_file_list_spec='@' 10205fi 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 10244$as_echo_n "checking for sysroot... " >&6; } 10245 10246# Check whether --with-sysroot was given. 10247if test "${with_sysroot+set}" = set; then : 10248 withval=$with_sysroot; 10249else 10250 with_sysroot=no 10251fi 10252 10253 10254lt_sysroot= 10255case $with_sysroot in #( 10256 yes) 10257 if test yes = "$GCC"; then 10258 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 10259 fi 10260 ;; #( 10261 /*) 10262 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 10263 ;; #( 10264 no|'') 10265 ;; #( 10266 *) 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 10268$as_echo "$with_sysroot" >&6; } 10269 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 10270 ;; 10271esac 10272 10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 10274$as_echo "${lt_sysroot:-no}" >&6; } 10275 10276 10277 10278 10279 10280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 10281$as_echo_n "checking for a working dd... " >&6; } 10282if ${ac_cv_path_lt_DD+:} false; then : 10283 $as_echo_n "(cached) " >&6 10284else 10285 printf 0123456789abcdef0123456789abcdef >conftest.i 10286cat conftest.i conftest.i >conftest2.i 10287: ${lt_DD:=$DD} 10288if test -z "$lt_DD"; then 10289 ac_path_lt_DD_found=false 10290 # Loop through the user's path and test for each of PROGNAME-LIST 10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10292for as_dir in $PATH 10293do 10294 IFS=$as_save_IFS 10295 test -z "$as_dir" && as_dir=. 10296 for ac_prog in dd; do 10297 for ac_exec_ext in '' $ac_executable_extensions; do 10298 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 10299 as_fn_executable_p "$ac_path_lt_DD" || continue 10300if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10301 cmp -s conftest.i conftest.out \ 10302 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 10303fi 10304 $ac_path_lt_DD_found && break 3 10305 done 10306 done 10307 done 10308IFS=$as_save_IFS 10309 if test -z "$ac_cv_path_lt_DD"; then 10310 : 10311 fi 10312else 10313 ac_cv_path_lt_DD=$lt_DD 10314fi 10315 10316rm -f conftest.i conftest2.i conftest.out 10317fi 10318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 10319$as_echo "$ac_cv_path_lt_DD" >&6; } 10320 10321 10322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 10323$as_echo_n "checking how to truncate binary pipes... " >&6; } 10324if ${lt_cv_truncate_bin+:} false; then : 10325 $as_echo_n "(cached) " >&6 10326else 10327 printf 0123456789abcdef0123456789abcdef >conftest.i 10328cat conftest.i conftest.i >conftest2.i 10329lt_cv_truncate_bin= 10330if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 10331 cmp -s conftest.i conftest.out \ 10332 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 10333fi 10334rm -f conftest.i conftest2.i conftest.out 10335test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 10336fi 10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 10338$as_echo "$lt_cv_truncate_bin" >&6; } 10339 10340 10341 10342 10343 10344 10345 10346# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 10347func_cc_basename () 10348{ 10349 for cc_temp in $*""; do 10350 case $cc_temp in 10351 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10352 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10353 \-*) ;; 10354 *) break;; 10355 esac 10356 done 10357 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10358} 10359 10360# Check whether --enable-libtool-lock was given. 10361if test "${enable_libtool_lock+set}" = set; then : 10362 enableval=$enable_libtool_lock; 10363fi 10364 10365test no = "$enable_libtool_lock" || enable_libtool_lock=yes 10366 10367# Some flags need to be propagated to the compiler or linker for good 10368# libtool support. 10369case $host in 10370ia64-*-hpux*) 10371 # Find out what ABI is being produced by ac_compile, and set mode 10372 # options accordingly. 10373 echo 'int i;' > conftest.$ac_ext 10374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10375 (eval $ac_compile) 2>&5 10376 ac_status=$? 10377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10378 test $ac_status = 0; }; then 10379 case `/usr/bin/file conftest.$ac_objext` in 10380 *ELF-32*) 10381 HPUX_IA64_MODE=32 10382 ;; 10383 *ELF-64*) 10384 HPUX_IA64_MODE=64 10385 ;; 10386 esac 10387 fi 10388 rm -rf conftest* 10389 ;; 10390*-*-irix6*) 10391 # Find out what ABI is being produced by ac_compile, and set linker 10392 # options accordingly. 10393 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10395 (eval $ac_compile) 2>&5 10396 ac_status=$? 10397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10398 test $ac_status = 0; }; then 10399 if test yes = "$lt_cv_prog_gnu_ld"; then 10400 case `/usr/bin/file conftest.$ac_objext` in 10401 *32-bit*) 10402 LD="${LD-ld} -melf32bsmip" 10403 ;; 10404 *N32*) 10405 LD="${LD-ld} -melf32bmipn32" 10406 ;; 10407 *64-bit*) 10408 LD="${LD-ld} -melf64bmip" 10409 ;; 10410 esac 10411 else 10412 case `/usr/bin/file conftest.$ac_objext` in 10413 *32-bit*) 10414 LD="${LD-ld} -32" 10415 ;; 10416 *N32*) 10417 LD="${LD-ld} -n32" 10418 ;; 10419 *64-bit*) 10420 LD="${LD-ld} -64" 10421 ;; 10422 esac 10423 fi 10424 fi 10425 rm -rf conftest* 10426 ;; 10427 10428mips64*-*linux*) 10429 # Find out what ABI is being produced by ac_compile, and set linker 10430 # options accordingly. 10431 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 10432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10433 (eval $ac_compile) 2>&5 10434 ac_status=$? 10435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10436 test $ac_status = 0; }; then 10437 emul=elf 10438 case `/usr/bin/file conftest.$ac_objext` in 10439 *32-bit*) 10440 emul="${emul}32" 10441 ;; 10442 *64-bit*) 10443 emul="${emul}64" 10444 ;; 10445 esac 10446 case `/usr/bin/file conftest.$ac_objext` in 10447 *MSB*) 10448 emul="${emul}btsmip" 10449 ;; 10450 *LSB*) 10451 emul="${emul}ltsmip" 10452 ;; 10453 esac 10454 case `/usr/bin/file conftest.$ac_objext` in 10455 *N32*) 10456 emul="${emul}n32" 10457 ;; 10458 esac 10459 LD="${LD-ld} -m $emul" 10460 fi 10461 rm -rf conftest* 10462 ;; 10463 10464x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 10465s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 10466 # Find out what ABI is being produced by ac_compile, and set linker 10467 # options accordingly. Note that the listed cases only cover the 10468 # situations where additional linker options are needed (such as when 10469 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 10470 # vice versa); the common cases where no linker options are needed do 10471 # not appear in the list. 10472 echo 'int i;' > conftest.$ac_ext 10473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10474 (eval $ac_compile) 2>&5 10475 ac_status=$? 10476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10477 test $ac_status = 0; }; then 10478 case `/usr/bin/file conftest.o` in 10479 *32-bit*) 10480 case $host in 10481 x86_64-*kfreebsd*-gnu) 10482 LD="${LD-ld} -m elf_i386_fbsd" 10483 ;; 10484 x86_64-*linux*) 10485 case `/usr/bin/file conftest.o` in 10486 *x86-64*) 10487 LD="${LD-ld} -m elf32_x86_64" 10488 ;; 10489 *) 10490 LD="${LD-ld} -m elf_i386" 10491 ;; 10492 esac 10493 ;; 10494 powerpc64le-*linux*) 10495 LD="${LD-ld} -m elf32lppclinux" 10496 ;; 10497 powerpc64-*linux*) 10498 LD="${LD-ld} -m elf32ppclinux" 10499 ;; 10500 s390x-*linux*) 10501 LD="${LD-ld} -m elf_s390" 10502 ;; 10503 sparc64-*linux*) 10504 LD="${LD-ld} -m elf32_sparc" 10505 ;; 10506 esac 10507 ;; 10508 *64-bit*) 10509 case $host in 10510 x86_64-*kfreebsd*-gnu) 10511 LD="${LD-ld} -m elf_x86_64_fbsd" 10512 ;; 10513 x86_64-*linux*) 10514 LD="${LD-ld} -m elf_x86_64" 10515 ;; 10516 powerpcle-*linux*) 10517 LD="${LD-ld} -m elf64lppc" 10518 ;; 10519 powerpc-*linux*) 10520 LD="${LD-ld} -m elf64ppc" 10521 ;; 10522 s390*-*linux*|s390*-*tpf*) 10523 LD="${LD-ld} -m elf64_s390" 10524 ;; 10525 sparc*-*linux*) 10526 LD="${LD-ld} -m elf64_sparc" 10527 ;; 10528 esac 10529 ;; 10530 esac 10531 fi 10532 rm -rf conftest* 10533 ;; 10534 10535*-*-sco3.2v5*) 10536 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10537 SAVE_CFLAGS=$CFLAGS 10538 CFLAGS="$CFLAGS -belf" 10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 10540$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 10541if ${lt_cv_cc_needs_belf+:} false; then : 10542 $as_echo_n "(cached) " >&6 10543else 10544 ac_ext=c 10545ac_cpp='$CPP $CPPFLAGS' 10546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10548ac_compiler_gnu=$ac_cv_c_compiler_gnu 10549 10550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10551/* end confdefs.h. */ 10552 10553#ifdef F77_DUMMY_MAIN 10554 10555# ifdef __cplusplus 10556 extern "C" 10557# endif 10558 int F77_DUMMY_MAIN() { return 1; } 10559 10560#endif 10561int 10562main () 10563{ 10564 10565 ; 10566 return 0; 10567} 10568_ACEOF 10569if ac_fn_c_try_link "$LINENO"; then : 10570 lt_cv_cc_needs_belf=yes 10571else 10572 lt_cv_cc_needs_belf=no 10573fi 10574rm -f core conftest.err conftest.$ac_objext \ 10575 conftest$ac_exeext conftest.$ac_ext 10576 ac_ext=c 10577ac_cpp='$CPP $CPPFLAGS' 10578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10580ac_compiler_gnu=$ac_cv_c_compiler_gnu 10581 10582fi 10583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 10584$as_echo "$lt_cv_cc_needs_belf" >&6; } 10585 if test yes != "$lt_cv_cc_needs_belf"; then 10586 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10587 CFLAGS=$SAVE_CFLAGS 10588 fi 10589 ;; 10590*-*solaris*) 10591 # Find out what ABI is being produced by ac_compile, and set linker 10592 # options accordingly. 10593 echo 'int i;' > conftest.$ac_ext 10594 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10595 (eval $ac_compile) 2>&5 10596 ac_status=$? 10597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10598 test $ac_status = 0; }; then 10599 case `/usr/bin/file conftest.o` in 10600 *64-bit*) 10601 case $lt_cv_prog_gnu_ld in 10602 yes*) 10603 case $host in 10604 i?86-*-solaris*|x86_64-*-solaris*) 10605 LD="${LD-ld} -m elf_x86_64" 10606 ;; 10607 sparc*-*-solaris*) 10608 LD="${LD-ld} -m elf64_sparc" 10609 ;; 10610 esac 10611 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 10612 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 10613 LD=${LD-ld}_sol2 10614 fi 10615 ;; 10616 *) 10617 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 10618 LD="${LD-ld} -64" 10619 fi 10620 ;; 10621 esac 10622 ;; 10623 esac 10624 fi 10625 rm -rf conftest* 10626 ;; 10627esac 10628 10629need_locks=$enable_libtool_lock 10630 10631if test -n "$ac_tool_prefix"; then 10632 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 10633set dummy ${ac_tool_prefix}mt; ac_word=$2 10634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10635$as_echo_n "checking for $ac_word... " >&6; } 10636if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 10637 $as_echo_n "(cached) " >&6 10638else 10639 if test -n "$MANIFEST_TOOL"; then 10640 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 10641else 10642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10643for as_dir in $PATH 10644do 10645 IFS=$as_save_IFS 10646 test -z "$as_dir" && as_dir=. 10647 for ac_exec_ext in '' $ac_executable_extensions; do 10648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10649 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10651 break 2 10652 fi 10653done 10654 done 10655IFS=$as_save_IFS 10656 10657fi 10658fi 10659MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 10660if test -n "$MANIFEST_TOOL"; then 10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 10662$as_echo "$MANIFEST_TOOL" >&6; } 10663else 10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10665$as_echo "no" >&6; } 10666fi 10667 10668 10669fi 10670if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 10671 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 10672 # Extract the first word of "mt", so it can be a program name with args. 10673set dummy mt; ac_word=$2 10674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10675$as_echo_n "checking for $ac_word... " >&6; } 10676if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 10677 $as_echo_n "(cached) " >&6 10678else 10679 if test -n "$ac_ct_MANIFEST_TOOL"; then 10680 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 10681else 10682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10683for as_dir in $PATH 10684do 10685 IFS=$as_save_IFS 10686 test -z "$as_dir" && as_dir=. 10687 for ac_exec_ext in '' $ac_executable_extensions; do 10688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10689 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 10690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10691 break 2 10692 fi 10693done 10694 done 10695IFS=$as_save_IFS 10696 10697fi 10698fi 10699ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 10700if test -n "$ac_ct_MANIFEST_TOOL"; then 10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 10702$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 10703else 10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10705$as_echo "no" >&6; } 10706fi 10707 10708 if test "x$ac_ct_MANIFEST_TOOL" = x; then 10709 MANIFEST_TOOL=":" 10710 else 10711 case $cross_compiling:$ac_tool_warned in 10712yes:) 10713{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10714$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10715ac_tool_warned=yes ;; 10716esac 10717 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 10718 fi 10719else 10720 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 10721fi 10722 10723test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 10724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 10725$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 10726if ${lt_cv_path_mainfest_tool+:} false; then : 10727 $as_echo_n "(cached) " >&6 10728else 10729 lt_cv_path_mainfest_tool=no 10730 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 10731 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 10732 cat conftest.err >&5 10733 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 10734 lt_cv_path_mainfest_tool=yes 10735 fi 10736 rm -f conftest* 10737fi 10738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 10739$as_echo "$lt_cv_path_mainfest_tool" >&6; } 10740if test yes != "$lt_cv_path_mainfest_tool"; then 10741 MANIFEST_TOOL=: 10742fi 10743 10744 10745 10746 10747 10748 10749 case $host_os in 10750 rhapsody* | darwin*) 10751 if test -n "$ac_tool_prefix"; then 10752 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 10753set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 10754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10755$as_echo_n "checking for $ac_word... " >&6; } 10756if ${ac_cv_prog_DSYMUTIL+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758else 10759 if test -n "$DSYMUTIL"; then 10760 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 10761else 10762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10763for as_dir in $PATH 10764do 10765 IFS=$as_save_IFS 10766 test -z "$as_dir" && as_dir=. 10767 for ac_exec_ext in '' $ac_executable_extensions; do 10768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10769 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10771 break 2 10772 fi 10773done 10774 done 10775IFS=$as_save_IFS 10776 10777fi 10778fi 10779DSYMUTIL=$ac_cv_prog_DSYMUTIL 10780if test -n "$DSYMUTIL"; then 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 10782$as_echo "$DSYMUTIL" >&6; } 10783else 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10785$as_echo "no" >&6; } 10786fi 10787 10788 10789fi 10790if test -z "$ac_cv_prog_DSYMUTIL"; then 10791 ac_ct_DSYMUTIL=$DSYMUTIL 10792 # Extract the first word of "dsymutil", so it can be a program name with args. 10793set dummy dsymutil; ac_word=$2 10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10795$as_echo_n "checking for $ac_word... " >&6; } 10796if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 10797 $as_echo_n "(cached) " >&6 10798else 10799 if test -n "$ac_ct_DSYMUTIL"; then 10800 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 10801else 10802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10803for as_dir in $PATH 10804do 10805 IFS=$as_save_IFS 10806 test -z "$as_dir" && as_dir=. 10807 for ac_exec_ext in '' $ac_executable_extensions; do 10808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10809 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 10810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10811 break 2 10812 fi 10813done 10814 done 10815IFS=$as_save_IFS 10816 10817fi 10818fi 10819ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 10820if test -n "$ac_ct_DSYMUTIL"; then 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 10822$as_echo "$ac_ct_DSYMUTIL" >&6; } 10823else 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10825$as_echo "no" >&6; } 10826fi 10827 10828 if test "x$ac_ct_DSYMUTIL" = x; then 10829 DSYMUTIL=":" 10830 else 10831 case $cross_compiling:$ac_tool_warned in 10832yes:) 10833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10835ac_tool_warned=yes ;; 10836esac 10837 DSYMUTIL=$ac_ct_DSYMUTIL 10838 fi 10839else 10840 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 10841fi 10842 10843 if test -n "$ac_tool_prefix"; then 10844 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 10845set dummy ${ac_tool_prefix}nmedit; ac_word=$2 10846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10847$as_echo_n "checking for $ac_word... " >&6; } 10848if ${ac_cv_prog_NMEDIT+:} false; then : 10849 $as_echo_n "(cached) " >&6 10850else 10851 if test -n "$NMEDIT"; then 10852 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 10853else 10854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10855for as_dir in $PATH 10856do 10857 IFS=$as_save_IFS 10858 test -z "$as_dir" && as_dir=. 10859 for ac_exec_ext in '' $ac_executable_extensions; do 10860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10861 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10863 break 2 10864 fi 10865done 10866 done 10867IFS=$as_save_IFS 10868 10869fi 10870fi 10871NMEDIT=$ac_cv_prog_NMEDIT 10872if test -n "$NMEDIT"; then 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10874$as_echo "$NMEDIT" >&6; } 10875else 10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10877$as_echo "no" >&6; } 10878fi 10879 10880 10881fi 10882if test -z "$ac_cv_prog_NMEDIT"; then 10883 ac_ct_NMEDIT=$NMEDIT 10884 # Extract the first word of "nmedit", so it can be a program name with args. 10885set dummy nmedit; ac_word=$2 10886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10887$as_echo_n "checking for $ac_word... " >&6; } 10888if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10889 $as_echo_n "(cached) " >&6 10890else 10891 if test -n "$ac_ct_NMEDIT"; then 10892 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10893else 10894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10895for as_dir in $PATH 10896do 10897 IFS=$as_save_IFS 10898 test -z "$as_dir" && as_dir=. 10899 for ac_exec_ext in '' $ac_executable_extensions; do 10900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10901 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10903 break 2 10904 fi 10905done 10906 done 10907IFS=$as_save_IFS 10908 10909fi 10910fi 10911ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10912if test -n "$ac_ct_NMEDIT"; then 10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10914$as_echo "$ac_ct_NMEDIT" >&6; } 10915else 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10917$as_echo "no" >&6; } 10918fi 10919 10920 if test "x$ac_ct_NMEDIT" = x; then 10921 NMEDIT=":" 10922 else 10923 case $cross_compiling:$ac_tool_warned in 10924yes:) 10925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10927ac_tool_warned=yes ;; 10928esac 10929 NMEDIT=$ac_ct_NMEDIT 10930 fi 10931else 10932 NMEDIT="$ac_cv_prog_NMEDIT" 10933fi 10934 10935 if test -n "$ac_tool_prefix"; then 10936 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10937set dummy ${ac_tool_prefix}lipo; ac_word=$2 10938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10939$as_echo_n "checking for $ac_word... " >&6; } 10940if ${ac_cv_prog_LIPO+:} false; then : 10941 $as_echo_n "(cached) " >&6 10942else 10943 if test -n "$LIPO"; then 10944 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10945else 10946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10947for as_dir in $PATH 10948do 10949 IFS=$as_save_IFS 10950 test -z "$as_dir" && as_dir=. 10951 for ac_exec_ext in '' $ac_executable_extensions; do 10952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10953 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10955 break 2 10956 fi 10957done 10958 done 10959IFS=$as_save_IFS 10960 10961fi 10962fi 10963LIPO=$ac_cv_prog_LIPO 10964if test -n "$LIPO"; then 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10966$as_echo "$LIPO" >&6; } 10967else 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10969$as_echo "no" >&6; } 10970fi 10971 10972 10973fi 10974if test -z "$ac_cv_prog_LIPO"; then 10975 ac_ct_LIPO=$LIPO 10976 # Extract the first word of "lipo", so it can be a program name with args. 10977set dummy lipo; ac_word=$2 10978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10979$as_echo_n "checking for $ac_word... " >&6; } 10980if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10981 $as_echo_n "(cached) " >&6 10982else 10983 if test -n "$ac_ct_LIPO"; then 10984 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10985else 10986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10987for as_dir in $PATH 10988do 10989 IFS=$as_save_IFS 10990 test -z "$as_dir" && as_dir=. 10991 for ac_exec_ext in '' $ac_executable_extensions; do 10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10993 ac_cv_prog_ac_ct_LIPO="lipo" 10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10995 break 2 10996 fi 10997done 10998 done 10999IFS=$as_save_IFS 11000 11001fi 11002fi 11003ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 11004if test -n "$ac_ct_LIPO"; then 11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 11006$as_echo "$ac_ct_LIPO" >&6; } 11007else 11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11009$as_echo "no" >&6; } 11010fi 11011 11012 if test "x$ac_ct_LIPO" = x; then 11013 LIPO=":" 11014 else 11015 case $cross_compiling:$ac_tool_warned in 11016yes:) 11017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11019ac_tool_warned=yes ;; 11020esac 11021 LIPO=$ac_ct_LIPO 11022 fi 11023else 11024 LIPO="$ac_cv_prog_LIPO" 11025fi 11026 11027 if test -n "$ac_tool_prefix"; then 11028 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 11029set dummy ${ac_tool_prefix}otool; ac_word=$2 11030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11031$as_echo_n "checking for $ac_word... " >&6; } 11032if ${ac_cv_prog_OTOOL+:} false; then : 11033 $as_echo_n "(cached) " >&6 11034else 11035 if test -n "$OTOOL"; then 11036 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 11037else 11038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11039for as_dir in $PATH 11040do 11041 IFS=$as_save_IFS 11042 test -z "$as_dir" && as_dir=. 11043 for ac_exec_ext in '' $ac_executable_extensions; do 11044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11045 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 11046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11047 break 2 11048 fi 11049done 11050 done 11051IFS=$as_save_IFS 11052 11053fi 11054fi 11055OTOOL=$ac_cv_prog_OTOOL 11056if test -n "$OTOOL"; then 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 11058$as_echo "$OTOOL" >&6; } 11059else 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11061$as_echo "no" >&6; } 11062fi 11063 11064 11065fi 11066if test -z "$ac_cv_prog_OTOOL"; then 11067 ac_ct_OTOOL=$OTOOL 11068 # Extract the first word of "otool", so it can be a program name with args. 11069set dummy otool; ac_word=$2 11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11071$as_echo_n "checking for $ac_word... " >&6; } 11072if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 11073 $as_echo_n "(cached) " >&6 11074else 11075 if test -n "$ac_ct_OTOOL"; then 11076 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 11077else 11078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11079for as_dir in $PATH 11080do 11081 IFS=$as_save_IFS 11082 test -z "$as_dir" && as_dir=. 11083 for ac_exec_ext in '' $ac_executable_extensions; do 11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11085 ac_cv_prog_ac_ct_OTOOL="otool" 11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11087 break 2 11088 fi 11089done 11090 done 11091IFS=$as_save_IFS 11092 11093fi 11094fi 11095ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 11096if test -n "$ac_ct_OTOOL"; then 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 11098$as_echo "$ac_ct_OTOOL" >&6; } 11099else 11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11101$as_echo "no" >&6; } 11102fi 11103 11104 if test "x$ac_ct_OTOOL" = x; then 11105 OTOOL=":" 11106 else 11107 case $cross_compiling:$ac_tool_warned in 11108yes:) 11109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11111ac_tool_warned=yes ;; 11112esac 11113 OTOOL=$ac_ct_OTOOL 11114 fi 11115else 11116 OTOOL="$ac_cv_prog_OTOOL" 11117fi 11118 11119 if test -n "$ac_tool_prefix"; then 11120 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 11121set dummy ${ac_tool_prefix}otool64; ac_word=$2 11122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11123$as_echo_n "checking for $ac_word... " >&6; } 11124if ${ac_cv_prog_OTOOL64+:} false; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 if test -n "$OTOOL64"; then 11128 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 11129else 11130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11131for as_dir in $PATH 11132do 11133 IFS=$as_save_IFS 11134 test -z "$as_dir" && as_dir=. 11135 for ac_exec_ext in '' $ac_executable_extensions; do 11136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11137 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 11138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11139 break 2 11140 fi 11141done 11142 done 11143IFS=$as_save_IFS 11144 11145fi 11146fi 11147OTOOL64=$ac_cv_prog_OTOOL64 11148if test -n "$OTOOL64"; then 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 11150$as_echo "$OTOOL64" >&6; } 11151else 11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11153$as_echo "no" >&6; } 11154fi 11155 11156 11157fi 11158if test -z "$ac_cv_prog_OTOOL64"; then 11159 ac_ct_OTOOL64=$OTOOL64 11160 # Extract the first word of "otool64", so it can be a program name with args. 11161set dummy otool64; ac_word=$2 11162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11163$as_echo_n "checking for $ac_word... " >&6; } 11164if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 11165 $as_echo_n "(cached) " >&6 11166else 11167 if test -n "$ac_ct_OTOOL64"; then 11168 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 11169else 11170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11171for as_dir in $PATH 11172do 11173 IFS=$as_save_IFS 11174 test -z "$as_dir" && as_dir=. 11175 for ac_exec_ext in '' $ac_executable_extensions; do 11176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11177 ac_cv_prog_ac_ct_OTOOL64="otool64" 11178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11179 break 2 11180 fi 11181done 11182 done 11183IFS=$as_save_IFS 11184 11185fi 11186fi 11187ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 11188if test -n "$ac_ct_OTOOL64"; then 11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 11190$as_echo "$ac_ct_OTOOL64" >&6; } 11191else 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11193$as_echo "no" >&6; } 11194fi 11195 11196 if test "x$ac_ct_OTOOL64" = x; then 11197 OTOOL64=":" 11198 else 11199 case $cross_compiling:$ac_tool_warned in 11200yes:) 11201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11203ac_tool_warned=yes ;; 11204esac 11205 OTOOL64=$ac_ct_OTOOL64 11206 fi 11207else 11208 OTOOL64="$ac_cv_prog_OTOOL64" 11209fi 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 11238$as_echo_n "checking for -single_module linker flag... " >&6; } 11239if ${lt_cv_apple_cc_single_mod+:} false; then : 11240 $as_echo_n "(cached) " >&6 11241else 11242 lt_cv_apple_cc_single_mod=no 11243 if test -z "$LT_MULTI_MODULE"; then 11244 # By default we will add the -single_module flag. You can override 11245 # by either setting the environment variable LT_MULTI_MODULE 11246 # non-empty at configure time, or by adding -multi_module to the 11247 # link flags. 11248 rm -rf libconftest.dylib* 11249 echo "int foo(void){return 1;}" > conftest.c 11250 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11251-dynamiclib -Wl,-single_module conftest.c" >&5 11252 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11253 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 11254 _lt_result=$? 11255 # If there is a non-empty error log, and "single_module" 11256 # appears in it, assume the flag caused a linker warning 11257 if test -s conftest.err && $GREP single_module conftest.err; then 11258 cat conftest.err >&5 11259 # Otherwise, if the output was created with a 0 exit code from 11260 # the compiler, it worked. 11261 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 11262 lt_cv_apple_cc_single_mod=yes 11263 else 11264 cat conftest.err >&5 11265 fi 11266 rm -rf libconftest.dylib* 11267 rm -f conftest.* 11268 fi 11269fi 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 11271$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 11272 11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 11274$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 11275if ${lt_cv_ld_exported_symbols_list+:} false; then : 11276 $as_echo_n "(cached) " >&6 11277else 11278 lt_cv_ld_exported_symbols_list=no 11279 save_LDFLAGS=$LDFLAGS 11280 echo "_main" > conftest.sym 11281 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11283/* end confdefs.h. */ 11284 11285#ifdef F77_DUMMY_MAIN 11286 11287# ifdef __cplusplus 11288 extern "C" 11289# endif 11290 int F77_DUMMY_MAIN() { return 1; } 11291 11292#endif 11293int 11294main () 11295{ 11296 11297 ; 11298 return 0; 11299} 11300_ACEOF 11301if ac_fn_c_try_link "$LINENO"; then : 11302 lt_cv_ld_exported_symbols_list=yes 11303else 11304 lt_cv_ld_exported_symbols_list=no 11305fi 11306rm -f core conftest.err conftest.$ac_objext \ 11307 conftest$ac_exeext conftest.$ac_ext 11308 LDFLAGS=$save_LDFLAGS 11309 11310fi 11311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 11312$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 11313 11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 11315$as_echo_n "checking for -force_load linker flag... " >&6; } 11316if ${lt_cv_ld_force_load+:} false; then : 11317 $as_echo_n "(cached) " >&6 11318else 11319 lt_cv_ld_force_load=no 11320 cat > conftest.c << _LT_EOF 11321int forced_loaded() { return 2;} 11322_LT_EOF 11323 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 11324 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 11325 echo "$AR cru libconftest.a conftest.o" >&5 11326 $AR cru libconftest.a conftest.o 2>&5 11327 echo "$RANLIB libconftest.a" >&5 11328 $RANLIB libconftest.a 2>&5 11329 cat > conftest.c << _LT_EOF 11330int main() { return 0;} 11331_LT_EOF 11332 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 11333 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 11334 _lt_result=$? 11335 if test -s conftest.err && $GREP force_load conftest.err; then 11336 cat conftest.err >&5 11337 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 11338 lt_cv_ld_force_load=yes 11339 else 11340 cat conftest.err >&5 11341 fi 11342 rm -f conftest.err libconftest.a conftest conftest.c 11343 rm -rf conftest.dSYM 11344 11345fi 11346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 11347$as_echo "$lt_cv_ld_force_load" >&6; } 11348 case $host_os in 11349 rhapsody* | darwin1.[012]) 11350 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 11351 darwin1.*) 11352 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11353 darwin*) # darwin 5.x on 11354 # if running on 10.5 or later, the deployment target defaults 11355 # to the OS version, if on x86, and 10.4, the deployment 11356 # target defaults to 10.4. Don't you love it? 11357 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 11358 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 11359 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11360 10.[012][,.]*) 11361 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 11362 10.*) 11363 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 11364 esac 11365 ;; 11366 esac 11367 if test yes = "$lt_cv_apple_cc_single_mod"; then 11368 _lt_dar_single_mod='$single_module' 11369 fi 11370 if test yes = "$lt_cv_ld_exported_symbols_list"; then 11371 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 11372 else 11373 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 11374 fi 11375 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 11376 _lt_dsymutil='~$DSYMUTIL $lib || :' 11377 else 11378 _lt_dsymutil= 11379 fi 11380 ;; 11381 esac 11382 11383# func_munge_path_list VARIABLE PATH 11384# ----------------------------------- 11385# VARIABLE is name of variable containing _space_ separated list of 11386# directories to be munged by the contents of PATH, which is string 11387# having a format: 11388# "DIR[:DIR]:" 11389# string "DIR[ DIR]" will be prepended to VARIABLE 11390# ":DIR[:DIR]" 11391# string "DIR[ DIR]" will be appended to VARIABLE 11392# "DIRP[:DIRP]::[DIRA:]DIRA" 11393# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 11394# "DIRA[ DIRA]" will be appended to VARIABLE 11395# "DIR[:DIR]" 11396# VARIABLE will be replaced by "DIR[ DIR]" 11397func_munge_path_list () 11398{ 11399 case x$2 in 11400 x) 11401 ;; 11402 *:) 11403 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 11404 ;; 11405 x:*) 11406 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 11407 ;; 11408 *::*) 11409 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 11410 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 11411 ;; 11412 *) 11413 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 11414 ;; 11415 esac 11416} 11417 11418for ac_header in dlfcn.h 11419do : 11420 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 11421" 11422if test "x$ac_cv_header_dlfcn_h" = xyes; then : 11423 cat >>confdefs.h <<_ACEOF 11424#define HAVE_DLFCN_H 1 11425_ACEOF 11426 11427fi 11428 11429done 11430 11431 11432 11433func_stripname_cnf () 11434{ 11435 case $2 in 11436 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 11437 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 11438 esac 11439} # func_stripname_cnf 11440 11441 11442 11443 11444 11445 11446# Set options 11447 11448 11449 11450 enable_dlopen=no 11451 11452 11453 enable_win32_dll=no 11454 11455 11456 11457 # Check whether --enable-static was given. 11458if test "${enable_static+set}" = set; then : 11459 enableval=$enable_static; p=${PACKAGE-default} 11460 case $enableval in 11461 yes) enable_static=yes ;; 11462 no) enable_static=no ;; 11463 *) 11464 enable_static=no 11465 # Look at the argument we got. We use all the common list separators. 11466 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11467 for pkg in $enableval; do 11468 IFS=$lt_save_ifs 11469 if test "X$pkg" = "X$p"; then 11470 enable_static=yes 11471 fi 11472 done 11473 IFS=$lt_save_ifs 11474 ;; 11475 esac 11476else 11477 enable_static=yes 11478fi 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489# Check whether --with-pic was given. 11490if test "${with_pic+set}" = set; then : 11491 withval=$with_pic; lt_p=${PACKAGE-default} 11492 case $withval in 11493 yes|no) pic_mode=$withval ;; 11494 *) 11495 pic_mode=default 11496 # Look at the argument we got. We use all the common list separators. 11497 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11498 for lt_pkg in $withval; do 11499 IFS=$lt_save_ifs 11500 if test "X$lt_pkg" = "X$lt_p"; then 11501 pic_mode=yes 11502 fi 11503 done 11504 IFS=$lt_save_ifs 11505 ;; 11506 esac 11507else 11508 pic_mode=default 11509fi 11510 11511 11512 11513 11514 11515 11516 11517 11518 # Check whether --enable-fast-install was given. 11519if test "${enable_fast_install+set}" = set; then : 11520 enableval=$enable_fast_install; p=${PACKAGE-default} 11521 case $enableval in 11522 yes) enable_fast_install=yes ;; 11523 no) enable_fast_install=no ;; 11524 *) 11525 enable_fast_install=no 11526 # Look at the argument we got. We use all the common list separators. 11527 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11528 for pkg in $enableval; do 11529 IFS=$lt_save_ifs 11530 if test "X$pkg" = "X$p"; then 11531 enable_fast_install=yes 11532 fi 11533 done 11534 IFS=$lt_save_ifs 11535 ;; 11536 esac 11537else 11538 enable_fast_install=yes 11539fi 11540 11541 11542 11543 11544 11545 11546 11547 11548 shared_archive_member_spec= 11549case $host,$enable_shared in 11550power*-*-aix[5-9]*,yes) 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 11552$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 11553 11554# Check whether --with-aix-soname was given. 11555if test "${with_aix_soname+set}" = set; then : 11556 withval=$with_aix_soname; case $withval in 11557 aix|svr4|both) 11558 ;; 11559 *) 11560 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 11561 ;; 11562 esac 11563 lt_cv_with_aix_soname=$with_aix_soname 11564else 11565 if ${lt_cv_with_aix_soname+:} false; then : 11566 $as_echo_n "(cached) " >&6 11567else 11568 lt_cv_with_aix_soname=aix 11569fi 11570 11571 with_aix_soname=$lt_cv_with_aix_soname 11572fi 11573 11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 11575$as_echo "$with_aix_soname" >&6; } 11576 if test aix != "$with_aix_soname"; then 11577 # For the AIX way of multilib, we name the shared archive member 11578 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 11579 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 11580 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 11581 # the AIX toolchain works better with OBJECT_MODE set (default 32). 11582 if test 64 = "${OBJECT_MODE-32}"; then 11583 shared_archive_member_spec=shr_64 11584 else 11585 shared_archive_member_spec=shr 11586 fi 11587 fi 11588 ;; 11589*) 11590 with_aix_soname=aix 11591 ;; 11592esac 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603# This can be used to rebuild libtool when needed 11604LIBTOOL_DEPS=$ltmain 11605 11606# Always use our own libtool. 11607LIBTOOL='$(SHELL) $(top_builddir)/libtool' 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638test -z "$LN_S" && LN_S="ln -s" 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653if test -n "${ZSH_VERSION+set}"; then 11654 setopt NO_GLOB_SUBST 11655fi 11656 11657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 11658$as_echo_n "checking for objdir... " >&6; } 11659if ${lt_cv_objdir+:} false; then : 11660 $as_echo_n "(cached) " >&6 11661else 11662 rm -f .libs 2>/dev/null 11663mkdir .libs 2>/dev/null 11664if test -d .libs; then 11665 lt_cv_objdir=.libs 11666else 11667 # MS-DOS does not allow filenames that begin with a dot. 11668 lt_cv_objdir=_libs 11669fi 11670rmdir .libs 2>/dev/null 11671fi 11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 11673$as_echo "$lt_cv_objdir" >&6; } 11674objdir=$lt_cv_objdir 11675 11676 11677 11678 11679 11680cat >>confdefs.h <<_ACEOF 11681#define LT_OBJDIR "$lt_cv_objdir/" 11682_ACEOF 11683 11684 11685 11686 11687case $host_os in 11688aix3*) 11689 # AIX sometimes has problems with the GCC collect2 program. For some 11690 # reason, if we set the COLLECT_NAMES environment variable, the problems 11691 # vanish in a puff of smoke. 11692 if test set != "${COLLECT_NAMES+set}"; then 11693 COLLECT_NAMES= 11694 export COLLECT_NAMES 11695 fi 11696 ;; 11697esac 11698 11699# Global variables: 11700ofile=libtool 11701can_build_shared=yes 11702 11703# All known linkers require a '.a' archive for static linking (except MSVC, 11704# which needs '.lib'). 11705libext=a 11706 11707with_gnu_ld=$lt_cv_prog_gnu_ld 11708 11709old_CC=$CC 11710old_CFLAGS=$CFLAGS 11711 11712# Set sane defaults for various variables 11713test -z "$CC" && CC=cc 11714test -z "$LTCC" && LTCC=$CC 11715test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 11716test -z "$LD" && LD=ld 11717test -z "$ac_objext" && ac_objext=o 11718 11719func_cc_basename $compiler 11720cc_basename=$func_cc_basename_result 11721 11722 11723# Only perform the check for file, if the check method requires it 11724test -z "$MAGIC_CMD" && MAGIC_CMD=file 11725case $deplibs_check_method in 11726file_magic*) 11727 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 11729$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 11730if ${lt_cv_path_MAGIC_CMD+:} false; then : 11731 $as_echo_n "(cached) " >&6 11732else 11733 case $MAGIC_CMD in 11734[\\/*] | ?:[\\/]*) 11735 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11736 ;; 11737*) 11738 lt_save_MAGIC_CMD=$MAGIC_CMD 11739 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11740 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11741 for ac_dir in $ac_dummy; do 11742 IFS=$lt_save_ifs 11743 test -z "$ac_dir" && ac_dir=. 11744 if test -f "$ac_dir/${ac_tool_prefix}file"; then 11745 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 11746 if test -n "$file_magic_test_file"; then 11747 case $deplibs_check_method in 11748 "file_magic "*) 11749 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11750 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11751 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11752 $EGREP "$file_magic_regex" > /dev/null; then 11753 : 11754 else 11755 cat <<_LT_EOF 1>&2 11756 11757*** Warning: the command libtool uses to detect shared libraries, 11758*** $file_magic_cmd, produces output that libtool cannot recognize. 11759*** The result is that libtool may fail to recognize shared libraries 11760*** as such. This will affect the creation of libtool libraries that 11761*** depend on shared libraries, but programs linked with such libtool 11762*** libraries will work regardless of this problem. Nevertheless, you 11763*** may want to report the problem to your system manager and/or to 11764*** bug-libtool@gnu.org 11765 11766_LT_EOF 11767 fi ;; 11768 esac 11769 fi 11770 break 11771 fi 11772 done 11773 IFS=$lt_save_ifs 11774 MAGIC_CMD=$lt_save_MAGIC_CMD 11775 ;; 11776esac 11777fi 11778 11779MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11780if test -n "$MAGIC_CMD"; then 11781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11782$as_echo "$MAGIC_CMD" >&6; } 11783else 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11785$as_echo "no" >&6; } 11786fi 11787 11788 11789 11790 11791 11792if test -z "$lt_cv_path_MAGIC_CMD"; then 11793 if test -n "$ac_tool_prefix"; then 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 11795$as_echo_n "checking for file... " >&6; } 11796if ${lt_cv_path_MAGIC_CMD+:} false; then : 11797 $as_echo_n "(cached) " >&6 11798else 11799 case $MAGIC_CMD in 11800[\\/*] | ?:[\\/]*) 11801 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 11802 ;; 11803*) 11804 lt_save_MAGIC_CMD=$MAGIC_CMD 11805 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11806 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 11807 for ac_dir in $ac_dummy; do 11808 IFS=$lt_save_ifs 11809 test -z "$ac_dir" && ac_dir=. 11810 if test -f "$ac_dir/file"; then 11811 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 11812 if test -n "$file_magic_test_file"; then 11813 case $deplibs_check_method in 11814 "file_magic "*) 11815 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 11816 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 11818 $EGREP "$file_magic_regex" > /dev/null; then 11819 : 11820 else 11821 cat <<_LT_EOF 1>&2 11822 11823*** Warning: the command libtool uses to detect shared libraries, 11824*** $file_magic_cmd, produces output that libtool cannot recognize. 11825*** The result is that libtool may fail to recognize shared libraries 11826*** as such. This will affect the creation of libtool libraries that 11827*** depend on shared libraries, but programs linked with such libtool 11828*** libraries will work regardless of this problem. Nevertheless, you 11829*** may want to report the problem to your system manager and/or to 11830*** bug-libtool@gnu.org 11831 11832_LT_EOF 11833 fi ;; 11834 esac 11835 fi 11836 break 11837 fi 11838 done 11839 IFS=$lt_save_ifs 11840 MAGIC_CMD=$lt_save_MAGIC_CMD 11841 ;; 11842esac 11843fi 11844 11845MAGIC_CMD=$lt_cv_path_MAGIC_CMD 11846if test -n "$MAGIC_CMD"; then 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 11848$as_echo "$MAGIC_CMD" >&6; } 11849else 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11851$as_echo "no" >&6; } 11852fi 11853 11854 11855 else 11856 MAGIC_CMD=: 11857 fi 11858fi 11859 11860 fi 11861 ;; 11862esac 11863 11864# Use C for the default configuration in the libtool script 11865 11866lt_save_CC=$CC 11867ac_ext=c 11868ac_cpp='$CPP $CPPFLAGS' 11869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11871ac_compiler_gnu=$ac_cv_c_compiler_gnu 11872 11873 11874# Source file extension for C test sources. 11875ac_ext=c 11876 11877# Object file extension for compiled C test sources. 11878objext=o 11879objext=$objext 11880 11881# Code to be used in simple compile tests 11882lt_simple_compile_test_code="int some_variable = 0;" 11883 11884# Code to be used in simple link tests 11885lt_simple_link_test_code='int main(){return(0);}' 11886 11887 11888 11889 11890 11891 11892 11893# If no C compiler was specified, use CC. 11894LTCC=${LTCC-"$CC"} 11895 11896# If no C compiler flags were specified, use CFLAGS. 11897LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11898 11899# Allow CC to be a program name with arguments. 11900compiler=$CC 11901 11902# Save the default compiler, since it gets overwritten when the other 11903# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 11904compiler_DEFAULT=$CC 11905 11906# save warnings/boilerplate of simple test code 11907ac_outfile=conftest.$ac_objext 11908echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11909eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11910_lt_compiler_boilerplate=`cat conftest.err` 11911$RM conftest* 11912 11913ac_outfile=conftest.$ac_objext 11914echo "$lt_simple_link_test_code" >conftest.$ac_ext 11915eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11916_lt_linker_boilerplate=`cat conftest.err` 11917$RM -r conftest* 11918 11919 11920## CAVEAT EMPTOR: 11921## There is no encapsulation within the following macros, do not change 11922## the running order or otherwise move them around unless you know exactly 11923## what you are doing... 11924if test -n "$compiler"; then 11925 11926lt_prog_compiler_no_builtin_flag= 11927 11928if test yes = "$GCC"; then 11929 case $cc_basename in 11930 nvcc*) 11931 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 11932 *) 11933 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 11934 esac 11935 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 11937$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 11938if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 11939 $as_echo_n "(cached) " >&6 11940else 11941 lt_cv_prog_compiler_rtti_exceptions=no 11942 ac_outfile=conftest.$ac_objext 11943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11944 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 11945 # Insert the option either (1) after the last *FLAGS variable, or 11946 # (2) before a word containing "conftest.", or (3) at the end. 11947 # Note that $ac_compile itself does not contain backslashes and begins 11948 # with a dollar sign (not a hyphen), so the echo should work correctly. 11949 # The option is referenced via a variable to avoid confusing sed. 11950 lt_compile=`echo "$ac_compile" | $SED \ 11951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11953 -e 's:$: $lt_compiler_flag:'` 11954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11955 (eval "$lt_compile" 2>conftest.err) 11956 ac_status=$? 11957 cat conftest.err >&5 11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11959 if (exit $ac_status) && test -s "$ac_outfile"; then 11960 # The compiler can only warn and ignore the option if not recognized 11961 # So say no if there are warnings other than the usual output. 11962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11965 lt_cv_prog_compiler_rtti_exceptions=yes 11966 fi 11967 fi 11968 $RM conftest* 11969 11970fi 11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 11972$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 11973 11974if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 11975 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 11976else 11977 : 11978fi 11979 11980fi 11981 11982 11983 11984 11985 11986 11987 lt_prog_compiler_wl= 11988lt_prog_compiler_pic= 11989lt_prog_compiler_static= 11990 11991 11992 if test yes = "$GCC"; then 11993 lt_prog_compiler_wl='-Wl,' 11994 lt_prog_compiler_static='-static' 11995 11996 case $host_os in 11997 aix*) 11998 # All AIX code is PIC. 11999 if test ia64 = "$host_cpu"; then 12000 # AIX 5 now supports IA64 processor 12001 lt_prog_compiler_static='-Bstatic' 12002 fi 12003 lt_prog_compiler_pic='-fPIC' 12004 ;; 12005 12006 amigaos*) 12007 case $host_cpu in 12008 powerpc) 12009 # see comment about AmigaOS4 .so support 12010 lt_prog_compiler_pic='-fPIC' 12011 ;; 12012 m68k) 12013 # FIXME: we need at least 68020 code to build shared libraries, but 12014 # adding the '-m68020' flag to GCC prevents building anything better, 12015 # like '-m68040'. 12016 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12017 ;; 12018 esac 12019 ;; 12020 12021 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12022 # PIC is the default for these OSes. 12023 ;; 12024 12025 mingw* | cygwin* | pw32* | os2* | cegcc*) 12026 # This hack is so that the source file can tell whether it is being 12027 # built for inclusion in a dll (and should export symbols for example). 12028 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12029 # (--disable-auto-import) libraries 12030 lt_prog_compiler_pic='-DDLL_EXPORT' 12031 case $host_os in 12032 os2*) 12033 lt_prog_compiler_static='$wl-static' 12034 ;; 12035 esac 12036 ;; 12037 12038 darwin* | rhapsody*) 12039 # PIC is the default on this platform 12040 # Common symbols not allowed in MH_DYLIB files 12041 lt_prog_compiler_pic='-fno-common' 12042 ;; 12043 12044 haiku*) 12045 # PIC is the default for Haiku. 12046 # The "-static" flag exists, but is broken. 12047 lt_prog_compiler_static= 12048 ;; 12049 12050 hpux*) 12051 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12052 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12053 # sets the default TLS model and affects inlining. 12054 case $host_cpu in 12055 hppa*64*) 12056 # +Z the default 12057 ;; 12058 *) 12059 lt_prog_compiler_pic='-fPIC' 12060 ;; 12061 esac 12062 ;; 12063 12064 interix[3-9]*) 12065 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12066 # Instead, we relocate shared libraries at runtime. 12067 ;; 12068 12069 msdosdjgpp*) 12070 # Just because we use GCC doesn't mean we suddenly get shared libraries 12071 # on systems that don't support them. 12072 lt_prog_compiler_can_build_shared=no 12073 enable_shared=no 12074 ;; 12075 12076 *nto* | *qnx*) 12077 # QNX uses GNU C++, but need to define -shared option too, otherwise 12078 # it will coredump. 12079 lt_prog_compiler_pic='-fPIC -shared' 12080 ;; 12081 12082 sysv4*MP*) 12083 if test -d /usr/nec; then 12084 lt_prog_compiler_pic=-Kconform_pic 12085 fi 12086 ;; 12087 12088 *) 12089 lt_prog_compiler_pic='-fPIC' 12090 ;; 12091 esac 12092 12093 case $cc_basename in 12094 nvcc*) # Cuda Compiler Driver 2.2 12095 lt_prog_compiler_wl='-Xlinker ' 12096 if test -n "$lt_prog_compiler_pic"; then 12097 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12098 fi 12099 ;; 12100 esac 12101 else 12102 # PORTME Check for flag to pass linker flags through the system compiler. 12103 case $host_os in 12104 aix*) 12105 lt_prog_compiler_wl='-Wl,' 12106 if test ia64 = "$host_cpu"; then 12107 # AIX 5 now supports IA64 processor 12108 lt_prog_compiler_static='-Bstatic' 12109 else 12110 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12111 fi 12112 ;; 12113 12114 darwin* | rhapsody*) 12115 # PIC is the default on this platform 12116 # Common symbols not allowed in MH_DYLIB files 12117 lt_prog_compiler_pic='-fno-common' 12118 case $cc_basename in 12119 nagfor*) 12120 # NAG Fortran compiler 12121 lt_prog_compiler_wl='-Wl,-Wl,,' 12122 lt_prog_compiler_pic='-PIC' 12123 lt_prog_compiler_static='-Bstatic' 12124 ;; 12125 esac 12126 ;; 12127 12128 mingw* | cygwin* | pw32* | os2* | cegcc*) 12129 # This hack is so that the source file can tell whether it is being 12130 # built for inclusion in a dll (and should export symbols for example). 12131 lt_prog_compiler_pic='-DDLL_EXPORT' 12132 case $host_os in 12133 os2*) 12134 lt_prog_compiler_static='$wl-static' 12135 ;; 12136 esac 12137 ;; 12138 12139 hpux9* | hpux10* | hpux11*) 12140 lt_prog_compiler_wl='-Wl,' 12141 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12142 # not for PA HP-UX. 12143 case $host_cpu in 12144 hppa*64*|ia64*) 12145 # +Z the default 12146 ;; 12147 *) 12148 lt_prog_compiler_pic='+Z' 12149 ;; 12150 esac 12151 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12152 lt_prog_compiler_static='$wl-a ${wl}archive' 12153 ;; 12154 12155 irix5* | irix6* | nonstopux*) 12156 lt_prog_compiler_wl='-Wl,' 12157 # PIC (with -KPIC) is the default. 12158 lt_prog_compiler_static='-non_shared' 12159 ;; 12160 12161 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12162 case $cc_basename in 12163 # old Intel for x86_64, which still supported -KPIC. 12164 ecc*) 12165 lt_prog_compiler_wl='-Wl,' 12166 lt_prog_compiler_pic='-KPIC' 12167 lt_prog_compiler_static='-static' 12168 ;; 12169 # icc used to be incompatible with GCC. 12170 # ICC 10 doesn't accept -KPIC any more. 12171 icc* | ifort*) 12172 lt_prog_compiler_wl='-Wl,' 12173 lt_prog_compiler_pic='-fPIC' 12174 lt_prog_compiler_static='-static' 12175 ;; 12176 # Lahey Fortran 8.1. 12177 lf95*) 12178 lt_prog_compiler_wl='-Wl,' 12179 lt_prog_compiler_pic='--shared' 12180 lt_prog_compiler_static='--static' 12181 ;; 12182 nagfor*) 12183 # NAG Fortran compiler 12184 lt_prog_compiler_wl='-Wl,-Wl,,' 12185 lt_prog_compiler_pic='-PIC' 12186 lt_prog_compiler_static='-Bstatic' 12187 ;; 12188 tcc*) 12189 # Fabrice Bellard et al's Tiny C Compiler 12190 lt_prog_compiler_wl='-Wl,' 12191 lt_prog_compiler_pic='-fPIC' 12192 lt_prog_compiler_static='-static' 12193 ;; 12194 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12195 # Portland Group compilers (*not* the Pentium gcc compiler, 12196 # which looks to be a dead project) 12197 lt_prog_compiler_wl='-Wl,' 12198 lt_prog_compiler_pic='-fpic' 12199 lt_prog_compiler_static='-Bstatic' 12200 ;; 12201 ccc*) 12202 lt_prog_compiler_wl='-Wl,' 12203 # All Alpha code is PIC. 12204 lt_prog_compiler_static='-non_shared' 12205 ;; 12206 xl* | bgxl* | bgf* | mpixl*) 12207 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12208 lt_prog_compiler_wl='-Wl,' 12209 lt_prog_compiler_pic='-qpic' 12210 lt_prog_compiler_static='-qstaticlink' 12211 ;; 12212 *) 12213 case `$CC -V 2>&1 | sed 5q` in 12214 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12215 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12216 lt_prog_compiler_pic='-KPIC' 12217 lt_prog_compiler_static='-Bstatic' 12218 lt_prog_compiler_wl='' 12219 ;; 12220 *Sun\ F* | *Sun*Fortran*) 12221 lt_prog_compiler_pic='-KPIC' 12222 lt_prog_compiler_static='-Bstatic' 12223 lt_prog_compiler_wl='-Qoption ld ' 12224 ;; 12225 *Sun\ C*) 12226 # Sun C 5.9 12227 lt_prog_compiler_pic='-KPIC' 12228 lt_prog_compiler_static='-Bstatic' 12229 lt_prog_compiler_wl='-Wl,' 12230 ;; 12231 *Intel*\ [CF]*Compiler*) 12232 lt_prog_compiler_wl='-Wl,' 12233 lt_prog_compiler_pic='-fPIC' 12234 lt_prog_compiler_static='-static' 12235 ;; 12236 *Portland\ Group*) 12237 lt_prog_compiler_wl='-Wl,' 12238 lt_prog_compiler_pic='-fpic' 12239 lt_prog_compiler_static='-Bstatic' 12240 ;; 12241 esac 12242 ;; 12243 esac 12244 ;; 12245 12246 newsos6) 12247 lt_prog_compiler_pic='-KPIC' 12248 lt_prog_compiler_static='-Bstatic' 12249 ;; 12250 12251 *nto* | *qnx*) 12252 # QNX uses GNU C++, but need to define -shared option too, otherwise 12253 # it will coredump. 12254 lt_prog_compiler_pic='-fPIC -shared' 12255 ;; 12256 12257 osf3* | osf4* | osf5*) 12258 lt_prog_compiler_wl='-Wl,' 12259 # All OSF/1 code is PIC. 12260 lt_prog_compiler_static='-non_shared' 12261 ;; 12262 12263 rdos*) 12264 lt_prog_compiler_static='-non_shared' 12265 ;; 12266 12267 solaris*) 12268 lt_prog_compiler_pic='-KPIC' 12269 lt_prog_compiler_static='-Bstatic' 12270 case $cc_basename in 12271 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12272 lt_prog_compiler_wl='-Qoption ld ';; 12273 *) 12274 lt_prog_compiler_wl='-Wl,';; 12275 esac 12276 ;; 12277 12278 sunos4*) 12279 lt_prog_compiler_wl='-Qoption ld ' 12280 lt_prog_compiler_pic='-PIC' 12281 lt_prog_compiler_static='-Bstatic' 12282 ;; 12283 12284 sysv4 | sysv4.2uw2* | sysv4.3*) 12285 lt_prog_compiler_wl='-Wl,' 12286 lt_prog_compiler_pic='-KPIC' 12287 lt_prog_compiler_static='-Bstatic' 12288 ;; 12289 12290 sysv4*MP*) 12291 if test -d /usr/nec; then 12292 lt_prog_compiler_pic='-Kconform_pic' 12293 lt_prog_compiler_static='-Bstatic' 12294 fi 12295 ;; 12296 12297 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12298 lt_prog_compiler_wl='-Wl,' 12299 lt_prog_compiler_pic='-KPIC' 12300 lt_prog_compiler_static='-Bstatic' 12301 ;; 12302 12303 unicos*) 12304 lt_prog_compiler_wl='-Wl,' 12305 lt_prog_compiler_can_build_shared=no 12306 ;; 12307 12308 uts4*) 12309 lt_prog_compiler_pic='-pic' 12310 lt_prog_compiler_static='-Bstatic' 12311 ;; 12312 12313 *) 12314 lt_prog_compiler_can_build_shared=no 12315 ;; 12316 esac 12317 fi 12318 12319 12320if test "$ax_cv_c_compiler_vendor" = "fujitsu"; then 12321 case $host_cpu in 12322 sparc64*) 12323 lt_prog_compiler_pic='-KPIC' 12324 ;; 12325 *) 12326 ;; 12327 esac 12328fi 12329 12330case $host_os in 12331 # For platforms that do not support PIC, -DPIC is meaningless: 12332 *djgpp*) 12333 lt_prog_compiler_pic= 12334 ;; 12335 *) 12336 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12337 ;; 12338esac 12339 12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12341$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12342if ${lt_cv_prog_compiler_pic+:} false; then : 12343 $as_echo_n "(cached) " >&6 12344else 12345 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 12346fi 12347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12348$as_echo "$lt_cv_prog_compiler_pic" >&6; } 12349lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12350 12351# 12352# Check to make sure the PIC flag actually works. 12353# 12354if test -n "$lt_prog_compiler_pic"; then 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12356$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12357if ${lt_cv_prog_compiler_pic_works+:} false; then : 12358 $as_echo_n "(cached) " >&6 12359else 12360 lt_cv_prog_compiler_pic_works=no 12361 ac_outfile=conftest.$ac_objext 12362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12363 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12364 # Insert the option either (1) after the last *FLAGS variable, or 12365 # (2) before a word containing "conftest.", or (3) at the end. 12366 # Note that $ac_compile itself does not contain backslashes and begins 12367 # with a dollar sign (not a hyphen), so the echo should work correctly. 12368 # The option is referenced via a variable to avoid confusing sed. 12369 lt_compile=`echo "$ac_compile" | $SED \ 12370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12372 -e 's:$: $lt_compiler_flag:'` 12373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12374 (eval "$lt_compile" 2>conftest.err) 12375 ac_status=$? 12376 cat conftest.err >&5 12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12378 if (exit $ac_status) && test -s "$ac_outfile"; then 12379 # The compiler can only warn and ignore the option if not recognized 12380 # So say no if there are warnings other than the usual output. 12381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12383 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12384 lt_cv_prog_compiler_pic_works=yes 12385 fi 12386 fi 12387 $RM conftest* 12388 12389fi 12390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12391$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 12392 12393if test yes = "$lt_cv_prog_compiler_pic_works"; then 12394 case $lt_prog_compiler_pic in 12395 "" | " "*) ;; 12396 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12397 esac 12398else 12399 lt_prog_compiler_pic= 12400 lt_prog_compiler_can_build_shared=no 12401fi 12402 12403fi 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415# 12416# Check to make sure the static flag actually works. 12417# 12418wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12420$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12421if ${lt_cv_prog_compiler_static_works+:} false; then : 12422 $as_echo_n "(cached) " >&6 12423else 12424 lt_cv_prog_compiler_static_works=no 12425 save_LDFLAGS=$LDFLAGS 12426 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12427 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12429 # The linker can only warn and ignore the option if not recognized 12430 # So say no if there are warnings 12431 if test -s conftest.err; then 12432 # Append any errors to the config.log. 12433 cat conftest.err 1>&5 12434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12436 if diff conftest.exp conftest.er2 >/dev/null; then 12437 lt_cv_prog_compiler_static_works=yes 12438 fi 12439 else 12440 lt_cv_prog_compiler_static_works=yes 12441 fi 12442 fi 12443 $RM -r conftest* 12444 LDFLAGS=$save_LDFLAGS 12445 12446fi 12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12448$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 12449 12450if test yes = "$lt_cv_prog_compiler_static_works"; then 12451 : 12452else 12453 lt_prog_compiler_static= 12454fi 12455 12456 12457 12458 12459 12460 12461 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12463$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12464if ${lt_cv_prog_compiler_c_o+:} false; then : 12465 $as_echo_n "(cached) " >&6 12466else 12467 lt_cv_prog_compiler_c_o=no 12468 $RM -r conftest 2>/dev/null 12469 mkdir conftest 12470 cd conftest 12471 mkdir out 12472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12473 12474 lt_compiler_flag="-o out/conftest2.$ac_objext" 12475 # Insert the option either (1) after the last *FLAGS variable, or 12476 # (2) before a word containing "conftest.", or (3) at the end. 12477 # Note that $ac_compile itself does not contain backslashes and begins 12478 # with a dollar sign (not a hyphen), so the echo should work correctly. 12479 lt_compile=`echo "$ac_compile" | $SED \ 12480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12482 -e 's:$: $lt_compiler_flag:'` 12483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12484 (eval "$lt_compile" 2>out/conftest.err) 12485 ac_status=$? 12486 cat out/conftest.err >&5 12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12488 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12489 then 12490 # The compiler can only warn and ignore the option if not recognized 12491 # So say no if there are warnings 12492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12495 lt_cv_prog_compiler_c_o=yes 12496 fi 12497 fi 12498 chmod u+w . 2>&5 12499 $RM conftest* 12500 # SGI C++ compiler will create directory out/ii_files/ for 12501 # template instantiation 12502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12503 $RM out/* && rmdir out 12504 cd .. 12505 $RM -r conftest 12506 $RM conftest* 12507 12508fi 12509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12510$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12511 12512 12513 12514 12515 12516 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12518$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12519if ${lt_cv_prog_compiler_c_o+:} false; then : 12520 $as_echo_n "(cached) " >&6 12521else 12522 lt_cv_prog_compiler_c_o=no 12523 $RM -r conftest 2>/dev/null 12524 mkdir conftest 12525 cd conftest 12526 mkdir out 12527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12528 12529 lt_compiler_flag="-o out/conftest2.$ac_objext" 12530 # Insert the option either (1) after the last *FLAGS variable, or 12531 # (2) before a word containing "conftest.", or (3) at the end. 12532 # Note that $ac_compile itself does not contain backslashes and begins 12533 # with a dollar sign (not a hyphen), so the echo should work correctly. 12534 lt_compile=`echo "$ac_compile" | $SED \ 12535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12537 -e 's:$: $lt_compiler_flag:'` 12538 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12539 (eval "$lt_compile" 2>out/conftest.err) 12540 ac_status=$? 12541 cat out/conftest.err >&5 12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12543 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12544 then 12545 # The compiler can only warn and ignore the option if not recognized 12546 # So say no if there are warnings 12547 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 12548 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12549 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12550 lt_cv_prog_compiler_c_o=yes 12551 fi 12552 fi 12553 chmod u+w . 2>&5 12554 $RM conftest* 12555 # SGI C++ compiler will create directory out/ii_files/ for 12556 # template instantiation 12557 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 12558 $RM out/* && rmdir out 12559 cd .. 12560 $RM -r conftest 12561 $RM conftest* 12562 12563fi 12564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 12565$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 12566 12567 12568 12569 12570hard_links=nottested 12571if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 12572 # do not overwrite the value of need_locks provided by the user 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 12574$as_echo_n "checking if we can lock with hard links... " >&6; } 12575 hard_links=yes 12576 $RM conftest* 12577 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12578 touch conftest.a 12579 ln conftest.a conftest.b 2>&5 || hard_links=no 12580 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 12582$as_echo "$hard_links" >&6; } 12583 if test no = "$hard_links"; then 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 12585$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 12586 need_locks=warn 12587 fi 12588else 12589 need_locks=no 12590fi 12591 12592 12593 12594 12595 12596 12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12598$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12599 12600 runpath_var= 12601 allow_undefined_flag= 12602 always_export_symbols=no 12603 archive_cmds= 12604 archive_expsym_cmds= 12605 compiler_needs_object=no 12606 enable_shared_with_static_runtimes=no 12607 export_dynamic_flag_spec= 12608 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12609 hardcode_automatic=no 12610 hardcode_direct=no 12611 hardcode_direct_absolute=no 12612 hardcode_libdir_flag_spec= 12613 hardcode_libdir_separator= 12614 hardcode_minus_L=no 12615 hardcode_shlibpath_var=unsupported 12616 inherit_rpath=no 12617 link_all_deplibs=unknown 12618 module_cmds= 12619 module_expsym_cmds= 12620 old_archive_from_new_cmds= 12621 old_archive_from_expsyms_cmds= 12622 thread_safe_flag_spec= 12623 whole_archive_flag_spec= 12624 # include_expsyms should be a list of space-separated symbols to be *always* 12625 # included in the symbol list 12626 include_expsyms= 12627 # exclude_expsyms can be an extended regexp of symbols to exclude 12628 # it will be wrapped by ' (' and ')$', so one must not match beginning or 12629 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 12630 # as well as any symbol that contains 'd'. 12631 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12632 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 12633 # platforms (ab)use it in PIC code, but their linkers get confused if 12634 # the symbol is explicitly referenced. Since portable code cannot 12635 # rely on this symbol name, it's probably fine to never include it in 12636 # preloaded symbol tables. 12637 # Exclude shared library initialization/finalization symbols. 12638 extract_expsyms_cmds= 12639 12640 case $host_os in 12641 cygwin* | mingw* | pw32* | cegcc*) 12642 # FIXME: the MSVC++ port hasn't been tested in a loooong time 12643 # When not using gcc, we currently assume that we are using 12644 # Microsoft Visual C++. 12645 if test yes != "$GCC"; then 12646 with_gnu_ld=no 12647 fi 12648 ;; 12649 interix*) 12650 # we just hope/assume this is gcc and not c89 (= MSVC++) 12651 with_gnu_ld=yes 12652 ;; 12653 openbsd* | bitrig*) 12654 with_gnu_ld=no 12655 ;; 12656 esac 12657 12658 ld_shlibs=yes 12659 12660 # On some targets, GNU ld is compatible enough with the native linker 12661 # that we're better off using the native interface for both. 12662 lt_use_gnu_ld_interface=no 12663 if test yes = "$with_gnu_ld"; then 12664 case $host_os in 12665 aix*) 12666 # The AIX port of GNU ld has always aspired to compatibility 12667 # with the native linker. However, as the warning in the GNU ld 12668 # block says, versions before 2.19.5* couldn't really create working 12669 # shared libraries, regardless of the interface used. 12670 case `$LD -v 2>&1` in 12671 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 12672 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 12673 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 12674 *) 12675 lt_use_gnu_ld_interface=yes 12676 ;; 12677 esac 12678 ;; 12679 *) 12680 lt_use_gnu_ld_interface=yes 12681 ;; 12682 esac 12683 fi 12684 12685 if test yes = "$lt_use_gnu_ld_interface"; then 12686 # If archive_cmds runs LD, not CC, wlarc should be empty 12687 wlarc='$wl' 12688 12689 # Set some defaults for GNU ld with shared library support. These 12690 # are reset later if shared libraries are not supported. Putting them 12691 # here allows them to be overridden if necessary. 12692 runpath_var=LD_RUN_PATH 12693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12694 export_dynamic_flag_spec='$wl--export-dynamic' 12695 # ancient GNU ld didn't support --whole-archive et. al. 12696 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 12697 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12698 else 12699 whole_archive_flag_spec= 12700 fi 12701 supports_anon_versioning=no 12702 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 12703 *GNU\ gold*) supports_anon_versioning=yes ;; 12704 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 12705 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 12706 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 12707 *\ 2.11.*) ;; # other 2.11 versions 12708 *) supports_anon_versioning=yes ;; 12709 esac 12710 12711 # See if GNU ld supports shared libraries. 12712 case $host_os in 12713 aix[3-9]*) 12714 # On AIX/PPC, the GNU linker is very broken 12715 if test ia64 != "$host_cpu"; then 12716 ld_shlibs=no 12717 cat <<_LT_EOF 1>&2 12718 12719*** Warning: the GNU linker, at least up to release 2.19, is reported 12720*** to be unable to reliably create shared libraries on AIX. 12721*** Therefore, libtool is disabling shared libraries support. If you 12722*** really care for shared libraries, you may want to install binutils 12723*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 12724*** You will then need to restart the configuration process. 12725 12726_LT_EOF 12727 fi 12728 ;; 12729 12730 amigaos*) 12731 case $host_cpu in 12732 powerpc) 12733 # see comment about AmigaOS4 .so support 12734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12735 archive_expsym_cmds='' 12736 ;; 12737 m68k) 12738 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)' 12739 hardcode_libdir_flag_spec='-L$libdir' 12740 hardcode_minus_L=yes 12741 ;; 12742 esac 12743 ;; 12744 12745 beos*) 12746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12747 allow_undefined_flag=unsupported 12748 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12749 # support --undefined. This deserves some investigation. FIXME 12750 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12751 else 12752 ld_shlibs=no 12753 fi 12754 ;; 12755 12756 cygwin* | mingw* | pw32* | cegcc*) 12757 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 12758 # as there is no search path for DLLs. 12759 hardcode_libdir_flag_spec='-L$libdir' 12760 export_dynamic_flag_spec='$wl--export-all-symbols' 12761 allow_undefined_flag=unsupported 12762 always_export_symbols=no 12763 enable_shared_with_static_runtimes=yes 12764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 12765 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 12766 12767 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12769 # If the export-symbols file already is a .def file, use it as 12770 # is; otherwise, prepend EXPORTS... 12771 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 12772 cp $export_symbols $output_objdir/$soname.def; 12773 else 12774 echo EXPORTS > $output_objdir/$soname.def; 12775 cat $export_symbols >> $output_objdir/$soname.def; 12776 fi~ 12777 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12778 else 12779 ld_shlibs=no 12780 fi 12781 ;; 12782 12783 haiku*) 12784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12785 link_all_deplibs=yes 12786 ;; 12787 12788 os2*) 12789 hardcode_libdir_flag_spec='-L$libdir' 12790 hardcode_minus_L=yes 12791 allow_undefined_flag=unsupported 12792 shrext_cmds=.dll 12793 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12794 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12795 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12796 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12797 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 12798 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12799 emximp -o $lib $output_objdir/$libname.def' 12800 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 12801 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 12802 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 12803 $ECHO EXPORTS >> $output_objdir/$libname.def~ 12804 prefix_cmds="$SED"~ 12805 if test EXPORTS = "`$SED 1q $export_symbols`"; then 12806 prefix_cmds="$prefix_cmds -e 1d"; 12807 fi~ 12808 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 12809 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 12810 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 12811 emximp -o $lib $output_objdir/$libname.def' 12812 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 12813 enable_shared_with_static_runtimes=yes 12814 ;; 12815 12816 interix[3-9]*) 12817 hardcode_direct=no 12818 hardcode_shlibpath_var=no 12819 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 12820 export_dynamic_flag_spec='$wl-E' 12821 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12822 # Instead, shared libraries are loaded at an image base (0x10000000 by 12823 # default) and relocated if they conflict, which is a slow very memory 12824 # consuming and fragmenting process. To avoid this, we pick a random, 12825 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12826 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12827 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12828 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' 12829 ;; 12830 12831 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 12832 tmp_diet=no 12833 if test linux-dietlibc = "$host_os"; then 12834 case $cc_basename in 12835 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 12836 esac 12837 fi 12838 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 12839 && test no = "$tmp_diet" 12840 then 12841 tmp_addflag=' $pic_flag' 12842 tmp_sharedflag='-shared' 12843 case $cc_basename,$host_cpu in 12844 pgcc*) # Portland Group C compiler 12845 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' 12846 tmp_addflag=' $pic_flag' 12847 ;; 12848 pgf77* | pgf90* | pgf95* | pgfortran*) 12849 # Portland Group f77 and f90 compilers 12850 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' 12851 tmp_addflag=' $pic_flag -Mnomain' ;; 12852 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 12853 tmp_addflag=' -i_dynamic' ;; 12854 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 12855 tmp_addflag=' -i_dynamic -nofor_main' ;; 12856 ifc* | ifort*) # Intel Fortran compiler 12857 tmp_addflag=' -nofor_main' ;; 12858 lf95*) # Lahey Fortran 8.1 12859 whole_archive_flag_spec= 12860 tmp_sharedflag='--shared' ;; 12861 nagfor*) # NAGFOR 5.3 12862 tmp_sharedflag='-Wl,-shared' ;; 12863 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 12864 tmp_sharedflag='-qmkshrobj' 12865 tmp_addflag= ;; 12866 nvcc*) # Cuda Compiler Driver 2.2 12867 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' 12868 compiler_needs_object=yes 12869 ;; 12870 esac 12871 case `$CC -V 2>&1 | sed 5q` in 12872 *Sun\ C*) # Sun C 5.9 12873 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' 12874 compiler_needs_object=yes 12875 tmp_sharedflag='-G' ;; 12876 *Sun\ F*) # Sun Fortran 8.3 12877 tmp_sharedflag='-G' ;; 12878 esac 12879 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12880 12881 if test yes = "$supports_anon_versioning"; then 12882 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12883 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12884 echo "local: *; };" >> $output_objdir/$libname.ver~ 12885 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 12886 fi 12887 12888 case $cc_basename in 12889 tcc*) 12890 export_dynamic_flag_spec='-rdynamic' 12891 ;; 12892 xlf* | bgf* | bgxlf* | mpixlf*) 12893 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 12894 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 12895 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12896 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 12897 if test yes = "$supports_anon_versioning"; then 12898 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 12899 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12900 echo "local: *; };" >> $output_objdir/$libname.ver~ 12901 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 12902 fi 12903 ;; 12904 esac 12905 else 12906 ld_shlibs=no 12907 fi 12908 ;; 12909 12910 netbsd*) 12911 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 12913 wlarc= 12914 else 12915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12916 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12917 fi 12918 ;; 12919 12920 solaris*) 12921 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 12922 ld_shlibs=no 12923 cat <<_LT_EOF 1>&2 12924 12925*** Warning: The releases 2.8.* of the GNU linker cannot reliably 12926*** create shared libraries on Solaris systems. Therefore, libtool 12927*** is disabling shared libraries support. We urge you to upgrade GNU 12928*** binutils to release 2.9.1 or newer. Another option is to modify 12929*** your PATH or compiler configuration so that the native linker is 12930*** used, and then restart. 12931 12932_LT_EOF 12933 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12934 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12935 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12936 else 12937 ld_shlibs=no 12938 fi 12939 ;; 12940 12941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 12942 case `$LD -v 2>&1` in 12943 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 12944 ld_shlibs=no 12945 cat <<_LT_EOF 1>&2 12946 12947*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 12948*** reliably create shared libraries on SCO systems. Therefore, libtool 12949*** is disabling shared libraries support. We urge you to upgrade GNU 12950*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 12951*** your PATH or compiler configuration so that the native linker is 12952*** used, and then restart. 12953 12954_LT_EOF 12955 ;; 12956 *) 12957 # For security reasons, it is highly recommended that you always 12958 # use absolute paths for naming shared libraries, and exclude the 12959 # DT_RUNPATH tag from executables and libraries. But doing so 12960 # requires that you compile everything twice, which is a pain. 12961 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12962 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12965 else 12966 ld_shlibs=no 12967 fi 12968 ;; 12969 esac 12970 ;; 12971 12972 sunos4*) 12973 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12974 wlarc= 12975 hardcode_direct=yes 12976 hardcode_shlibpath_var=no 12977 ;; 12978 12979 *) 12980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12981 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 12982 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12983 else 12984 ld_shlibs=no 12985 fi 12986 ;; 12987 esac 12988 12989 if test no = "$ld_shlibs"; then 12990 runpath_var= 12991 hardcode_libdir_flag_spec= 12992 export_dynamic_flag_spec= 12993 whole_archive_flag_spec= 12994 fi 12995 else 12996 # PORTME fill in a description of your system's linker (not GNU ld) 12997 case $host_os in 12998 aix3*) 12999 allow_undefined_flag=unsupported 13000 always_export_symbols=yes 13001 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' 13002 # Note: this linker hardcodes the directories in LIBPATH if there 13003 # are no directories specified by -L. 13004 hardcode_minus_L=yes 13005 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 13006 # Neither direct hardcoding nor static linking is supported with a 13007 # broken collect2. 13008 hardcode_direct=unsupported 13009 fi 13010 ;; 13011 13012 aix[4-9]*) 13013 if test ia64 = "$host_cpu"; then 13014 # On IA64, the linker does run time linking by default, so we don't 13015 # have to do anything special. 13016 aix_use_runtimelinking=no 13017 exp_sym_flag='-Bexport' 13018 no_entry_flag= 13019 else 13020 # If we're using GNU nm, then we don't want the "-C" option. 13021 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 13022 # Without the "-l" option, or with the "-B" option, AIX nm treats 13023 # weak defined symbols like other global defined symbols, whereas 13024 # GNU nm marks them as "W". 13025 # While the 'weak' keyword is ignored in the Export File, we need 13026 # it in the Import File for the 'aix-soname' feature, so we have 13027 # to replace the "-B" option with "-P" for AIX nm. 13028 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13029 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 13030 else 13031 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 13032 fi 13033 aix_use_runtimelinking=no 13034 13035 # Test if we are trying to use run time linking or normal 13036 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13037 # have runtime linking enabled, and use it for executables. 13038 # For shared libraries, we enable/disable runtime linking 13039 # depending on the kind of the shared library created - 13040 # when "with_aix_soname,aix_use_runtimelinking" is: 13041 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13042 # "aix,yes" lib.so shared, rtl:yes, for executables 13043 # lib.a static archive 13044 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13045 # lib.a(lib.so.V) shared, rtl:no, for executables 13046 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13047 # lib.a(lib.so.V) shared, rtl:no 13048 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13049 # lib.a static archive 13050 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13051 for ld_flag in $LDFLAGS; do 13052 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 13053 aix_use_runtimelinking=yes 13054 break 13055 fi 13056 done 13057 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13058 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13059 # so we don't have lib.a shared libs to link our executables. 13060 # We have to force runtime linking in this case. 13061 aix_use_runtimelinking=yes 13062 LDFLAGS="$LDFLAGS -Wl,-brtl" 13063 fi 13064 ;; 13065 esac 13066 13067 exp_sym_flag='-bexport' 13068 no_entry_flag='-bnoentry' 13069 fi 13070 13071 # When large executables or shared objects are built, AIX ld can 13072 # have problems creating the table of contents. If linking a library 13073 # or program results in "error TOC overflow" add -mminimal-toc to 13074 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13075 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13076 13077 archive_cmds='' 13078 hardcode_direct=yes 13079 hardcode_direct_absolute=yes 13080 hardcode_libdir_separator=':' 13081 link_all_deplibs=yes 13082 file_list_spec='$wl-f,' 13083 case $with_aix_soname,$aix_use_runtimelinking in 13084 aix,*) ;; # traditional, no import file 13085 svr4,* | *,yes) # use import file 13086 # The Import File defines what to hardcode. 13087 hardcode_direct=no 13088 hardcode_direct_absolute=no 13089 ;; 13090 esac 13091 13092 if test yes = "$GCC"; then 13093 case $host_os in aix4.[012]|aix4.[012].*) 13094 # We only want to do this on AIX 4.2 and lower, the check 13095 # below for broken collect2 doesn't work under 4.3+ 13096 collect2name=`$CC -print-prog-name=collect2` 13097 if test -f "$collect2name" && 13098 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13099 then 13100 # We have reworked collect2 13101 : 13102 else 13103 # We have old collect2 13104 hardcode_direct=unsupported 13105 # It fails to find uninstalled libraries when the uninstalled 13106 # path is not listed in the libpath. Setting hardcode_minus_L 13107 # to unsupported forces relinking 13108 hardcode_minus_L=yes 13109 hardcode_libdir_flag_spec='-L$libdir' 13110 hardcode_libdir_separator= 13111 fi 13112 ;; 13113 esac 13114 shared_flag='-shared' 13115 if test yes = "$aix_use_runtimelinking"; then 13116 shared_flag="$shared_flag "'$wl-G' 13117 fi 13118 # Need to ensure runtime linking is disabled for the traditional 13119 # shared library, or the linker may eventually find shared libraries 13120 # /with/ Import File - we do not want to mix them. 13121 shared_flag_aix='-shared' 13122 shared_flag_svr4='-shared $wl-G' 13123 else 13124 # not using gcc 13125 if test ia64 = "$host_cpu"; then 13126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13127 # chokes on -Wl,-G. The following line is correct: 13128 shared_flag='-G' 13129 else 13130 if test yes = "$aix_use_runtimelinking"; then 13131 shared_flag='$wl-G' 13132 else 13133 shared_flag='$wl-bM:SRE' 13134 fi 13135 shared_flag_aix='$wl-bM:SRE' 13136 shared_flag_svr4='$wl-G' 13137 fi 13138 fi 13139 13140 export_dynamic_flag_spec='$wl-bexpall' 13141 # It seems that -bexpall does not export symbols beginning with 13142 # underscore (_), so it is better to generate a list of symbols to export. 13143 always_export_symbols=yes 13144 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13145 # Warning - without using the other runtime loading flags (-brtl), 13146 # -berok will link without error, but may produce a broken library. 13147 allow_undefined_flag='-berok' 13148 # Determine the default libpath from the value encoded in an 13149 # empty executable. 13150 if test set = "${lt_cv_aix_libpath+set}"; then 13151 aix_libpath=$lt_cv_aix_libpath 13152else 13153 if ${lt_cv_aix_libpath_+:} false; then : 13154 $as_echo_n "(cached) " >&6 13155else 13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13157/* end confdefs.h. */ 13158 13159#ifdef F77_DUMMY_MAIN 13160 13161# ifdef __cplusplus 13162 extern "C" 13163# endif 13164 int F77_DUMMY_MAIN() { return 1; } 13165 13166#endif 13167int 13168main () 13169{ 13170 13171 ; 13172 return 0; 13173} 13174_ACEOF 13175if ac_fn_c_try_link "$LINENO"; then : 13176 13177 lt_aix_libpath_sed=' 13178 /Import File Strings/,/^$/ { 13179 /^0/ { 13180 s/^0 *\([^ ]*\) *$/\1/ 13181 p 13182 } 13183 }' 13184 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13185 # Check for a 64-bit object if we didn't find anything. 13186 if test -z "$lt_cv_aix_libpath_"; then 13187 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13188 fi 13189fi 13190rm -f core conftest.err conftest.$ac_objext \ 13191 conftest$ac_exeext conftest.$ac_ext 13192 if test -z "$lt_cv_aix_libpath_"; then 13193 lt_cv_aix_libpath_=/usr/lib:/lib 13194 fi 13195 13196fi 13197 13198 aix_libpath=$lt_cv_aix_libpath_ 13199fi 13200 13201 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13202 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13203 else 13204 if test ia64 = "$host_cpu"; then 13205 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 13206 allow_undefined_flag="-z nodefs" 13207 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" 13208 else 13209 # Determine the default libpath from the value encoded in an 13210 # empty executable. 13211 if test set = "${lt_cv_aix_libpath+set}"; then 13212 aix_libpath=$lt_cv_aix_libpath 13213else 13214 if ${lt_cv_aix_libpath_+:} false; then : 13215 $as_echo_n "(cached) " >&6 13216else 13217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13218/* end confdefs.h. */ 13219 13220#ifdef F77_DUMMY_MAIN 13221 13222# ifdef __cplusplus 13223 extern "C" 13224# endif 13225 int F77_DUMMY_MAIN() { return 1; } 13226 13227#endif 13228int 13229main () 13230{ 13231 13232 ; 13233 return 0; 13234} 13235_ACEOF 13236if ac_fn_c_try_link "$LINENO"; then : 13237 13238 lt_aix_libpath_sed=' 13239 /Import File Strings/,/^$/ { 13240 /^0/ { 13241 s/^0 *\([^ ]*\) *$/\1/ 13242 p 13243 } 13244 }' 13245 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13246 # Check for a 64-bit object if we didn't find anything. 13247 if test -z "$lt_cv_aix_libpath_"; then 13248 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13249 fi 13250fi 13251rm -f core conftest.err conftest.$ac_objext \ 13252 conftest$ac_exeext conftest.$ac_ext 13253 if test -z "$lt_cv_aix_libpath_"; then 13254 lt_cv_aix_libpath_=/usr/lib:/lib 13255 fi 13256 13257fi 13258 13259 aix_libpath=$lt_cv_aix_libpath_ 13260fi 13261 13262 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 13263 # Warning - without using the other run time loading flags, 13264 # -berok will link without error, but may produce a broken library. 13265 no_undefined_flag=' $wl-bernotok' 13266 allow_undefined_flag=' $wl-berok' 13267 if test yes = "$with_gnu_ld"; then 13268 # We only use this code for GNU lds that support --whole-archive. 13269 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 13270 else 13271 # Exported symbols can be pulled into shared objects from archives 13272 whole_archive_flag_spec='$convenience' 13273 fi 13274 archive_cmds_need_lc=yes 13275 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13276 # -brtl affects multiple linker settings, -berok does not and is overridden later 13277 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13278 if test svr4 != "$with_aix_soname"; then 13279 # This is similar to how AIX traditionally builds its shared libraries. 13280 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13281 fi 13282 if test aix != "$with_aix_soname"; then 13283 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13284 else 13285 # used by -dlpreopen to get the symbols 13286 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13287 fi 13288 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 13289 fi 13290 fi 13291 ;; 13292 13293 amigaos*) 13294 case $host_cpu in 13295 powerpc) 13296 # see comment about AmigaOS4 .so support 13297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13298 archive_expsym_cmds='' 13299 ;; 13300 m68k) 13301 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)' 13302 hardcode_libdir_flag_spec='-L$libdir' 13303 hardcode_minus_L=yes 13304 ;; 13305 esac 13306 ;; 13307 13308 bsdi[45]*) 13309 export_dynamic_flag_spec=-rdynamic 13310 ;; 13311 13312 cygwin* | mingw* | pw32* | cegcc*) 13313 # When not using gcc, we currently assume that we are using 13314 # Microsoft Visual C++. 13315 # hardcode_libdir_flag_spec is actually meaningless, as there is 13316 # no search path for DLLs. 13317 case $cc_basename in 13318 cl*) 13319 # Native MSVC 13320 hardcode_libdir_flag_spec=' ' 13321 allow_undefined_flag=unsupported 13322 always_export_symbols=yes 13323 file_list_spec='@' 13324 # Tell ltmain to make .lib files, not .a files. 13325 libext=lib 13326 # Tell ltmain to make .dll files, not .so files. 13327 shrext_cmds=.dll 13328 # FIXME: Setting linknames here is a bad hack. 13329 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13330 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13331 cp "$export_symbols" "$output_objdir/$soname.def"; 13332 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13333 else 13334 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13335 fi~ 13336 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13337 linknames=' 13338 # The linker will not automatically build a static lib if we build a DLL. 13339 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 13340 enable_shared_with_static_runtimes=yes 13341 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13342 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13343 # Don't use ranlib 13344 old_postinstall_cmds='chmod 644 $oldlib' 13345 postlink_cmds='lt_outputfile="@OUTPUT@"~ 13346 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13347 case $lt_outputfile in 13348 *.exe|*.EXE) ;; 13349 *) 13350 lt_outputfile=$lt_outputfile.exe 13351 lt_tool_outputfile=$lt_tool_outputfile.exe 13352 ;; 13353 esac~ 13354 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13355 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13356 $RM "$lt_outputfile.manifest"; 13357 fi' 13358 ;; 13359 *) 13360 # Assume MSVC wrapper 13361 hardcode_libdir_flag_spec=' ' 13362 allow_undefined_flag=unsupported 13363 # Tell ltmain to make .lib files, not .a files. 13364 libext=lib 13365 # Tell ltmain to make .dll files, not .so files. 13366 shrext_cmds=.dll 13367 # FIXME: Setting linknames here is a bad hack. 13368 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13369 # The linker will automatically build a .lib file if we build a DLL. 13370 old_archive_from_new_cmds='true' 13371 # FIXME: Should let the user specify the lib program. 13372 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 13373 enable_shared_with_static_runtimes=yes 13374 ;; 13375 esac 13376 ;; 13377 13378 darwin* | rhapsody*) 13379 13380 13381 archive_cmds_need_lc=no 13382 hardcode_direct=no 13383 hardcode_automatic=yes 13384 hardcode_shlibpath_var=unsupported 13385 if test yes = "$lt_cv_ld_force_load"; then 13386 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\"`' 13387 13388 else 13389 whole_archive_flag_spec='' 13390 fi 13391 link_all_deplibs=yes 13392 allow_undefined_flag=$_lt_dar_allow_undefined 13393 case $cc_basename in 13394 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13395 *) _lt_dar_can_shared=$GCC ;; 13396 esac 13397 if test yes = "$_lt_dar_can_shared"; then 13398 output_verbose_link_cmd=func_echo_all 13399 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13400 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13401 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" 13402 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" 13403 13404 else 13405 ld_shlibs=no 13406 fi 13407 13408 ;; 13409 13410 dgux*) 13411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13412 hardcode_libdir_flag_spec='-L$libdir' 13413 hardcode_shlibpath_var=no 13414 ;; 13415 13416 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13417 # support. Future versions do this automatically, but an explicit c++rt0.o 13418 # does not break anything, and helps significantly (at the cost of a little 13419 # extra space). 13420 freebsd2.2*) 13421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13422 hardcode_libdir_flag_spec='-R$libdir' 13423 hardcode_direct=yes 13424 hardcode_shlibpath_var=no 13425 ;; 13426 13427 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13428 freebsd2.*) 13429 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13430 hardcode_direct=yes 13431 hardcode_minus_L=yes 13432 hardcode_shlibpath_var=no 13433 ;; 13434 13435 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13436 freebsd* | dragonfly*) 13437 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13438 hardcode_libdir_flag_spec='-R$libdir' 13439 hardcode_direct=yes 13440 hardcode_shlibpath_var=no 13441 ;; 13442 13443 hpux9*) 13444 if test yes = "$GCC"; then 13445 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13446 else 13447 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13448 fi 13449 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13450 hardcode_libdir_separator=: 13451 hardcode_direct=yes 13452 13453 # hardcode_minus_L: Not really in the search PATH, 13454 # but as the default location of the library. 13455 hardcode_minus_L=yes 13456 export_dynamic_flag_spec='$wl-E' 13457 ;; 13458 13459 hpux10*) 13460 if test yes,no = "$GCC,$with_gnu_ld"; then 13461 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13462 else 13463 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13464 fi 13465 if test no = "$with_gnu_ld"; then 13466 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13467 hardcode_libdir_separator=: 13468 hardcode_direct=yes 13469 hardcode_direct_absolute=yes 13470 export_dynamic_flag_spec='$wl-E' 13471 # hardcode_minus_L: Not really in the search PATH, 13472 # but as the default location of the library. 13473 hardcode_minus_L=yes 13474 fi 13475 ;; 13476 13477 hpux11*) 13478 if test yes,no = "$GCC,$with_gnu_ld"; then 13479 case $host_cpu in 13480 hppa*64*) 13481 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13482 ;; 13483 ia64*) 13484 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13485 ;; 13486 *) 13487 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13488 ;; 13489 esac 13490 else 13491 case $host_cpu in 13492 hppa*64*) 13493 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13494 ;; 13495 ia64*) 13496 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13497 ;; 13498 *) 13499 13500 # Older versions of the 11.00 compiler do not understand -b yet 13501 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 13503$as_echo_n "checking if $CC understands -b... " >&6; } 13504if ${lt_cv_prog_compiler__b+:} false; then : 13505 $as_echo_n "(cached) " >&6 13506else 13507 lt_cv_prog_compiler__b=no 13508 save_LDFLAGS=$LDFLAGS 13509 LDFLAGS="$LDFLAGS -b" 13510 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13511 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13512 # The linker can only warn and ignore the option if not recognized 13513 # So say no if there are warnings 13514 if test -s conftest.err; then 13515 # Append any errors to the config.log. 13516 cat conftest.err 1>&5 13517 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13518 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13519 if diff conftest.exp conftest.er2 >/dev/null; then 13520 lt_cv_prog_compiler__b=yes 13521 fi 13522 else 13523 lt_cv_prog_compiler__b=yes 13524 fi 13525 fi 13526 $RM -r conftest* 13527 LDFLAGS=$save_LDFLAGS 13528 13529fi 13530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 13531$as_echo "$lt_cv_prog_compiler__b" >&6; } 13532 13533if test yes = "$lt_cv_prog_compiler__b"; then 13534 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13535else 13536 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13537fi 13538 13539 ;; 13540 esac 13541 fi 13542 if test no = "$with_gnu_ld"; then 13543 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 13544 hardcode_libdir_separator=: 13545 13546 case $host_cpu in 13547 hppa*64*|ia64*) 13548 hardcode_direct=no 13549 hardcode_shlibpath_var=no 13550 ;; 13551 *) 13552 hardcode_direct=yes 13553 hardcode_direct_absolute=yes 13554 export_dynamic_flag_spec='$wl-E' 13555 13556 # hardcode_minus_L: Not really in the search PATH, 13557 # but as the default location of the library. 13558 hardcode_minus_L=yes 13559 ;; 13560 esac 13561 fi 13562 ;; 13563 13564 irix5* | irix6* | nonstopux*) 13565 if test yes = "$GCC"; then 13566 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13567 # Try to use the -exported_symbol ld option, if it does not 13568 # work, assume that -exports_file does not work either and 13569 # implicitly export all symbols. 13570 # This should be the same for all languages, so no per-tag cache variable. 13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 13572$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 13573if ${lt_cv_irix_exported_symbol+:} false; then : 13574 $as_echo_n "(cached) " >&6 13575else 13576 save_LDFLAGS=$LDFLAGS 13577 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13579/* end confdefs.h. */ 13580int foo (void) { return 0; } 13581_ACEOF 13582if ac_fn_c_try_link "$LINENO"; then : 13583 lt_cv_irix_exported_symbol=yes 13584else 13585 lt_cv_irix_exported_symbol=no 13586fi 13587rm -f core conftest.err conftest.$ac_objext \ 13588 conftest$ac_exeext conftest.$ac_ext 13589 LDFLAGS=$save_LDFLAGS 13590fi 13591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 13592$as_echo "$lt_cv_irix_exported_symbol" >&6; } 13593 if test yes = "$lt_cv_irix_exported_symbol"; then 13594 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 13595 fi 13596 else 13597 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' 13598 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' 13599 fi 13600 archive_cmds_need_lc='no' 13601 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13602 hardcode_libdir_separator=: 13603 inherit_rpath=yes 13604 link_all_deplibs=yes 13605 ;; 13606 13607 linux*) 13608 case $cc_basename in 13609 tcc*) 13610 # Fabrice Bellard et al's Tiny C Compiler 13611 ld_shlibs=yes 13612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13613 ;; 13614 esac 13615 ;; 13616 13617 netbsd*) 13618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13620 else 13621 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13622 fi 13623 hardcode_libdir_flag_spec='-R$libdir' 13624 hardcode_direct=yes 13625 hardcode_shlibpath_var=no 13626 ;; 13627 13628 newsos6) 13629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13630 hardcode_direct=yes 13631 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13632 hardcode_libdir_separator=: 13633 hardcode_shlibpath_var=no 13634 ;; 13635 13636 *nto* | *qnx*) 13637 ;; 13638 13639 openbsd* | bitrig*) 13640 if test -f /usr/libexec/ld.so; then 13641 hardcode_direct=yes 13642 hardcode_shlibpath_var=no 13643 hardcode_direct_absolute=yes 13644 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13646 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 13647 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13648 export_dynamic_flag_spec='$wl-E' 13649 else 13650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13651 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 13652 fi 13653 else 13654 ld_shlibs=no 13655 fi 13656 ;; 13657 13658 os2*) 13659 hardcode_libdir_flag_spec='-L$libdir' 13660 hardcode_minus_L=yes 13661 allow_undefined_flag=unsupported 13662 shrext_cmds=.dll 13663 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13664 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13665 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13666 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13667 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13669 emximp -o $lib $output_objdir/$libname.def' 13670 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13671 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13672 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13673 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13674 prefix_cmds="$SED"~ 13675 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13676 prefix_cmds="$prefix_cmds -e 1d"; 13677 fi~ 13678 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13679 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13680 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13681 emximp -o $lib $output_objdir/$libname.def' 13682 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13683 enable_shared_with_static_runtimes=yes 13684 ;; 13685 13686 osf3*) 13687 if test yes = "$GCC"; then 13688 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13689 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' 13690 else 13691 allow_undefined_flag=' -expect_unresolved \*' 13692 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' 13693 fi 13694 archive_cmds_need_lc='no' 13695 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13696 hardcode_libdir_separator=: 13697 ;; 13698 13699 osf4* | osf5*) # as osf3* with the addition of -msym flag 13700 if test yes = "$GCC"; then 13701 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 13702 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13703 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 13704 else 13705 allow_undefined_flag=' -expect_unresolved \*' 13706 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' 13707 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~ 13708 $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' 13709 13710 # Both c and cxx compiler support -rpath directly 13711 hardcode_libdir_flag_spec='-rpath $libdir' 13712 fi 13713 archive_cmds_need_lc='no' 13714 hardcode_libdir_separator=: 13715 ;; 13716 13717 solaris*) 13718 no_undefined_flag=' -z defs' 13719 if test yes = "$GCC"; then 13720 wlarc='$wl' 13721 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13722 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13723 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13724 else 13725 case `$CC -V 2>&1` in 13726 *"Compilers 5.0"*) 13727 wlarc='' 13728 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 13729 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13730 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 13731 ;; 13732 *) 13733 wlarc='$wl' 13734 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 13735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13736 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 13737 ;; 13738 esac 13739 fi 13740 hardcode_libdir_flag_spec='-R$libdir' 13741 hardcode_shlibpath_var=no 13742 case $host_os in 13743 solaris2.[0-5] | solaris2.[0-5].*) ;; 13744 *) 13745 # The compiler driver will combine and reorder linker options, 13746 # but understands '-z linker_flag'. GCC discards it without '$wl', 13747 # but is careful enough not to reorder. 13748 # Supported since Solaris 2.6 (maybe 2.5.1?) 13749 if test yes = "$GCC"; then 13750 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13751 else 13752 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 13753 fi 13754 ;; 13755 esac 13756 link_all_deplibs=yes 13757 ;; 13758 13759 sunos4*) 13760 if test sequent = "$host_vendor"; then 13761 # Use $CC to link under sequent, because it throws in some extra .o 13762 # files that make .init and .fini sections work. 13763 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13764 else 13765 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13766 fi 13767 hardcode_libdir_flag_spec='-L$libdir' 13768 hardcode_direct=yes 13769 hardcode_minus_L=yes 13770 hardcode_shlibpath_var=no 13771 ;; 13772 13773 sysv4) 13774 case $host_vendor in 13775 sni) 13776 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13777 hardcode_direct=yes # is this really true??? 13778 ;; 13779 siemens) 13780 ## LD is ld it makes a PLAMLIB 13781 ## CC just makes a GrossModule. 13782 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13783 reload_cmds='$CC -r -o $output$reload_objs' 13784 hardcode_direct=no 13785 ;; 13786 motorola) 13787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13788 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 13789 ;; 13790 esac 13791 runpath_var='LD_RUN_PATH' 13792 hardcode_shlibpath_var=no 13793 ;; 13794 13795 sysv4.3*) 13796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13797 hardcode_shlibpath_var=no 13798 export_dynamic_flag_spec='-Bexport' 13799 ;; 13800 13801 sysv4*MP*) 13802 if test -d /usr/nec; then 13803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13804 hardcode_shlibpath_var=no 13805 runpath_var=LD_RUN_PATH 13806 hardcode_runpath_var=yes 13807 ld_shlibs=yes 13808 fi 13809 ;; 13810 13811 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13812 no_undefined_flag='$wl-z,text' 13813 archive_cmds_need_lc=no 13814 hardcode_shlibpath_var=no 13815 runpath_var='LD_RUN_PATH' 13816 13817 if test yes = "$GCC"; then 13818 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13819 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13820 else 13821 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13822 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13823 fi 13824 ;; 13825 13826 sysv5* | sco3.2v5* | sco5v6*) 13827 # Note: We CANNOT use -z defs as we might desire, because we do not 13828 # link with -lc, and that would cause any symbols used from libc to 13829 # always be unresolved, which means just about no library would 13830 # ever link correctly. If we're not using GNU ld we use -z text 13831 # though, which does catch some bad symbols but isn't as heavy-handed 13832 # as -z defs. 13833 no_undefined_flag='$wl-z,text' 13834 allow_undefined_flag='$wl-z,nodefs' 13835 archive_cmds_need_lc=no 13836 hardcode_shlibpath_var=no 13837 hardcode_libdir_flag_spec='$wl-R,$libdir' 13838 hardcode_libdir_separator=':' 13839 link_all_deplibs=yes 13840 export_dynamic_flag_spec='$wl-Bexport' 13841 runpath_var='LD_RUN_PATH' 13842 13843 if test yes = "$GCC"; then 13844 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13845 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13846 else 13847 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13848 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13849 fi 13850 ;; 13851 13852 uts4*) 13853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13854 hardcode_libdir_flag_spec='-L$libdir' 13855 hardcode_shlibpath_var=no 13856 ;; 13857 13858 *) 13859 ld_shlibs=no 13860 ;; 13861 esac 13862 13863 if test sni = "$host_vendor"; then 13864 case $host in 13865 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13866 export_dynamic_flag_spec='$wl-Blargedynsym' 13867 ;; 13868 esac 13869 fi 13870 fi 13871 13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 13873$as_echo "$ld_shlibs" >&6; } 13874test no = "$ld_shlibs" && can_build_shared=no 13875 13876with_gnu_ld=$with_gnu_ld 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892# 13893# Do we need to explicitly link libc? 13894# 13895case "x$archive_cmds_need_lc" in 13896x|xyes) 13897 # Assume -lc should be added 13898 archive_cmds_need_lc=yes 13899 13900 if test yes,yes = "$GCC,$enable_shared"; then 13901 case $archive_cmds in 13902 *'~'*) 13903 # FIXME: we may have to deal with multi-command sequences. 13904 ;; 13905 '$CC '*) 13906 # Test whether the compiler implicitly links with -lc since on some 13907 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13908 # to ld, don't add -lc before -lgcc. 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13910$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13911if ${lt_cv_archive_cmds_need_lc+:} false; then : 13912 $as_echo_n "(cached) " >&6 13913else 13914 $RM conftest* 13915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13916 13917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13918 (eval $ac_compile) 2>&5 13919 ac_status=$? 13920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13921 test $ac_status = 0; } 2>conftest.err; then 13922 soname=conftest 13923 lib=conftest 13924 libobjs=conftest.$ac_objext 13925 deplibs= 13926 wl=$lt_prog_compiler_wl 13927 pic_flag=$lt_prog_compiler_pic 13928 compiler_flags=-v 13929 linker_flags=-v 13930 verstring= 13931 output_objdir=. 13932 libname=conftest 13933 lt_save_allow_undefined_flag=$allow_undefined_flag 13934 allow_undefined_flag= 13935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13936 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13937 ac_status=$? 13938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13939 test $ac_status = 0; } 13940 then 13941 lt_cv_archive_cmds_need_lc=no 13942 else 13943 lt_cv_archive_cmds_need_lc=yes 13944 fi 13945 allow_undefined_flag=$lt_save_allow_undefined_flag 13946 else 13947 cat conftest.err 1>&5 13948 fi 13949 $RM conftest* 13950 13951fi 13952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 13953$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 13954 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 13955 ;; 13956 esac 13957 fi 13958 ;; 13959esac 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14113$as_echo_n "checking dynamic linker characteristics... " >&6; } 14114 14115if test yes = "$GCC"; then 14116 case $host_os in 14117 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 14118 *) lt_awk_arg='/^libraries:/' ;; 14119 esac 14120 case $host_os in 14121 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 14122 *) lt_sed_strip_eq='s|=/|/|g' ;; 14123 esac 14124 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 14125 case $lt_search_path_spec in 14126 *\;*) 14127 # if the path contains ";" then we assume it to be the separator 14128 # otherwise default to the standard path separator (i.e. ":") - it is 14129 # assumed that no part of a normal pathname contains ";" but that should 14130 # okay in the real world where ";" in dirpaths is itself problematic. 14131 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 14132 ;; 14133 *) 14134 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 14135 ;; 14136 esac 14137 # Ok, now we have the path, separated by spaces, we can step through it 14138 # and add multilib dir if necessary... 14139 lt_tmp_lt_search_path_spec= 14140 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 14141 # ...but if some path component already ends with the multilib dir we assume 14142 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 14143 case "$lt_multi_os_dir; $lt_search_path_spec " in 14144 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 14145 lt_multi_os_dir= 14146 ;; 14147 esac 14148 for lt_sys_path in $lt_search_path_spec; do 14149 if test -d "$lt_sys_path$lt_multi_os_dir"; then 14150 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 14151 elif test -n "$lt_multi_os_dir"; then 14152 test -d "$lt_sys_path" && \ 14153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 14154 fi 14155 done 14156 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 14157BEGIN {RS = " "; FS = "/|\n";} { 14158 lt_foo = ""; 14159 lt_count = 0; 14160 for (lt_i = NF; lt_i > 0; lt_i--) { 14161 if ($lt_i != "" && $lt_i != ".") { 14162 if ($lt_i == "..") { 14163 lt_count++; 14164 } else { 14165 if (lt_count == 0) { 14166 lt_foo = "/" $lt_i lt_foo; 14167 } else { 14168 lt_count--; 14169 } 14170 } 14171 } 14172 } 14173 if (lt_foo != "") { lt_freq[lt_foo]++; } 14174 if (lt_freq[lt_foo] == 1) { print lt_foo; } 14175}'` 14176 # AWK program above erroneously prepends '/' to C:/dos/paths 14177 # for these hosts. 14178 case $host_os in 14179 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 14180 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 14181 esac 14182 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 14183else 14184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14185fi 14186library_names_spec= 14187libname_spec='lib$name' 14188soname_spec= 14189shrext_cmds=.so 14190postinstall_cmds= 14191postuninstall_cmds= 14192finish_cmds= 14193finish_eval= 14194shlibpath_var= 14195shlibpath_overrides_runpath=unknown 14196version_type=none 14197dynamic_linker="$host_os ld.so" 14198sys_lib_dlsearch_path_spec="/lib /usr/lib" 14199need_lib_prefix=unknown 14200hardcode_into_libs=no 14201 14202# when you set need_version to no, make sure it does not cause -set_version 14203# flags to be left without arguments 14204need_version=unknown 14205 14206 14207 14208case $host_os in 14209aix3*) 14210 version_type=linux # correct to gnu/linux during the next big refactor 14211 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14212 shlibpath_var=LIBPATH 14213 14214 # AIX 3 has no versioning support, so we append a major version to the name. 14215 soname_spec='$libname$release$shared_ext$major' 14216 ;; 14217 14218aix[4-9]*) 14219 version_type=linux # correct to gnu/linux during the next big refactor 14220 need_lib_prefix=no 14221 need_version=no 14222 hardcode_into_libs=yes 14223 if test ia64 = "$host_cpu"; then 14224 # AIX 5 supports IA64 14225 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14226 shlibpath_var=LD_LIBRARY_PATH 14227 else 14228 # With GCC up to 2.95.x, collect2 would create an import file 14229 # for dependence libraries. The import file would start with 14230 # the line '#! .'. This would cause the generated library to 14231 # depend on '.', always an invalid library. This was fixed in 14232 # development snapshots of GCC prior to 3.0. 14233 case $host_os in 14234 aix4 | aix4.[01] | aix4.[01].*) 14235 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14236 echo ' yes ' 14237 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14238 : 14239 else 14240 can_build_shared=no 14241 fi 14242 ;; 14243 esac 14244 # Using Import Files as archive members, it is possible to support 14245 # filename-based versioning of shared library archives on AIX. While 14246 # this would work for both with and without runtime linking, it will 14247 # prevent static linking of such archives. So we do filename-based 14248 # shared library versioning with .so extension only, which is used 14249 # when both runtime linking and shared linking is enabled. 14250 # Unfortunately, runtime linking may impact performance, so we do 14251 # not want this to be the default eventually. Also, we use the 14252 # versioned .so libs for executables only if there is the -brtl 14253 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14254 # To allow for filename-based versioning support, we need to create 14255 # libNAME.so.V as an archive file, containing: 14256 # *) an Import File, referring to the versioned filename of the 14257 # archive as well as the shared archive member, telling the 14258 # bitwidth (32 or 64) of that shared object, and providing the 14259 # list of exported symbols of that shared object, eventually 14260 # decorated with the 'weak' keyword 14261 # *) the shared object with the F_LOADONLY flag set, to really avoid 14262 # it being seen by the linker. 14263 # At run time we better use the real file rather than another symlink, 14264 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14265 14266 case $with_aix_soname,$aix_use_runtimelinking in 14267 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14268 # soname into executable. Probably we can add versioning support to 14269 # collect2, so additional links can be useful in future. 14270 aix,yes) # traditional libtool 14271 dynamic_linker='AIX unversionable lib.so' 14272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14273 # instead of lib<name>.a to let people know that these are not 14274 # typical AIX shared libraries. 14275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14276 ;; 14277 aix,no) # traditional AIX only 14278 dynamic_linker='AIX lib.a(lib.so.V)' 14279 # We preserve .a as extension for shared libraries through AIX4.2 14280 # and later when we are not doing run time linking. 14281 library_names_spec='$libname$release.a $libname.a' 14282 soname_spec='$libname$release$shared_ext$major' 14283 ;; 14284 svr4,*) # full svr4 only 14285 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14286 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14287 # We do not specify a path in Import Files, so LIBPATH fires. 14288 shlibpath_overrides_runpath=yes 14289 ;; 14290 *,yes) # both, prefer svr4 14291 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14292 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14293 # unpreferred sharedlib libNAME.a needs extra handling 14294 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 14295 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 14296 # We do not specify a path in Import Files, so LIBPATH fires. 14297 shlibpath_overrides_runpath=yes 14298 ;; 14299 *,no) # both, prefer aix 14300 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14301 library_names_spec='$libname$release.a $libname.a' 14302 soname_spec='$libname$release$shared_ext$major' 14303 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14304 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 14305 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 14306 ;; 14307 esac 14308 shlibpath_var=LIBPATH 14309 fi 14310 ;; 14311 14312amigaos*) 14313 case $host_cpu in 14314 powerpc) 14315 # Since July 2007 AmigaOS4 officially supports .so libraries. 14316 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14318 ;; 14319 m68k) 14320 library_names_spec='$libname.ixlibrary $libname.a' 14321 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14322 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14323 ;; 14324 esac 14325 ;; 14326 14327beos*) 14328 library_names_spec='$libname$shared_ext' 14329 dynamic_linker="$host_os ld.so" 14330 shlibpath_var=LIBRARY_PATH 14331 ;; 14332 14333bsdi[45]*) 14334 version_type=linux # correct to gnu/linux during the next big refactor 14335 need_version=no 14336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14337 soname_spec='$libname$release$shared_ext$major' 14338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14339 shlibpath_var=LD_LIBRARY_PATH 14340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14342 # the default ld.so.conf also contains /usr/contrib/lib and 14343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14344 # libtool to hard-code these into programs 14345 ;; 14346 14347cygwin* | mingw* | pw32* | cegcc*) 14348 version_type=windows 14349 shrext_cmds=.dll 14350 need_version=no 14351 need_lib_prefix=no 14352 14353 case $GCC,$cc_basename in 14354 yes,*) 14355 # gcc 14356 library_names_spec='$libname.dll.a' 14357 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14358 postinstall_cmds='base_file=`basename \$file`~ 14359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14360 dldir=$destdir/`dirname \$dlpath`~ 14361 test -d \$dldir || mkdir -p \$dldir~ 14362 $install_prog $dir/$dlname \$dldir/$dlname~ 14363 chmod a+x \$dldir/$dlname~ 14364 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14365 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14366 fi' 14367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14368 dlpath=$dir/\$dldll~ 14369 $RM \$dlpath' 14370 shlibpath_overrides_runpath=yes 14371 14372 case $host_os in 14373 cygwin*) 14374 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14375 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14376 14377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 14378 ;; 14379 mingw* | cegcc*) 14380 # MinGW DLLs use traditional 'lib' prefix 14381 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14382 ;; 14383 pw32*) 14384 # pw32 DLLs use 'pw' prefix rather than 'lib' 14385 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14386 ;; 14387 esac 14388 dynamic_linker='Win32 ld.exe' 14389 ;; 14390 14391 *,cl*) 14392 # Native MSVC 14393 libname_spec='$name' 14394 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14395 library_names_spec='$libname.dll.lib' 14396 14397 case $build_os in 14398 mingw*) 14399 sys_lib_search_path_spec= 14400 lt_save_ifs=$IFS 14401 IFS=';' 14402 for lt_path in $LIB 14403 do 14404 IFS=$lt_save_ifs 14405 # Let DOS variable expansion print the short 8.3 style file name. 14406 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14407 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14408 done 14409 IFS=$lt_save_ifs 14410 # Convert to MSYS style. 14411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14412 ;; 14413 cygwin*) 14414 # Convert to unix form, then to dos form, then back to unix form 14415 # but this time dos style (no spaces!) so that the unix form looks 14416 # like /cygdrive/c/PROGRA~1:/cygdr... 14417 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14418 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14419 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14420 ;; 14421 *) 14422 sys_lib_search_path_spec=$LIB 14423 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14424 # It is most probably a Windows format PATH. 14425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14426 else 14427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14428 fi 14429 # FIXME: find the short name or the path components, as spaces are 14430 # common. (e.g. "Program Files" -> "PROGRA~1") 14431 ;; 14432 esac 14433 14434 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14435 postinstall_cmds='base_file=`basename \$file`~ 14436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14437 dldir=$destdir/`dirname \$dlpath`~ 14438 test -d \$dldir || mkdir -p \$dldir~ 14439 $install_prog $dir/$dlname \$dldir/$dlname' 14440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14441 dlpath=$dir/\$dldll~ 14442 $RM \$dlpath' 14443 shlibpath_overrides_runpath=yes 14444 dynamic_linker='Win32 link.exe' 14445 ;; 14446 14447 *) 14448 # Assume MSVC wrapper 14449 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14450 dynamic_linker='Win32 ld.exe' 14451 ;; 14452 esac 14453 # FIXME: first we should search . and the directory the executable is in 14454 shlibpath_var=PATH 14455 ;; 14456 14457darwin* | rhapsody*) 14458 dynamic_linker="$host_os dyld" 14459 version_type=darwin 14460 need_lib_prefix=no 14461 need_version=no 14462 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14463 soname_spec='$libname$release$major$shared_ext' 14464 shlibpath_overrides_runpath=yes 14465 shlibpath_var=DYLD_LIBRARY_PATH 14466 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14467 14468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 14469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14470 ;; 14471 14472dgux*) 14473 version_type=linux # correct to gnu/linux during the next big refactor 14474 need_lib_prefix=no 14475 need_version=no 14476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14477 soname_spec='$libname$release$shared_ext$major' 14478 shlibpath_var=LD_LIBRARY_PATH 14479 ;; 14480 14481freebsd* | dragonfly*) 14482 # DragonFly does not have aout. When/if they implement a new 14483 # versioning mechanism, adjust this. 14484 if test -x /usr/bin/objformat; then 14485 objformat=`/usr/bin/objformat` 14486 else 14487 case $host_os in 14488 freebsd[23].*) objformat=aout ;; 14489 *) objformat=elf ;; 14490 esac 14491 fi 14492 version_type=freebsd-$objformat 14493 case $version_type in 14494 freebsd-elf*) 14495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14496 soname_spec='$libname$release$shared_ext$major' 14497 need_version=no 14498 need_lib_prefix=no 14499 ;; 14500 freebsd-*) 14501 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14502 need_version=yes 14503 ;; 14504 esac 14505 shlibpath_var=LD_LIBRARY_PATH 14506 case $host_os in 14507 freebsd2.*) 14508 shlibpath_overrides_runpath=yes 14509 ;; 14510 freebsd3.[01]* | freebsdelf3.[01]*) 14511 shlibpath_overrides_runpath=yes 14512 hardcode_into_libs=yes 14513 ;; 14514 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14515 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14516 shlibpath_overrides_runpath=no 14517 hardcode_into_libs=yes 14518 ;; 14519 *) # from 4.6 on, and DragonFly 14520 shlibpath_overrides_runpath=yes 14521 hardcode_into_libs=yes 14522 ;; 14523 esac 14524 ;; 14525 14526haiku*) 14527 version_type=linux # correct to gnu/linux during the next big refactor 14528 need_lib_prefix=no 14529 need_version=no 14530 dynamic_linker="$host_os runtime_loader" 14531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14532 soname_spec='$libname$release$shared_ext$major' 14533 shlibpath_var=LIBRARY_PATH 14534 shlibpath_overrides_runpath=no 14535 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14536 hardcode_into_libs=yes 14537 ;; 14538 14539hpux9* | hpux10* | hpux11*) 14540 # Give a soname corresponding to the major version so that dld.sl refuses to 14541 # link against other versions. 14542 version_type=sunos 14543 need_lib_prefix=no 14544 need_version=no 14545 case $host_cpu in 14546 ia64*) 14547 shrext_cmds='.so' 14548 hardcode_into_libs=yes 14549 dynamic_linker="$host_os dld.so" 14550 shlibpath_var=LD_LIBRARY_PATH 14551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14553 soname_spec='$libname$release$shared_ext$major' 14554 if test 32 = "$HPUX_IA64_MODE"; then 14555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14556 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14557 else 14558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14559 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14560 fi 14561 ;; 14562 hppa*64*) 14563 shrext_cmds='.sl' 14564 hardcode_into_libs=yes 14565 dynamic_linker="$host_os dld.sl" 14566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14569 soname_spec='$libname$release$shared_ext$major' 14570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14572 ;; 14573 *) 14574 shrext_cmds='.sl' 14575 dynamic_linker="$host_os dld.sl" 14576 shlibpath_var=SHLIB_PATH 14577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14579 soname_spec='$libname$release$shared_ext$major' 14580 ;; 14581 esac 14582 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14583 postinstall_cmds='chmod 555 $lib' 14584 # or fails outright, so override atomically: 14585 install_override_mode=555 14586 ;; 14587 14588interix[3-9]*) 14589 version_type=linux # correct to gnu/linux during the next big refactor 14590 need_lib_prefix=no 14591 need_version=no 14592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14593 soname_spec='$libname$release$shared_ext$major' 14594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14595 shlibpath_var=LD_LIBRARY_PATH 14596 shlibpath_overrides_runpath=no 14597 hardcode_into_libs=yes 14598 ;; 14599 14600irix5* | irix6* | nonstopux*) 14601 case $host_os in 14602 nonstopux*) version_type=nonstopux ;; 14603 *) 14604 if test yes = "$lt_cv_prog_gnu_ld"; then 14605 version_type=linux # correct to gnu/linux during the next big refactor 14606 else 14607 version_type=irix 14608 fi ;; 14609 esac 14610 need_lib_prefix=no 14611 need_version=no 14612 soname_spec='$libname$release$shared_ext$major' 14613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14614 case $host_os in 14615 irix5* | nonstopux*) 14616 libsuff= shlibsuff= 14617 ;; 14618 *) 14619 case $LD in # libtool.m4 will add one of these switches to LD 14620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14621 libsuff= shlibsuff= libmagic=32-bit;; 14622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14623 libsuff=32 shlibsuff=N32 libmagic=N32;; 14624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14625 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14626 *) libsuff= shlibsuff= libmagic=never-match;; 14627 esac 14628 ;; 14629 esac 14630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14631 shlibpath_overrides_runpath=no 14632 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14633 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14634 hardcode_into_libs=yes 14635 ;; 14636 14637# No shared lib support for Linux oldld, aout, or coff. 14638linux*oldld* | linux*aout* | linux*coff*) 14639 dynamic_linker=no 14640 ;; 14641 14642linux*android*) 14643 version_type=none # Android doesn't support versioned libraries. 14644 need_lib_prefix=no 14645 need_version=no 14646 library_names_spec='$libname$release$shared_ext' 14647 soname_spec='$libname$release$shared_ext' 14648 finish_cmds= 14649 shlibpath_var=LD_LIBRARY_PATH 14650 shlibpath_overrides_runpath=yes 14651 14652 # This implies no fast_install, which is unacceptable. 14653 # Some rework will be needed to allow for fast_install 14654 # before this can be enabled. 14655 hardcode_into_libs=yes 14656 14657 dynamic_linker='Android linker' 14658 # Don't embed -rpath directories since the linker doesn't support them. 14659 hardcode_libdir_flag_spec='-L$libdir' 14660 ;; 14661 14662# This must be glibc/ELF. 14663linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14664 version_type=linux # correct to gnu/linux during the next big refactor 14665 need_lib_prefix=no 14666 need_version=no 14667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14668 soname_spec='$libname$release$shared_ext$major' 14669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14670 shlibpath_var=LD_LIBRARY_PATH 14671 shlibpath_overrides_runpath=no 14672 14673 # Some binutils ld are patched to set DT_RUNPATH 14674 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14675 $as_echo_n "(cached) " >&6 14676else 14677 lt_cv_shlibpath_overrides_runpath=no 14678 save_LDFLAGS=$LDFLAGS 14679 save_libdir=$libdir 14680 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 14681 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 14682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14683/* end confdefs.h. */ 14684 14685#ifdef F77_DUMMY_MAIN 14686 14687# ifdef __cplusplus 14688 extern "C" 14689# endif 14690 int F77_DUMMY_MAIN() { return 1; } 14691 14692#endif 14693int 14694main () 14695{ 14696 14697 ; 14698 return 0; 14699} 14700_ACEOF 14701if ac_fn_c_try_link "$LINENO"; then : 14702 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14703 lt_cv_shlibpath_overrides_runpath=yes 14704fi 14705fi 14706rm -f core conftest.err conftest.$ac_objext \ 14707 conftest$ac_exeext conftest.$ac_ext 14708 LDFLAGS=$save_LDFLAGS 14709 libdir=$save_libdir 14710 14711fi 14712 14713 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14714 14715 # This implies no fast_install, which is unacceptable. 14716 # Some rework will be needed to allow for fast_install 14717 # before this can be enabled. 14718 hardcode_into_libs=yes 14719 14720 # Ideally, we could use ldconfig to report *all* directores which are 14721 # searched for libraries, however this is still not possible. Aside from not 14722 # being certain /sbin/ldconfig is available, command 14723 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14724 # even though it is searched at run-time. Try to do the best guess by 14725 # appending ld.so.conf contents (and includes) to the search path. 14726 if test -f /etc/ld.so.conf; then 14727 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' ' '` 14728 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14729 fi 14730 14731 # We used to test for /lib/ld.so.1 and disable shared libraries on 14732 # powerpc, because MkLinux only supported shared libraries with the 14733 # GNU dynamic linker. Since this was broken with cross compilers, 14734 # most powerpc-linux boxes support dynamic linking these days and 14735 # people can always --disable-shared, the test was removed, and we 14736 # assume the GNU/Linux dynamic linker is in use. 14737 dynamic_linker='GNU/Linux ld.so' 14738 ;; 14739 14740netbsd*) 14741 version_type=sunos 14742 need_lib_prefix=no 14743 need_version=no 14744 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14745 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14746 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14747 dynamic_linker='NetBSD (a.out) ld.so' 14748 else 14749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14750 soname_spec='$libname$release$shared_ext$major' 14751 dynamic_linker='NetBSD ld.elf_so' 14752 fi 14753 shlibpath_var=LD_LIBRARY_PATH 14754 shlibpath_overrides_runpath=yes 14755 hardcode_into_libs=yes 14756 ;; 14757 14758newsos6) 14759 version_type=linux # correct to gnu/linux during the next big refactor 14760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14761 shlibpath_var=LD_LIBRARY_PATH 14762 shlibpath_overrides_runpath=yes 14763 ;; 14764 14765*nto* | *qnx*) 14766 version_type=qnx 14767 need_lib_prefix=no 14768 need_version=no 14769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14770 soname_spec='$libname$release$shared_ext$major' 14771 shlibpath_var=LD_LIBRARY_PATH 14772 shlibpath_overrides_runpath=no 14773 hardcode_into_libs=yes 14774 dynamic_linker='ldqnx.so' 14775 ;; 14776 14777openbsd* | bitrig*) 14778 version_type=sunos 14779 sys_lib_dlsearch_path_spec=/usr/lib 14780 need_lib_prefix=no 14781 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14782 need_version=no 14783 else 14784 need_version=yes 14785 fi 14786 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14788 shlibpath_var=LD_LIBRARY_PATH 14789 shlibpath_overrides_runpath=yes 14790 ;; 14791 14792os2*) 14793 libname_spec='$name' 14794 version_type=windows 14795 shrext_cmds=.dll 14796 need_version=no 14797 need_lib_prefix=no 14798 # OS/2 can only load a DLL with a base name of 8 characters or less. 14799 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 14800 v=$($ECHO $release$versuffix | tr -d .-); 14801 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 14802 $ECHO $n$v`$shared_ext' 14803 library_names_spec='${libname}_dll.$libext' 14804 dynamic_linker='OS/2 ld.exe' 14805 shlibpath_var=BEGINLIBPATH 14806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14808 postinstall_cmds='base_file=`basename \$file`~ 14809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 14810 dldir=$destdir/`dirname \$dlpath`~ 14811 test -d \$dldir || mkdir -p \$dldir~ 14812 $install_prog $dir/$dlname \$dldir/$dlname~ 14813 chmod a+x \$dldir/$dlname~ 14814 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14815 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14816 fi' 14817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 14818 dlpath=$dir/\$dldll~ 14819 $RM \$dlpath' 14820 ;; 14821 14822osf3* | osf4* | osf5*) 14823 version_type=osf 14824 need_lib_prefix=no 14825 need_version=no 14826 soname_spec='$libname$release$shared_ext$major' 14827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14828 shlibpath_var=LD_LIBRARY_PATH 14829 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14831 ;; 14832 14833rdos*) 14834 dynamic_linker=no 14835 ;; 14836 14837solaris*) 14838 version_type=linux # correct to gnu/linux during the next big refactor 14839 need_lib_prefix=no 14840 need_version=no 14841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14842 soname_spec='$libname$release$shared_ext$major' 14843 shlibpath_var=LD_LIBRARY_PATH 14844 shlibpath_overrides_runpath=yes 14845 hardcode_into_libs=yes 14846 # ldd complains unless libraries are executable 14847 postinstall_cmds='chmod +x $lib' 14848 ;; 14849 14850sunos4*) 14851 version_type=sunos 14852 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14853 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14854 shlibpath_var=LD_LIBRARY_PATH 14855 shlibpath_overrides_runpath=yes 14856 if test yes = "$with_gnu_ld"; then 14857 need_lib_prefix=no 14858 fi 14859 need_version=yes 14860 ;; 14861 14862sysv4 | sysv4.3*) 14863 version_type=linux # correct to gnu/linux during the next big refactor 14864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14865 soname_spec='$libname$release$shared_ext$major' 14866 shlibpath_var=LD_LIBRARY_PATH 14867 case $host_vendor in 14868 sni) 14869 shlibpath_overrides_runpath=no 14870 need_lib_prefix=no 14871 runpath_var=LD_RUN_PATH 14872 ;; 14873 siemens) 14874 need_lib_prefix=no 14875 ;; 14876 motorola) 14877 need_lib_prefix=no 14878 need_version=no 14879 shlibpath_overrides_runpath=no 14880 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14881 ;; 14882 esac 14883 ;; 14884 14885sysv4*MP*) 14886 if test -d /usr/nec; then 14887 version_type=linux # correct to gnu/linux during the next big refactor 14888 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 14889 soname_spec='$libname$shared_ext.$major' 14890 shlibpath_var=LD_LIBRARY_PATH 14891 fi 14892 ;; 14893 14894sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14895 version_type=sco 14896 need_lib_prefix=no 14897 need_version=no 14898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 14899 soname_spec='$libname$release$shared_ext$major' 14900 shlibpath_var=LD_LIBRARY_PATH 14901 shlibpath_overrides_runpath=yes 14902 hardcode_into_libs=yes 14903 if test yes = "$with_gnu_ld"; then 14904 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14905 else 14906 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14907 case $host_os in 14908 sco3.2v5*) 14909 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14910 ;; 14911 esac 14912 fi 14913 sys_lib_dlsearch_path_spec='/usr/lib' 14914 ;; 14915 14916tpf*) 14917 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14918 version_type=linux # correct to gnu/linux during the next big refactor 14919 need_lib_prefix=no 14920 need_version=no 14921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14922 shlibpath_var=LD_LIBRARY_PATH 14923 shlibpath_overrides_runpath=no 14924 hardcode_into_libs=yes 14925 ;; 14926 14927uts4*) 14928 version_type=linux # correct to gnu/linux during the next big refactor 14929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14930 soname_spec='$libname$release$shared_ext$major' 14931 shlibpath_var=LD_LIBRARY_PATH 14932 ;; 14933 14934*) 14935 dynamic_linker=no 14936 ;; 14937esac 14938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14939$as_echo "$dynamic_linker" >&6; } 14940test no = "$dynamic_linker" && can_build_shared=no 14941 14942variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14943if test yes = "$GCC"; then 14944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14945fi 14946 14947if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 14948 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 14949fi 14950 14951if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 14952 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 14953fi 14954 14955# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 14956configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 14957 14958# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 14959func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 14960 14961# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 14962configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15061$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15062hardcode_action= 15063if test -n "$hardcode_libdir_flag_spec" || 15064 test -n "$runpath_var" || 15065 test yes = "$hardcode_automatic"; then 15066 15067 # We can hardcode non-existent directories. 15068 if test no != "$hardcode_direct" && 15069 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15070 # have to relink, otherwise we might link with an installed library 15071 # when we should be linking with a yet-to-be-installed one 15072 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 15073 test no != "$hardcode_minus_L"; then 15074 # Linking always hardcodes the temporary library directory. 15075 hardcode_action=relink 15076 else 15077 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15078 hardcode_action=immediate 15079 fi 15080else 15081 # We cannot hardcode anything, or else we can only hardcode existing 15082 # directories. 15083 hardcode_action=unsupported 15084fi 15085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 15086$as_echo "$hardcode_action" >&6; } 15087 15088if test relink = "$hardcode_action" || 15089 test yes = "$inherit_rpath"; then 15090 # Fast installation is not supported 15091 enable_fast_install=no 15092elif test yes = "$shlibpath_overrides_runpath" || 15093 test no = "$enable_shared"; then 15094 # Fast installation is not necessary 15095 enable_fast_install=needless 15096fi 15097 15098 15099 15100 15101 15102 15103 if test yes != "$enable_dlopen"; then 15104 enable_dlopen=unknown 15105 enable_dlopen_self=unknown 15106 enable_dlopen_self_static=unknown 15107else 15108 lt_cv_dlopen=no 15109 lt_cv_dlopen_libs= 15110 15111 case $host_os in 15112 beos*) 15113 lt_cv_dlopen=load_add_on 15114 lt_cv_dlopen_libs= 15115 lt_cv_dlopen_self=yes 15116 ;; 15117 15118 mingw* | pw32* | cegcc*) 15119 lt_cv_dlopen=LoadLibrary 15120 lt_cv_dlopen_libs= 15121 ;; 15122 15123 cygwin*) 15124 lt_cv_dlopen=dlopen 15125 lt_cv_dlopen_libs= 15126 ;; 15127 15128 darwin*) 15129 # if libdl is installed we need to link against it 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15131$as_echo_n "checking for dlopen in -ldl... " >&6; } 15132if ${ac_cv_lib_dl_dlopen+:} false; then : 15133 $as_echo_n "(cached) " >&6 15134else 15135 ac_check_lib_save_LIBS=$LIBS 15136LIBS="-ldl $LIBS" 15137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15138/* end confdefs.h. */ 15139 15140/* Override any GCC internal prototype to avoid an error. 15141 Use char because int might match the return type of a GCC 15142 builtin and then its argument prototype would still apply. */ 15143#ifdef __cplusplus 15144extern "C" 15145#endif 15146char dlopen (); 15147#ifdef F77_DUMMY_MAIN 15148 15149# ifdef __cplusplus 15150 extern "C" 15151# endif 15152 int F77_DUMMY_MAIN() { return 1; } 15153 15154#endif 15155int 15156main () 15157{ 15158return dlopen (); 15159 ; 15160 return 0; 15161} 15162_ACEOF 15163if ac_fn_c_try_link "$LINENO"; then : 15164 ac_cv_lib_dl_dlopen=yes 15165else 15166 ac_cv_lib_dl_dlopen=no 15167fi 15168rm -f core conftest.err conftest.$ac_objext \ 15169 conftest$ac_exeext conftest.$ac_ext 15170LIBS=$ac_check_lib_save_LIBS 15171fi 15172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15173$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15174if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15175 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15176else 15177 15178 lt_cv_dlopen=dyld 15179 lt_cv_dlopen_libs= 15180 lt_cv_dlopen_self=yes 15181 15182fi 15183 15184 ;; 15185 15186 tpf*) 15187 # Don't try to run any link tests for TPF. We know it's impossible 15188 # because TPF is a cross-compiler, and we know how we open DSOs. 15189 lt_cv_dlopen=dlopen 15190 lt_cv_dlopen_libs= 15191 lt_cv_dlopen_self=no 15192 ;; 15193 15194 *) 15195 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 15196if test "x$ac_cv_func_shl_load" = xyes; then : 15197 lt_cv_dlopen=shl_load 15198else 15199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 15200$as_echo_n "checking for shl_load in -ldld... " >&6; } 15201if ${ac_cv_lib_dld_shl_load+:} false; then : 15202 $as_echo_n "(cached) " >&6 15203else 15204 ac_check_lib_save_LIBS=$LIBS 15205LIBS="-ldld $LIBS" 15206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15207/* end confdefs.h. */ 15208 15209/* Override any GCC internal prototype to avoid an error. 15210 Use char because int might match the return type of a GCC 15211 builtin and then its argument prototype would still apply. */ 15212#ifdef __cplusplus 15213extern "C" 15214#endif 15215char shl_load (); 15216#ifdef F77_DUMMY_MAIN 15217 15218# ifdef __cplusplus 15219 extern "C" 15220# endif 15221 int F77_DUMMY_MAIN() { return 1; } 15222 15223#endif 15224int 15225main () 15226{ 15227return shl_load (); 15228 ; 15229 return 0; 15230} 15231_ACEOF 15232if ac_fn_c_try_link "$LINENO"; then : 15233 ac_cv_lib_dld_shl_load=yes 15234else 15235 ac_cv_lib_dld_shl_load=no 15236fi 15237rm -f core conftest.err conftest.$ac_objext \ 15238 conftest$ac_exeext conftest.$ac_ext 15239LIBS=$ac_check_lib_save_LIBS 15240fi 15241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 15242$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 15243if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 15244 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 15245else 15246 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 15247if test "x$ac_cv_func_dlopen" = xyes; then : 15248 lt_cv_dlopen=dlopen 15249else 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 15251$as_echo_n "checking for dlopen in -ldl... " >&6; } 15252if ${ac_cv_lib_dl_dlopen+:} false; then : 15253 $as_echo_n "(cached) " >&6 15254else 15255 ac_check_lib_save_LIBS=$LIBS 15256LIBS="-ldl $LIBS" 15257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15258/* end confdefs.h. */ 15259 15260/* Override any GCC internal prototype to avoid an error. 15261 Use char because int might match the return type of a GCC 15262 builtin and then its argument prototype would still apply. */ 15263#ifdef __cplusplus 15264extern "C" 15265#endif 15266char dlopen (); 15267#ifdef F77_DUMMY_MAIN 15268 15269# ifdef __cplusplus 15270 extern "C" 15271# endif 15272 int F77_DUMMY_MAIN() { return 1; } 15273 15274#endif 15275int 15276main () 15277{ 15278return dlopen (); 15279 ; 15280 return 0; 15281} 15282_ACEOF 15283if ac_fn_c_try_link "$LINENO"; then : 15284 ac_cv_lib_dl_dlopen=yes 15285else 15286 ac_cv_lib_dl_dlopen=no 15287fi 15288rm -f core conftest.err conftest.$ac_objext \ 15289 conftest$ac_exeext conftest.$ac_ext 15290LIBS=$ac_check_lib_save_LIBS 15291fi 15292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 15293$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 15294if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 15295 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 15296else 15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 15298$as_echo_n "checking for dlopen in -lsvld... " >&6; } 15299if ${ac_cv_lib_svld_dlopen+:} false; then : 15300 $as_echo_n "(cached) " >&6 15301else 15302 ac_check_lib_save_LIBS=$LIBS 15303LIBS="-lsvld $LIBS" 15304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15305/* end confdefs.h. */ 15306 15307/* Override any GCC internal prototype to avoid an error. 15308 Use char because int might match the return type of a GCC 15309 builtin and then its argument prototype would still apply. */ 15310#ifdef __cplusplus 15311extern "C" 15312#endif 15313char dlopen (); 15314#ifdef F77_DUMMY_MAIN 15315 15316# ifdef __cplusplus 15317 extern "C" 15318# endif 15319 int F77_DUMMY_MAIN() { return 1; } 15320 15321#endif 15322int 15323main () 15324{ 15325return dlopen (); 15326 ; 15327 return 0; 15328} 15329_ACEOF 15330if ac_fn_c_try_link "$LINENO"; then : 15331 ac_cv_lib_svld_dlopen=yes 15332else 15333 ac_cv_lib_svld_dlopen=no 15334fi 15335rm -f core conftest.err conftest.$ac_objext \ 15336 conftest$ac_exeext conftest.$ac_ext 15337LIBS=$ac_check_lib_save_LIBS 15338fi 15339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 15340$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 15341if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 15342 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 15343else 15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 15345$as_echo_n "checking for dld_link in -ldld... " >&6; } 15346if ${ac_cv_lib_dld_dld_link+:} false; then : 15347 $as_echo_n "(cached) " >&6 15348else 15349 ac_check_lib_save_LIBS=$LIBS 15350LIBS="-ldld $LIBS" 15351cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15352/* end confdefs.h. */ 15353 15354/* Override any GCC internal prototype to avoid an error. 15355 Use char because int might match the return type of a GCC 15356 builtin and then its argument prototype would still apply. */ 15357#ifdef __cplusplus 15358extern "C" 15359#endif 15360char dld_link (); 15361#ifdef F77_DUMMY_MAIN 15362 15363# ifdef __cplusplus 15364 extern "C" 15365# endif 15366 int F77_DUMMY_MAIN() { return 1; } 15367 15368#endif 15369int 15370main () 15371{ 15372return dld_link (); 15373 ; 15374 return 0; 15375} 15376_ACEOF 15377if ac_fn_c_try_link "$LINENO"; then : 15378 ac_cv_lib_dld_dld_link=yes 15379else 15380 ac_cv_lib_dld_dld_link=no 15381fi 15382rm -f core conftest.err conftest.$ac_objext \ 15383 conftest$ac_exeext conftest.$ac_ext 15384LIBS=$ac_check_lib_save_LIBS 15385fi 15386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 15387$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 15388if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 15389 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 15390fi 15391 15392 15393fi 15394 15395 15396fi 15397 15398 15399fi 15400 15401 15402fi 15403 15404 15405fi 15406 15407 ;; 15408 esac 15409 15410 if test no = "$lt_cv_dlopen"; then 15411 enable_dlopen=no 15412 else 15413 enable_dlopen=yes 15414 fi 15415 15416 case $lt_cv_dlopen in 15417 dlopen) 15418 save_CPPFLAGS=$CPPFLAGS 15419 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 15420 15421 save_LDFLAGS=$LDFLAGS 15422 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 15423 15424 save_LIBS=$LIBS 15425 LIBS="$lt_cv_dlopen_libs $LIBS" 15426 15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 15428$as_echo_n "checking whether a program can dlopen itself... " >&6; } 15429if ${lt_cv_dlopen_self+:} false; then : 15430 $as_echo_n "(cached) " >&6 15431else 15432 if test yes = "$cross_compiling"; then : 15433 lt_cv_dlopen_self=cross 15434else 15435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15436 lt_status=$lt_dlunknown 15437 cat > conftest.$ac_ext <<_LT_EOF 15438#line $LINENO "configure" 15439#include "confdefs.h" 15440 15441#if HAVE_DLFCN_H 15442#include <dlfcn.h> 15443#endif 15444 15445#include <stdio.h> 15446 15447#ifdef RTLD_GLOBAL 15448# define LT_DLGLOBAL RTLD_GLOBAL 15449#else 15450# ifdef DL_GLOBAL 15451# define LT_DLGLOBAL DL_GLOBAL 15452# else 15453# define LT_DLGLOBAL 0 15454# endif 15455#endif 15456 15457/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15458 find out it does not work in some platform. */ 15459#ifndef LT_DLLAZY_OR_NOW 15460# ifdef RTLD_LAZY 15461# define LT_DLLAZY_OR_NOW RTLD_LAZY 15462# else 15463# ifdef DL_LAZY 15464# define LT_DLLAZY_OR_NOW DL_LAZY 15465# else 15466# ifdef RTLD_NOW 15467# define LT_DLLAZY_OR_NOW RTLD_NOW 15468# else 15469# ifdef DL_NOW 15470# define LT_DLLAZY_OR_NOW DL_NOW 15471# else 15472# define LT_DLLAZY_OR_NOW 0 15473# endif 15474# endif 15475# endif 15476# endif 15477#endif 15478 15479/* When -fvisibility=hidden is used, assume the code has been annotated 15480 correspondingly for the symbols needed. */ 15481#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15482int fnord () __attribute__((visibility("default"))); 15483#endif 15484 15485int fnord () { return 42; } 15486int main () 15487{ 15488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15489 int status = $lt_dlunknown; 15490 15491 if (self) 15492 { 15493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15494 else 15495 { 15496 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15497 else puts (dlerror ()); 15498 } 15499 /* dlclose (self); */ 15500 } 15501 else 15502 puts (dlerror ()); 15503 15504 return status; 15505} 15506_LT_EOF 15507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15508 (eval $ac_link) 2>&5 15509 ac_status=$? 15510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15511 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15512 (./conftest; exit; ) >&5 2>/dev/null 15513 lt_status=$? 15514 case x$lt_status in 15515 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 15516 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 15517 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 15518 esac 15519 else : 15520 # compilation failed 15521 lt_cv_dlopen_self=no 15522 fi 15523fi 15524rm -fr conftest* 15525 15526 15527fi 15528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 15529$as_echo "$lt_cv_dlopen_self" >&6; } 15530 15531 if test yes = "$lt_cv_dlopen_self"; then 15532 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 15534$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 15535if ${lt_cv_dlopen_self_static+:} false; then : 15536 $as_echo_n "(cached) " >&6 15537else 15538 if test yes = "$cross_compiling"; then : 15539 lt_cv_dlopen_self_static=cross 15540else 15541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 15542 lt_status=$lt_dlunknown 15543 cat > conftest.$ac_ext <<_LT_EOF 15544#line $LINENO "configure" 15545#include "confdefs.h" 15546 15547#if HAVE_DLFCN_H 15548#include <dlfcn.h> 15549#endif 15550 15551#include <stdio.h> 15552 15553#ifdef RTLD_GLOBAL 15554# define LT_DLGLOBAL RTLD_GLOBAL 15555#else 15556# ifdef DL_GLOBAL 15557# define LT_DLGLOBAL DL_GLOBAL 15558# else 15559# define LT_DLGLOBAL 0 15560# endif 15561#endif 15562 15563/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 15564 find out it does not work in some platform. */ 15565#ifndef LT_DLLAZY_OR_NOW 15566# ifdef RTLD_LAZY 15567# define LT_DLLAZY_OR_NOW RTLD_LAZY 15568# else 15569# ifdef DL_LAZY 15570# define LT_DLLAZY_OR_NOW DL_LAZY 15571# else 15572# ifdef RTLD_NOW 15573# define LT_DLLAZY_OR_NOW RTLD_NOW 15574# else 15575# ifdef DL_NOW 15576# define LT_DLLAZY_OR_NOW DL_NOW 15577# else 15578# define LT_DLLAZY_OR_NOW 0 15579# endif 15580# endif 15581# endif 15582# endif 15583#endif 15584 15585/* When -fvisibility=hidden is used, assume the code has been annotated 15586 correspondingly for the symbols needed. */ 15587#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 15588int fnord () __attribute__((visibility("default"))); 15589#endif 15590 15591int fnord () { return 42; } 15592int main () 15593{ 15594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 15595 int status = $lt_dlunknown; 15596 15597 if (self) 15598 { 15599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 15600 else 15601 { 15602 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 15603 else puts (dlerror ()); 15604 } 15605 /* dlclose (self); */ 15606 } 15607 else 15608 puts (dlerror ()); 15609 15610 return status; 15611} 15612_LT_EOF 15613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 15614 (eval $ac_link) 2>&5 15615 ac_status=$? 15616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15617 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 15618 (./conftest; exit; ) >&5 2>/dev/null 15619 lt_status=$? 15620 case x$lt_status in 15621 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 15622 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 15623 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 15624 esac 15625 else : 15626 # compilation failed 15627 lt_cv_dlopen_self_static=no 15628 fi 15629fi 15630rm -fr conftest* 15631 15632 15633fi 15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 15635$as_echo "$lt_cv_dlopen_self_static" >&6; } 15636 fi 15637 15638 CPPFLAGS=$save_CPPFLAGS 15639 LDFLAGS=$save_LDFLAGS 15640 LIBS=$save_LIBS 15641 ;; 15642 esac 15643 15644 case $lt_cv_dlopen_self in 15645 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 15646 *) enable_dlopen_self=unknown ;; 15647 esac 15648 15649 case $lt_cv_dlopen_self_static in 15650 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 15651 *) enable_dlopen_self_static=unknown ;; 15652 esac 15653fi 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671striplib= 15672old_striplib= 15673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 15674$as_echo_n "checking whether stripping libraries is possible... " >&6; } 15675if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 15676 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15677 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15679$as_echo "yes" >&6; } 15680else 15681# FIXME - insert some real tests, host_os isn't really good enough 15682 case $host_os in 15683 darwin*) 15684 if test -n "$STRIP"; then 15685 striplib="$STRIP -x" 15686 old_striplib="$STRIP -S" 15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15688$as_echo "yes" >&6; } 15689 else 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15691$as_echo "no" >&6; } 15692 fi 15693 ;; 15694 *) 15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15696$as_echo "no" >&6; } 15697 ;; 15698 esac 15699fi 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 # Report what library types will actually be built 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15714$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15716$as_echo "$can_build_shared" >&6; } 15717 15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15719$as_echo_n "checking whether to build shared libraries... " >&6; } 15720 test no = "$can_build_shared" && enable_shared=no 15721 15722 # On AIX, shared libraries and static libraries use the same namespace, and 15723 # are all built from PIC. 15724 case $host_os in 15725 aix3*) 15726 test yes = "$enable_shared" && enable_static=no 15727 if test -n "$RANLIB"; then 15728 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15729 postinstall_cmds='$RANLIB $lib' 15730 fi 15731 ;; 15732 15733 aix[4-9]*) 15734 if test ia64 != "$host_cpu"; then 15735 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15736 yes,aix,yes) ;; # shared object as lib.so file only 15737 yes,svr4,*) ;; # shared object as lib.so archive member only 15738 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15739 esac 15740 fi 15741 ;; 15742 esac 15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15744$as_echo "$enable_shared" >&6; } 15745 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15747$as_echo_n "checking whether to build static libraries... " >&6; } 15748 # Make sure either enable_shared or enable_static is yes. 15749 test yes = "$enable_shared" || enable_static=yes 15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15751$as_echo "$enable_static" >&6; } 15752 15753 15754 15755 15756fi 15757ac_ext=c 15758ac_cpp='$CPP $CPPFLAGS' 15759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15761ac_compiler_gnu=$ac_cv_c_compiler_gnu 15762 15763CC=$lt_save_CC 15764 15765 15766 15767 ac_ext=f 15768ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 15769ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15770ac_compiler_gnu=$ac_cv_f77_compiler_gnu 15771 15772if test -z "$F77" || test no = "$F77"; then 15773 _lt_disable_F77=yes 15774fi 15775 15776archive_cmds_need_lc_F77=no 15777allow_undefined_flag_F77= 15778always_export_symbols_F77=no 15779archive_expsym_cmds_F77= 15780export_dynamic_flag_spec_F77= 15781hardcode_direct_F77=no 15782hardcode_direct_absolute_F77=no 15783hardcode_libdir_flag_spec_F77= 15784hardcode_libdir_separator_F77= 15785hardcode_minus_L_F77=no 15786hardcode_automatic_F77=no 15787inherit_rpath_F77=no 15788module_cmds_F77= 15789module_expsym_cmds_F77= 15790link_all_deplibs_F77=unknown 15791old_archive_cmds_F77=$old_archive_cmds 15792reload_flag_F77=$reload_flag 15793reload_cmds_F77=$reload_cmds 15794no_undefined_flag_F77= 15795whole_archive_flag_spec_F77= 15796enable_shared_with_static_runtimes_F77=no 15797 15798# Source file extension for f77 test sources. 15799ac_ext=f 15800 15801# Object file extension for compiled f77 test sources. 15802objext=o 15803objext_F77=$objext 15804 15805# No sense in running all these tests if we already determined that 15806# the F77 compiler isn't working. Some variables (like enable_shared) 15807# are currently assumed to apply to all compilers on this platform, 15808# and will be corrupted by setting them based on a non-working compiler. 15809if test yes != "$_lt_disable_F77"; then 15810 # Code to be used in simple compile tests 15811 lt_simple_compile_test_code="\ 15812 subroutine t 15813 return 15814 end 15815" 15816 15817 # Code to be used in simple link tests 15818 lt_simple_link_test_code="\ 15819 program t 15820 end 15821" 15822 15823 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15824 15825 15826 15827 15828 15829 15830# If no C compiler was specified, use CC. 15831LTCC=${LTCC-"$CC"} 15832 15833# If no C compiler flags were specified, use CFLAGS. 15834LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15835 15836# Allow CC to be a program name with arguments. 15837compiler=$CC 15838 15839 15840 # save warnings/boilerplate of simple test code 15841 ac_outfile=conftest.$ac_objext 15842echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15843eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15844_lt_compiler_boilerplate=`cat conftest.err` 15845$RM conftest* 15846 15847 ac_outfile=conftest.$ac_objext 15848echo "$lt_simple_link_test_code" >conftest.$ac_ext 15849eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15850_lt_linker_boilerplate=`cat conftest.err` 15851$RM -r conftest* 15852 15853 15854 # Allow CC to be a program name with arguments. 15855 lt_save_CC=$CC 15856 lt_save_GCC=$GCC 15857 lt_save_CFLAGS=$CFLAGS 15858 CC=${F77-"f77"} 15859 CFLAGS=$FFLAGS 15860 compiler=$CC 15861 compiler_F77=$CC 15862 func_cc_basename $compiler 15863cc_basename=$func_cc_basename_result 15864 15865 GCC=$G77 15866 if test -n "$compiler"; then 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 15868$as_echo_n "checking if libtool supports shared libraries... " >&6; } 15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 15870$as_echo "$can_build_shared" >&6; } 15871 15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 15873$as_echo_n "checking whether to build shared libraries... " >&6; } 15874 test no = "$can_build_shared" && enable_shared=no 15875 15876 # On AIX, shared libraries and static libraries use the same namespace, and 15877 # are all built from PIC. 15878 case $host_os in 15879 aix3*) 15880 test yes = "$enable_shared" && enable_static=no 15881 if test -n "$RANLIB"; then 15882 archive_cmds="$archive_cmds~\$RANLIB \$lib" 15883 postinstall_cmds='$RANLIB $lib' 15884 fi 15885 ;; 15886 aix[4-9]*) 15887 if test ia64 != "$host_cpu"; then 15888 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 15889 yes,aix,yes) ;; # shared object as lib.so file only 15890 yes,svr4,*) ;; # shared object as lib.so archive member only 15891 yes,*) enable_static=no ;; # shared object in lib.a archive as well 15892 esac 15893 fi 15894 ;; 15895 esac 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 15897$as_echo "$enable_shared" >&6; } 15898 15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 15900$as_echo_n "checking whether to build static libraries... " >&6; } 15901 # Make sure either enable_shared or enable_static is yes. 15902 test yes = "$enable_shared" || enable_static=yes 15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 15904$as_echo "$enable_static" >&6; } 15905 15906 GCC_F77=$G77 15907 LD_F77=$LD 15908 15909 ## CAVEAT EMPTOR: 15910 ## There is no encapsulation within the following macros, do not change 15911 ## the running order or otherwise move them around unless you know exactly 15912 ## what you are doing... 15913 lt_prog_compiler_wl_F77= 15914lt_prog_compiler_pic_F77= 15915lt_prog_compiler_static_F77= 15916 15917 15918 if test yes = "$GCC"; then 15919 lt_prog_compiler_wl_F77='-Wl,' 15920 lt_prog_compiler_static_F77='-static' 15921 15922 case $host_os in 15923 aix*) 15924 # All AIX code is PIC. 15925 if test ia64 = "$host_cpu"; then 15926 # AIX 5 now supports IA64 processor 15927 lt_prog_compiler_static_F77='-Bstatic' 15928 fi 15929 lt_prog_compiler_pic_F77='-fPIC' 15930 ;; 15931 15932 amigaos*) 15933 case $host_cpu in 15934 powerpc) 15935 # see comment about AmigaOS4 .so support 15936 lt_prog_compiler_pic_F77='-fPIC' 15937 ;; 15938 m68k) 15939 # FIXME: we need at least 68020 code to build shared libraries, but 15940 # adding the '-m68020' flag to GCC prevents building anything better, 15941 # like '-m68040'. 15942 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 15943 ;; 15944 esac 15945 ;; 15946 15947 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15948 # PIC is the default for these OSes. 15949 ;; 15950 15951 mingw* | cygwin* | pw32* | os2* | cegcc*) 15952 # This hack is so that the source file can tell whether it is being 15953 # built for inclusion in a dll (and should export symbols for example). 15954 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15955 # (--disable-auto-import) libraries 15956 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 15957 case $host_os in 15958 os2*) 15959 lt_prog_compiler_static_F77='$wl-static' 15960 ;; 15961 esac 15962 ;; 15963 15964 darwin* | rhapsody*) 15965 # PIC is the default on this platform 15966 # Common symbols not allowed in MH_DYLIB files 15967 lt_prog_compiler_pic_F77='-fno-common' 15968 ;; 15969 15970 haiku*) 15971 # PIC is the default for Haiku. 15972 # The "-static" flag exists, but is broken. 15973 lt_prog_compiler_static_F77= 15974 ;; 15975 15976 hpux*) 15977 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15978 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15979 # sets the default TLS model and affects inlining. 15980 case $host_cpu in 15981 hppa*64*) 15982 # +Z the default 15983 ;; 15984 *) 15985 lt_prog_compiler_pic_F77='-fPIC' 15986 ;; 15987 esac 15988 ;; 15989 15990 interix[3-9]*) 15991 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15992 # Instead, we relocate shared libraries at runtime. 15993 ;; 15994 15995 msdosdjgpp*) 15996 # Just because we use GCC doesn't mean we suddenly get shared libraries 15997 # on systems that don't support them. 15998 lt_prog_compiler_can_build_shared_F77=no 15999 enable_shared=no 16000 ;; 16001 16002 *nto* | *qnx*) 16003 # QNX uses GNU C++, but need to define -shared option too, otherwise 16004 # it will coredump. 16005 lt_prog_compiler_pic_F77='-fPIC -shared' 16006 ;; 16007 16008 sysv4*MP*) 16009 if test -d /usr/nec; then 16010 lt_prog_compiler_pic_F77=-Kconform_pic 16011 fi 16012 ;; 16013 16014 *) 16015 lt_prog_compiler_pic_F77='-fPIC' 16016 ;; 16017 esac 16018 16019 case $cc_basename in 16020 nvcc*) # Cuda Compiler Driver 2.2 16021 lt_prog_compiler_wl_F77='-Xlinker ' 16022 if test -n "$lt_prog_compiler_pic_F77"; then 16023 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" 16024 fi 16025 ;; 16026 esac 16027 else 16028 # PORTME Check for flag to pass linker flags through the system compiler. 16029 case $host_os in 16030 aix*) 16031 lt_prog_compiler_wl_F77='-Wl,' 16032 if test ia64 = "$host_cpu"; then 16033 # AIX 5 now supports IA64 processor 16034 lt_prog_compiler_static_F77='-Bstatic' 16035 else 16036 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 16037 fi 16038 ;; 16039 16040 darwin* | rhapsody*) 16041 # PIC is the default on this platform 16042 # Common symbols not allowed in MH_DYLIB files 16043 lt_prog_compiler_pic_F77='-fno-common' 16044 case $cc_basename in 16045 nagfor*) 16046 # NAG Fortran compiler 16047 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 16048 lt_prog_compiler_pic_F77='-PIC' 16049 lt_prog_compiler_static_F77='-Bstatic' 16050 ;; 16051 esac 16052 ;; 16053 16054 mingw* | cygwin* | pw32* | os2* | cegcc*) 16055 # This hack is so that the source file can tell whether it is being 16056 # built for inclusion in a dll (and should export symbols for example). 16057 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 16058 case $host_os in 16059 os2*) 16060 lt_prog_compiler_static_F77='$wl-static' 16061 ;; 16062 esac 16063 ;; 16064 16065 hpux9* | hpux10* | hpux11*) 16066 lt_prog_compiler_wl_F77='-Wl,' 16067 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16068 # not for PA HP-UX. 16069 case $host_cpu in 16070 hppa*64*|ia64*) 16071 # +Z the default 16072 ;; 16073 *) 16074 lt_prog_compiler_pic_F77='+Z' 16075 ;; 16076 esac 16077 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16078 lt_prog_compiler_static_F77='$wl-a ${wl}archive' 16079 ;; 16080 16081 irix5* | irix6* | nonstopux*) 16082 lt_prog_compiler_wl_F77='-Wl,' 16083 # PIC (with -KPIC) is the default. 16084 lt_prog_compiler_static_F77='-non_shared' 16085 ;; 16086 16087 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16088 case $cc_basename in 16089 # old Intel for x86_64, which still supported -KPIC. 16090 ecc*) 16091 lt_prog_compiler_wl_F77='-Wl,' 16092 lt_prog_compiler_pic_F77='-KPIC' 16093 lt_prog_compiler_static_F77='-static' 16094 ;; 16095 # icc used to be incompatible with GCC. 16096 # ICC 10 doesn't accept -KPIC any more. 16097 icc* | ifort*) 16098 lt_prog_compiler_wl_F77='-Wl,' 16099 lt_prog_compiler_pic_F77='-fPIC' 16100 lt_prog_compiler_static_F77='-static' 16101 ;; 16102 # Lahey Fortran 8.1. 16103 lf95*) 16104 lt_prog_compiler_wl_F77='-Wl,' 16105 lt_prog_compiler_pic_F77='--shared' 16106 lt_prog_compiler_static_F77='--static' 16107 ;; 16108 nagfor*) 16109 # NAG Fortran compiler 16110 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 16111 lt_prog_compiler_pic_F77='-PIC' 16112 lt_prog_compiler_static_F77='-Bstatic' 16113 ;; 16114 tcc*) 16115 # Fabrice Bellard et al's Tiny C Compiler 16116 lt_prog_compiler_wl_F77='-Wl,' 16117 lt_prog_compiler_pic_F77='-fPIC' 16118 lt_prog_compiler_static_F77='-static' 16119 ;; 16120 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16121 # Portland Group compilers (*not* the Pentium gcc compiler, 16122 # which looks to be a dead project) 16123 lt_prog_compiler_wl_F77='-Wl,' 16124 lt_prog_compiler_pic_F77='-fpic' 16125 lt_prog_compiler_static_F77='-Bstatic' 16126 ;; 16127 ccc*) 16128 lt_prog_compiler_wl_F77='-Wl,' 16129 # All Alpha code is PIC. 16130 lt_prog_compiler_static_F77='-non_shared' 16131 ;; 16132 xl* | bgxl* | bgf* | mpixl*) 16133 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16134 lt_prog_compiler_wl_F77='-Wl,' 16135 lt_prog_compiler_pic_F77='-qpic' 16136 lt_prog_compiler_static_F77='-qstaticlink' 16137 ;; 16138 *) 16139 case `$CC -V 2>&1 | sed 5q` in 16140 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16141 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16142 lt_prog_compiler_pic_F77='-KPIC' 16143 lt_prog_compiler_static_F77='-Bstatic' 16144 lt_prog_compiler_wl_F77='' 16145 ;; 16146 *Sun\ F* | *Sun*Fortran*) 16147 lt_prog_compiler_pic_F77='-KPIC' 16148 lt_prog_compiler_static_F77='-Bstatic' 16149 lt_prog_compiler_wl_F77='-Qoption ld ' 16150 ;; 16151 *Sun\ C*) 16152 # Sun C 5.9 16153 lt_prog_compiler_pic_F77='-KPIC' 16154 lt_prog_compiler_static_F77='-Bstatic' 16155 lt_prog_compiler_wl_F77='-Wl,' 16156 ;; 16157 *Intel*\ [CF]*Compiler*) 16158 lt_prog_compiler_wl_F77='-Wl,' 16159 lt_prog_compiler_pic_F77='-fPIC' 16160 lt_prog_compiler_static_F77='-static' 16161 ;; 16162 *Portland\ Group*) 16163 lt_prog_compiler_wl_F77='-Wl,' 16164 lt_prog_compiler_pic_F77='-fpic' 16165 lt_prog_compiler_static_F77='-Bstatic' 16166 ;; 16167 esac 16168 ;; 16169 esac 16170 ;; 16171 16172 newsos6) 16173 lt_prog_compiler_pic_F77='-KPIC' 16174 lt_prog_compiler_static_F77='-Bstatic' 16175 ;; 16176 16177 *nto* | *qnx*) 16178 # QNX uses GNU C++, but need to define -shared option too, otherwise 16179 # it will coredump. 16180 lt_prog_compiler_pic_F77='-fPIC -shared' 16181 ;; 16182 16183 osf3* | osf4* | osf5*) 16184 lt_prog_compiler_wl_F77='-Wl,' 16185 # All OSF/1 code is PIC. 16186 lt_prog_compiler_static_F77='-non_shared' 16187 ;; 16188 16189 rdos*) 16190 lt_prog_compiler_static_F77='-non_shared' 16191 ;; 16192 16193 solaris*) 16194 lt_prog_compiler_pic_F77='-KPIC' 16195 lt_prog_compiler_static_F77='-Bstatic' 16196 case $cc_basename in 16197 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16198 lt_prog_compiler_wl_F77='-Qoption ld ';; 16199 *) 16200 lt_prog_compiler_wl_F77='-Wl,';; 16201 esac 16202 ;; 16203 16204 sunos4*) 16205 lt_prog_compiler_wl_F77='-Qoption ld ' 16206 lt_prog_compiler_pic_F77='-PIC' 16207 lt_prog_compiler_static_F77='-Bstatic' 16208 ;; 16209 16210 sysv4 | sysv4.2uw2* | sysv4.3*) 16211 lt_prog_compiler_wl_F77='-Wl,' 16212 lt_prog_compiler_pic_F77='-KPIC' 16213 lt_prog_compiler_static_F77='-Bstatic' 16214 ;; 16215 16216 sysv4*MP*) 16217 if test -d /usr/nec; then 16218 lt_prog_compiler_pic_F77='-Kconform_pic' 16219 lt_prog_compiler_static_F77='-Bstatic' 16220 fi 16221 ;; 16222 16223 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16224 lt_prog_compiler_wl_F77='-Wl,' 16225 lt_prog_compiler_pic_F77='-KPIC' 16226 lt_prog_compiler_static_F77='-Bstatic' 16227 ;; 16228 16229 unicos*) 16230 lt_prog_compiler_wl_F77='-Wl,' 16231 lt_prog_compiler_can_build_shared_F77=no 16232 ;; 16233 16234 uts4*) 16235 lt_prog_compiler_pic_F77='-pic' 16236 lt_prog_compiler_static_F77='-Bstatic' 16237 ;; 16238 16239 *) 16240 lt_prog_compiler_can_build_shared_F77=no 16241 ;; 16242 esac 16243 fi 16244 16245 16246if test "$ax_cv_c_compiler_vendor" = "fujitsu"; then 16247 case $host_cpu in 16248 sparc64*) 16249 lt_prog_compiler_pic_F77='-KPIC' 16250 ;; 16251 *) 16252 ;; 16253 esac 16254fi 16255 16256case $host_os in 16257 # For platforms that do not support PIC, -DPIC is meaningless: 16258 *djgpp*) 16259 lt_prog_compiler_pic_F77= 16260 ;; 16261 *) 16262 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 16263 ;; 16264esac 16265 16266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16267$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 16268if ${lt_cv_prog_compiler_pic_F77+:} false; then : 16269 $as_echo_n "(cached) " >&6 16270else 16271 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 16272fi 16273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 16274$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } 16275lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 16276 16277# 16278# Check to make sure the PIC flag actually works. 16279# 16280if test -n "$lt_prog_compiler_pic_F77"; then 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 16282$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 16283if ${lt_cv_prog_compiler_pic_works_F77+:} false; then : 16284 $as_echo_n "(cached) " >&6 16285else 16286 lt_cv_prog_compiler_pic_works_F77=no 16287 ac_outfile=conftest.$ac_objext 16288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16289 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment 16290 # Insert the option either (1) after the last *FLAGS variable, or 16291 # (2) before a word containing "conftest.", or (3) at the end. 16292 # Note that $ac_compile itself does not contain backslashes and begins 16293 # with a dollar sign (not a hyphen), so the echo should work correctly. 16294 # The option is referenced via a variable to avoid confusing sed. 16295 lt_compile=`echo "$ac_compile" | $SED \ 16296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16298 -e 's:$: $lt_compiler_flag:'` 16299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16300 (eval "$lt_compile" 2>conftest.err) 16301 ac_status=$? 16302 cat conftest.err >&5 16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16304 if (exit $ac_status) && test -s "$ac_outfile"; then 16305 # The compiler can only warn and ignore the option if not recognized 16306 # So say no if there are warnings other than the usual output. 16307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16310 lt_cv_prog_compiler_pic_works_F77=yes 16311 fi 16312 fi 16313 $RM conftest* 16314 16315fi 16316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 16317$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 16318 16319if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then 16320 case $lt_prog_compiler_pic_F77 in 16321 "" | " "*) ;; 16322 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 16323 esac 16324else 16325 lt_prog_compiler_pic_F77= 16326 lt_prog_compiler_can_build_shared_F77=no 16327fi 16328 16329fi 16330 16331 16332 16333 16334 16335# 16336# Check to make sure the static flag actually works. 16337# 16338wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 16339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16340$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16341if ${lt_cv_prog_compiler_static_works_F77+:} false; then : 16342 $as_echo_n "(cached) " >&6 16343else 16344 lt_cv_prog_compiler_static_works_F77=no 16345 save_LDFLAGS=$LDFLAGS 16346 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16347 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16348 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16349 # The linker can only warn and ignore the option if not recognized 16350 # So say no if there are warnings 16351 if test -s conftest.err; then 16352 # Append any errors to the config.log. 16353 cat conftest.err 1>&5 16354 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16356 if diff conftest.exp conftest.er2 >/dev/null; then 16357 lt_cv_prog_compiler_static_works_F77=yes 16358 fi 16359 else 16360 lt_cv_prog_compiler_static_works_F77=yes 16361 fi 16362 fi 16363 $RM -r conftest* 16364 LDFLAGS=$save_LDFLAGS 16365 16366fi 16367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 16368$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 16369 16370if test yes = "$lt_cv_prog_compiler_static_works_F77"; then 16371 : 16372else 16373 lt_prog_compiler_static_F77= 16374fi 16375 16376 16377 16378 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16380$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16381if ${lt_cv_prog_compiler_c_o_F77+:} false; then : 16382 $as_echo_n "(cached) " >&6 16383else 16384 lt_cv_prog_compiler_c_o_F77=no 16385 $RM -r conftest 2>/dev/null 16386 mkdir conftest 16387 cd conftest 16388 mkdir out 16389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16390 16391 lt_compiler_flag="-o out/conftest2.$ac_objext" 16392 # Insert the option either (1) after the last *FLAGS variable, or 16393 # (2) before a word containing "conftest.", or (3) at the end. 16394 # Note that $ac_compile itself does not contain backslashes and begins 16395 # with a dollar sign (not a hyphen), so the echo should work correctly. 16396 lt_compile=`echo "$ac_compile" | $SED \ 16397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16399 -e 's:$: $lt_compiler_flag:'` 16400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16401 (eval "$lt_compile" 2>out/conftest.err) 16402 ac_status=$? 16403 cat out/conftest.err >&5 16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16405 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16406 then 16407 # The compiler can only warn and ignore the option if not recognized 16408 # So say no if there are warnings 16409 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16412 lt_cv_prog_compiler_c_o_F77=yes 16413 fi 16414 fi 16415 chmod u+w . 2>&5 16416 $RM conftest* 16417 # SGI C++ compiler will create directory out/ii_files/ for 16418 # template instantiation 16419 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16420 $RM out/* && rmdir out 16421 cd .. 16422 $RM -r conftest 16423 $RM conftest* 16424 16425fi 16426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 16427$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 16428 16429 16430 16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16432$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16433if ${lt_cv_prog_compiler_c_o_F77+:} false; then : 16434 $as_echo_n "(cached) " >&6 16435else 16436 lt_cv_prog_compiler_c_o_F77=no 16437 $RM -r conftest 2>/dev/null 16438 mkdir conftest 16439 cd conftest 16440 mkdir out 16441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16442 16443 lt_compiler_flag="-o out/conftest2.$ac_objext" 16444 # Insert the option either (1) after the last *FLAGS variable, or 16445 # (2) before a word containing "conftest.", or (3) at the end. 16446 # Note that $ac_compile itself does not contain backslashes and begins 16447 # with a dollar sign (not a hyphen), so the echo should work correctly. 16448 lt_compile=`echo "$ac_compile" | $SED \ 16449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16451 -e 's:$: $lt_compiler_flag:'` 16452 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16453 (eval "$lt_compile" 2>out/conftest.err) 16454 ac_status=$? 16455 cat out/conftest.err >&5 16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16457 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16458 then 16459 # The compiler can only warn and ignore the option if not recognized 16460 # So say no if there are warnings 16461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16462 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16463 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16464 lt_cv_prog_compiler_c_o_F77=yes 16465 fi 16466 fi 16467 chmod u+w . 2>&5 16468 $RM conftest* 16469 # SGI C++ compiler will create directory out/ii_files/ for 16470 # template instantiation 16471 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16472 $RM out/* && rmdir out 16473 cd .. 16474 $RM -r conftest 16475 $RM conftest* 16476 16477fi 16478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 16479$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 16480 16481 16482 16483 16484hard_links=nottested 16485if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then 16486 # do not overwrite the value of need_locks provided by the user 16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16488$as_echo_n "checking if we can lock with hard links... " >&6; } 16489 hard_links=yes 16490 $RM conftest* 16491 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16492 touch conftest.a 16493 ln conftest.a conftest.b 2>&5 || hard_links=no 16494 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16496$as_echo "$hard_links" >&6; } 16497 if test no = "$hard_links"; then 16498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16499$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16500 need_locks=warn 16501 fi 16502else 16503 need_locks=no 16504fi 16505 16506 16507 16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16509$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16510 16511 runpath_var= 16512 allow_undefined_flag_F77= 16513 always_export_symbols_F77=no 16514 archive_cmds_F77= 16515 archive_expsym_cmds_F77= 16516 compiler_needs_object_F77=no 16517 enable_shared_with_static_runtimes_F77=no 16518 export_dynamic_flag_spec_F77= 16519 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16520 hardcode_automatic_F77=no 16521 hardcode_direct_F77=no 16522 hardcode_direct_absolute_F77=no 16523 hardcode_libdir_flag_spec_F77= 16524 hardcode_libdir_separator_F77= 16525 hardcode_minus_L_F77=no 16526 hardcode_shlibpath_var_F77=unsupported 16527 inherit_rpath_F77=no 16528 link_all_deplibs_F77=unknown 16529 module_cmds_F77= 16530 module_expsym_cmds_F77= 16531 old_archive_from_new_cmds_F77= 16532 old_archive_from_expsyms_cmds_F77= 16533 thread_safe_flag_spec_F77= 16534 whole_archive_flag_spec_F77= 16535 # include_expsyms should be a list of space-separated symbols to be *always* 16536 # included in the symbol list 16537 include_expsyms_F77= 16538 # exclude_expsyms can be an extended regexp of symbols to exclude 16539 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16540 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16541 # as well as any symbol that contains 'd'. 16542 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16544 # platforms (ab)use it in PIC code, but their linkers get confused if 16545 # the symbol is explicitly referenced. Since portable code cannot 16546 # rely on this symbol name, it's probably fine to never include it in 16547 # preloaded symbol tables. 16548 # Exclude shared library initialization/finalization symbols. 16549 extract_expsyms_cmds= 16550 16551 case $host_os in 16552 cygwin* | mingw* | pw32* | cegcc*) 16553 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16554 # When not using gcc, we currently assume that we are using 16555 # Microsoft Visual C++. 16556 if test yes != "$GCC"; then 16557 with_gnu_ld=no 16558 fi 16559 ;; 16560 interix*) 16561 # we just hope/assume this is gcc and not c89 (= MSVC++) 16562 with_gnu_ld=yes 16563 ;; 16564 openbsd* | bitrig*) 16565 with_gnu_ld=no 16566 ;; 16567 esac 16568 16569 ld_shlibs_F77=yes 16570 16571 # On some targets, GNU ld is compatible enough with the native linker 16572 # that we're better off using the native interface for both. 16573 lt_use_gnu_ld_interface=no 16574 if test yes = "$with_gnu_ld"; then 16575 case $host_os in 16576 aix*) 16577 # The AIX port of GNU ld has always aspired to compatibility 16578 # with the native linker. However, as the warning in the GNU ld 16579 # block says, versions before 2.19.5* couldn't really create working 16580 # shared libraries, regardless of the interface used. 16581 case `$LD -v 2>&1` in 16582 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16583 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16584 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16585 *) 16586 lt_use_gnu_ld_interface=yes 16587 ;; 16588 esac 16589 ;; 16590 *) 16591 lt_use_gnu_ld_interface=yes 16592 ;; 16593 esac 16594 fi 16595 16596 if test yes = "$lt_use_gnu_ld_interface"; then 16597 # If archive_cmds runs LD, not CC, wlarc should be empty 16598 wlarc='$wl' 16599 16600 # Set some defaults for GNU ld with shared library support. These 16601 # are reset later if shared libraries are not supported. Putting them 16602 # here allows them to be overridden if necessary. 16603 runpath_var=LD_RUN_PATH 16604 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 16605 export_dynamic_flag_spec_F77='$wl--export-dynamic' 16606 # ancient GNU ld didn't support --whole-archive et. al. 16607 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16608 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16609 else 16610 whole_archive_flag_spec_F77= 16611 fi 16612 supports_anon_versioning=no 16613 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 16614 *GNU\ gold*) supports_anon_versioning=yes ;; 16615 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16616 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16617 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16618 *\ 2.11.*) ;; # other 2.11 versions 16619 *) supports_anon_versioning=yes ;; 16620 esac 16621 16622 # See if GNU ld supports shared libraries. 16623 case $host_os in 16624 aix[3-9]*) 16625 # On AIX/PPC, the GNU linker is very broken 16626 if test ia64 != "$host_cpu"; then 16627 ld_shlibs_F77=no 16628 cat <<_LT_EOF 1>&2 16629 16630*** Warning: the GNU linker, at least up to release 2.19, is reported 16631*** to be unable to reliably create shared libraries on AIX. 16632*** Therefore, libtool is disabling shared libraries support. If you 16633*** really care for shared libraries, you may want to install binutils 16634*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16635*** You will then need to restart the configuration process. 16636 16637_LT_EOF 16638 fi 16639 ;; 16640 16641 amigaos*) 16642 case $host_cpu in 16643 powerpc) 16644 # see comment about AmigaOS4 .so support 16645 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16646 archive_expsym_cmds_F77='' 16647 ;; 16648 m68k) 16649 archive_cmds_F77='$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)' 16650 hardcode_libdir_flag_spec_F77='-L$libdir' 16651 hardcode_minus_L_F77=yes 16652 ;; 16653 esac 16654 ;; 16655 16656 beos*) 16657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16658 allow_undefined_flag_F77=unsupported 16659 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16660 # support --undefined. This deserves some investigation. FIXME 16661 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16662 else 16663 ld_shlibs_F77=no 16664 fi 16665 ;; 16666 16667 cygwin* | mingw* | pw32* | cegcc*) 16668 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 16669 # as there is no search path for DLLs. 16670 hardcode_libdir_flag_spec_F77='-L$libdir' 16671 export_dynamic_flag_spec_F77='$wl--export-all-symbols' 16672 allow_undefined_flag_F77=unsupported 16673 always_export_symbols_F77=no 16674 enable_shared_with_static_runtimes_F77=yes 16675 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 16676 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16677 16678 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16679 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16680 # If the export-symbols file already is a .def file, use it as 16681 # is; otherwise, prepend EXPORTS... 16682 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16683 cp $export_symbols $output_objdir/$soname.def; 16684 else 16685 echo EXPORTS > $output_objdir/$soname.def; 16686 cat $export_symbols >> $output_objdir/$soname.def; 16687 fi~ 16688 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16689 else 16690 ld_shlibs_F77=no 16691 fi 16692 ;; 16693 16694 haiku*) 16695 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16696 link_all_deplibs_F77=yes 16697 ;; 16698 16699 os2*) 16700 hardcode_libdir_flag_spec_F77='-L$libdir' 16701 hardcode_minus_L_F77=yes 16702 allow_undefined_flag_F77=unsupported 16703 shrext_cmds=.dll 16704 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16705 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16706 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16707 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16708 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16709 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16710 emximp -o $lib $output_objdir/$libname.def' 16711 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16712 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16713 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16714 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16715 prefix_cmds="$SED"~ 16716 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16717 prefix_cmds="$prefix_cmds -e 1d"; 16718 fi~ 16719 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16720 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16721 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16722 emximp -o $lib $output_objdir/$libname.def' 16723 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16724 enable_shared_with_static_runtimes_F77=yes 16725 ;; 16726 16727 interix[3-9]*) 16728 hardcode_direct_F77=no 16729 hardcode_shlibpath_var_F77=no 16730 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 16731 export_dynamic_flag_spec_F77='$wl-E' 16732 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16733 # Instead, shared libraries are loaded at an image base (0x10000000 by 16734 # default) and relocated if they conflict, which is a slow very memory 16735 # consuming and fragmenting process. To avoid this, we pick a random, 16736 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16737 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16738 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16739 archive_expsym_cmds_F77='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' 16740 ;; 16741 16742 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16743 tmp_diet=no 16744 if test linux-dietlibc = "$host_os"; then 16745 case $cc_basename in 16746 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16747 esac 16748 fi 16749 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16750 && test no = "$tmp_diet" 16751 then 16752 tmp_addflag=' $pic_flag' 16753 tmp_sharedflag='-shared' 16754 case $cc_basename,$host_cpu in 16755 pgcc*) # Portland Group C compiler 16756 whole_archive_flag_spec_F77='$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' 16757 tmp_addflag=' $pic_flag' 16758 ;; 16759 pgf77* | pgf90* | pgf95* | pgfortran*) 16760 # Portland Group f77 and f90 compilers 16761 whole_archive_flag_spec_F77='$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' 16762 tmp_addflag=' $pic_flag -Mnomain' ;; 16763 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16764 tmp_addflag=' -i_dynamic' ;; 16765 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16766 tmp_addflag=' -i_dynamic -nofor_main' ;; 16767 ifc* | ifort*) # Intel Fortran compiler 16768 tmp_addflag=' -nofor_main' ;; 16769 lf95*) # Lahey Fortran 8.1 16770 whole_archive_flag_spec_F77= 16771 tmp_sharedflag='--shared' ;; 16772 nagfor*) # NAGFOR 5.3 16773 tmp_sharedflag='-Wl,-shared' ;; 16774 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16775 tmp_sharedflag='-qmkshrobj' 16776 tmp_addflag= ;; 16777 nvcc*) # Cuda Compiler Driver 2.2 16778 whole_archive_flag_spec_F77='$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' 16779 compiler_needs_object_F77=yes 16780 ;; 16781 esac 16782 case `$CC -V 2>&1 | sed 5q` in 16783 *Sun\ C*) # Sun C 5.9 16784 whole_archive_flag_spec_F77='$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' 16785 compiler_needs_object_F77=yes 16786 tmp_sharedflag='-G' ;; 16787 *Sun\ F*) # Sun Fortran 8.3 16788 tmp_sharedflag='-G' ;; 16789 esac 16790 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16791 16792 if test yes = "$supports_anon_versioning"; then 16793 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 16794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16795 echo "local: *; };" >> $output_objdir/$libname.ver~ 16796 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16797 fi 16798 16799 case $cc_basename in 16800 tcc*) 16801 export_dynamic_flag_spec_F77='-rdynamic' 16802 ;; 16803 xlf* | bgf* | bgxlf* | mpixlf*) 16804 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16805 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' 16806 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 16807 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16808 if test yes = "$supports_anon_versioning"; then 16809 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 16810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16811 echo "local: *; };" >> $output_objdir/$libname.ver~ 16812 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16813 fi 16814 ;; 16815 esac 16816 else 16817 ld_shlibs_F77=no 16818 fi 16819 ;; 16820 16821 netbsd*) 16822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16823 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16824 wlarc= 16825 else 16826 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16827 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16828 fi 16829 ;; 16830 16831 solaris*) 16832 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16833 ld_shlibs_F77=no 16834 cat <<_LT_EOF 1>&2 16835 16836*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16837*** create shared libraries on Solaris systems. Therefore, libtool 16838*** is disabling shared libraries support. We urge you to upgrade GNU 16839*** binutils to release 2.9.1 or newer. Another option is to modify 16840*** your PATH or compiler configuration so that the native linker is 16841*** used, and then restart. 16842 16843_LT_EOF 16844 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16845 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16846 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16847 else 16848 ld_shlibs_F77=no 16849 fi 16850 ;; 16851 16852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16853 case `$LD -v 2>&1` in 16854 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16855 ld_shlibs_F77=no 16856 cat <<_LT_EOF 1>&2 16857 16858*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16859*** reliably create shared libraries on SCO systems. Therefore, libtool 16860*** is disabling shared libraries support. We urge you to upgrade GNU 16861*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16862*** your PATH or compiler configuration so that the native linker is 16863*** used, and then restart. 16864 16865_LT_EOF 16866 ;; 16867 *) 16868 # For security reasons, it is highly recommended that you always 16869 # use absolute paths for naming shared libraries, and exclude the 16870 # DT_RUNPATH tag from executables and libraries. But doing so 16871 # requires that you compile everything twice, which is a pain. 16872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16873 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 16874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16875 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16876 else 16877 ld_shlibs_F77=no 16878 fi 16879 ;; 16880 esac 16881 ;; 16882 16883 sunos4*) 16884 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16885 wlarc= 16886 hardcode_direct_F77=yes 16887 hardcode_shlibpath_var_F77=no 16888 ;; 16889 16890 *) 16891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16892 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16893 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16894 else 16895 ld_shlibs_F77=no 16896 fi 16897 ;; 16898 esac 16899 16900 if test no = "$ld_shlibs_F77"; then 16901 runpath_var= 16902 hardcode_libdir_flag_spec_F77= 16903 export_dynamic_flag_spec_F77= 16904 whole_archive_flag_spec_F77= 16905 fi 16906 else 16907 # PORTME fill in a description of your system's linker (not GNU ld) 16908 case $host_os in 16909 aix3*) 16910 allow_undefined_flag_F77=unsupported 16911 always_export_symbols_F77=yes 16912 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 16913 # Note: this linker hardcodes the directories in LIBPATH if there 16914 # are no directories specified by -L. 16915 hardcode_minus_L_F77=yes 16916 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16917 # Neither direct hardcoding nor static linking is supported with a 16918 # broken collect2. 16919 hardcode_direct_F77=unsupported 16920 fi 16921 ;; 16922 16923 aix[4-9]*) 16924 if test ia64 = "$host_cpu"; then 16925 # On IA64, the linker does run time linking by default, so we don't 16926 # have to do anything special. 16927 aix_use_runtimelinking=no 16928 exp_sym_flag='-Bexport' 16929 no_entry_flag= 16930 else 16931 # If we're using GNU nm, then we don't want the "-C" option. 16932 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16933 # Without the "-l" option, or with the "-B" option, AIX nm treats 16934 # weak defined symbols like other global defined symbols, whereas 16935 # GNU nm marks them as "W". 16936 # While the 'weak' keyword is ignored in the Export File, we need 16937 # it in the Import File for the 'aix-soname' feature, so we have 16938 # to replace the "-B" option with "-P" for AIX nm. 16939 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16940 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 16941 else 16942 export_symbols_cmds_F77='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 16943 fi 16944 aix_use_runtimelinking=no 16945 16946 # Test if we are trying to use run time linking or normal 16947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16948 # have runtime linking enabled, and use it for executables. 16949 # For shared libraries, we enable/disable runtime linking 16950 # depending on the kind of the shared library created - 16951 # when "with_aix_soname,aix_use_runtimelinking" is: 16952 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16953 # "aix,yes" lib.so shared, rtl:yes, for executables 16954 # lib.a static archive 16955 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16956 # lib.a(lib.so.V) shared, rtl:no, for executables 16957 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16958 # lib.a(lib.so.V) shared, rtl:no 16959 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16960 # lib.a static archive 16961 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16962 for ld_flag in $LDFLAGS; do 16963 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16964 aix_use_runtimelinking=yes 16965 break 16966 fi 16967 done 16968 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16969 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16970 # so we don't have lib.a shared libs to link our executables. 16971 # We have to force runtime linking in this case. 16972 aix_use_runtimelinking=yes 16973 LDFLAGS="$LDFLAGS -Wl,-brtl" 16974 fi 16975 ;; 16976 esac 16977 16978 exp_sym_flag='-bexport' 16979 no_entry_flag='-bnoentry' 16980 fi 16981 16982 # When large executables or shared objects are built, AIX ld can 16983 # have problems creating the table of contents. If linking a library 16984 # or program results in "error TOC overflow" add -mminimal-toc to 16985 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16986 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16987 16988 archive_cmds_F77='' 16989 hardcode_direct_F77=yes 16990 hardcode_direct_absolute_F77=yes 16991 hardcode_libdir_separator_F77=':' 16992 link_all_deplibs_F77=yes 16993 file_list_spec_F77='$wl-f,' 16994 case $with_aix_soname,$aix_use_runtimelinking in 16995 aix,*) ;; # traditional, no import file 16996 svr4,* | *,yes) # use import file 16997 # The Import File defines what to hardcode. 16998 hardcode_direct_F77=no 16999 hardcode_direct_absolute_F77=no 17000 ;; 17001 esac 17002 17003 if test yes = "$GCC"; then 17004 case $host_os in aix4.[012]|aix4.[012].*) 17005 # We only want to do this on AIX 4.2 and lower, the check 17006 # below for broken collect2 doesn't work under 4.3+ 17007 collect2name=`$CC -print-prog-name=collect2` 17008 if test -f "$collect2name" && 17009 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17010 then 17011 # We have reworked collect2 17012 : 17013 else 17014 # We have old collect2 17015 hardcode_direct_F77=unsupported 17016 # It fails to find uninstalled libraries when the uninstalled 17017 # path is not listed in the libpath. Setting hardcode_minus_L 17018 # to unsupported forces relinking 17019 hardcode_minus_L_F77=yes 17020 hardcode_libdir_flag_spec_F77='-L$libdir' 17021 hardcode_libdir_separator_F77= 17022 fi 17023 ;; 17024 esac 17025 shared_flag='-shared' 17026 if test yes = "$aix_use_runtimelinking"; then 17027 shared_flag="$shared_flag "'$wl-G' 17028 fi 17029 # Need to ensure runtime linking is disabled for the traditional 17030 # shared library, or the linker may eventually find shared libraries 17031 # /with/ Import File - we do not want to mix them. 17032 shared_flag_aix='-shared' 17033 shared_flag_svr4='-shared $wl-G' 17034 else 17035 # not using gcc 17036 if test ia64 = "$host_cpu"; then 17037 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17038 # chokes on -Wl,-G. The following line is correct: 17039 shared_flag='-G' 17040 else 17041 if test yes = "$aix_use_runtimelinking"; then 17042 shared_flag='$wl-G' 17043 else 17044 shared_flag='$wl-bM:SRE' 17045 fi 17046 shared_flag_aix='$wl-bM:SRE' 17047 shared_flag_svr4='$wl-G' 17048 fi 17049 fi 17050 17051 export_dynamic_flag_spec_F77='$wl-bexpall' 17052 # It seems that -bexpall does not export symbols beginning with 17053 # underscore (_), so it is better to generate a list of symbols to export. 17054 always_export_symbols_F77=yes 17055 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17056 # Warning - without using the other runtime loading flags (-brtl), 17057 # -berok will link without error, but may produce a broken library. 17058 allow_undefined_flag_F77='-berok' 17059 # Determine the default libpath from the value encoded in an 17060 # empty executable. 17061 if test set = "${lt_cv_aix_libpath+set}"; then 17062 aix_libpath=$lt_cv_aix_libpath 17063else 17064 if ${lt_cv_aix_libpath__F77+:} false; then : 17065 $as_echo_n "(cached) " >&6 17066else 17067 cat > conftest.$ac_ext <<_ACEOF 17068 program main 17069 17070 end 17071_ACEOF 17072if ac_fn_f77_try_link "$LINENO"; then : 17073 17074 lt_aix_libpath_sed=' 17075 /Import File Strings/,/^$/ { 17076 /^0/ { 17077 s/^0 *\([^ ]*\) *$/\1/ 17078 p 17079 } 17080 }' 17081 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17082 # Check for a 64-bit object if we didn't find anything. 17083 if test -z "$lt_cv_aix_libpath__F77"; then 17084 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17085 fi 17086fi 17087rm -f core conftest.err conftest.$ac_objext \ 17088 conftest$ac_exeext conftest.$ac_ext 17089 if test -z "$lt_cv_aix_libpath__F77"; then 17090 lt_cv_aix_libpath__F77=/usr/lib:/lib 17091 fi 17092 17093fi 17094 17095 aix_libpath=$lt_cv_aix_libpath__F77 17096fi 17097 17098 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 17099 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 17100 else 17101 if test ia64 = "$host_cpu"; then 17102 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib' 17103 allow_undefined_flag_F77="-z nodefs" 17104 archive_expsym_cmds_F77="\$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" 17105 else 17106 # Determine the default libpath from the value encoded in an 17107 # empty executable. 17108 if test set = "${lt_cv_aix_libpath+set}"; then 17109 aix_libpath=$lt_cv_aix_libpath 17110else 17111 if ${lt_cv_aix_libpath__F77+:} false; then : 17112 $as_echo_n "(cached) " >&6 17113else 17114 cat > conftest.$ac_ext <<_ACEOF 17115 program main 17116 17117 end 17118_ACEOF 17119if ac_fn_f77_try_link "$LINENO"; then : 17120 17121 lt_aix_libpath_sed=' 17122 /Import File Strings/,/^$/ { 17123 /^0/ { 17124 s/^0 *\([^ ]*\) *$/\1/ 17125 p 17126 } 17127 }' 17128 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17129 # Check for a 64-bit object if we didn't find anything. 17130 if test -z "$lt_cv_aix_libpath__F77"; then 17131 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17132 fi 17133fi 17134rm -f core conftest.err conftest.$ac_objext \ 17135 conftest$ac_exeext conftest.$ac_ext 17136 if test -z "$lt_cv_aix_libpath__F77"; then 17137 lt_cv_aix_libpath__F77=/usr/lib:/lib 17138 fi 17139 17140fi 17141 17142 aix_libpath=$lt_cv_aix_libpath__F77 17143fi 17144 17145 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 17146 # Warning - without using the other run time loading flags, 17147 # -berok will link without error, but may produce a broken library. 17148 no_undefined_flag_F77=' $wl-bernotok' 17149 allow_undefined_flag_F77=' $wl-berok' 17150 if test yes = "$with_gnu_ld"; then 17151 # We only use this code for GNU lds that support --whole-archive. 17152 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive' 17153 else 17154 # Exported symbols can be pulled into shared objects from archives 17155 whole_archive_flag_spec_F77='$convenience' 17156 fi 17157 archive_cmds_need_lc_F77=yes 17158 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17159 # -brtl affects multiple linker settings, -berok does not and is overridden later 17160 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17161 if test svr4 != "$with_aix_soname"; then 17162 # This is similar to how AIX traditionally builds its shared libraries. 17163 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 17164 fi 17165 if test aix != "$with_aix_soname"; then 17166 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 17167 else 17168 # used by -dlpreopen to get the symbols 17169 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17170 fi 17171 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d' 17172 fi 17173 fi 17174 ;; 17175 17176 amigaos*) 17177 case $host_cpu in 17178 powerpc) 17179 # see comment about AmigaOS4 .so support 17180 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17181 archive_expsym_cmds_F77='' 17182 ;; 17183 m68k) 17184 archive_cmds_F77='$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)' 17185 hardcode_libdir_flag_spec_F77='-L$libdir' 17186 hardcode_minus_L_F77=yes 17187 ;; 17188 esac 17189 ;; 17190 17191 bsdi[45]*) 17192 export_dynamic_flag_spec_F77=-rdynamic 17193 ;; 17194 17195 cygwin* | mingw* | pw32* | cegcc*) 17196 # When not using gcc, we currently assume that we are using 17197 # Microsoft Visual C++. 17198 # hardcode_libdir_flag_spec is actually meaningless, as there is 17199 # no search path for DLLs. 17200 case $cc_basename in 17201 cl*) 17202 # Native MSVC 17203 hardcode_libdir_flag_spec_F77=' ' 17204 allow_undefined_flag_F77=unsupported 17205 always_export_symbols_F77=yes 17206 file_list_spec_F77='@' 17207 # Tell ltmain to make .lib files, not .a files. 17208 libext=lib 17209 # Tell ltmain to make .dll files, not .so files. 17210 shrext_cmds=.dll 17211 # FIXME: Setting linknames here is a bad hack. 17212 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17213 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17214 cp "$export_symbols" "$output_objdir/$soname.def"; 17215 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17216 else 17217 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17218 fi~ 17219 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17220 linknames=' 17221 # The linker will not automatically build a static lib if we build a DLL. 17222 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' 17223 enable_shared_with_static_runtimes_F77=yes 17224 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17225 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17226 # Don't use ranlib 17227 old_postinstall_cmds_F77='chmod 644 $oldlib' 17228 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ 17229 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17230 case $lt_outputfile in 17231 *.exe|*.EXE) ;; 17232 *) 17233 lt_outputfile=$lt_outputfile.exe 17234 lt_tool_outputfile=$lt_tool_outputfile.exe 17235 ;; 17236 esac~ 17237 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17238 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17239 $RM "$lt_outputfile.manifest"; 17240 fi' 17241 ;; 17242 *) 17243 # Assume MSVC wrapper 17244 hardcode_libdir_flag_spec_F77=' ' 17245 allow_undefined_flag_F77=unsupported 17246 # Tell ltmain to make .lib files, not .a files. 17247 libext=lib 17248 # Tell ltmain to make .dll files, not .so files. 17249 shrext_cmds=.dll 17250 # FIXME: Setting linknames here is a bad hack. 17251 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17252 # The linker will automatically build a .lib file if we build a DLL. 17253 old_archive_from_new_cmds_F77='true' 17254 # FIXME: Should let the user specify the lib program. 17255 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 17256 enable_shared_with_static_runtimes_F77=yes 17257 ;; 17258 esac 17259 ;; 17260 17261 darwin* | rhapsody*) 17262 17263 17264 archive_cmds_need_lc_F77=no 17265 hardcode_direct_F77=no 17266 hardcode_automatic_F77=yes 17267 hardcode_shlibpath_var_F77=unsupported 17268 if test yes = "$lt_cv_ld_force_load"; then 17269 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 17270 compiler_needs_object_F77=yes 17271 else 17272 whole_archive_flag_spec_F77='' 17273 fi 17274 link_all_deplibs_F77=yes 17275 allow_undefined_flag_F77=$_lt_dar_allow_undefined 17276 case $cc_basename in 17277 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17278 *) _lt_dar_can_shared=$GCC ;; 17279 esac 17280 if test yes = "$_lt_dar_can_shared"; then 17281 output_verbose_link_cmd=func_echo_all 17282 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17283 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17284 archive_expsym_cmds_F77="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" 17285 module_expsym_cmds_F77="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" 17286 17287 else 17288 ld_shlibs_F77=no 17289 fi 17290 17291 ;; 17292 17293 dgux*) 17294 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17295 hardcode_libdir_flag_spec_F77='-L$libdir' 17296 hardcode_shlibpath_var_F77=no 17297 ;; 17298 17299 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17300 # support. Future versions do this automatically, but an explicit c++rt0.o 17301 # does not break anything, and helps significantly (at the cost of a little 17302 # extra space). 17303 freebsd2.2*) 17304 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17305 hardcode_libdir_flag_spec_F77='-R$libdir' 17306 hardcode_direct_F77=yes 17307 hardcode_shlibpath_var_F77=no 17308 ;; 17309 17310 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17311 freebsd2.*) 17312 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17313 hardcode_direct_F77=yes 17314 hardcode_minus_L_F77=yes 17315 hardcode_shlibpath_var_F77=no 17316 ;; 17317 17318 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17319 freebsd* | dragonfly*) 17320 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17321 hardcode_libdir_flag_spec_F77='-R$libdir' 17322 hardcode_direct_F77=yes 17323 hardcode_shlibpath_var_F77=no 17324 ;; 17325 17326 hpux9*) 17327 if test yes = "$GCC"; then 17328 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 17329 else 17330 archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 17331 fi 17332 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 17333 hardcode_libdir_separator_F77=: 17334 hardcode_direct_F77=yes 17335 17336 # hardcode_minus_L: Not really in the search PATH, 17337 # but as the default location of the library. 17338 hardcode_minus_L_F77=yes 17339 export_dynamic_flag_spec_F77='$wl-E' 17340 ;; 17341 17342 hpux10*) 17343 if test yes,no = "$GCC,$with_gnu_ld"; then 17344 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17345 else 17346 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17347 fi 17348 if test no = "$with_gnu_ld"; then 17349 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 17350 hardcode_libdir_separator_F77=: 17351 hardcode_direct_F77=yes 17352 hardcode_direct_absolute_F77=yes 17353 export_dynamic_flag_spec_F77='$wl-E' 17354 # hardcode_minus_L: Not really in the search PATH, 17355 # but as the default location of the library. 17356 hardcode_minus_L_F77=yes 17357 fi 17358 ;; 17359 17360 hpux11*) 17361 if test yes,no = "$GCC,$with_gnu_ld"; then 17362 case $host_cpu in 17363 hppa*64*) 17364 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17365 ;; 17366 ia64*) 17367 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17368 ;; 17369 *) 17370 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17371 ;; 17372 esac 17373 else 17374 case $host_cpu in 17375 hppa*64*) 17376 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17377 ;; 17378 ia64*) 17379 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17380 ;; 17381 *) 17382 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17383 ;; 17384 esac 17385 fi 17386 if test no = "$with_gnu_ld"; then 17387 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 17388 hardcode_libdir_separator_F77=: 17389 17390 case $host_cpu in 17391 hppa*64*|ia64*) 17392 hardcode_direct_F77=no 17393 hardcode_shlibpath_var_F77=no 17394 ;; 17395 *) 17396 hardcode_direct_F77=yes 17397 hardcode_direct_absolute_F77=yes 17398 export_dynamic_flag_spec_F77='$wl-E' 17399 17400 # hardcode_minus_L: Not really in the search PATH, 17401 # but as the default location of the library. 17402 hardcode_minus_L_F77=yes 17403 ;; 17404 esac 17405 fi 17406 ;; 17407 17408 irix5* | irix6* | nonstopux*) 17409 if test yes = "$GCC"; then 17410 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 17411 # Try to use the -exported_symbol ld option, if it does not 17412 # work, assume that -exports_file does not work either and 17413 # implicitly export all symbols. 17414 # This should be the same for all languages, so no per-tag cache variable. 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17416$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17417if ${lt_cv_irix_exported_symbol+:} false; then : 17418 $as_echo_n "(cached) " >&6 17419else 17420 save_LDFLAGS=$LDFLAGS 17421 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17422 cat > conftest.$ac_ext <<_ACEOF 17423 17424 subroutine foo 17425 end 17426_ACEOF 17427if ac_fn_f77_try_link "$LINENO"; then : 17428 lt_cv_irix_exported_symbol=yes 17429else 17430 lt_cv_irix_exported_symbol=no 17431fi 17432rm -f core conftest.err conftest.$ac_objext \ 17433 conftest$ac_exeext conftest.$ac_ext 17434 LDFLAGS=$save_LDFLAGS 17435fi 17436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17437$as_echo "$lt_cv_irix_exported_symbol" >&6; } 17438 if test yes = "$lt_cv_irix_exported_symbol"; then 17439 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 17440 fi 17441 else 17442 archive_cmds_F77='$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' 17443 archive_expsym_cmds_F77='$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' 17444 fi 17445 archive_cmds_need_lc_F77='no' 17446 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 17447 hardcode_libdir_separator_F77=: 17448 inherit_rpath_F77=yes 17449 link_all_deplibs_F77=yes 17450 ;; 17451 17452 linux*) 17453 case $cc_basename in 17454 tcc*) 17455 # Fabrice Bellard et al's Tiny C Compiler 17456 ld_shlibs_F77=yes 17457 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17458 ;; 17459 esac 17460 ;; 17461 17462 netbsd*) 17463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17464 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17465 else 17466 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17467 fi 17468 hardcode_libdir_flag_spec_F77='-R$libdir' 17469 hardcode_direct_F77=yes 17470 hardcode_shlibpath_var_F77=no 17471 ;; 17472 17473 newsos6) 17474 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17475 hardcode_direct_F77=yes 17476 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 17477 hardcode_libdir_separator_F77=: 17478 hardcode_shlibpath_var_F77=no 17479 ;; 17480 17481 *nto* | *qnx*) 17482 ;; 17483 17484 openbsd* | bitrig*) 17485 if test -f /usr/libexec/ld.so; then 17486 hardcode_direct_F77=yes 17487 hardcode_shlibpath_var_F77=no 17488 hardcode_direct_absolute_F77=yes 17489 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17490 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17491 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17492 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 17493 export_dynamic_flag_spec_F77='$wl-E' 17494 else 17495 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17496 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 17497 fi 17498 else 17499 ld_shlibs_F77=no 17500 fi 17501 ;; 17502 17503 os2*) 17504 hardcode_libdir_flag_spec_F77='-L$libdir' 17505 hardcode_minus_L_F77=yes 17506 allow_undefined_flag_F77=unsupported 17507 shrext_cmds=.dll 17508 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17509 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17510 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17511 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17512 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17513 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17514 emximp -o $lib $output_objdir/$libname.def' 17515 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17516 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17517 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17518 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17519 prefix_cmds="$SED"~ 17520 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17521 prefix_cmds="$prefix_cmds -e 1d"; 17522 fi~ 17523 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17524 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17525 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17526 emximp -o $lib $output_objdir/$libname.def' 17527 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17528 enable_shared_with_static_runtimes_F77=yes 17529 ;; 17530 17531 osf3*) 17532 if test yes = "$GCC"; then 17533 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 17534 archive_cmds_F77='$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' 17535 else 17536 allow_undefined_flag_F77=' -expect_unresolved \*' 17537 archive_cmds_F77='$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' 17538 fi 17539 archive_cmds_need_lc_F77='no' 17540 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 17541 hardcode_libdir_separator_F77=: 17542 ;; 17543 17544 osf4* | osf5*) # as osf3* with the addition of -msym flag 17545 if test yes = "$GCC"; then 17546 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 17547 archive_cmds_F77='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 17548 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 17549 else 17550 allow_undefined_flag_F77=' -expect_unresolved \*' 17551 archive_cmds_F77='$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' 17552 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 17553 $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' 17554 17555 # Both c and cxx compiler support -rpath directly 17556 hardcode_libdir_flag_spec_F77='-rpath $libdir' 17557 fi 17558 archive_cmds_need_lc_F77='no' 17559 hardcode_libdir_separator_F77=: 17560 ;; 17561 17562 solaris*) 17563 no_undefined_flag_F77=' -z defs' 17564 if test yes = "$GCC"; then 17565 wlarc='$wl' 17566 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17567 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17568 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17569 else 17570 case `$CC -V 2>&1` in 17571 *"Compilers 5.0"*) 17572 wlarc='' 17573 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17574 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17575 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17576 ;; 17577 *) 17578 wlarc='$wl' 17579 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17580 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17581 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17582 ;; 17583 esac 17584 fi 17585 hardcode_libdir_flag_spec_F77='-R$libdir' 17586 hardcode_shlibpath_var_F77=no 17587 case $host_os in 17588 solaris2.[0-5] | solaris2.[0-5].*) ;; 17589 *) 17590 # The compiler driver will combine and reorder linker options, 17591 # but understands '-z linker_flag'. GCC discards it without '$wl', 17592 # but is careful enough not to reorder. 17593 # Supported since Solaris 2.6 (maybe 2.5.1?) 17594 if test yes = "$GCC"; then 17595 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17596 else 17597 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 17598 fi 17599 ;; 17600 esac 17601 link_all_deplibs_F77=yes 17602 ;; 17603 17604 sunos4*) 17605 if test sequent = "$host_vendor"; then 17606 # Use $CC to link under sequent, because it throws in some extra .o 17607 # files that make .init and .fini sections work. 17608 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17609 else 17610 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17611 fi 17612 hardcode_libdir_flag_spec_F77='-L$libdir' 17613 hardcode_direct_F77=yes 17614 hardcode_minus_L_F77=yes 17615 hardcode_shlibpath_var_F77=no 17616 ;; 17617 17618 sysv4) 17619 case $host_vendor in 17620 sni) 17621 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17622 hardcode_direct_F77=yes # is this really true??? 17623 ;; 17624 siemens) 17625 ## LD is ld it makes a PLAMLIB 17626 ## CC just makes a GrossModule. 17627 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17628 reload_cmds_F77='$CC -r -o $output$reload_objs' 17629 hardcode_direct_F77=no 17630 ;; 17631 motorola) 17632 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17633 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 17634 ;; 17635 esac 17636 runpath_var='LD_RUN_PATH' 17637 hardcode_shlibpath_var_F77=no 17638 ;; 17639 17640 sysv4.3*) 17641 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17642 hardcode_shlibpath_var_F77=no 17643 export_dynamic_flag_spec_F77='-Bexport' 17644 ;; 17645 17646 sysv4*MP*) 17647 if test -d /usr/nec; then 17648 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17649 hardcode_shlibpath_var_F77=no 17650 runpath_var=LD_RUN_PATH 17651 hardcode_runpath_var=yes 17652 ld_shlibs_F77=yes 17653 fi 17654 ;; 17655 17656 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17657 no_undefined_flag_F77='$wl-z,text' 17658 archive_cmds_need_lc_F77=no 17659 hardcode_shlibpath_var_F77=no 17660 runpath_var='LD_RUN_PATH' 17661 17662 if test yes = "$GCC"; then 17663 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17664 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17665 else 17666 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17667 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17668 fi 17669 ;; 17670 17671 sysv5* | sco3.2v5* | sco5v6*) 17672 # Note: We CANNOT use -z defs as we might desire, because we do not 17673 # link with -lc, and that would cause any symbols used from libc to 17674 # always be unresolved, which means just about no library would 17675 # ever link correctly. If we're not using GNU ld we use -z text 17676 # though, which does catch some bad symbols but isn't as heavy-handed 17677 # as -z defs. 17678 no_undefined_flag_F77='$wl-z,text' 17679 allow_undefined_flag_F77='$wl-z,nodefs' 17680 archive_cmds_need_lc_F77=no 17681 hardcode_shlibpath_var_F77=no 17682 hardcode_libdir_flag_spec_F77='$wl-R,$libdir' 17683 hardcode_libdir_separator_F77=':' 17684 link_all_deplibs_F77=yes 17685 export_dynamic_flag_spec_F77='$wl-Bexport' 17686 runpath_var='LD_RUN_PATH' 17687 17688 if test yes = "$GCC"; then 17689 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17690 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17691 else 17692 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17693 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17694 fi 17695 ;; 17696 17697 uts4*) 17698 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17699 hardcode_libdir_flag_spec_F77='-L$libdir' 17700 hardcode_shlibpath_var_F77=no 17701 ;; 17702 17703 *) 17704 ld_shlibs_F77=no 17705 ;; 17706 esac 17707 17708 if test sni = "$host_vendor"; then 17709 case $host in 17710 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17711 export_dynamic_flag_spec_F77='$wl-Blargedynsym' 17712 ;; 17713 esac 17714 fi 17715 fi 17716 17717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 17718$as_echo "$ld_shlibs_F77" >&6; } 17719test no = "$ld_shlibs_F77" && can_build_shared=no 17720 17721with_gnu_ld_F77=$with_gnu_ld 17722 17723 17724 17725 17726 17727 17728# 17729# Do we need to explicitly link libc? 17730# 17731case "x$archive_cmds_need_lc_F77" in 17732x|xyes) 17733 # Assume -lc should be added 17734 archive_cmds_need_lc_F77=yes 17735 17736 if test yes,yes = "$GCC,$enable_shared"; then 17737 case $archive_cmds_F77 in 17738 *'~'*) 17739 # FIXME: we may have to deal with multi-command sequences. 17740 ;; 17741 '$CC '*) 17742 # Test whether the compiler implicitly links with -lc since on some 17743 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17744 # to ld, don't add -lc before -lgcc. 17745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17746$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17747if ${lt_cv_archive_cmds_need_lc_F77+:} false; then : 17748 $as_echo_n "(cached) " >&6 17749else 17750 $RM conftest* 17751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17752 17753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17754 (eval $ac_compile) 2>&5 17755 ac_status=$? 17756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17757 test $ac_status = 0; } 2>conftest.err; then 17758 soname=conftest 17759 lib=conftest 17760 libobjs=conftest.$ac_objext 17761 deplibs= 17762 wl=$lt_prog_compiler_wl_F77 17763 pic_flag=$lt_prog_compiler_pic_F77 17764 compiler_flags=-v 17765 linker_flags=-v 17766 verstring= 17767 output_objdir=. 17768 libname=conftest 17769 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 17770 allow_undefined_flag_F77= 17771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17772 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17773 ac_status=$? 17774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17775 test $ac_status = 0; } 17776 then 17777 lt_cv_archive_cmds_need_lc_F77=no 17778 else 17779 lt_cv_archive_cmds_need_lc_F77=yes 17780 fi 17781 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 17782 else 17783 cat conftest.err 1>&5 17784 fi 17785 $RM conftest* 17786 17787fi 17788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 17789$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } 17790 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 17791 ;; 17792 esac 17793 fi 17794 ;; 17795esac 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17859$as_echo_n "checking dynamic linker characteristics... " >&6; } 17860 17861library_names_spec= 17862libname_spec='lib$name' 17863soname_spec= 17864shrext_cmds=.so 17865postinstall_cmds= 17866postuninstall_cmds= 17867finish_cmds= 17868finish_eval= 17869shlibpath_var= 17870shlibpath_overrides_runpath=unknown 17871version_type=none 17872dynamic_linker="$host_os ld.so" 17873sys_lib_dlsearch_path_spec="/lib /usr/lib" 17874need_lib_prefix=unknown 17875hardcode_into_libs=no 17876 17877# when you set need_version to no, make sure it does not cause -set_version 17878# flags to be left without arguments 17879need_version=unknown 17880 17881 17882 17883case $host_os in 17884aix3*) 17885 version_type=linux # correct to gnu/linux during the next big refactor 17886 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17887 shlibpath_var=LIBPATH 17888 17889 # AIX 3 has no versioning support, so we append a major version to the name. 17890 soname_spec='$libname$release$shared_ext$major' 17891 ;; 17892 17893aix[4-9]*) 17894 version_type=linux # correct to gnu/linux during the next big refactor 17895 need_lib_prefix=no 17896 need_version=no 17897 hardcode_into_libs=yes 17898 if test ia64 = "$host_cpu"; then 17899 # AIX 5 supports IA64 17900 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17901 shlibpath_var=LD_LIBRARY_PATH 17902 else 17903 # With GCC up to 2.95.x, collect2 would create an import file 17904 # for dependence libraries. The import file would start with 17905 # the line '#! .'. This would cause the generated library to 17906 # depend on '.', always an invalid library. This was fixed in 17907 # development snapshots of GCC prior to 3.0. 17908 case $host_os in 17909 aix4 | aix4.[01] | aix4.[01].*) 17910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17911 echo ' yes ' 17912 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17913 : 17914 else 17915 can_build_shared=no 17916 fi 17917 ;; 17918 esac 17919 # Using Import Files as archive members, it is possible to support 17920 # filename-based versioning of shared library archives on AIX. While 17921 # this would work for both with and without runtime linking, it will 17922 # prevent static linking of such archives. So we do filename-based 17923 # shared library versioning with .so extension only, which is used 17924 # when both runtime linking and shared linking is enabled. 17925 # Unfortunately, runtime linking may impact performance, so we do 17926 # not want this to be the default eventually. Also, we use the 17927 # versioned .so libs for executables only if there is the -brtl 17928 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17929 # To allow for filename-based versioning support, we need to create 17930 # libNAME.so.V as an archive file, containing: 17931 # *) an Import File, referring to the versioned filename of the 17932 # archive as well as the shared archive member, telling the 17933 # bitwidth (32 or 64) of that shared object, and providing the 17934 # list of exported symbols of that shared object, eventually 17935 # decorated with the 'weak' keyword 17936 # *) the shared object with the F_LOADONLY flag set, to really avoid 17937 # it being seen by the linker. 17938 # At run time we better use the real file rather than another symlink, 17939 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17940 17941 case $with_aix_soname,$aix_use_runtimelinking in 17942 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17943 # soname into executable. Probably we can add versioning support to 17944 # collect2, so additional links can be useful in future. 17945 aix,yes) # traditional libtool 17946 dynamic_linker='AIX unversionable lib.so' 17947 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17948 # instead of lib<name>.a to let people know that these are not 17949 # typical AIX shared libraries. 17950 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17951 ;; 17952 aix,no) # traditional AIX only 17953 dynamic_linker='AIX lib.a(lib.so.V)' 17954 # We preserve .a as extension for shared libraries through AIX4.2 17955 # and later when we are not doing run time linking. 17956 library_names_spec='$libname$release.a $libname.a' 17957 soname_spec='$libname$release$shared_ext$major' 17958 ;; 17959 svr4,*) # full svr4 only 17960 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17961 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17962 # We do not specify a path in Import Files, so LIBPATH fires. 17963 shlibpath_overrides_runpath=yes 17964 ;; 17965 *,yes) # both, prefer svr4 17966 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17967 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17968 # unpreferred sharedlib libNAME.a needs extra handling 17969 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 17970 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 17971 # We do not specify a path in Import Files, so LIBPATH fires. 17972 shlibpath_overrides_runpath=yes 17973 ;; 17974 *,no) # both, prefer aix 17975 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17976 library_names_spec='$libname$release.a $libname.a' 17977 soname_spec='$libname$release$shared_ext$major' 17978 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17979 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 17980 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 17981 ;; 17982 esac 17983 shlibpath_var=LIBPATH 17984 fi 17985 ;; 17986 17987amigaos*) 17988 case $host_cpu in 17989 powerpc) 17990 # Since July 2007 AmigaOS4 officially supports .so libraries. 17991 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17993 ;; 17994 m68k) 17995 library_names_spec='$libname.ixlibrary $libname.a' 17996 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17997 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17998 ;; 17999 esac 18000 ;; 18001 18002beos*) 18003 library_names_spec='$libname$shared_ext' 18004 dynamic_linker="$host_os ld.so" 18005 shlibpath_var=LIBRARY_PATH 18006 ;; 18007 18008bsdi[45]*) 18009 version_type=linux # correct to gnu/linux during the next big refactor 18010 need_version=no 18011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18012 soname_spec='$libname$release$shared_ext$major' 18013 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18014 shlibpath_var=LD_LIBRARY_PATH 18015 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18016 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18017 # the default ld.so.conf also contains /usr/contrib/lib and 18018 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18019 # libtool to hard-code these into programs 18020 ;; 18021 18022cygwin* | mingw* | pw32* | cegcc*) 18023 version_type=windows 18024 shrext_cmds=.dll 18025 need_version=no 18026 need_lib_prefix=no 18027 18028 case $GCC,$cc_basename in 18029 yes,*) 18030 # gcc 18031 library_names_spec='$libname.dll.a' 18032 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18033 postinstall_cmds='base_file=`basename \$file`~ 18034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18035 dldir=$destdir/`dirname \$dlpath`~ 18036 test -d \$dldir || mkdir -p \$dldir~ 18037 $install_prog $dir/$dlname \$dldir/$dlname~ 18038 chmod a+x \$dldir/$dlname~ 18039 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18040 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18041 fi' 18042 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18043 dlpath=$dir/\$dldll~ 18044 $RM \$dlpath' 18045 shlibpath_overrides_runpath=yes 18046 18047 case $host_os in 18048 cygwin*) 18049 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18050 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18051 18052 ;; 18053 mingw* | cegcc*) 18054 # MinGW DLLs use traditional 'lib' prefix 18055 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18056 ;; 18057 pw32*) 18058 # pw32 DLLs use 'pw' prefix rather than 'lib' 18059 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18060 ;; 18061 esac 18062 dynamic_linker='Win32 ld.exe' 18063 ;; 18064 18065 *,cl*) 18066 # Native MSVC 18067 libname_spec='$name' 18068 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18069 library_names_spec='$libname.dll.lib' 18070 18071 case $build_os in 18072 mingw*) 18073 sys_lib_search_path_spec= 18074 lt_save_ifs=$IFS 18075 IFS=';' 18076 for lt_path in $LIB 18077 do 18078 IFS=$lt_save_ifs 18079 # Let DOS variable expansion print the short 8.3 style file name. 18080 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18081 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18082 done 18083 IFS=$lt_save_ifs 18084 # Convert to MSYS style. 18085 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18086 ;; 18087 cygwin*) 18088 # Convert to unix form, then to dos form, then back to unix form 18089 # but this time dos style (no spaces!) so that the unix form looks 18090 # like /cygdrive/c/PROGRA~1:/cygdr... 18091 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18092 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18093 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18094 ;; 18095 *) 18096 sys_lib_search_path_spec=$LIB 18097 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18098 # It is most probably a Windows format PATH. 18099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18100 else 18101 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18102 fi 18103 # FIXME: find the short name or the path components, as spaces are 18104 # common. (e.g. "Program Files" -> "PROGRA~1") 18105 ;; 18106 esac 18107 18108 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18109 postinstall_cmds='base_file=`basename \$file`~ 18110 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18111 dldir=$destdir/`dirname \$dlpath`~ 18112 test -d \$dldir || mkdir -p \$dldir~ 18113 $install_prog $dir/$dlname \$dldir/$dlname' 18114 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18115 dlpath=$dir/\$dldll~ 18116 $RM \$dlpath' 18117 shlibpath_overrides_runpath=yes 18118 dynamic_linker='Win32 link.exe' 18119 ;; 18120 18121 *) 18122 # Assume MSVC wrapper 18123 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18124 dynamic_linker='Win32 ld.exe' 18125 ;; 18126 esac 18127 # FIXME: first we should search . and the directory the executable is in 18128 shlibpath_var=PATH 18129 ;; 18130 18131darwin* | rhapsody*) 18132 dynamic_linker="$host_os dyld" 18133 version_type=darwin 18134 need_lib_prefix=no 18135 need_version=no 18136 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18137 soname_spec='$libname$release$major$shared_ext' 18138 shlibpath_overrides_runpath=yes 18139 shlibpath_var=DYLD_LIBRARY_PATH 18140 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18141 18142 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18143 ;; 18144 18145dgux*) 18146 version_type=linux # correct to gnu/linux during the next big refactor 18147 need_lib_prefix=no 18148 need_version=no 18149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18150 soname_spec='$libname$release$shared_ext$major' 18151 shlibpath_var=LD_LIBRARY_PATH 18152 ;; 18153 18154freebsd* | dragonfly*) 18155 # DragonFly does not have aout. When/if they implement a new 18156 # versioning mechanism, adjust this. 18157 if test -x /usr/bin/objformat; then 18158 objformat=`/usr/bin/objformat` 18159 else 18160 case $host_os in 18161 freebsd[23].*) objformat=aout ;; 18162 *) objformat=elf ;; 18163 esac 18164 fi 18165 version_type=freebsd-$objformat 18166 case $version_type in 18167 freebsd-elf*) 18168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18169 soname_spec='$libname$release$shared_ext$major' 18170 need_version=no 18171 need_lib_prefix=no 18172 ;; 18173 freebsd-*) 18174 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18175 need_version=yes 18176 ;; 18177 esac 18178 shlibpath_var=LD_LIBRARY_PATH 18179 case $host_os in 18180 freebsd2.*) 18181 shlibpath_overrides_runpath=yes 18182 ;; 18183 freebsd3.[01]* | freebsdelf3.[01]*) 18184 shlibpath_overrides_runpath=yes 18185 hardcode_into_libs=yes 18186 ;; 18187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18189 shlibpath_overrides_runpath=no 18190 hardcode_into_libs=yes 18191 ;; 18192 *) # from 4.6 on, and DragonFly 18193 shlibpath_overrides_runpath=yes 18194 hardcode_into_libs=yes 18195 ;; 18196 esac 18197 ;; 18198 18199haiku*) 18200 version_type=linux # correct to gnu/linux during the next big refactor 18201 need_lib_prefix=no 18202 need_version=no 18203 dynamic_linker="$host_os runtime_loader" 18204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18205 soname_spec='$libname$release$shared_ext$major' 18206 shlibpath_var=LIBRARY_PATH 18207 shlibpath_overrides_runpath=no 18208 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18209 hardcode_into_libs=yes 18210 ;; 18211 18212hpux9* | hpux10* | hpux11*) 18213 # Give a soname corresponding to the major version so that dld.sl refuses to 18214 # link against other versions. 18215 version_type=sunos 18216 need_lib_prefix=no 18217 need_version=no 18218 case $host_cpu in 18219 ia64*) 18220 shrext_cmds='.so' 18221 hardcode_into_libs=yes 18222 dynamic_linker="$host_os dld.so" 18223 shlibpath_var=LD_LIBRARY_PATH 18224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18226 soname_spec='$libname$release$shared_ext$major' 18227 if test 32 = "$HPUX_IA64_MODE"; then 18228 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18229 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18230 else 18231 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18232 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18233 fi 18234 ;; 18235 hppa*64*) 18236 shrext_cmds='.sl' 18237 hardcode_into_libs=yes 18238 dynamic_linker="$host_os dld.sl" 18239 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18242 soname_spec='$libname$release$shared_ext$major' 18243 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18245 ;; 18246 *) 18247 shrext_cmds='.sl' 18248 dynamic_linker="$host_os dld.sl" 18249 shlibpath_var=SHLIB_PATH 18250 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18252 soname_spec='$libname$release$shared_ext$major' 18253 ;; 18254 esac 18255 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18256 postinstall_cmds='chmod 555 $lib' 18257 # or fails outright, so override atomically: 18258 install_override_mode=555 18259 ;; 18260 18261interix[3-9]*) 18262 version_type=linux # correct to gnu/linux during the next big refactor 18263 need_lib_prefix=no 18264 need_version=no 18265 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18266 soname_spec='$libname$release$shared_ext$major' 18267 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18268 shlibpath_var=LD_LIBRARY_PATH 18269 shlibpath_overrides_runpath=no 18270 hardcode_into_libs=yes 18271 ;; 18272 18273irix5* | irix6* | nonstopux*) 18274 case $host_os in 18275 nonstopux*) version_type=nonstopux ;; 18276 *) 18277 if test yes = "$lt_cv_prog_gnu_ld"; then 18278 version_type=linux # correct to gnu/linux during the next big refactor 18279 else 18280 version_type=irix 18281 fi ;; 18282 esac 18283 need_lib_prefix=no 18284 need_version=no 18285 soname_spec='$libname$release$shared_ext$major' 18286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18287 case $host_os in 18288 irix5* | nonstopux*) 18289 libsuff= shlibsuff= 18290 ;; 18291 *) 18292 case $LD in # libtool.m4 will add one of these switches to LD 18293 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18294 libsuff= shlibsuff= libmagic=32-bit;; 18295 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18296 libsuff=32 shlibsuff=N32 libmagic=N32;; 18297 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18298 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18299 *) libsuff= shlibsuff= libmagic=never-match;; 18300 esac 18301 ;; 18302 esac 18303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18304 shlibpath_overrides_runpath=no 18305 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18306 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18307 hardcode_into_libs=yes 18308 ;; 18309 18310# No shared lib support for Linux oldld, aout, or coff. 18311linux*oldld* | linux*aout* | linux*coff*) 18312 dynamic_linker=no 18313 ;; 18314 18315linux*android*) 18316 version_type=none # Android doesn't support versioned libraries. 18317 need_lib_prefix=no 18318 need_version=no 18319 library_names_spec='$libname$release$shared_ext' 18320 soname_spec='$libname$release$shared_ext' 18321 finish_cmds= 18322 shlibpath_var=LD_LIBRARY_PATH 18323 shlibpath_overrides_runpath=yes 18324 18325 # This implies no fast_install, which is unacceptable. 18326 # Some rework will be needed to allow for fast_install 18327 # before this can be enabled. 18328 hardcode_into_libs=yes 18329 18330 dynamic_linker='Android linker' 18331 # Don't embed -rpath directories since the linker doesn't support them. 18332 hardcode_libdir_flag_spec_F77='-L$libdir' 18333 ;; 18334 18335# This must be glibc/ELF. 18336linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18337 version_type=linux # correct to gnu/linux during the next big refactor 18338 need_lib_prefix=no 18339 need_version=no 18340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18341 soname_spec='$libname$release$shared_ext$major' 18342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18343 shlibpath_var=LD_LIBRARY_PATH 18344 shlibpath_overrides_runpath=no 18345 18346 # Some binutils ld are patched to set DT_RUNPATH 18347 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18348 $as_echo_n "(cached) " >&6 18349else 18350 lt_cv_shlibpath_overrides_runpath=no 18351 save_LDFLAGS=$LDFLAGS 18352 save_libdir=$libdir 18353 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ 18354 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" 18355 cat > conftest.$ac_ext <<_ACEOF 18356 program main 18357 18358 end 18359_ACEOF 18360if ac_fn_f77_try_link "$LINENO"; then : 18361 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18362 lt_cv_shlibpath_overrides_runpath=yes 18363fi 18364fi 18365rm -f core conftest.err conftest.$ac_objext \ 18366 conftest$ac_exeext conftest.$ac_ext 18367 LDFLAGS=$save_LDFLAGS 18368 libdir=$save_libdir 18369 18370fi 18371 18372 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18373 18374 # This implies no fast_install, which is unacceptable. 18375 # Some rework will be needed to allow for fast_install 18376 # before this can be enabled. 18377 hardcode_into_libs=yes 18378 18379 # Ideally, we could use ldconfig to report *all* directores which are 18380 # searched for libraries, however this is still not possible. Aside from not 18381 # being certain /sbin/ldconfig is available, command 18382 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18383 # even though it is searched at run-time. Try to do the best guess by 18384 # appending ld.so.conf contents (and includes) to the search path. 18385 if test -f /etc/ld.so.conf; then 18386 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' ' '` 18387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18388 fi 18389 18390 # We used to test for /lib/ld.so.1 and disable shared libraries on 18391 # powerpc, because MkLinux only supported shared libraries with the 18392 # GNU dynamic linker. Since this was broken with cross compilers, 18393 # most powerpc-linux boxes support dynamic linking these days and 18394 # people can always --disable-shared, the test was removed, and we 18395 # assume the GNU/Linux dynamic linker is in use. 18396 dynamic_linker='GNU/Linux ld.so' 18397 ;; 18398 18399netbsd*) 18400 version_type=sunos 18401 need_lib_prefix=no 18402 need_version=no 18403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18404 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18406 dynamic_linker='NetBSD (a.out) ld.so' 18407 else 18408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18409 soname_spec='$libname$release$shared_ext$major' 18410 dynamic_linker='NetBSD ld.elf_so' 18411 fi 18412 shlibpath_var=LD_LIBRARY_PATH 18413 shlibpath_overrides_runpath=yes 18414 hardcode_into_libs=yes 18415 ;; 18416 18417newsos6) 18418 version_type=linux # correct to gnu/linux during the next big refactor 18419 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18420 shlibpath_var=LD_LIBRARY_PATH 18421 shlibpath_overrides_runpath=yes 18422 ;; 18423 18424*nto* | *qnx*) 18425 version_type=qnx 18426 need_lib_prefix=no 18427 need_version=no 18428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18429 soname_spec='$libname$release$shared_ext$major' 18430 shlibpath_var=LD_LIBRARY_PATH 18431 shlibpath_overrides_runpath=no 18432 hardcode_into_libs=yes 18433 dynamic_linker='ldqnx.so' 18434 ;; 18435 18436openbsd* | bitrig*) 18437 version_type=sunos 18438 sys_lib_dlsearch_path_spec=/usr/lib 18439 need_lib_prefix=no 18440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18441 need_version=no 18442 else 18443 need_version=yes 18444 fi 18445 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18447 shlibpath_var=LD_LIBRARY_PATH 18448 shlibpath_overrides_runpath=yes 18449 ;; 18450 18451os2*) 18452 libname_spec='$name' 18453 version_type=windows 18454 shrext_cmds=.dll 18455 need_version=no 18456 need_lib_prefix=no 18457 # OS/2 can only load a DLL with a base name of 8 characters or less. 18458 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18459 v=$($ECHO $release$versuffix | tr -d .-); 18460 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18461 $ECHO $n$v`$shared_ext' 18462 library_names_spec='${libname}_dll.$libext' 18463 dynamic_linker='OS/2 ld.exe' 18464 shlibpath_var=BEGINLIBPATH 18465 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18467 postinstall_cmds='base_file=`basename \$file`~ 18468 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18469 dldir=$destdir/`dirname \$dlpath`~ 18470 test -d \$dldir || mkdir -p \$dldir~ 18471 $install_prog $dir/$dlname \$dldir/$dlname~ 18472 chmod a+x \$dldir/$dlname~ 18473 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18474 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18475 fi' 18476 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18477 dlpath=$dir/\$dldll~ 18478 $RM \$dlpath' 18479 ;; 18480 18481osf3* | osf4* | osf5*) 18482 version_type=osf 18483 need_lib_prefix=no 18484 need_version=no 18485 soname_spec='$libname$release$shared_ext$major' 18486 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18487 shlibpath_var=LD_LIBRARY_PATH 18488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18489 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18490 ;; 18491 18492rdos*) 18493 dynamic_linker=no 18494 ;; 18495 18496solaris*) 18497 version_type=linux # correct to gnu/linux during the next big refactor 18498 need_lib_prefix=no 18499 need_version=no 18500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18501 soname_spec='$libname$release$shared_ext$major' 18502 shlibpath_var=LD_LIBRARY_PATH 18503 shlibpath_overrides_runpath=yes 18504 hardcode_into_libs=yes 18505 # ldd complains unless libraries are executable 18506 postinstall_cmds='chmod +x $lib' 18507 ;; 18508 18509sunos4*) 18510 version_type=sunos 18511 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18513 shlibpath_var=LD_LIBRARY_PATH 18514 shlibpath_overrides_runpath=yes 18515 if test yes = "$with_gnu_ld"; then 18516 need_lib_prefix=no 18517 fi 18518 need_version=yes 18519 ;; 18520 18521sysv4 | sysv4.3*) 18522 version_type=linux # correct to gnu/linux during the next big refactor 18523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18524 soname_spec='$libname$release$shared_ext$major' 18525 shlibpath_var=LD_LIBRARY_PATH 18526 case $host_vendor in 18527 sni) 18528 shlibpath_overrides_runpath=no 18529 need_lib_prefix=no 18530 runpath_var=LD_RUN_PATH 18531 ;; 18532 siemens) 18533 need_lib_prefix=no 18534 ;; 18535 motorola) 18536 need_lib_prefix=no 18537 need_version=no 18538 shlibpath_overrides_runpath=no 18539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18540 ;; 18541 esac 18542 ;; 18543 18544sysv4*MP*) 18545 if test -d /usr/nec; then 18546 version_type=linux # correct to gnu/linux during the next big refactor 18547 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18548 soname_spec='$libname$shared_ext.$major' 18549 shlibpath_var=LD_LIBRARY_PATH 18550 fi 18551 ;; 18552 18553sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18554 version_type=sco 18555 need_lib_prefix=no 18556 need_version=no 18557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18558 soname_spec='$libname$release$shared_ext$major' 18559 shlibpath_var=LD_LIBRARY_PATH 18560 shlibpath_overrides_runpath=yes 18561 hardcode_into_libs=yes 18562 if test yes = "$with_gnu_ld"; then 18563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18564 else 18565 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18566 case $host_os in 18567 sco3.2v5*) 18568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18569 ;; 18570 esac 18571 fi 18572 sys_lib_dlsearch_path_spec='/usr/lib' 18573 ;; 18574 18575tpf*) 18576 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18577 version_type=linux # correct to gnu/linux during the next big refactor 18578 need_lib_prefix=no 18579 need_version=no 18580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18581 shlibpath_var=LD_LIBRARY_PATH 18582 shlibpath_overrides_runpath=no 18583 hardcode_into_libs=yes 18584 ;; 18585 18586uts4*) 18587 version_type=linux # correct to gnu/linux during the next big refactor 18588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18589 soname_spec='$libname$release$shared_ext$major' 18590 shlibpath_var=LD_LIBRARY_PATH 18591 ;; 18592 18593*) 18594 dynamic_linker=no 18595 ;; 18596esac 18597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18598$as_echo "$dynamic_linker" >&6; } 18599test no = "$dynamic_linker" && can_build_shared=no 18600 18601variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18602if test yes = "$GCC"; then 18603 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18604fi 18605 18606if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18607 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18608fi 18609 18610if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18611 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18612fi 18613 18614# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18615configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18616 18617# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18618func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18619 18620# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18621configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18663$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18664hardcode_action_F77= 18665if test -n "$hardcode_libdir_flag_spec_F77" || 18666 test -n "$runpath_var_F77" || 18667 test yes = "$hardcode_automatic_F77"; then 18668 18669 # We can hardcode non-existent directories. 18670 if test no != "$hardcode_direct_F77" && 18671 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18672 # have to relink, otherwise we might link with an installed library 18673 # when we should be linking with a yet-to-be-installed one 18674 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" && 18675 test no != "$hardcode_minus_L_F77"; then 18676 # Linking always hardcodes the temporary library directory. 18677 hardcode_action_F77=relink 18678 else 18679 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18680 hardcode_action_F77=immediate 18681 fi 18682else 18683 # We cannot hardcode anything, or else we can only hardcode existing 18684 # directories. 18685 hardcode_action_F77=unsupported 18686fi 18687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 18688$as_echo "$hardcode_action_F77" >&6; } 18689 18690if test relink = "$hardcode_action_F77" || 18691 test yes = "$inherit_rpath_F77"; then 18692 # Fast installation is not supported 18693 enable_fast_install=no 18694elif test yes = "$shlibpath_overrides_runpath" || 18695 test no = "$enable_shared"; then 18696 # Fast installation is not necessary 18697 enable_fast_install=needless 18698fi 18699 18700 18701 18702 18703 18704 18705 18706 fi # test -n "$compiler" 18707 18708 GCC=$lt_save_GCC 18709 CC=$lt_save_CC 18710 CFLAGS=$lt_save_CFLAGS 18711fi # test yes != "$_lt_disable_F77" 18712 18713ac_ext=c 18714ac_cpp='$CPP $CPPFLAGS' 18715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18717ac_compiler_gnu=$ac_cv_c_compiler_gnu 18718 18719 18720 18721 ac_ext=${ac_fc_srcext-f} 18722ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' 18723ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' 18724ac_compiler_gnu=$ac_cv_fc_compiler_gnu 18725 18726 18727if test -z "$FC" || test no = "$FC"; then 18728 _lt_disable_FC=yes 18729fi 18730 18731archive_cmds_need_lc_FC=no 18732allow_undefined_flag_FC= 18733always_export_symbols_FC=no 18734archive_expsym_cmds_FC= 18735export_dynamic_flag_spec_FC= 18736hardcode_direct_FC=no 18737hardcode_direct_absolute_FC=no 18738hardcode_libdir_flag_spec_FC= 18739hardcode_libdir_separator_FC= 18740hardcode_minus_L_FC=no 18741hardcode_automatic_FC=no 18742inherit_rpath_FC=no 18743module_cmds_FC= 18744module_expsym_cmds_FC= 18745link_all_deplibs_FC=unknown 18746old_archive_cmds_FC=$old_archive_cmds 18747reload_flag_FC=$reload_flag 18748reload_cmds_FC=$reload_cmds 18749no_undefined_flag_FC= 18750whole_archive_flag_spec_FC= 18751enable_shared_with_static_runtimes_FC=no 18752 18753# Source file extension for fc test sources. 18754ac_ext=${ac_fc_srcext-f} 18755 18756# Object file extension for compiled fc test sources. 18757objext=o 18758objext_FC=$objext 18759 18760# No sense in running all these tests if we already determined that 18761# the FC compiler isn't working. Some variables (like enable_shared) 18762# are currently assumed to apply to all compilers on this platform, 18763# and will be corrupted by setting them based on a non-working compiler. 18764if test yes != "$_lt_disable_FC"; then 18765 # Code to be used in simple compile tests 18766 lt_simple_compile_test_code="\ 18767 subroutine t 18768 return 18769 end 18770" 18771 18772 # Code to be used in simple link tests 18773 lt_simple_link_test_code="\ 18774 program t 18775 end 18776" 18777 18778 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 18779 18780 18781 18782 18783 18784 18785# If no C compiler was specified, use CC. 18786LTCC=${LTCC-"$CC"} 18787 18788# If no C compiler flags were specified, use CFLAGS. 18789LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18790 18791# Allow CC to be a program name with arguments. 18792compiler=$CC 18793 18794 18795 # save warnings/boilerplate of simple test code 18796 ac_outfile=conftest.$ac_objext 18797echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18798eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18799_lt_compiler_boilerplate=`cat conftest.err` 18800$RM conftest* 18801 18802 ac_outfile=conftest.$ac_objext 18803echo "$lt_simple_link_test_code" >conftest.$ac_ext 18804eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18805_lt_linker_boilerplate=`cat conftest.err` 18806$RM -r conftest* 18807 18808 18809 # Allow CC to be a program name with arguments. 18810 lt_save_CC=$CC 18811 lt_save_GCC=$GCC 18812 lt_save_CFLAGS=$CFLAGS 18813 CC=${FC-"f95"} 18814 CFLAGS=$FCFLAGS 18815 compiler=$CC 18816 GCC=$ac_cv_fc_compiler_gnu 18817 18818 compiler_FC=$CC 18819 func_cc_basename $compiler 18820cc_basename=$func_cc_basename_result 18821 18822 18823 if test -n "$compiler"; then 18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18825$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18827$as_echo "$can_build_shared" >&6; } 18828 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18830$as_echo_n "checking whether to build shared libraries... " >&6; } 18831 test no = "$can_build_shared" && enable_shared=no 18832 18833 # On AIX, shared libraries and static libraries use the same namespace, and 18834 # are all built from PIC. 18835 case $host_os in 18836 aix3*) 18837 test yes = "$enable_shared" && enable_static=no 18838 if test -n "$RANLIB"; then 18839 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18840 postinstall_cmds='$RANLIB $lib' 18841 fi 18842 ;; 18843 aix[4-9]*) 18844 if test ia64 != "$host_cpu"; then 18845 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 18846 yes,aix,yes) ;; # shared object as lib.so file only 18847 yes,svr4,*) ;; # shared object as lib.so archive member only 18848 yes,*) enable_static=no ;; # shared object in lib.a archive as well 18849 esac 18850 fi 18851 ;; 18852 esac 18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18854$as_echo "$enable_shared" >&6; } 18855 18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18857$as_echo_n "checking whether to build static libraries... " >&6; } 18858 # Make sure either enable_shared or enable_static is yes. 18859 test yes = "$enable_shared" || enable_static=yes 18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18861$as_echo "$enable_static" >&6; } 18862 18863 GCC_FC=$ac_cv_fc_compiler_gnu 18864 LD_FC=$LD 18865 18866 ## CAVEAT EMPTOR: 18867 ## There is no encapsulation within the following macros, do not change 18868 ## the running order or otherwise move them around unless you know exactly 18869 ## what you are doing... 18870 # Dependencies to place before and after the object being linked: 18871predep_objects_FC= 18872postdep_objects_FC= 18873predeps_FC= 18874postdeps_FC= 18875compiler_lib_search_path_FC= 18876 18877cat > conftest.$ac_ext <<_LT_EOF 18878 subroutine foo 18879 implicit none 18880 integer a 18881 a=0 18882 return 18883 end 18884_LT_EOF 18885 18886 18887_lt_libdeps_save_CFLAGS=$CFLAGS 18888case "$CC $CFLAGS " in #( 18889*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 18890*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 18891*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 18892esac 18893 18894if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 18895 (eval $ac_compile) 2>&5 18896 ac_status=$? 18897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18898 test $ac_status = 0; }; then 18899 # Parse the compiler output and extract the necessary 18900 # objects, libraries and library flags. 18901 18902 # Sentinel used to keep track of whether or not we are before 18903 # the conftest object file. 18904 pre_test_object_deps_done=no 18905 18906 for p in `eval "$output_verbose_link_cmd"`; do 18907 case $prev$p in 18908 18909 -L* | -R* | -l*) 18910 # Some compilers place space between "-{L,R}" and the path. 18911 # Remove the space. 18912 if test x-L = "$p" || 18913 test x-R = "$p"; then 18914 prev=$p 18915 continue 18916 fi 18917 18918 # Expand the sysroot to ease extracting the directories later. 18919 if test -z "$prev"; then 18920 case $p in 18921 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 18922 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 18923 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 18924 esac 18925 fi 18926 case $p in 18927 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 18928 esac 18929 if test no = "$pre_test_object_deps_done"; then 18930 case $prev in 18931 -L | -R) 18932 # Internal compiler library paths should come after those 18933 # provided the user. The postdeps already come after the 18934 # user supplied libs so there is no need to process them. 18935 if test -z "$compiler_lib_search_path_FC"; then 18936 compiler_lib_search_path_FC=$prev$p 18937 else 18938 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p" 18939 fi 18940 ;; 18941 # The "-l" case would never come before the object being 18942 # linked, so don't bother handling this case. 18943 esac 18944 else 18945 if test -z "$postdeps_FC"; then 18946 postdeps_FC=$prev$p 18947 else 18948 postdeps_FC="${postdeps_FC} $prev$p" 18949 fi 18950 fi 18951 prev= 18952 ;; 18953 18954 *.lto.$objext) ;; # Ignore GCC LTO objects 18955 *.$objext) 18956 # This assumes that the test object file only shows up 18957 # once in the compiler output. 18958 if test "$p" = "conftest.$objext"; then 18959 pre_test_object_deps_done=yes 18960 continue 18961 fi 18962 18963 if test no = "$pre_test_object_deps_done"; then 18964 if test -z "$predep_objects_FC"; then 18965 predep_objects_FC=$p 18966 else 18967 predep_objects_FC="$predep_objects_FC $p" 18968 fi 18969 else 18970 if test -z "$postdep_objects_FC"; then 18971 postdep_objects_FC=$p 18972 else 18973 postdep_objects_FC="$postdep_objects_FC $p" 18974 fi 18975 fi 18976 ;; 18977 18978 *) ;; # Ignore the rest. 18979 18980 esac 18981 done 18982 18983 # Clean up. 18984 rm -f a.out a.exe 18985else 18986 echo "libtool.m4: error: problem compiling FC test program" 18987fi 18988 18989$RM -f confest.$objext 18990CFLAGS=$_lt_libdeps_save_CFLAGS 18991 18992# PORTME: override above test on systems where it is broken 18993 18994 18995case " $postdeps_FC " in 18996*" -lc "*) archive_cmds_need_lc_FC=no ;; 18997esac 18998 compiler_lib_search_dirs_FC= 18999if test -n "${compiler_lib_search_path_FC}"; then 19000 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'` 19001fi 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 lt_prog_compiler_wl_FC= 19034lt_prog_compiler_pic_FC= 19035lt_prog_compiler_static_FC= 19036 19037 19038 if test yes = "$GCC"; then 19039 lt_prog_compiler_wl_FC='-Wl,' 19040 lt_prog_compiler_static_FC='-static' 19041 19042 case $host_os in 19043 aix*) 19044 # All AIX code is PIC. 19045 if test ia64 = "$host_cpu"; then 19046 # AIX 5 now supports IA64 processor 19047 lt_prog_compiler_static_FC='-Bstatic' 19048 fi 19049 lt_prog_compiler_pic_FC='-fPIC' 19050 ;; 19051 19052 amigaos*) 19053 case $host_cpu in 19054 powerpc) 19055 # see comment about AmigaOS4 .so support 19056 lt_prog_compiler_pic_FC='-fPIC' 19057 ;; 19058 m68k) 19059 # FIXME: we need at least 68020 code to build shared libraries, but 19060 # adding the '-m68020' flag to GCC prevents building anything better, 19061 # like '-m68040'. 19062 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 19063 ;; 19064 esac 19065 ;; 19066 19067 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 19068 # PIC is the default for these OSes. 19069 ;; 19070 19071 mingw* | cygwin* | pw32* | os2* | cegcc*) 19072 # This hack is so that the source file can tell whether it is being 19073 # built for inclusion in a dll (and should export symbols for example). 19074 # Although the cygwin gcc ignores -fPIC, still need this for old-style 19075 # (--disable-auto-import) libraries 19076 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 19077 case $host_os in 19078 os2*) 19079 lt_prog_compiler_static_FC='$wl-static' 19080 ;; 19081 esac 19082 ;; 19083 19084 darwin* | rhapsody*) 19085 # PIC is the default on this platform 19086 # Common symbols not allowed in MH_DYLIB files 19087 lt_prog_compiler_pic_FC='-fno-common' 19088 ;; 19089 19090 haiku*) 19091 # PIC is the default for Haiku. 19092 # The "-static" flag exists, but is broken. 19093 lt_prog_compiler_static_FC= 19094 ;; 19095 19096 hpux*) 19097 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 19098 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 19099 # sets the default TLS model and affects inlining. 19100 case $host_cpu in 19101 hppa*64*) 19102 # +Z the default 19103 ;; 19104 *) 19105 lt_prog_compiler_pic_FC='-fPIC' 19106 ;; 19107 esac 19108 ;; 19109 19110 interix[3-9]*) 19111 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 19112 # Instead, we relocate shared libraries at runtime. 19113 ;; 19114 19115 msdosdjgpp*) 19116 # Just because we use GCC doesn't mean we suddenly get shared libraries 19117 # on systems that don't support them. 19118 lt_prog_compiler_can_build_shared_FC=no 19119 enable_shared=no 19120 ;; 19121 19122 *nto* | *qnx*) 19123 # QNX uses GNU C++, but need to define -shared option too, otherwise 19124 # it will coredump. 19125 lt_prog_compiler_pic_FC='-fPIC -shared' 19126 ;; 19127 19128 sysv4*MP*) 19129 if test -d /usr/nec; then 19130 lt_prog_compiler_pic_FC=-Kconform_pic 19131 fi 19132 ;; 19133 19134 *) 19135 lt_prog_compiler_pic_FC='-fPIC' 19136 ;; 19137 esac 19138 19139 case $cc_basename in 19140 nvcc*) # Cuda Compiler Driver 2.2 19141 lt_prog_compiler_wl_FC='-Xlinker ' 19142 if test -n "$lt_prog_compiler_pic_FC"; then 19143 lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC" 19144 fi 19145 ;; 19146 esac 19147 else 19148 # PORTME Check for flag to pass linker flags through the system compiler. 19149 case $host_os in 19150 aix*) 19151 lt_prog_compiler_wl_FC='-Wl,' 19152 if test ia64 = "$host_cpu"; then 19153 # AIX 5 now supports IA64 processor 19154 lt_prog_compiler_static_FC='-Bstatic' 19155 else 19156 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 19157 fi 19158 ;; 19159 19160 darwin* | rhapsody*) 19161 # PIC is the default on this platform 19162 # Common symbols not allowed in MH_DYLIB files 19163 lt_prog_compiler_pic_FC='-fno-common' 19164 case $cc_basename in 19165 nagfor*) 19166 # NAG Fortran compiler 19167 lt_prog_compiler_wl_FC='-Wl,-Wl,,' 19168 lt_prog_compiler_pic_FC='-PIC' 19169 lt_prog_compiler_static_FC='-Bstatic' 19170 ;; 19171 esac 19172 ;; 19173 19174 mingw* | cygwin* | pw32* | os2* | cegcc*) 19175 # This hack is so that the source file can tell whether it is being 19176 # built for inclusion in a dll (and should export symbols for example). 19177 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 19178 case $host_os in 19179 os2*) 19180 lt_prog_compiler_static_FC='$wl-static' 19181 ;; 19182 esac 19183 ;; 19184 19185 hpux9* | hpux10* | hpux11*) 19186 lt_prog_compiler_wl_FC='-Wl,' 19187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 19188 # not for PA HP-UX. 19189 case $host_cpu in 19190 hppa*64*|ia64*) 19191 # +Z the default 19192 ;; 19193 *) 19194 lt_prog_compiler_pic_FC='+Z' 19195 ;; 19196 esac 19197 # Is there a better lt_prog_compiler_static that works with the bundled CC? 19198 lt_prog_compiler_static_FC='$wl-a ${wl}archive' 19199 ;; 19200 19201 irix5* | irix6* | nonstopux*) 19202 lt_prog_compiler_wl_FC='-Wl,' 19203 # PIC (with -KPIC) is the default. 19204 lt_prog_compiler_static_FC='-non_shared' 19205 ;; 19206 19207 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 19208 case $cc_basename in 19209 # old Intel for x86_64, which still supported -KPIC. 19210 ecc*) 19211 lt_prog_compiler_wl_FC='-Wl,' 19212 lt_prog_compiler_pic_FC='-KPIC' 19213 lt_prog_compiler_static_FC='-static' 19214 ;; 19215 # icc used to be incompatible with GCC. 19216 # ICC 10 doesn't accept -KPIC any more. 19217 icc* | ifort*) 19218 lt_prog_compiler_wl_FC='-Wl,' 19219 lt_prog_compiler_pic_FC='-fPIC' 19220 lt_prog_compiler_static_FC='-static' 19221 ;; 19222 # Lahey Fortran 8.1. 19223 lf95*) 19224 lt_prog_compiler_wl_FC='-Wl,' 19225 lt_prog_compiler_pic_FC='--shared' 19226 lt_prog_compiler_static_FC='--static' 19227 ;; 19228 nagfor*) 19229 # NAG Fortran compiler 19230 lt_prog_compiler_wl_FC='-Wl,-Wl,,' 19231 lt_prog_compiler_pic_FC='-PIC' 19232 lt_prog_compiler_static_FC='-Bstatic' 19233 ;; 19234 tcc*) 19235 # Fabrice Bellard et al's Tiny C Compiler 19236 lt_prog_compiler_wl_FC='-Wl,' 19237 lt_prog_compiler_pic_FC='-fPIC' 19238 lt_prog_compiler_static_FC='-static' 19239 ;; 19240 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 19241 # Portland Group compilers (*not* the Pentium gcc compiler, 19242 # which looks to be a dead project) 19243 lt_prog_compiler_wl_FC='-Wl,' 19244 lt_prog_compiler_pic_FC='-fpic' 19245 lt_prog_compiler_static_FC='-Bstatic' 19246 ;; 19247 ccc*) 19248 lt_prog_compiler_wl_FC='-Wl,' 19249 # All Alpha code is PIC. 19250 lt_prog_compiler_static_FC='-non_shared' 19251 ;; 19252 xl* | bgxl* | bgf* | mpixl*) 19253 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 19254 lt_prog_compiler_wl_FC='-Wl,' 19255 lt_prog_compiler_pic_FC='-qpic' 19256 lt_prog_compiler_static_FC='-qstaticlink' 19257 ;; 19258 *) 19259 case `$CC -V 2>&1 | sed 5q` in 19260 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 19261 # Sun Fortran 8.3 passes all unrecognized flags to the linker 19262 lt_prog_compiler_pic_FC='-KPIC' 19263 lt_prog_compiler_static_FC='-Bstatic' 19264 lt_prog_compiler_wl_FC='' 19265 ;; 19266 *Sun\ F* | *Sun*Fortran*) 19267 lt_prog_compiler_pic_FC='-KPIC' 19268 lt_prog_compiler_static_FC='-Bstatic' 19269 lt_prog_compiler_wl_FC='-Qoption ld ' 19270 ;; 19271 *Sun\ C*) 19272 # Sun C 5.9 19273 lt_prog_compiler_pic_FC='-KPIC' 19274 lt_prog_compiler_static_FC='-Bstatic' 19275 lt_prog_compiler_wl_FC='-Wl,' 19276 ;; 19277 *Intel*\ [CF]*Compiler*) 19278 lt_prog_compiler_wl_FC='-Wl,' 19279 lt_prog_compiler_pic_FC='-fPIC' 19280 lt_prog_compiler_static_FC='-static' 19281 ;; 19282 *Portland\ Group*) 19283 lt_prog_compiler_wl_FC='-Wl,' 19284 lt_prog_compiler_pic_FC='-fpic' 19285 lt_prog_compiler_static_FC='-Bstatic' 19286 ;; 19287 esac 19288 ;; 19289 esac 19290 ;; 19291 19292 newsos6) 19293 lt_prog_compiler_pic_FC='-KPIC' 19294 lt_prog_compiler_static_FC='-Bstatic' 19295 ;; 19296 19297 *nto* | *qnx*) 19298 # QNX uses GNU C++, but need to define -shared option too, otherwise 19299 # it will coredump. 19300 lt_prog_compiler_pic_FC='-fPIC -shared' 19301 ;; 19302 19303 osf3* | osf4* | osf5*) 19304 lt_prog_compiler_wl_FC='-Wl,' 19305 # All OSF/1 code is PIC. 19306 lt_prog_compiler_static_FC='-non_shared' 19307 ;; 19308 19309 rdos*) 19310 lt_prog_compiler_static_FC='-non_shared' 19311 ;; 19312 19313 solaris*) 19314 lt_prog_compiler_pic_FC='-KPIC' 19315 lt_prog_compiler_static_FC='-Bstatic' 19316 case $cc_basename in 19317 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 19318 lt_prog_compiler_wl_FC='-Qoption ld ';; 19319 *) 19320 lt_prog_compiler_wl_FC='-Wl,';; 19321 esac 19322 ;; 19323 19324 sunos4*) 19325 lt_prog_compiler_wl_FC='-Qoption ld ' 19326 lt_prog_compiler_pic_FC='-PIC' 19327 lt_prog_compiler_static_FC='-Bstatic' 19328 ;; 19329 19330 sysv4 | sysv4.2uw2* | sysv4.3*) 19331 lt_prog_compiler_wl_FC='-Wl,' 19332 lt_prog_compiler_pic_FC='-KPIC' 19333 lt_prog_compiler_static_FC='-Bstatic' 19334 ;; 19335 19336 sysv4*MP*) 19337 if test -d /usr/nec; then 19338 lt_prog_compiler_pic_FC='-Kconform_pic' 19339 lt_prog_compiler_static_FC='-Bstatic' 19340 fi 19341 ;; 19342 19343 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 19344 lt_prog_compiler_wl_FC='-Wl,' 19345 lt_prog_compiler_pic_FC='-KPIC' 19346 lt_prog_compiler_static_FC='-Bstatic' 19347 ;; 19348 19349 unicos*) 19350 lt_prog_compiler_wl_FC='-Wl,' 19351 lt_prog_compiler_can_build_shared_FC=no 19352 ;; 19353 19354 uts4*) 19355 lt_prog_compiler_pic_FC='-pic' 19356 lt_prog_compiler_static_FC='-Bstatic' 19357 ;; 19358 19359 *) 19360 lt_prog_compiler_can_build_shared_FC=no 19361 ;; 19362 esac 19363 fi 19364 19365 19366if test "$ax_cv_c_compiler_vendor" = "fujitsu"; then 19367 case $host_cpu in 19368 sparc64*) 19369 lt_prog_compiler_pic_FC='-KPIC' 19370 ;; 19371 *) 19372 ;; 19373 esac 19374fi 19375 19376case $host_os in 19377 # For platforms that do not support PIC, -DPIC is meaningless: 19378 *djgpp*) 19379 lt_prog_compiler_pic_FC= 19380 ;; 19381 *) 19382 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 19383 ;; 19384esac 19385 19386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 19387$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 19388if ${lt_cv_prog_compiler_pic_FC+:} false; then : 19389 $as_echo_n "(cached) " >&6 19390else 19391 lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC 19392fi 19393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5 19394$as_echo "$lt_cv_prog_compiler_pic_FC" >&6; } 19395lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC 19396 19397# 19398# Check to make sure the PIC flag actually works. 19399# 19400if test -n "$lt_prog_compiler_pic_FC"; then 19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 19402$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; } 19403if ${lt_cv_prog_compiler_pic_works_FC+:} false; then : 19404 $as_echo_n "(cached) " >&6 19405else 19406 lt_cv_prog_compiler_pic_works_FC=no 19407 ac_outfile=conftest.$ac_objext 19408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19409 lt_compiler_flag="$lt_prog_compiler_pic_FC" ## exclude from sc_useless_quotes_in_assignment 19410 # Insert the option either (1) after the last *FLAGS variable, or 19411 # (2) before a word containing "conftest.", or (3) at the end. 19412 # Note that $ac_compile itself does not contain backslashes and begins 19413 # with a dollar sign (not a hyphen), so the echo should work correctly. 19414 # The option is referenced via a variable to avoid confusing sed. 19415 lt_compile=`echo "$ac_compile" | $SED \ 19416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19418 -e 's:$: $lt_compiler_flag:'` 19419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19420 (eval "$lt_compile" 2>conftest.err) 19421 ac_status=$? 19422 cat conftest.err >&5 19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19424 if (exit $ac_status) && test -s "$ac_outfile"; then 19425 # The compiler can only warn and ignore the option if not recognized 19426 # So say no if there are warnings other than the usual output. 19427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 19428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19429 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 19430 lt_cv_prog_compiler_pic_works_FC=yes 19431 fi 19432 fi 19433 $RM conftest* 19434 19435fi 19436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5 19437$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; } 19438 19439if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then 19440 case $lt_prog_compiler_pic_FC in 19441 "" | " "*) ;; 19442 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 19443 esac 19444else 19445 lt_prog_compiler_pic_FC= 19446 lt_prog_compiler_can_build_shared_FC=no 19447fi 19448 19449fi 19450 19451 19452 19453 19454 19455# 19456# Check to make sure the static flag actually works. 19457# 19458wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 19459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 19460$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 19461if ${lt_cv_prog_compiler_static_works_FC+:} false; then : 19462 $as_echo_n "(cached) " >&6 19463else 19464 lt_cv_prog_compiler_static_works_FC=no 19465 save_LDFLAGS=$LDFLAGS 19466 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 19467 echo "$lt_simple_link_test_code" > conftest.$ac_ext 19468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 19469 # The linker can only warn and ignore the option if not recognized 19470 # So say no if there are warnings 19471 if test -s conftest.err; then 19472 # Append any errors to the config.log. 19473 cat conftest.err 1>&5 19474 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 19475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 19476 if diff conftest.exp conftest.er2 >/dev/null; then 19477 lt_cv_prog_compiler_static_works_FC=yes 19478 fi 19479 else 19480 lt_cv_prog_compiler_static_works_FC=yes 19481 fi 19482 fi 19483 $RM -r conftest* 19484 LDFLAGS=$save_LDFLAGS 19485 19486fi 19487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5 19488$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; } 19489 19490if test yes = "$lt_cv_prog_compiler_static_works_FC"; then 19491 : 19492else 19493 lt_prog_compiler_static_FC= 19494fi 19495 19496 19497 19498 19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19500$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19501if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 19502 $as_echo_n "(cached) " >&6 19503else 19504 lt_cv_prog_compiler_c_o_FC=no 19505 $RM -r conftest 2>/dev/null 19506 mkdir conftest 19507 cd conftest 19508 mkdir out 19509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19510 19511 lt_compiler_flag="-o out/conftest2.$ac_objext" 19512 # Insert the option either (1) after the last *FLAGS variable, or 19513 # (2) before a word containing "conftest.", or (3) at the end. 19514 # Note that $ac_compile itself does not contain backslashes and begins 19515 # with a dollar sign (not a hyphen), so the echo should work correctly. 19516 lt_compile=`echo "$ac_compile" | $SED \ 19517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19519 -e 's:$: $lt_compiler_flag:'` 19520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19521 (eval "$lt_compile" 2>out/conftest.err) 19522 ac_status=$? 19523 cat out/conftest.err >&5 19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19525 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19526 then 19527 # The compiler can only warn and ignore the option if not recognized 19528 # So say no if there are warnings 19529 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19532 lt_cv_prog_compiler_c_o_FC=yes 19533 fi 19534 fi 19535 chmod u+w . 2>&5 19536 $RM conftest* 19537 # SGI C++ compiler will create directory out/ii_files/ for 19538 # template instantiation 19539 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19540 $RM out/* && rmdir out 19541 cd .. 19542 $RM -r conftest 19543 $RM conftest* 19544 19545fi 19546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 19547$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 19548 19549 19550 19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 19552$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 19553if ${lt_cv_prog_compiler_c_o_FC+:} false; then : 19554 $as_echo_n "(cached) " >&6 19555else 19556 lt_cv_prog_compiler_c_o_FC=no 19557 $RM -r conftest 2>/dev/null 19558 mkdir conftest 19559 cd conftest 19560 mkdir out 19561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19562 19563 lt_compiler_flag="-o out/conftest2.$ac_objext" 19564 # Insert the option either (1) after the last *FLAGS variable, or 19565 # (2) before a word containing "conftest.", or (3) at the end. 19566 # Note that $ac_compile itself does not contain backslashes and begins 19567 # with a dollar sign (not a hyphen), so the echo should work correctly. 19568 lt_compile=`echo "$ac_compile" | $SED \ 19569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 19570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 19571 -e 's:$: $lt_compiler_flag:'` 19572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 19573 (eval "$lt_compile" 2>out/conftest.err) 19574 ac_status=$? 19575 cat out/conftest.err >&5 19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19577 if (exit $ac_status) && test -s out/conftest2.$ac_objext 19578 then 19579 # The compiler can only warn and ignore the option if not recognized 19580 # So say no if there are warnings 19581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 19582 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 19583 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 19584 lt_cv_prog_compiler_c_o_FC=yes 19585 fi 19586 fi 19587 chmod u+w . 2>&5 19588 $RM conftest* 19589 # SGI C++ compiler will create directory out/ii_files/ for 19590 # template instantiation 19591 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 19592 $RM out/* && rmdir out 19593 cd .. 19594 $RM -r conftest 19595 $RM conftest* 19596 19597fi 19598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5 19599$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; } 19600 19601 19602 19603 19604hard_links=nottested 19605if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then 19606 # do not overwrite the value of need_locks provided by the user 19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 19608$as_echo_n "checking if we can lock with hard links... " >&6; } 19609 hard_links=yes 19610 $RM conftest* 19611 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19612 touch conftest.a 19613 ln conftest.a conftest.b 2>&5 || hard_links=no 19614 ln conftest.a conftest.b 2>/dev/null && hard_links=no 19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 19616$as_echo "$hard_links" >&6; } 19617 if test no = "$hard_links"; then 19618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 19619$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 19620 need_locks=warn 19621 fi 19622else 19623 need_locks=no 19624fi 19625 19626 19627 19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19629$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19630 19631 runpath_var= 19632 allow_undefined_flag_FC= 19633 always_export_symbols_FC=no 19634 archive_cmds_FC= 19635 archive_expsym_cmds_FC= 19636 compiler_needs_object_FC=no 19637 enable_shared_with_static_runtimes_FC=no 19638 export_dynamic_flag_spec_FC= 19639 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 19640 hardcode_automatic_FC=no 19641 hardcode_direct_FC=no 19642 hardcode_direct_absolute_FC=no 19643 hardcode_libdir_flag_spec_FC= 19644 hardcode_libdir_separator_FC= 19645 hardcode_minus_L_FC=no 19646 hardcode_shlibpath_var_FC=unsupported 19647 inherit_rpath_FC=no 19648 link_all_deplibs_FC=unknown 19649 module_cmds_FC= 19650 module_expsym_cmds_FC= 19651 old_archive_from_new_cmds_FC= 19652 old_archive_from_expsyms_cmds_FC= 19653 thread_safe_flag_spec_FC= 19654 whole_archive_flag_spec_FC= 19655 # include_expsyms should be a list of space-separated symbols to be *always* 19656 # included in the symbol list 19657 include_expsyms_FC= 19658 # exclude_expsyms can be an extended regexp of symbols to exclude 19659 # it will be wrapped by ' (' and ')$', so one must not match beginning or 19660 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 19661 # as well as any symbol that contains 'd'. 19662 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 19663 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 19664 # platforms (ab)use it in PIC code, but their linkers get confused if 19665 # the symbol is explicitly referenced. Since portable code cannot 19666 # rely on this symbol name, it's probably fine to never include it in 19667 # preloaded symbol tables. 19668 # Exclude shared library initialization/finalization symbols. 19669 extract_expsyms_cmds= 19670 19671 case $host_os in 19672 cygwin* | mingw* | pw32* | cegcc*) 19673 # FIXME: the MSVC++ port hasn't been tested in a loooong time 19674 # When not using gcc, we currently assume that we are using 19675 # Microsoft Visual C++. 19676 if test yes != "$GCC"; then 19677 with_gnu_ld=no 19678 fi 19679 ;; 19680 interix*) 19681 # we just hope/assume this is gcc and not c89 (= MSVC++) 19682 with_gnu_ld=yes 19683 ;; 19684 openbsd* | bitrig*) 19685 with_gnu_ld=no 19686 ;; 19687 esac 19688 19689 ld_shlibs_FC=yes 19690 19691 # On some targets, GNU ld is compatible enough with the native linker 19692 # that we're better off using the native interface for both. 19693 lt_use_gnu_ld_interface=no 19694 if test yes = "$with_gnu_ld"; then 19695 case $host_os in 19696 aix*) 19697 # The AIX port of GNU ld has always aspired to compatibility 19698 # with the native linker. However, as the warning in the GNU ld 19699 # block says, versions before 2.19.5* couldn't really create working 19700 # shared libraries, regardless of the interface used. 19701 case `$LD -v 2>&1` in 19702 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 19703 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 19704 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 19705 *) 19706 lt_use_gnu_ld_interface=yes 19707 ;; 19708 esac 19709 ;; 19710 *) 19711 lt_use_gnu_ld_interface=yes 19712 ;; 19713 esac 19714 fi 19715 19716 if test yes = "$lt_use_gnu_ld_interface"; then 19717 # If archive_cmds runs LD, not CC, wlarc should be empty 19718 wlarc='$wl' 19719 19720 # Set some defaults for GNU ld with shared library support. These 19721 # are reset later if shared libraries are not supported. Putting them 19722 # here allows them to be overridden if necessary. 19723 runpath_var=LD_RUN_PATH 19724 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 19725 export_dynamic_flag_spec_FC='$wl--export-dynamic' 19726 # ancient GNU ld didn't support --whole-archive et. al. 19727 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 19728 whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 19729 else 19730 whole_archive_flag_spec_FC= 19731 fi 19732 supports_anon_versioning=no 19733 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 19734 *GNU\ gold*) supports_anon_versioning=yes ;; 19735 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 19736 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 19737 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 19738 *\ 2.11.*) ;; # other 2.11 versions 19739 *) supports_anon_versioning=yes ;; 19740 esac 19741 19742 # See if GNU ld supports shared libraries. 19743 case $host_os in 19744 aix[3-9]*) 19745 # On AIX/PPC, the GNU linker is very broken 19746 if test ia64 != "$host_cpu"; then 19747 ld_shlibs_FC=no 19748 cat <<_LT_EOF 1>&2 19749 19750*** Warning: the GNU linker, at least up to release 2.19, is reported 19751*** to be unable to reliably create shared libraries on AIX. 19752*** Therefore, libtool is disabling shared libraries support. If you 19753*** really care for shared libraries, you may want to install binutils 19754*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 19755*** You will then need to restart the configuration process. 19756 19757_LT_EOF 19758 fi 19759 ;; 19760 19761 amigaos*) 19762 case $host_cpu in 19763 powerpc) 19764 # see comment about AmigaOS4 .so support 19765 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19766 archive_expsym_cmds_FC='' 19767 ;; 19768 m68k) 19769 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)' 19770 hardcode_libdir_flag_spec_FC='-L$libdir' 19771 hardcode_minus_L_FC=yes 19772 ;; 19773 esac 19774 ;; 19775 19776 beos*) 19777 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19778 allow_undefined_flag_FC=unsupported 19779 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19780 # support --undefined. This deserves some investigation. FIXME 19781 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19782 else 19783 ld_shlibs_FC=no 19784 fi 19785 ;; 19786 19787 cygwin* | mingw* | pw32* | cegcc*) 19788 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 19789 # as there is no search path for DLLs. 19790 hardcode_libdir_flag_spec_FC='-L$libdir' 19791 export_dynamic_flag_spec_FC='$wl--export-all-symbols' 19792 allow_undefined_flag_FC=unsupported 19793 always_export_symbols_FC=no 19794 enable_shared_with_static_runtimes_FC=yes 19795 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 19796 exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 19797 19798 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19799 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19800 # If the export-symbols file already is a .def file, use it as 19801 # is; otherwise, prepend EXPORTS... 19802 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 19803 cp $export_symbols $output_objdir/$soname.def; 19804 else 19805 echo EXPORTS > $output_objdir/$soname.def; 19806 cat $export_symbols >> $output_objdir/$soname.def; 19807 fi~ 19808 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19809 else 19810 ld_shlibs_FC=no 19811 fi 19812 ;; 19813 19814 haiku*) 19815 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19816 link_all_deplibs_FC=yes 19817 ;; 19818 19819 os2*) 19820 hardcode_libdir_flag_spec_FC='-L$libdir' 19821 hardcode_minus_L_FC=yes 19822 allow_undefined_flag_FC=unsupported 19823 shrext_cmds=.dll 19824 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19825 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19826 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19827 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19828 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 19829 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19830 emximp -o $lib $output_objdir/$libname.def' 19831 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 19832 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 19833 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 19834 $ECHO EXPORTS >> $output_objdir/$libname.def~ 19835 prefix_cmds="$SED"~ 19836 if test EXPORTS = "`$SED 1q $export_symbols`"; then 19837 prefix_cmds="$prefix_cmds -e 1d"; 19838 fi~ 19839 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 19840 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 19841 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 19842 emximp -o $lib $output_objdir/$libname.def' 19843 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 19844 enable_shared_with_static_runtimes_FC=yes 19845 ;; 19846 19847 interix[3-9]*) 19848 hardcode_direct_FC=no 19849 hardcode_shlibpath_var_FC=no 19850 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 19851 export_dynamic_flag_spec_FC='$wl-E' 19852 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19853 # Instead, shared libraries are loaded at an image base (0x10000000 by 19854 # default) and relocated if they conflict, which is a slow very memory 19855 # consuming and fragmenting process. To avoid this, we pick a random, 19856 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19857 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19858 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' 19859 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' 19860 ;; 19861 19862 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 19863 tmp_diet=no 19864 if test linux-dietlibc = "$host_os"; then 19865 case $cc_basename in 19866 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 19867 esac 19868 fi 19869 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 19870 && test no = "$tmp_diet" 19871 then 19872 tmp_addflag=' $pic_flag' 19873 tmp_sharedflag='-shared' 19874 case $cc_basename,$host_cpu in 19875 pgcc*) # Portland Group C compiler 19876 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' 19877 tmp_addflag=' $pic_flag' 19878 ;; 19879 pgf77* | pgf90* | pgf95* | pgfortran*) 19880 # Portland Group f77 and f90 compilers 19881 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' 19882 tmp_addflag=' $pic_flag -Mnomain' ;; 19883 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 19884 tmp_addflag=' -i_dynamic' ;; 19885 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 19886 tmp_addflag=' -i_dynamic -nofor_main' ;; 19887 ifc* | ifort*) # Intel Fortran compiler 19888 tmp_addflag=' -nofor_main' ;; 19889 lf95*) # Lahey Fortran 8.1 19890 whole_archive_flag_spec_FC= 19891 tmp_sharedflag='--shared' ;; 19892 nagfor*) # NAGFOR 5.3 19893 tmp_sharedflag='-Wl,-shared' ;; 19894 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 19895 tmp_sharedflag='-qmkshrobj' 19896 tmp_addflag= ;; 19897 nvcc*) # Cuda Compiler Driver 2.2 19898 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' 19899 compiler_needs_object_FC=yes 19900 ;; 19901 esac 19902 case `$CC -V 2>&1 | sed 5q` in 19903 *Sun\ C*) # Sun C 5.9 19904 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' 19905 compiler_needs_object_FC=yes 19906 tmp_sharedflag='-G' ;; 19907 *Sun\ F*) # Sun Fortran 8.3 19908 tmp_sharedflag='-G' ;; 19909 esac 19910 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19911 19912 if test yes = "$supports_anon_versioning"; then 19913 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 19914 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19915 echo "local: *; };" >> $output_objdir/$libname.ver~ 19916 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 19917 fi 19918 19919 case $cc_basename in 19920 tcc*) 19921 export_dynamic_flag_spec_FC='-rdynamic' 19922 ;; 19923 xlf* | bgf* | bgxlf* | mpixlf*) 19924 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 19925 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive' 19926 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 19927 archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 19928 if test yes = "$supports_anon_versioning"; then 19929 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 19930 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19931 echo "local: *; };" >> $output_objdir/$libname.ver~ 19932 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 19933 fi 19934 ;; 19935 esac 19936 else 19937 ld_shlibs_FC=no 19938 fi 19939 ;; 19940 19941 netbsd*) 19942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19943 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 19944 wlarc= 19945 else 19946 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19947 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19948 fi 19949 ;; 19950 19951 solaris*) 19952 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 19953 ld_shlibs_FC=no 19954 cat <<_LT_EOF 1>&2 19955 19956*** Warning: The releases 2.8.* of the GNU linker cannot reliably 19957*** create shared libraries on Solaris systems. Therefore, libtool 19958*** is disabling shared libraries support. We urge you to upgrade GNU 19959*** binutils to release 2.9.1 or newer. Another option is to modify 19960*** your PATH or compiler configuration so that the native linker is 19961*** used, and then restart. 19962 19963_LT_EOF 19964 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19965 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19966 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19967 else 19968 ld_shlibs_FC=no 19969 fi 19970 ;; 19971 19972 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 19973 case `$LD -v 2>&1` in 19974 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 19975 ld_shlibs_FC=no 19976 cat <<_LT_EOF 1>&2 19977 19978*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 19979*** reliably create shared libraries on SCO systems. Therefore, libtool 19980*** is disabling shared libraries support. We urge you to upgrade GNU 19981*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 19982*** your PATH or compiler configuration so that the native linker is 19983*** used, and then restart. 19984 19985_LT_EOF 19986 ;; 19987 *) 19988 # For security reasons, it is highly recommended that you always 19989 # use absolute paths for naming shared libraries, and exclude the 19990 # DT_RUNPATH tag from executables and libraries. But doing so 19991 # requires that you compile everything twice, which is a pain. 19992 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19993 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 19994 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 19995 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 19996 else 19997 ld_shlibs_FC=no 19998 fi 19999 ;; 20000 esac 20001 ;; 20002 20003 sunos4*) 20004 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20005 wlarc= 20006 hardcode_direct_FC=yes 20007 hardcode_shlibpath_var_FC=no 20008 ;; 20009 20010 *) 20011 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 20012 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20013 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 20014 else 20015 ld_shlibs_FC=no 20016 fi 20017 ;; 20018 esac 20019 20020 if test no = "$ld_shlibs_FC"; then 20021 runpath_var= 20022 hardcode_libdir_flag_spec_FC= 20023 export_dynamic_flag_spec_FC= 20024 whole_archive_flag_spec_FC= 20025 fi 20026 else 20027 # PORTME fill in a description of your system's linker (not GNU ld) 20028 case $host_os in 20029 aix3*) 20030 allow_undefined_flag_FC=unsupported 20031 always_export_symbols_FC=yes 20032 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' 20033 # Note: this linker hardcodes the directories in LIBPATH if there 20034 # are no directories specified by -L. 20035 hardcode_minus_L_FC=yes 20036 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 20037 # Neither direct hardcoding nor static linking is supported with a 20038 # broken collect2. 20039 hardcode_direct_FC=unsupported 20040 fi 20041 ;; 20042 20043 aix[4-9]*) 20044 if test ia64 = "$host_cpu"; then 20045 # On IA64, the linker does run time linking by default, so we don't 20046 # have to do anything special. 20047 aix_use_runtimelinking=no 20048 exp_sym_flag='-Bexport' 20049 no_entry_flag= 20050 else 20051 # If we're using GNU nm, then we don't want the "-C" option. 20052 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 20053 # Without the "-l" option, or with the "-B" option, AIX nm treats 20054 # weak defined symbols like other global defined symbols, whereas 20055 # GNU nm marks them as "W". 20056 # While the 'weak' keyword is ignored in the Export File, we need 20057 # it in the Import File for the 'aix-soname' feature, so we have 20058 # to replace the "-B" option with "-P" for AIX nm. 20059 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 20060 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 20061 else 20062 export_symbols_cmds_FC='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 20063 fi 20064 aix_use_runtimelinking=no 20065 20066 # Test if we are trying to use run time linking or normal 20067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 20068 # have runtime linking enabled, and use it for executables. 20069 # For shared libraries, we enable/disable runtime linking 20070 # depending on the kind of the shared library created - 20071 # when "with_aix_soname,aix_use_runtimelinking" is: 20072 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 20073 # "aix,yes" lib.so shared, rtl:yes, for executables 20074 # lib.a static archive 20075 # "both,no" lib.so.V(shr.o) shared, rtl:yes 20076 # lib.a(lib.so.V) shared, rtl:no, for executables 20077 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 20078 # lib.a(lib.so.V) shared, rtl:no 20079 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 20080 # lib.a static archive 20081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 20082 for ld_flag in $LDFLAGS; do 20083 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 20084 aix_use_runtimelinking=yes 20085 break 20086 fi 20087 done 20088 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 20089 # With aix-soname=svr4, we create the lib.so.V shared archives only, 20090 # so we don't have lib.a shared libs to link our executables. 20091 # We have to force runtime linking in this case. 20092 aix_use_runtimelinking=yes 20093 LDFLAGS="$LDFLAGS -Wl,-brtl" 20094 fi 20095 ;; 20096 esac 20097 20098 exp_sym_flag='-bexport' 20099 no_entry_flag='-bnoentry' 20100 fi 20101 20102 # When large executables or shared objects are built, AIX ld can 20103 # have problems creating the table of contents. If linking a library 20104 # or program results in "error TOC overflow" add -mminimal-toc to 20105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 20106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 20107 20108 archive_cmds_FC='' 20109 hardcode_direct_FC=yes 20110 hardcode_direct_absolute_FC=yes 20111 hardcode_libdir_separator_FC=':' 20112 link_all_deplibs_FC=yes 20113 file_list_spec_FC='$wl-f,' 20114 case $with_aix_soname,$aix_use_runtimelinking in 20115 aix,*) ;; # traditional, no import file 20116 svr4,* | *,yes) # use import file 20117 # The Import File defines what to hardcode. 20118 hardcode_direct_FC=no 20119 hardcode_direct_absolute_FC=no 20120 ;; 20121 esac 20122 20123 if test yes = "$GCC"; then 20124 case $host_os in aix4.[012]|aix4.[012].*) 20125 # We only want to do this on AIX 4.2 and lower, the check 20126 # below for broken collect2 doesn't work under 4.3+ 20127 collect2name=`$CC -print-prog-name=collect2` 20128 if test -f "$collect2name" && 20129 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 20130 then 20131 # We have reworked collect2 20132 : 20133 else 20134 # We have old collect2 20135 hardcode_direct_FC=unsupported 20136 # It fails to find uninstalled libraries when the uninstalled 20137 # path is not listed in the libpath. Setting hardcode_minus_L 20138 # to unsupported forces relinking 20139 hardcode_minus_L_FC=yes 20140 hardcode_libdir_flag_spec_FC='-L$libdir' 20141 hardcode_libdir_separator_FC= 20142 fi 20143 ;; 20144 esac 20145 shared_flag='-shared' 20146 if test yes = "$aix_use_runtimelinking"; then 20147 shared_flag="$shared_flag "'$wl-G' 20148 fi 20149 # Need to ensure runtime linking is disabled for the traditional 20150 # shared library, or the linker may eventually find shared libraries 20151 # /with/ Import File - we do not want to mix them. 20152 shared_flag_aix='-shared' 20153 shared_flag_svr4='-shared $wl-G' 20154 else 20155 # not using gcc 20156 if test ia64 = "$host_cpu"; then 20157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 20158 # chokes on -Wl,-G. The following line is correct: 20159 shared_flag='-G' 20160 else 20161 if test yes = "$aix_use_runtimelinking"; then 20162 shared_flag='$wl-G' 20163 else 20164 shared_flag='$wl-bM:SRE' 20165 fi 20166 shared_flag_aix='$wl-bM:SRE' 20167 shared_flag_svr4='$wl-G' 20168 fi 20169 fi 20170 20171 export_dynamic_flag_spec_FC='$wl-bexpall' 20172 # It seems that -bexpall does not export symbols beginning with 20173 # underscore (_), so it is better to generate a list of symbols to export. 20174 always_export_symbols_FC=yes 20175 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 20176 # Warning - without using the other runtime loading flags (-brtl), 20177 # -berok will link without error, but may produce a broken library. 20178 allow_undefined_flag_FC='-berok' 20179 # Determine the default libpath from the value encoded in an 20180 # empty executable. 20181 if test set = "${lt_cv_aix_libpath+set}"; then 20182 aix_libpath=$lt_cv_aix_libpath 20183else 20184 if ${lt_cv_aix_libpath__FC+:} false; then : 20185 $as_echo_n "(cached) " >&6 20186else 20187 cat > conftest.$ac_ext <<_ACEOF 20188 program main 20189 20190 end 20191_ACEOF 20192if ac_fn_fc_try_link "$LINENO"; then : 20193 20194 lt_aix_libpath_sed=' 20195 /Import File Strings/,/^$/ { 20196 /^0/ { 20197 s/^0 *\([^ ]*\) *$/\1/ 20198 p 20199 } 20200 }' 20201 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20202 # Check for a 64-bit object if we didn't find anything. 20203 if test -z "$lt_cv_aix_libpath__FC"; then 20204 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20205 fi 20206fi 20207rm -f core conftest.err conftest.$ac_objext \ 20208 conftest$ac_exeext conftest.$ac_ext 20209 if test -z "$lt_cv_aix_libpath__FC"; then 20210 lt_cv_aix_libpath__FC=/usr/lib:/lib 20211 fi 20212 20213fi 20214 20215 aix_libpath=$lt_cv_aix_libpath__FC 20216fi 20217 20218 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" 20219 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 20220 else 20221 if test ia64 = "$host_cpu"; then 20222 hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib' 20223 allow_undefined_flag_FC="-z nodefs" 20224 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" 20225 else 20226 # Determine the default libpath from the value encoded in an 20227 # empty executable. 20228 if test set = "${lt_cv_aix_libpath+set}"; then 20229 aix_libpath=$lt_cv_aix_libpath 20230else 20231 if ${lt_cv_aix_libpath__FC+:} false; then : 20232 $as_echo_n "(cached) " >&6 20233else 20234 cat > conftest.$ac_ext <<_ACEOF 20235 program main 20236 20237 end 20238_ACEOF 20239if ac_fn_fc_try_link "$LINENO"; then : 20240 20241 lt_aix_libpath_sed=' 20242 /Import File Strings/,/^$/ { 20243 /^0/ { 20244 s/^0 *\([^ ]*\) *$/\1/ 20245 p 20246 } 20247 }' 20248 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20249 # Check for a 64-bit object if we didn't find anything. 20250 if test -z "$lt_cv_aix_libpath__FC"; then 20251 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 20252 fi 20253fi 20254rm -f core conftest.err conftest.$ac_objext \ 20255 conftest$ac_exeext conftest.$ac_ext 20256 if test -z "$lt_cv_aix_libpath__FC"; then 20257 lt_cv_aix_libpath__FC=/usr/lib:/lib 20258 fi 20259 20260fi 20261 20262 aix_libpath=$lt_cv_aix_libpath__FC 20263fi 20264 20265 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath" 20266 # Warning - without using the other run time loading flags, 20267 # -berok will link without error, but may produce a broken library. 20268 no_undefined_flag_FC=' $wl-bernotok' 20269 allow_undefined_flag_FC=' $wl-berok' 20270 if test yes = "$with_gnu_ld"; then 20271 # We only use this code for GNU lds that support --whole-archive. 20272 whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive' 20273 else 20274 # Exported symbols can be pulled into shared objects from archives 20275 whole_archive_flag_spec_FC='$convenience' 20276 fi 20277 archive_cmds_need_lc_FC=yes 20278 archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 20279 # -brtl affects multiple linker settings, -berok does not and is overridden later 20280 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 20281 if test svr4 != "$with_aix_soname"; then 20282 # This is similar to how AIX traditionally builds its shared libraries. 20283 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 20284 fi 20285 if test aix != "$with_aix_soname"; then 20286 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 20287 else 20288 # used by -dlpreopen to get the symbols 20289 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 20290 fi 20291 archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d' 20292 fi 20293 fi 20294 ;; 20295 20296 amigaos*) 20297 case $host_cpu in 20298 powerpc) 20299 # see comment about AmigaOS4 .so support 20300 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 20301 archive_expsym_cmds_FC='' 20302 ;; 20303 m68k) 20304 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)' 20305 hardcode_libdir_flag_spec_FC='-L$libdir' 20306 hardcode_minus_L_FC=yes 20307 ;; 20308 esac 20309 ;; 20310 20311 bsdi[45]*) 20312 export_dynamic_flag_spec_FC=-rdynamic 20313 ;; 20314 20315 cygwin* | mingw* | pw32* | cegcc*) 20316 # When not using gcc, we currently assume that we are using 20317 # Microsoft Visual C++. 20318 # hardcode_libdir_flag_spec is actually meaningless, as there is 20319 # no search path for DLLs. 20320 case $cc_basename in 20321 cl*) 20322 # Native MSVC 20323 hardcode_libdir_flag_spec_FC=' ' 20324 allow_undefined_flag_FC=unsupported 20325 always_export_symbols_FC=yes 20326 file_list_spec_FC='@' 20327 # Tell ltmain to make .lib files, not .a files. 20328 libext=lib 20329 # Tell ltmain to make .dll files, not .so files. 20330 shrext_cmds=.dll 20331 # FIXME: Setting linknames here is a bad hack. 20332 archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 20333 archive_expsym_cmds_FC='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 20334 cp "$export_symbols" "$output_objdir/$soname.def"; 20335 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 20336 else 20337 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 20338 fi~ 20339 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 20340 linknames=' 20341 # The linker will not automatically build a static lib if we build a DLL. 20342 # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true' 20343 enable_shared_with_static_runtimes_FC=yes 20344 exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 20345 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 20346 # Don't use ranlib 20347 old_postinstall_cmds_FC='chmod 644 $oldlib' 20348 postlink_cmds_FC='lt_outputfile="@OUTPUT@"~ 20349 lt_tool_outputfile="@TOOL_OUTPUT@"~ 20350 case $lt_outputfile in 20351 *.exe|*.EXE) ;; 20352 *) 20353 lt_outputfile=$lt_outputfile.exe 20354 lt_tool_outputfile=$lt_tool_outputfile.exe 20355 ;; 20356 esac~ 20357 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 20358 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 20359 $RM "$lt_outputfile.manifest"; 20360 fi' 20361 ;; 20362 *) 20363 # Assume MSVC wrapper 20364 hardcode_libdir_flag_spec_FC=' ' 20365 allow_undefined_flag_FC=unsupported 20366 # Tell ltmain to make .lib files, not .a files. 20367 libext=lib 20368 # Tell ltmain to make .dll files, not .so files. 20369 shrext_cmds=.dll 20370 # FIXME: Setting linknames here is a bad hack. 20371 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 20372 # The linker will automatically build a .lib file if we build a DLL. 20373 old_archive_from_new_cmds_FC='true' 20374 # FIXME: Should let the user specify the lib program. 20375 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 20376 enable_shared_with_static_runtimes_FC=yes 20377 ;; 20378 esac 20379 ;; 20380 20381 darwin* | rhapsody*) 20382 20383 20384 archive_cmds_need_lc_FC=no 20385 hardcode_direct_FC=no 20386 hardcode_automatic_FC=yes 20387 hardcode_shlibpath_var_FC=unsupported 20388 if test yes = "$lt_cv_ld_force_load"; then 20389 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\"`' 20390 compiler_needs_object_FC=yes 20391 else 20392 whole_archive_flag_spec_FC='' 20393 fi 20394 link_all_deplibs_FC=yes 20395 allow_undefined_flag_FC=$_lt_dar_allow_undefined 20396 case $cc_basename in 20397 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 20398 *) _lt_dar_can_shared=$GCC ;; 20399 esac 20400 if test yes = "$_lt_dar_can_shared"; then 20401 output_verbose_link_cmd=func_echo_all 20402 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" 20403 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 20404 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" 20405 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" 20406 20407 else 20408 ld_shlibs_FC=no 20409 fi 20410 20411 ;; 20412 20413 dgux*) 20414 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20415 hardcode_libdir_flag_spec_FC='-L$libdir' 20416 hardcode_shlibpath_var_FC=no 20417 ;; 20418 20419 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 20420 # support. Future versions do this automatically, but an explicit c++rt0.o 20421 # does not break anything, and helps significantly (at the cost of a little 20422 # extra space). 20423 freebsd2.2*) 20424 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 20425 hardcode_libdir_flag_spec_FC='-R$libdir' 20426 hardcode_direct_FC=yes 20427 hardcode_shlibpath_var_FC=no 20428 ;; 20429 20430 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 20431 freebsd2.*) 20432 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 20433 hardcode_direct_FC=yes 20434 hardcode_minus_L_FC=yes 20435 hardcode_shlibpath_var_FC=no 20436 ;; 20437 20438 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 20439 freebsd* | dragonfly*) 20440 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20441 hardcode_libdir_flag_spec_FC='-R$libdir' 20442 hardcode_direct_FC=yes 20443 hardcode_shlibpath_var_FC=no 20444 ;; 20445 20446 hpux9*) 20447 if test yes = "$GCC"; then 20448 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 20449 else 20450 archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 20451 fi 20452 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 20453 hardcode_libdir_separator_FC=: 20454 hardcode_direct_FC=yes 20455 20456 # hardcode_minus_L: Not really in the search PATH, 20457 # but as the default location of the library. 20458 hardcode_minus_L_FC=yes 20459 export_dynamic_flag_spec_FC='$wl-E' 20460 ;; 20461 20462 hpux10*) 20463 if test yes,no = "$GCC,$with_gnu_ld"; then 20464 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20465 else 20466 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 20467 fi 20468 if test no = "$with_gnu_ld"; then 20469 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 20470 hardcode_libdir_separator_FC=: 20471 hardcode_direct_FC=yes 20472 hardcode_direct_absolute_FC=yes 20473 export_dynamic_flag_spec_FC='$wl-E' 20474 # hardcode_minus_L: Not really in the search PATH, 20475 # but as the default location of the library. 20476 hardcode_minus_L_FC=yes 20477 fi 20478 ;; 20479 20480 hpux11*) 20481 if test yes,no = "$GCC,$with_gnu_ld"; then 20482 case $host_cpu in 20483 hppa*64*) 20484 archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20485 ;; 20486 ia64*) 20487 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20488 ;; 20489 *) 20490 archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20491 ;; 20492 esac 20493 else 20494 case $host_cpu in 20495 hppa*64*) 20496 archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20497 ;; 20498 ia64*) 20499 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 20500 ;; 20501 *) 20502 archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 20503 ;; 20504 esac 20505 fi 20506 if test no = "$with_gnu_ld"; then 20507 hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir' 20508 hardcode_libdir_separator_FC=: 20509 20510 case $host_cpu in 20511 hppa*64*|ia64*) 20512 hardcode_direct_FC=no 20513 hardcode_shlibpath_var_FC=no 20514 ;; 20515 *) 20516 hardcode_direct_FC=yes 20517 hardcode_direct_absolute_FC=yes 20518 export_dynamic_flag_spec_FC='$wl-E' 20519 20520 # hardcode_minus_L: Not really in the search PATH, 20521 # but as the default location of the library. 20522 hardcode_minus_L_FC=yes 20523 ;; 20524 esac 20525 fi 20526 ;; 20527 20528 irix5* | irix6* | nonstopux*) 20529 if test yes = "$GCC"; then 20530 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 20531 # Try to use the -exported_symbol ld option, if it does not 20532 # work, assume that -exports_file does not work either and 20533 # implicitly export all symbols. 20534 # This should be the same for all languages, so no per-tag cache variable. 20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 20536$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 20537if ${lt_cv_irix_exported_symbol+:} false; then : 20538 $as_echo_n "(cached) " >&6 20539else 20540 save_LDFLAGS=$LDFLAGS 20541 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 20542 cat > conftest.$ac_ext <<_ACEOF 20543 20544 subroutine foo 20545 end 20546_ACEOF 20547if ac_fn_fc_try_link "$LINENO"; then : 20548 lt_cv_irix_exported_symbol=yes 20549else 20550 lt_cv_irix_exported_symbol=no 20551fi 20552rm -f core conftest.err conftest.$ac_objext \ 20553 conftest$ac_exeext conftest.$ac_ext 20554 LDFLAGS=$save_LDFLAGS 20555fi 20556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 20557$as_echo "$lt_cv_irix_exported_symbol" >&6; } 20558 if test yes = "$lt_cv_irix_exported_symbol"; then 20559 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 20560 fi 20561 else 20562 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' 20563 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' 20564 fi 20565 archive_cmds_need_lc_FC='no' 20566 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 20567 hardcode_libdir_separator_FC=: 20568 inherit_rpath_FC=yes 20569 link_all_deplibs_FC=yes 20570 ;; 20571 20572 linux*) 20573 case $cc_basename in 20574 tcc*) 20575 # Fabrice Bellard et al's Tiny C Compiler 20576 ld_shlibs_FC=yes 20577 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20578 ;; 20579 esac 20580 ;; 20581 20582 netbsd*) 20583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 20584 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 20585 else 20586 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 20587 fi 20588 hardcode_libdir_flag_spec_FC='-R$libdir' 20589 hardcode_direct_FC=yes 20590 hardcode_shlibpath_var_FC=no 20591 ;; 20592 20593 newsos6) 20594 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20595 hardcode_direct_FC=yes 20596 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 20597 hardcode_libdir_separator_FC=: 20598 hardcode_shlibpath_var_FC=no 20599 ;; 20600 20601 *nto* | *qnx*) 20602 ;; 20603 20604 openbsd* | bitrig*) 20605 if test -f /usr/libexec/ld.so; then 20606 hardcode_direct_FC=yes 20607 hardcode_shlibpath_var_FC=no 20608 hardcode_direct_absolute_FC=yes 20609 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 20610 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20611 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 20612 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 20613 export_dynamic_flag_spec_FC='$wl-E' 20614 else 20615 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 20616 hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir' 20617 fi 20618 else 20619 ld_shlibs_FC=no 20620 fi 20621 ;; 20622 20623 os2*) 20624 hardcode_libdir_flag_spec_FC='-L$libdir' 20625 hardcode_minus_L_FC=yes 20626 allow_undefined_flag_FC=unsupported 20627 shrext_cmds=.dll 20628 archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20629 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20630 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20631 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20632 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 20633 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20634 emximp -o $lib $output_objdir/$libname.def' 20635 archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 20636 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 20637 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 20638 $ECHO EXPORTS >> $output_objdir/$libname.def~ 20639 prefix_cmds="$SED"~ 20640 if test EXPORTS = "`$SED 1q $export_symbols`"; then 20641 prefix_cmds="$prefix_cmds -e 1d"; 20642 fi~ 20643 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 20644 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 20645 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 20646 emximp -o $lib $output_objdir/$libname.def' 20647 old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 20648 enable_shared_with_static_runtimes_FC=yes 20649 ;; 20650 20651 osf3*) 20652 if test yes = "$GCC"; then 20653 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' 20654 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' 20655 else 20656 allow_undefined_flag_FC=' -expect_unresolved \*' 20657 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' 20658 fi 20659 archive_cmds_need_lc_FC='no' 20660 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 20661 hardcode_libdir_separator_FC=: 20662 ;; 20663 20664 osf4* | osf5*) # as osf3* with the addition of -msym flag 20665 if test yes = "$GCC"; then 20666 allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*' 20667 archive_cmds_FC='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 20668 hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir' 20669 else 20670 allow_undefined_flag_FC=' -expect_unresolved \*' 20671 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' 20672 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~ 20673 $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' 20674 20675 # Both c and cxx compiler support -rpath directly 20676 hardcode_libdir_flag_spec_FC='-rpath $libdir' 20677 fi 20678 archive_cmds_need_lc_FC='no' 20679 hardcode_libdir_separator_FC=: 20680 ;; 20681 20682 solaris*) 20683 no_undefined_flag_FC=' -z defs' 20684 if test yes = "$GCC"; then 20685 wlarc='$wl' 20686 archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 20687 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20688 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20689 else 20690 case `$CC -V 2>&1` in 20691 *"Compilers 5.0"*) 20692 wlarc='' 20693 archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 20694 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20695 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 20696 ;; 20697 *) 20698 wlarc='$wl' 20699 archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 20700 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20701 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 20702 ;; 20703 esac 20704 fi 20705 hardcode_libdir_flag_spec_FC='-R$libdir' 20706 hardcode_shlibpath_var_FC=no 20707 case $host_os in 20708 solaris2.[0-5] | solaris2.[0-5].*) ;; 20709 *) 20710 # The compiler driver will combine and reorder linker options, 20711 # but understands '-z linker_flag'. GCC discards it without '$wl', 20712 # but is careful enough not to reorder. 20713 # Supported since Solaris 2.6 (maybe 2.5.1?) 20714 if test yes = "$GCC"; then 20715 whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 20716 else 20717 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 20718 fi 20719 ;; 20720 esac 20721 link_all_deplibs_FC=yes 20722 ;; 20723 20724 sunos4*) 20725 if test sequent = "$host_vendor"; then 20726 # Use $CC to link under sequent, because it throws in some extra .o 20727 # files that make .init and .fini sections work. 20728 archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 20729 else 20730 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 20731 fi 20732 hardcode_libdir_flag_spec_FC='-L$libdir' 20733 hardcode_direct_FC=yes 20734 hardcode_minus_L_FC=yes 20735 hardcode_shlibpath_var_FC=no 20736 ;; 20737 20738 sysv4) 20739 case $host_vendor in 20740 sni) 20741 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20742 hardcode_direct_FC=yes # is this really true??? 20743 ;; 20744 siemens) 20745 ## LD is ld it makes a PLAMLIB 20746 ## CC just makes a GrossModule. 20747 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 20748 reload_cmds_FC='$CC -r -o $output$reload_objs' 20749 hardcode_direct_FC=no 20750 ;; 20751 motorola) 20752 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20753 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 20754 ;; 20755 esac 20756 runpath_var='LD_RUN_PATH' 20757 hardcode_shlibpath_var_FC=no 20758 ;; 20759 20760 sysv4.3*) 20761 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20762 hardcode_shlibpath_var_FC=no 20763 export_dynamic_flag_spec_FC='-Bexport' 20764 ;; 20765 20766 sysv4*MP*) 20767 if test -d /usr/nec; then 20768 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20769 hardcode_shlibpath_var_FC=no 20770 runpath_var=LD_RUN_PATH 20771 hardcode_runpath_var=yes 20772 ld_shlibs_FC=yes 20773 fi 20774 ;; 20775 20776 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20777 no_undefined_flag_FC='$wl-z,text' 20778 archive_cmds_need_lc_FC=no 20779 hardcode_shlibpath_var_FC=no 20780 runpath_var='LD_RUN_PATH' 20781 20782 if test yes = "$GCC"; then 20783 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20784 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20785 else 20786 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20787 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20788 fi 20789 ;; 20790 20791 sysv5* | sco3.2v5* | sco5v6*) 20792 # Note: We CANNOT use -z defs as we might desire, because we do not 20793 # link with -lc, and that would cause any symbols used from libc to 20794 # always be unresolved, which means just about no library would 20795 # ever link correctly. If we're not using GNU ld we use -z text 20796 # though, which does catch some bad symbols but isn't as heavy-handed 20797 # as -z defs. 20798 no_undefined_flag_FC='$wl-z,text' 20799 allow_undefined_flag_FC='$wl-z,nodefs' 20800 archive_cmds_need_lc_FC=no 20801 hardcode_shlibpath_var_FC=no 20802 hardcode_libdir_flag_spec_FC='$wl-R,$libdir' 20803 hardcode_libdir_separator_FC=':' 20804 link_all_deplibs_FC=yes 20805 export_dynamic_flag_spec_FC='$wl-Bexport' 20806 runpath_var='LD_RUN_PATH' 20807 20808 if test yes = "$GCC"; then 20809 archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20810 archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20811 else 20812 archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20813 archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20814 fi 20815 ;; 20816 20817 uts4*) 20818 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 20819 hardcode_libdir_flag_spec_FC='-L$libdir' 20820 hardcode_shlibpath_var_FC=no 20821 ;; 20822 20823 *) 20824 ld_shlibs_FC=no 20825 ;; 20826 esac 20827 20828 if test sni = "$host_vendor"; then 20829 case $host in 20830 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 20831 export_dynamic_flag_spec_FC='$wl-Blargedynsym' 20832 ;; 20833 esac 20834 fi 20835 fi 20836 20837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5 20838$as_echo "$ld_shlibs_FC" >&6; } 20839test no = "$ld_shlibs_FC" && can_build_shared=no 20840 20841with_gnu_ld_FC=$with_gnu_ld 20842 20843 20844 20845 20846 20847 20848# 20849# Do we need to explicitly link libc? 20850# 20851case "x$archive_cmds_need_lc_FC" in 20852x|xyes) 20853 # Assume -lc should be added 20854 archive_cmds_need_lc_FC=yes 20855 20856 if test yes,yes = "$GCC,$enable_shared"; then 20857 case $archive_cmds_FC in 20858 *'~'*) 20859 # FIXME: we may have to deal with multi-command sequences. 20860 ;; 20861 '$CC '*) 20862 # Test whether the compiler implicitly links with -lc since on some 20863 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20864 # to ld, don't add -lc before -lgcc. 20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20866$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 20867if ${lt_cv_archive_cmds_need_lc_FC+:} false; then : 20868 $as_echo_n "(cached) " >&6 20869else 20870 $RM conftest* 20871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20872 20873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20874 (eval $ac_compile) 2>&5 20875 ac_status=$? 20876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20877 test $ac_status = 0; } 2>conftest.err; then 20878 soname=conftest 20879 lib=conftest 20880 libobjs=conftest.$ac_objext 20881 deplibs= 20882 wl=$lt_prog_compiler_wl_FC 20883 pic_flag=$lt_prog_compiler_pic_FC 20884 compiler_flags=-v 20885 linker_flags=-v 20886 verstring= 20887 output_objdir=. 20888 libname=conftest 20889 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 20890 allow_undefined_flag_FC= 20891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 20892 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 20893 ac_status=$? 20894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20895 test $ac_status = 0; } 20896 then 20897 lt_cv_archive_cmds_need_lc_FC=no 20898 else 20899 lt_cv_archive_cmds_need_lc_FC=yes 20900 fi 20901 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 20902 else 20903 cat conftest.err 1>&5 20904 fi 20905 $RM conftest* 20906 20907fi 20908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5 20909$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; } 20910 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC 20911 ;; 20912 esac 20913 fi 20914 ;; 20915esac 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 20979$as_echo_n "checking dynamic linker characteristics... " >&6; } 20980 20981library_names_spec= 20982libname_spec='lib$name' 20983soname_spec= 20984shrext_cmds=.so 20985postinstall_cmds= 20986postuninstall_cmds= 20987finish_cmds= 20988finish_eval= 20989shlibpath_var= 20990shlibpath_overrides_runpath=unknown 20991version_type=none 20992dynamic_linker="$host_os ld.so" 20993sys_lib_dlsearch_path_spec="/lib /usr/lib" 20994need_lib_prefix=unknown 20995hardcode_into_libs=no 20996 20997# when you set need_version to no, make sure it does not cause -set_version 20998# flags to be left without arguments 20999need_version=unknown 21000 21001 21002 21003case $host_os in 21004aix3*) 21005 version_type=linux # correct to gnu/linux during the next big refactor 21006 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 21007 shlibpath_var=LIBPATH 21008 21009 # AIX 3 has no versioning support, so we append a major version to the name. 21010 soname_spec='$libname$release$shared_ext$major' 21011 ;; 21012 21013aix[4-9]*) 21014 version_type=linux # correct to gnu/linux during the next big refactor 21015 need_lib_prefix=no 21016 need_version=no 21017 hardcode_into_libs=yes 21018 if test ia64 = "$host_cpu"; then 21019 # AIX 5 supports IA64 21020 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 21021 shlibpath_var=LD_LIBRARY_PATH 21022 else 21023 # With GCC up to 2.95.x, collect2 would create an import file 21024 # for dependence libraries. The import file would start with 21025 # the line '#! .'. This would cause the generated library to 21026 # depend on '.', always an invalid library. This was fixed in 21027 # development snapshots of GCC prior to 3.0. 21028 case $host_os in 21029 aix4 | aix4.[01] | aix4.[01].*) 21030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21031 echo ' yes ' 21032 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 21033 : 21034 else 21035 can_build_shared=no 21036 fi 21037 ;; 21038 esac 21039 # Using Import Files as archive members, it is possible to support 21040 # filename-based versioning of shared library archives on AIX. While 21041 # this would work for both with and without runtime linking, it will 21042 # prevent static linking of such archives. So we do filename-based 21043 # shared library versioning with .so extension only, which is used 21044 # when both runtime linking and shared linking is enabled. 21045 # Unfortunately, runtime linking may impact performance, so we do 21046 # not want this to be the default eventually. Also, we use the 21047 # versioned .so libs for executables only if there is the -brtl 21048 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 21049 # To allow for filename-based versioning support, we need to create 21050 # libNAME.so.V as an archive file, containing: 21051 # *) an Import File, referring to the versioned filename of the 21052 # archive as well as the shared archive member, telling the 21053 # bitwidth (32 or 64) of that shared object, and providing the 21054 # list of exported symbols of that shared object, eventually 21055 # decorated with the 'weak' keyword 21056 # *) the shared object with the F_LOADONLY flag set, to really avoid 21057 # it being seen by the linker. 21058 # At run time we better use the real file rather than another symlink, 21059 # but for link time we create the symlink libNAME.so -> libNAME.so.V 21060 21061 case $with_aix_soname,$aix_use_runtimelinking in 21062 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 21063 # soname into executable. Probably we can add versioning support to 21064 # collect2, so additional links can be useful in future. 21065 aix,yes) # traditional libtool 21066 dynamic_linker='AIX unversionable lib.so' 21067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21068 # instead of lib<name>.a to let people know that these are not 21069 # typical AIX shared libraries. 21070 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21071 ;; 21072 aix,no) # traditional AIX only 21073 dynamic_linker='AIX lib.a(lib.so.V)' 21074 # We preserve .a as extension for shared libraries through AIX4.2 21075 # and later when we are not doing run time linking. 21076 library_names_spec='$libname$release.a $libname.a' 21077 soname_spec='$libname$release$shared_ext$major' 21078 ;; 21079 svr4,*) # full svr4 only 21080 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 21081 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21082 # We do not specify a path in Import Files, so LIBPATH fires. 21083 shlibpath_overrides_runpath=yes 21084 ;; 21085 *,yes) # both, prefer svr4 21086 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 21087 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 21088 # unpreferred sharedlib libNAME.a needs extra handling 21089 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 21090 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 21091 # We do not specify a path in Import Files, so LIBPATH fires. 21092 shlibpath_overrides_runpath=yes 21093 ;; 21094 *,no) # both, prefer aix 21095 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 21096 library_names_spec='$libname$release.a $libname.a' 21097 soname_spec='$libname$release$shared_ext$major' 21098 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 21099 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 21100 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 21101 ;; 21102 esac 21103 shlibpath_var=LIBPATH 21104 fi 21105 ;; 21106 21107amigaos*) 21108 case $host_cpu in 21109 powerpc) 21110 # Since July 2007 AmigaOS4 officially supports .so libraries. 21111 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21113 ;; 21114 m68k) 21115 library_names_spec='$libname.ixlibrary $libname.a' 21116 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21117 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 21118 ;; 21119 esac 21120 ;; 21121 21122beos*) 21123 library_names_spec='$libname$shared_ext' 21124 dynamic_linker="$host_os ld.so" 21125 shlibpath_var=LIBRARY_PATH 21126 ;; 21127 21128bsdi[45]*) 21129 version_type=linux # correct to gnu/linux during the next big refactor 21130 need_version=no 21131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21132 soname_spec='$libname$release$shared_ext$major' 21133 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21134 shlibpath_var=LD_LIBRARY_PATH 21135 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21136 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21137 # the default ld.so.conf also contains /usr/contrib/lib and 21138 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21139 # libtool to hard-code these into programs 21140 ;; 21141 21142cygwin* | mingw* | pw32* | cegcc*) 21143 version_type=windows 21144 shrext_cmds=.dll 21145 need_version=no 21146 need_lib_prefix=no 21147 21148 case $GCC,$cc_basename in 21149 yes,*) 21150 # gcc 21151 library_names_spec='$libname.dll.a' 21152 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21153 postinstall_cmds='base_file=`basename \$file`~ 21154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21155 dldir=$destdir/`dirname \$dlpath`~ 21156 test -d \$dldir || mkdir -p \$dldir~ 21157 $install_prog $dir/$dlname \$dldir/$dlname~ 21158 chmod a+x \$dldir/$dlname~ 21159 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21160 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21161 fi' 21162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21163 dlpath=$dir/\$dldll~ 21164 $RM \$dlpath' 21165 shlibpath_overrides_runpath=yes 21166 21167 case $host_os in 21168 cygwin*) 21169 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21170 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21171 21172 ;; 21173 mingw* | cegcc*) 21174 # MinGW DLLs use traditional 'lib' prefix 21175 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21176 ;; 21177 pw32*) 21178 # pw32 DLLs use 'pw' prefix rather than 'lib' 21179 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21180 ;; 21181 esac 21182 dynamic_linker='Win32 ld.exe' 21183 ;; 21184 21185 *,cl*) 21186 # Native MSVC 21187 libname_spec='$name' 21188 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 21189 library_names_spec='$libname.dll.lib' 21190 21191 case $build_os in 21192 mingw*) 21193 sys_lib_search_path_spec= 21194 lt_save_ifs=$IFS 21195 IFS=';' 21196 for lt_path in $LIB 21197 do 21198 IFS=$lt_save_ifs 21199 # Let DOS variable expansion print the short 8.3 style file name. 21200 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21201 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21202 done 21203 IFS=$lt_save_ifs 21204 # Convert to MSYS style. 21205 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21206 ;; 21207 cygwin*) 21208 # Convert to unix form, then to dos form, then back to unix form 21209 # but this time dos style (no spaces!) so that the unix form looks 21210 # like /cygdrive/c/PROGRA~1:/cygdr... 21211 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21212 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21213 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21214 ;; 21215 *) 21216 sys_lib_search_path_spec=$LIB 21217 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21218 # It is most probably a Windows format PATH. 21219 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21220 else 21221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21222 fi 21223 # FIXME: find the short name or the path components, as spaces are 21224 # common. (e.g. "Program Files" -> "PROGRA~1") 21225 ;; 21226 esac 21227 21228 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21229 postinstall_cmds='base_file=`basename \$file`~ 21230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 21231 dldir=$destdir/`dirname \$dlpath`~ 21232 test -d \$dldir || mkdir -p \$dldir~ 21233 $install_prog $dir/$dlname \$dldir/$dlname' 21234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21235 dlpath=$dir/\$dldll~ 21236 $RM \$dlpath' 21237 shlibpath_overrides_runpath=yes 21238 dynamic_linker='Win32 link.exe' 21239 ;; 21240 21241 *) 21242 # Assume MSVC wrapper 21243 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 21244 dynamic_linker='Win32 ld.exe' 21245 ;; 21246 esac 21247 # FIXME: first we should search . and the directory the executable is in 21248 shlibpath_var=PATH 21249 ;; 21250 21251darwin* | rhapsody*) 21252 dynamic_linker="$host_os dyld" 21253 version_type=darwin 21254 need_lib_prefix=no 21255 need_version=no 21256 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 21257 soname_spec='$libname$release$major$shared_ext' 21258 shlibpath_overrides_runpath=yes 21259 shlibpath_var=DYLD_LIBRARY_PATH 21260 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21261 21262 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21263 ;; 21264 21265dgux*) 21266 version_type=linux # correct to gnu/linux during the next big refactor 21267 need_lib_prefix=no 21268 need_version=no 21269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21270 soname_spec='$libname$release$shared_ext$major' 21271 shlibpath_var=LD_LIBRARY_PATH 21272 ;; 21273 21274freebsd* | dragonfly*) 21275 # DragonFly does not have aout. When/if they implement a new 21276 # versioning mechanism, adjust this. 21277 if test -x /usr/bin/objformat; then 21278 objformat=`/usr/bin/objformat` 21279 else 21280 case $host_os in 21281 freebsd[23].*) objformat=aout ;; 21282 *) objformat=elf ;; 21283 esac 21284 fi 21285 version_type=freebsd-$objformat 21286 case $version_type in 21287 freebsd-elf*) 21288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21289 soname_spec='$libname$release$shared_ext$major' 21290 need_version=no 21291 need_lib_prefix=no 21292 ;; 21293 freebsd-*) 21294 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21295 need_version=yes 21296 ;; 21297 esac 21298 shlibpath_var=LD_LIBRARY_PATH 21299 case $host_os in 21300 freebsd2.*) 21301 shlibpath_overrides_runpath=yes 21302 ;; 21303 freebsd3.[01]* | freebsdelf3.[01]*) 21304 shlibpath_overrides_runpath=yes 21305 hardcode_into_libs=yes 21306 ;; 21307 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21308 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21309 shlibpath_overrides_runpath=no 21310 hardcode_into_libs=yes 21311 ;; 21312 *) # from 4.6 on, and DragonFly 21313 shlibpath_overrides_runpath=yes 21314 hardcode_into_libs=yes 21315 ;; 21316 esac 21317 ;; 21318 21319haiku*) 21320 version_type=linux # correct to gnu/linux during the next big refactor 21321 need_lib_prefix=no 21322 need_version=no 21323 dynamic_linker="$host_os runtime_loader" 21324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21325 soname_spec='$libname$release$shared_ext$major' 21326 shlibpath_var=LIBRARY_PATH 21327 shlibpath_overrides_runpath=no 21328 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21329 hardcode_into_libs=yes 21330 ;; 21331 21332hpux9* | hpux10* | hpux11*) 21333 # Give a soname corresponding to the major version so that dld.sl refuses to 21334 # link against other versions. 21335 version_type=sunos 21336 need_lib_prefix=no 21337 need_version=no 21338 case $host_cpu in 21339 ia64*) 21340 shrext_cmds='.so' 21341 hardcode_into_libs=yes 21342 dynamic_linker="$host_os dld.so" 21343 shlibpath_var=LD_LIBRARY_PATH 21344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21346 soname_spec='$libname$release$shared_ext$major' 21347 if test 32 = "$HPUX_IA64_MODE"; then 21348 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21349 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 21350 else 21351 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21352 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 21353 fi 21354 ;; 21355 hppa*64*) 21356 shrext_cmds='.sl' 21357 hardcode_into_libs=yes 21358 dynamic_linker="$host_os dld.sl" 21359 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21362 soname_spec='$libname$release$shared_ext$major' 21363 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21365 ;; 21366 *) 21367 shrext_cmds='.sl' 21368 dynamic_linker="$host_os dld.sl" 21369 shlibpath_var=SHLIB_PATH 21370 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21372 soname_spec='$libname$release$shared_ext$major' 21373 ;; 21374 esac 21375 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21376 postinstall_cmds='chmod 555 $lib' 21377 # or fails outright, so override atomically: 21378 install_override_mode=555 21379 ;; 21380 21381interix[3-9]*) 21382 version_type=linux # correct to gnu/linux during the next big refactor 21383 need_lib_prefix=no 21384 need_version=no 21385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21386 soname_spec='$libname$release$shared_ext$major' 21387 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21388 shlibpath_var=LD_LIBRARY_PATH 21389 shlibpath_overrides_runpath=no 21390 hardcode_into_libs=yes 21391 ;; 21392 21393irix5* | irix6* | nonstopux*) 21394 case $host_os in 21395 nonstopux*) version_type=nonstopux ;; 21396 *) 21397 if test yes = "$lt_cv_prog_gnu_ld"; then 21398 version_type=linux # correct to gnu/linux during the next big refactor 21399 else 21400 version_type=irix 21401 fi ;; 21402 esac 21403 need_lib_prefix=no 21404 need_version=no 21405 soname_spec='$libname$release$shared_ext$major' 21406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 21407 case $host_os in 21408 irix5* | nonstopux*) 21409 libsuff= shlibsuff= 21410 ;; 21411 *) 21412 case $LD in # libtool.m4 will add one of these switches to LD 21413 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21414 libsuff= shlibsuff= libmagic=32-bit;; 21415 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21416 libsuff=32 shlibsuff=N32 libmagic=N32;; 21417 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21418 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21419 *) libsuff= shlibsuff= libmagic=never-match;; 21420 esac 21421 ;; 21422 esac 21423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21424 shlibpath_overrides_runpath=no 21425 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 21426 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 21427 hardcode_into_libs=yes 21428 ;; 21429 21430# No shared lib support for Linux oldld, aout, or coff. 21431linux*oldld* | linux*aout* | linux*coff*) 21432 dynamic_linker=no 21433 ;; 21434 21435linux*android*) 21436 version_type=none # Android doesn't support versioned libraries. 21437 need_lib_prefix=no 21438 need_version=no 21439 library_names_spec='$libname$release$shared_ext' 21440 soname_spec='$libname$release$shared_ext' 21441 finish_cmds= 21442 shlibpath_var=LD_LIBRARY_PATH 21443 shlibpath_overrides_runpath=yes 21444 21445 # This implies no fast_install, which is unacceptable. 21446 # Some rework will be needed to allow for fast_install 21447 # before this can be enabled. 21448 hardcode_into_libs=yes 21449 21450 dynamic_linker='Android linker' 21451 # Don't embed -rpath directories since the linker doesn't support them. 21452 hardcode_libdir_flag_spec_FC='-L$libdir' 21453 ;; 21454 21455# This must be glibc/ELF. 21456linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 21457 version_type=linux # correct to gnu/linux during the next big refactor 21458 need_lib_prefix=no 21459 need_version=no 21460 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21461 soname_spec='$libname$release$shared_ext$major' 21462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21463 shlibpath_var=LD_LIBRARY_PATH 21464 shlibpath_overrides_runpath=no 21465 21466 # Some binutils ld are patched to set DT_RUNPATH 21467 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 21468 $as_echo_n "(cached) " >&6 21469else 21470 lt_cv_shlibpath_overrides_runpath=no 21471 save_LDFLAGS=$LDFLAGS 21472 save_libdir=$libdir 21473 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 21474 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 21475 cat > conftest.$ac_ext <<_ACEOF 21476 program main 21477 21478 end 21479_ACEOF 21480if ac_fn_fc_try_link "$LINENO"; then : 21481 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 21482 lt_cv_shlibpath_overrides_runpath=yes 21483fi 21484fi 21485rm -f core conftest.err conftest.$ac_objext \ 21486 conftest$ac_exeext conftest.$ac_ext 21487 LDFLAGS=$save_LDFLAGS 21488 libdir=$save_libdir 21489 21490fi 21491 21492 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21493 21494 # This implies no fast_install, which is unacceptable. 21495 # Some rework will be needed to allow for fast_install 21496 # before this can be enabled. 21497 hardcode_into_libs=yes 21498 21499 # Ideally, we could use ldconfig to report *all* directores which are 21500 # searched for libraries, however this is still not possible. Aside from not 21501 # being certain /sbin/ldconfig is available, command 21502 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 21503 # even though it is searched at run-time. Try to do the best guess by 21504 # appending ld.so.conf contents (and includes) to the search path. 21505 if test -f /etc/ld.so.conf; then 21506 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' ' '` 21507 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21508 fi 21509 21510 # We used to test for /lib/ld.so.1 and disable shared libraries on 21511 # powerpc, because MkLinux only supported shared libraries with the 21512 # GNU dynamic linker. Since this was broken with cross compilers, 21513 # most powerpc-linux boxes support dynamic linking these days and 21514 # people can always --disable-shared, the test was removed, and we 21515 # assume the GNU/Linux dynamic linker is in use. 21516 dynamic_linker='GNU/Linux ld.so' 21517 ;; 21518 21519netbsd*) 21520 version_type=sunos 21521 need_lib_prefix=no 21522 need_version=no 21523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21524 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21526 dynamic_linker='NetBSD (a.out) ld.so' 21527 else 21528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21529 soname_spec='$libname$release$shared_ext$major' 21530 dynamic_linker='NetBSD ld.elf_so' 21531 fi 21532 shlibpath_var=LD_LIBRARY_PATH 21533 shlibpath_overrides_runpath=yes 21534 hardcode_into_libs=yes 21535 ;; 21536 21537newsos6) 21538 version_type=linux # correct to gnu/linux during the next big refactor 21539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21540 shlibpath_var=LD_LIBRARY_PATH 21541 shlibpath_overrides_runpath=yes 21542 ;; 21543 21544*nto* | *qnx*) 21545 version_type=qnx 21546 need_lib_prefix=no 21547 need_version=no 21548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21549 soname_spec='$libname$release$shared_ext$major' 21550 shlibpath_var=LD_LIBRARY_PATH 21551 shlibpath_overrides_runpath=no 21552 hardcode_into_libs=yes 21553 dynamic_linker='ldqnx.so' 21554 ;; 21555 21556openbsd* | bitrig*) 21557 version_type=sunos 21558 sys_lib_dlsearch_path_spec=/usr/lib 21559 need_lib_prefix=no 21560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 21561 need_version=no 21562 else 21563 need_version=yes 21564 fi 21565 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21567 shlibpath_var=LD_LIBRARY_PATH 21568 shlibpath_overrides_runpath=yes 21569 ;; 21570 21571os2*) 21572 libname_spec='$name' 21573 version_type=windows 21574 shrext_cmds=.dll 21575 need_version=no 21576 need_lib_prefix=no 21577 # OS/2 can only load a DLL with a base name of 8 characters or less. 21578 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 21579 v=$($ECHO $release$versuffix | tr -d .-); 21580 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 21581 $ECHO $n$v`$shared_ext' 21582 library_names_spec='${libname}_dll.$libext' 21583 dynamic_linker='OS/2 ld.exe' 21584 shlibpath_var=BEGINLIBPATH 21585 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 21586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21587 postinstall_cmds='base_file=`basename \$file`~ 21588 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 21589 dldir=$destdir/`dirname \$dlpath`~ 21590 test -d \$dldir || mkdir -p \$dldir~ 21591 $install_prog $dir/$dlname \$dldir/$dlname~ 21592 chmod a+x \$dldir/$dlname~ 21593 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21594 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21595 fi' 21596 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 21597 dlpath=$dir/\$dldll~ 21598 $RM \$dlpath' 21599 ;; 21600 21601osf3* | osf4* | osf5*) 21602 version_type=osf 21603 need_lib_prefix=no 21604 need_version=no 21605 soname_spec='$libname$release$shared_ext$major' 21606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21607 shlibpath_var=LD_LIBRARY_PATH 21608 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21609 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21610 ;; 21611 21612rdos*) 21613 dynamic_linker=no 21614 ;; 21615 21616solaris*) 21617 version_type=linux # correct to gnu/linux during the next big refactor 21618 need_lib_prefix=no 21619 need_version=no 21620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21621 soname_spec='$libname$release$shared_ext$major' 21622 shlibpath_var=LD_LIBRARY_PATH 21623 shlibpath_overrides_runpath=yes 21624 hardcode_into_libs=yes 21625 # ldd complains unless libraries are executable 21626 postinstall_cmds='chmod +x $lib' 21627 ;; 21628 21629sunos4*) 21630 version_type=sunos 21631 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 21632 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21633 shlibpath_var=LD_LIBRARY_PATH 21634 shlibpath_overrides_runpath=yes 21635 if test yes = "$with_gnu_ld"; then 21636 need_lib_prefix=no 21637 fi 21638 need_version=yes 21639 ;; 21640 21641sysv4 | sysv4.3*) 21642 version_type=linux # correct to gnu/linux during the next big refactor 21643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21644 soname_spec='$libname$release$shared_ext$major' 21645 shlibpath_var=LD_LIBRARY_PATH 21646 case $host_vendor in 21647 sni) 21648 shlibpath_overrides_runpath=no 21649 need_lib_prefix=no 21650 runpath_var=LD_RUN_PATH 21651 ;; 21652 siemens) 21653 need_lib_prefix=no 21654 ;; 21655 motorola) 21656 need_lib_prefix=no 21657 need_version=no 21658 shlibpath_overrides_runpath=no 21659 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21660 ;; 21661 esac 21662 ;; 21663 21664sysv4*MP*) 21665 if test -d /usr/nec; then 21666 version_type=linux # correct to gnu/linux during the next big refactor 21667 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 21668 soname_spec='$libname$shared_ext.$major' 21669 shlibpath_var=LD_LIBRARY_PATH 21670 fi 21671 ;; 21672 21673sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21674 version_type=sco 21675 need_lib_prefix=no 21676 need_version=no 21677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 21678 soname_spec='$libname$release$shared_ext$major' 21679 shlibpath_var=LD_LIBRARY_PATH 21680 shlibpath_overrides_runpath=yes 21681 hardcode_into_libs=yes 21682 if test yes = "$with_gnu_ld"; then 21683 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21684 else 21685 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21686 case $host_os in 21687 sco3.2v5*) 21688 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21689 ;; 21690 esac 21691 fi 21692 sys_lib_dlsearch_path_spec='/usr/lib' 21693 ;; 21694 21695tpf*) 21696 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21697 version_type=linux # correct to gnu/linux during the next big refactor 21698 need_lib_prefix=no 21699 need_version=no 21700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21701 shlibpath_var=LD_LIBRARY_PATH 21702 shlibpath_overrides_runpath=no 21703 hardcode_into_libs=yes 21704 ;; 21705 21706uts4*) 21707 version_type=linux # correct to gnu/linux during the next big refactor 21708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 21709 soname_spec='$libname$release$shared_ext$major' 21710 shlibpath_var=LD_LIBRARY_PATH 21711 ;; 21712 21713*) 21714 dynamic_linker=no 21715 ;; 21716esac 21717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21718$as_echo "$dynamic_linker" >&6; } 21719test no = "$dynamic_linker" && can_build_shared=no 21720 21721variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21722if test yes = "$GCC"; then 21723 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21724fi 21725 21726if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 21727 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 21728fi 21729 21730if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 21731 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 21732fi 21733 21734# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 21735configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 21736 21737# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 21738func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 21739 21740# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 21741configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 21742 21743 21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 21783$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 21784hardcode_action_FC= 21785if test -n "$hardcode_libdir_flag_spec_FC" || 21786 test -n "$runpath_var_FC" || 21787 test yes = "$hardcode_automatic_FC"; then 21788 21789 # We can hardcode non-existent directories. 21790 if test no != "$hardcode_direct_FC" && 21791 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21792 # have to relink, otherwise we might link with an installed library 21793 # when we should be linking with a yet-to-be-installed one 21794 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" && 21795 test no != "$hardcode_minus_L_FC"; then 21796 # Linking always hardcodes the temporary library directory. 21797 hardcode_action_FC=relink 21798 else 21799 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21800 hardcode_action_FC=immediate 21801 fi 21802else 21803 # We cannot hardcode anything, or else we can only hardcode existing 21804 # directories. 21805 hardcode_action_FC=unsupported 21806fi 21807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5 21808$as_echo "$hardcode_action_FC" >&6; } 21809 21810if test relink = "$hardcode_action_FC" || 21811 test yes = "$inherit_rpath_FC"; then 21812 # Fast installation is not supported 21813 enable_fast_install=no 21814elif test yes = "$shlibpath_overrides_runpath" || 21815 test no = "$enable_shared"; then 21816 # Fast installation is not necessary 21817 enable_fast_install=needless 21818fi 21819 21820 21821 21822 21823 21824 21825 21826 fi # test -n "$compiler" 21827 21828 GCC=$lt_save_GCC 21829 CC=$lt_save_CC 21830 CFLAGS=$lt_save_CFLAGS 21831fi # test yes != "$_lt_disable_FC" 21832 21833ac_ext=c 21834ac_cpp='$CPP $CPPFLAGS' 21835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21837ac_compiler_gnu=$ac_cv_c_compiler_gnu 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 ac_config_commands="$ac_config_commands libtool" 21850 21851 21852 21853 21854# Only expand once: 21855 21856 21857 21858 21859 if test x$enable_fortran = xyes; then 21860 ENABLE_FORTRAN_TRUE= 21861 ENABLE_FORTRAN_FALSE='#' 21862else 21863 ENABLE_FORTRAN_TRUE='#' 21864 ENABLE_FORTRAN_FALSE= 21865fi 21866 21867 if test x$enable_f90 = xyes; then 21868 ENABLE_F90_TRUE= 21869 ENABLE_F90_FALSE='#' 21870else 21871 ENABLE_F90_TRUE='#' 21872 ENABLE_F90_FALSE= 21873fi 21874 21875if test "$enable_f90" = "yes" ; then 21876 if test x$enable_f90 = xyes; then 21877 ENABLE_FORTRAN_TRUE= 21878 ENABLE_FORTRAN_FALSE='#' 21879else 21880 ENABLE_FORTRAN_TRUE='#' 21881 ENABLE_FORTRAN_FALSE= 21882fi 21883 21884fi 21885 if test x$enable_saamg = xyes; then 21886 ENABLE_SAAMG_TRUE= 21887 ENABLE_SAAMG_FALSE='#' 21888else 21889 ENABLE_SAAMG_TRUE='#' 21890 ENABLE_SAAMG_FALSE= 21891fi 21892 21893 if test x"$enable_mpi" = xyes; then 21894 ENABLE_MPI_TRUE= 21895 ENABLE_MPI_FALSE='#' 21896else 21897 ENABLE_MPI_TRUE='#' 21898 ENABLE_MPI_FALSE= 21899fi 21900 21901 if test x"$enable_omp" = xyes; then 21902 ENABLE_OMP_TRUE= 21903 ENABLE_OMP_FALSE='#' 21904else 21905 ENABLE_OMP_TRUE='#' 21906 ENABLE_OMP_FALSE= 21907fi 21908 21909 if test x$enable_quad = xyes; then 21910 ENABLE_QUAD_TRUE= 21911 ENABLE_QUAD_FALSE='#' 21912else 21913 ENABLE_QUAD_TRUE='#' 21914 ENABLE_QUAD_FALSE= 21915fi 21916 21917 if test x$enable_sse2 = xyes; then 21918 ENABLE_SSE2_TRUE= 21919 ENABLE_SSE2_FALSE='#' 21920else 21921 ENABLE_SSE2_TRUE='#' 21922 ENABLE_SSE2_FALSE= 21923fi 21924 21925 if test x$enable_test = xno; then 21926 DISABLE_TEST_TRUE= 21927 DISABLE_TEST_FALSE='#' 21928else 21929 DISABLE_TEST_TRUE='#' 21930 DISABLE_TEST_FALSE= 21931fi 21932 21933 21934 21935 21936 21937 21938 21939 21940 21941 21942 21943 21944SIZEOF_VOID_P=$ac_cv_sizeof_void_p 21945 21946 21947 21948 21949# Configurations for Some Header Files 21950 21951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 21952$as_echo_n "checking for ANSI C header files... " >&6; } 21953if ${ac_cv_header_stdc+:} false; then : 21954 $as_echo_n "(cached) " >&6 21955else 21956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21957/* end confdefs.h. */ 21958#include <stdlib.h> 21959#include <stdarg.h> 21960#include <string.h> 21961#include <float.h> 21962 21963#ifdef F77_DUMMY_MAIN 21964 21965# ifdef __cplusplus 21966 extern "C" 21967# endif 21968 int F77_DUMMY_MAIN() { return 1; } 21969 21970#endif 21971int 21972main () 21973{ 21974 21975 ; 21976 return 0; 21977} 21978_ACEOF 21979if ac_fn_c_try_compile "$LINENO"; then : 21980 ac_cv_header_stdc=yes 21981else 21982 ac_cv_header_stdc=no 21983fi 21984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21985 21986if test $ac_cv_header_stdc = yes; then 21987 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21989/* end confdefs.h. */ 21990#include <string.h> 21991 21992_ACEOF 21993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21994 $EGREP "memchr" >/dev/null 2>&1; then : 21995 21996else 21997 ac_cv_header_stdc=no 21998fi 21999rm -f conftest* 22000 22001fi 22002 22003if test $ac_cv_header_stdc = yes; then 22004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 22005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22006/* end confdefs.h. */ 22007#include <stdlib.h> 22008 22009_ACEOF 22010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 22011 $EGREP "free" >/dev/null 2>&1; then : 22012 22013else 22014 ac_cv_header_stdc=no 22015fi 22016rm -f conftest* 22017 22018fi 22019 22020if test $ac_cv_header_stdc = yes; then 22021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 22022 if test "$cross_compiling" = yes; then : 22023 : 22024else 22025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22026/* end confdefs.h. */ 22027#include <ctype.h> 22028#include <stdlib.h> 22029#if ((' ' & 0x0FF) == 0x020) 22030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 22031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 22032#else 22033# define ISLOWER(c) \ 22034 (('a' <= (c) && (c) <= 'i') \ 22035 || ('j' <= (c) && (c) <= 'r') \ 22036 || ('s' <= (c) && (c) <= 'z')) 22037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 22038#endif 22039 22040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 22041int 22042main () 22043{ 22044 int i; 22045 for (i = 0; i < 256; i++) 22046 if (XOR (islower (i), ISLOWER (i)) 22047 || toupper (i) != TOUPPER (i)) 22048 return 2; 22049 return 0; 22050} 22051_ACEOF 22052if ac_fn_c_try_run "$LINENO"; then : 22053 22054else 22055 ac_cv_header_stdc=no 22056fi 22057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22058 conftest.$ac_objext conftest.beam conftest.$ac_ext 22059fi 22060 22061fi 22062fi 22063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 22064$as_echo "$ac_cv_header_stdc" >&6; } 22065if test $ac_cv_header_stdc = yes; then 22066 22067$as_echo "#define STDC_HEADERS 1" >>confdefs.h 22068 22069fi 22070 22071for ac_header in malloc.h stdlib.h string.h sys/time.h 22072do : 22073 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 22074ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 22075if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 22076 cat >>confdefs.h <<_ACEOF 22077#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 22078_ACEOF 22079 22080fi 22081 22082done 22083 22084 22085 22086# Configurations for Compiler Characteristics and Type Definitions 22087 22088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 22089$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 22090if ${ac_cv_c_const+:} false; then : 22091 $as_echo_n "(cached) " >&6 22092else 22093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22094/* end confdefs.h. */ 22095 22096#ifdef F77_DUMMY_MAIN 22097 22098# ifdef __cplusplus 22099 extern "C" 22100# endif 22101 int F77_DUMMY_MAIN() { return 1; } 22102 22103#endif 22104int 22105main () 22106{ 22107 22108#ifndef __cplusplus 22109 /* Ultrix mips cc rejects this sort of thing. */ 22110 typedef int charset[2]; 22111 const charset cs = { 0, 0 }; 22112 /* SunOS 4.1.1 cc rejects this. */ 22113 char const *const *pcpcc; 22114 char **ppc; 22115 /* NEC SVR4.0.2 mips cc rejects this. */ 22116 struct point {int x, y;}; 22117 static struct point const zero = {0,0}; 22118 /* AIX XL C 1.02.0.0 rejects this. 22119 It does not let you subtract one const X* pointer from another in 22120 an arm of an if-expression whose if-part is not a constant 22121 expression */ 22122 const char *g = "string"; 22123 pcpcc = &g + (g ? g-g : 0); 22124 /* HPUX 7.0 cc rejects these. */ 22125 ++pcpcc; 22126 ppc = (char**) pcpcc; 22127 pcpcc = (char const *const *) ppc; 22128 { /* SCO 3.2v4 cc rejects this sort of thing. */ 22129 char tx; 22130 char *t = &tx; 22131 char const *s = 0 ? (char *) 0 : (char const *) 0; 22132 22133 *t++ = 0; 22134 if (s) return 0; 22135 } 22136 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 22137 int x[] = {25, 17}; 22138 const int *foo = &x[0]; 22139 ++foo; 22140 } 22141 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 22142 typedef const int *iptr; 22143 iptr p = 0; 22144 ++p; 22145 } 22146 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 22147 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 22148 struct s { int j; const int *ap[3]; } bx; 22149 struct s *b = &bx; b->j = 5; 22150 } 22151 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 22152 const int foo = 10; 22153 if (!foo) return 0; 22154 } 22155 return !cs[0] && !zero.x; 22156#endif 22157 22158 ; 22159 return 0; 22160} 22161_ACEOF 22162if ac_fn_c_try_compile "$LINENO"; then : 22163 ac_cv_c_const=yes 22164else 22165 ac_cv_c_const=no 22166fi 22167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22168fi 22169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 22170$as_echo "$ac_cv_c_const" >&6; } 22171if test $ac_cv_c_const = no; then 22172 22173$as_echo "#define const /**/" >>confdefs.h 22174 22175fi 22176 22177ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 22178if test "x$ac_cv_type_size_t" = xyes; then : 22179 22180else 22181 22182cat >>confdefs.h <<_ACEOF 22183#define size_t unsigned int 22184_ACEOF 22185 22186fi 22187 22188 22189 22190# Configurations for Library Functions 22191 22192LIBS="-lm $LIBS" 22193 22194 22195# Output 22196 22197ac_config_files="$ac_config_files Makefile src/Makefile src/vector/Makefile src/matrix/Makefile src/matvec/Makefile src/array/Makefile src/solver/Makefile src/esolver/Makefile src/precon/Makefile src/system/Makefile src/precision/Makefile src/fortran/Makefile src/fortran/amg/Makefile include/Makefile test/Makefile include/lisf.h" 22198 22199 22200DEFS="$DEFSADD $DEFS" 22201cat >confcache <<\_ACEOF 22202# This file is a shell script that caches the results of configure 22203# tests run on this system so they can be shared between configure 22204# scripts and configure runs, see configure's option --config-cache. 22205# It is not useful on other systems. If it contains results you don't 22206# want to keep, you may remove or edit it. 22207# 22208# config.status only pays attention to the cache file if you give it 22209# the --recheck option to rerun configure. 22210# 22211# `ac_cv_env_foo' variables (set or unset) will be overridden when 22212# loading this file, other *unset* `ac_cv_foo' will be assigned the 22213# following values. 22214 22215_ACEOF 22216 22217# The following way of writing the cache mishandles newlines in values, 22218# but we know of no workaround that is simple, portable, and efficient. 22219# So, we kill variables containing newlines. 22220# Ultrix sh set writes to stderr and can't be redirected directly, 22221# and sets the high bit in the cache file unless we assign to the vars. 22222( 22223 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22224 eval ac_val=\$$ac_var 22225 case $ac_val in #( 22226 *${as_nl}*) 22227 case $ac_var in #( 22228 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22229$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22230 esac 22231 case $ac_var in #( 22232 _ | IFS | as_nl) ;; #( 22233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22234 *) { eval $ac_var=; unset $ac_var;} ;; 22235 esac ;; 22236 esac 22237 done 22238 22239 (set) 2>&1 | 22240 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22241 *${as_nl}ac_space=\ *) 22242 # `set' does not quote correctly, so add quotes: double-quote 22243 # substitution turns \\\\ into \\, and sed turns \\ into \. 22244 sed -n \ 22245 "s/'/'\\\\''/g; 22246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22247 ;; #( 22248 *) 22249 # `set' quotes correctly as required by POSIX, so do not add quotes. 22250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22251 ;; 22252 esac | 22253 sort 22254) | 22255 sed ' 22256 /^ac_cv_env_/b end 22257 t clear 22258 :clear 22259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22260 t end 22261 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22262 :end' >>confcache 22263if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22264 if test -w "$cache_file"; then 22265 if test "x$cache_file" != "x/dev/null"; then 22266 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22267$as_echo "$as_me: updating cache $cache_file" >&6;} 22268 if test ! -f "$cache_file" || test -h "$cache_file"; then 22269 cat confcache >"$cache_file" 22270 else 22271 case $cache_file in #( 22272 */* | ?:*) 22273 mv -f confcache "$cache_file"$$ && 22274 mv -f "$cache_file"$$ "$cache_file" ;; #( 22275 *) 22276 mv -f confcache "$cache_file" ;; 22277 esac 22278 fi 22279 fi 22280 else 22281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22282$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22283 fi 22284fi 22285rm -f confcache 22286 22287test "x$prefix" = xNONE && prefix=$ac_default_prefix 22288# Let make expand exec_prefix. 22289test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22290 22291DEFS=-DHAVE_CONFIG_H 22292 22293ac_libobjs= 22294ac_ltlibobjs= 22295U= 22296for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22297 # 1. Remove the extension, and $U if already installed. 22298 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22299 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22300 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22301 # will be set to the directory where LIBOBJS objects are built. 22302 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22303 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22304done 22305LIBOBJS=$ac_libobjs 22306 22307LTLIBOBJS=$ac_ltlibobjs 22308 22309 22310 if test -n "$EXEEXT"; then 22311 am__EXEEXT_TRUE= 22312 am__EXEEXT_FALSE='#' 22313else 22314 am__EXEEXT_TRUE='#' 22315 am__EXEEXT_FALSE= 22316fi 22317 22318if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 22319 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 22320Usually this means the macro was only invoked conditionally." "$LINENO" 5 22321fi 22322if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22323 as_fn_error $? "conditional \"AMDEP\" was never defined. 22324Usually this means the macro was only invoked conditionally." "$LINENO" 5 22325fi 22326if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22327 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22328Usually this means the macro was only invoked conditionally." "$LINENO" 5 22329fi 22330if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then 22331 as_fn_error $? "conditional \"ENABLE_FORTRAN\" was never defined. 22332Usually this means the macro was only invoked conditionally." "$LINENO" 5 22333fi 22334if test -z "${ENABLE_F90_TRUE}" && test -z "${ENABLE_F90_FALSE}"; then 22335 as_fn_error $? "conditional \"ENABLE_F90\" was never defined. 22336Usually this means the macro was only invoked conditionally." "$LINENO" 5 22337fi 22338if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then 22339 as_fn_error $? "conditional \"ENABLE_FORTRAN\" was never defined. 22340Usually this means the macro was only invoked conditionally." "$LINENO" 5 22341fi 22342if test -z "${ENABLE_SAAMG_TRUE}" && test -z "${ENABLE_SAAMG_FALSE}"; then 22343 as_fn_error $? "conditional \"ENABLE_SAAMG\" was never defined. 22344Usually this means the macro was only invoked conditionally." "$LINENO" 5 22345fi 22346if test -z "${ENABLE_MPI_TRUE}" && test -z "${ENABLE_MPI_FALSE}"; then 22347 as_fn_error $? "conditional \"ENABLE_MPI\" was never defined. 22348Usually this means the macro was only invoked conditionally." "$LINENO" 5 22349fi 22350if test -z "${ENABLE_OMP_TRUE}" && test -z "${ENABLE_OMP_FALSE}"; then 22351 as_fn_error $? "conditional \"ENABLE_OMP\" was never defined. 22352Usually this means the macro was only invoked conditionally." "$LINENO" 5 22353fi 22354if test -z "${ENABLE_QUAD_TRUE}" && test -z "${ENABLE_QUAD_FALSE}"; then 22355 as_fn_error $? "conditional \"ENABLE_QUAD\" was never defined. 22356Usually this means the macro was only invoked conditionally." "$LINENO" 5 22357fi 22358if test -z "${ENABLE_SSE2_TRUE}" && test -z "${ENABLE_SSE2_FALSE}"; then 22359 as_fn_error $? "conditional \"ENABLE_SSE2\" was never defined. 22360Usually this means the macro was only invoked conditionally." "$LINENO" 5 22361fi 22362if test -z "${DISABLE_TEST_TRUE}" && test -z "${DISABLE_TEST_FALSE}"; then 22363 as_fn_error $? "conditional \"DISABLE_TEST\" was never defined. 22364Usually this means the macro was only invoked conditionally." "$LINENO" 5 22365fi 22366 22367: "${CONFIG_STATUS=./config.status}" 22368ac_write_fail=0 22369ac_clean_files_save=$ac_clean_files 22370ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22371{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22372$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22373as_write_fail=0 22374cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22375#! $SHELL 22376# Generated by $as_me. 22377# Run this file to recreate the current configuration. 22378# Compiler output produced by configure, useful for debugging 22379# configure, is in config.log if it exists. 22380 22381debug=false 22382ac_cs_recheck=false 22383ac_cs_silent=false 22384 22385SHELL=\${CONFIG_SHELL-$SHELL} 22386export SHELL 22387_ASEOF 22388cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22389## -------------------- ## 22390## M4sh Initialization. ## 22391## -------------------- ## 22392 22393# Be more Bourne compatible 22394DUALCASE=1; export DUALCASE # for MKS sh 22395if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22396 emulate sh 22397 NULLCMD=: 22398 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22399 # is contrary to our usage. Disable this feature. 22400 alias -g '${1+"$@"}'='"$@"' 22401 setopt NO_GLOB_SUBST 22402else 22403 case `(set -o) 2>/dev/null` in #( 22404 *posix*) : 22405 set -o posix ;; #( 22406 *) : 22407 ;; 22408esac 22409fi 22410 22411 22412as_nl=' 22413' 22414export as_nl 22415# Printing a long string crashes Solaris 7 /usr/bin/printf. 22416as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22417as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22418as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22419# Prefer a ksh shell builtin over an external printf program on Solaris, 22420# but without wasting forks for bash or zsh. 22421if test -z "$BASH_VERSION$ZSH_VERSION" \ 22422 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22423 as_echo='print -r --' 22424 as_echo_n='print -rn --' 22425elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22426 as_echo='printf %s\n' 22427 as_echo_n='printf %s' 22428else 22429 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22430 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22431 as_echo_n='/usr/ucb/echo -n' 22432 else 22433 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22434 as_echo_n_body='eval 22435 arg=$1; 22436 case $arg in #( 22437 *"$as_nl"*) 22438 expr "X$arg" : "X\\(.*\\)$as_nl"; 22439 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22440 esac; 22441 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22442 ' 22443 export as_echo_n_body 22444 as_echo_n='sh -c $as_echo_n_body as_echo' 22445 fi 22446 export as_echo_body 22447 as_echo='sh -c $as_echo_body as_echo' 22448fi 22449 22450# The user is always right. 22451if test "${PATH_SEPARATOR+set}" != set; then 22452 PATH_SEPARATOR=: 22453 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22454 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22455 PATH_SEPARATOR=';' 22456 } 22457fi 22458 22459 22460# IFS 22461# We need space, tab and new line, in precisely that order. Quoting is 22462# there to prevent editors from complaining about space-tab. 22463# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22464# splitting by setting IFS to empty value.) 22465IFS=" "" $as_nl" 22466 22467# Find who we are. Look in the path if we contain no directory separator. 22468as_myself= 22469case $0 in #(( 22470 *[\\/]* ) as_myself=$0 ;; 22471 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22472for as_dir in $PATH 22473do 22474 IFS=$as_save_IFS 22475 test -z "$as_dir" && as_dir=. 22476 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22477 done 22478IFS=$as_save_IFS 22479 22480 ;; 22481esac 22482# We did not find ourselves, most probably we were run as `sh COMMAND' 22483# in which case we are not to be found in the path. 22484if test "x$as_myself" = x; then 22485 as_myself=$0 22486fi 22487if test ! -f "$as_myself"; then 22488 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22489 exit 1 22490fi 22491 22492# Unset variables that we do not need and which cause bugs (e.g. in 22493# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22494# suppresses any "Segmentation fault" message there. '((' could 22495# trigger a bug in pdksh 5.2.14. 22496for as_var in BASH_ENV ENV MAIL MAILPATH 22497do eval test x\${$as_var+set} = xset \ 22498 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22499done 22500PS1='$ ' 22501PS2='> ' 22502PS4='+ ' 22503 22504# NLS nuisances. 22505LC_ALL=C 22506export LC_ALL 22507LANGUAGE=C 22508export LANGUAGE 22509 22510# CDPATH. 22511(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22512 22513 22514# as_fn_error STATUS ERROR [LINENO LOG_FD] 22515# ---------------------------------------- 22516# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22517# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22518# script with STATUS, using 1 if that was 0. 22519as_fn_error () 22520{ 22521 as_status=$1; test $as_status -eq 0 && as_status=1 22522 if test "$4"; then 22523 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22524 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22525 fi 22526 $as_echo "$as_me: error: $2" >&2 22527 as_fn_exit $as_status 22528} # as_fn_error 22529 22530 22531# as_fn_set_status STATUS 22532# ----------------------- 22533# Set $? to STATUS, without forking. 22534as_fn_set_status () 22535{ 22536 return $1 22537} # as_fn_set_status 22538 22539# as_fn_exit STATUS 22540# ----------------- 22541# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22542as_fn_exit () 22543{ 22544 set +e 22545 as_fn_set_status $1 22546 exit $1 22547} # as_fn_exit 22548 22549# as_fn_unset VAR 22550# --------------- 22551# Portably unset VAR. 22552as_fn_unset () 22553{ 22554 { eval $1=; unset $1;} 22555} 22556as_unset=as_fn_unset 22557# as_fn_append VAR VALUE 22558# ---------------------- 22559# Append the text in VALUE to the end of the definition contained in VAR. Take 22560# advantage of any shell optimizations that allow amortized linear growth over 22561# repeated appends, instead of the typical quadratic growth present in naive 22562# implementations. 22563if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22564 eval 'as_fn_append () 22565 { 22566 eval $1+=\$2 22567 }' 22568else 22569 as_fn_append () 22570 { 22571 eval $1=\$$1\$2 22572 } 22573fi # as_fn_append 22574 22575# as_fn_arith ARG... 22576# ------------------ 22577# Perform arithmetic evaluation on the ARGs, and store the result in the 22578# global $as_val. Take advantage of shells that can avoid forks. The arguments 22579# must be portable across $(()) and expr. 22580if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22581 eval 'as_fn_arith () 22582 { 22583 as_val=$(( $* )) 22584 }' 22585else 22586 as_fn_arith () 22587 { 22588 as_val=`expr "$@" || test $? -eq 1` 22589 } 22590fi # as_fn_arith 22591 22592 22593if expr a : '\(a\)' >/dev/null 2>&1 && 22594 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22595 as_expr=expr 22596else 22597 as_expr=false 22598fi 22599 22600if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22601 as_basename=basename 22602else 22603 as_basename=false 22604fi 22605 22606if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22607 as_dirname=dirname 22608else 22609 as_dirname=false 22610fi 22611 22612as_me=`$as_basename -- "$0" || 22613$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22614 X"$0" : 'X\(//\)$' \| \ 22615 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22616$as_echo X/"$0" | 22617 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22618 s//\1/ 22619 q 22620 } 22621 /^X\/\(\/\/\)$/{ 22622 s//\1/ 22623 q 22624 } 22625 /^X\/\(\/\).*/{ 22626 s//\1/ 22627 q 22628 } 22629 s/.*/./; q'` 22630 22631# Avoid depending upon Character Ranges. 22632as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22633as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22634as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22635as_cr_digits='0123456789' 22636as_cr_alnum=$as_cr_Letters$as_cr_digits 22637 22638ECHO_C= ECHO_N= ECHO_T= 22639case `echo -n x` in #((((( 22640-n*) 22641 case `echo 'xy\c'` in 22642 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22643 xy) ECHO_C='\c';; 22644 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22645 ECHO_T=' ';; 22646 esac;; 22647*) 22648 ECHO_N='-n';; 22649esac 22650 22651rm -f conf$$ conf$$.exe conf$$.file 22652if test -d conf$$.dir; then 22653 rm -f conf$$.dir/conf$$.file 22654else 22655 rm -f conf$$.dir 22656 mkdir conf$$.dir 2>/dev/null 22657fi 22658if (echo >conf$$.file) 2>/dev/null; then 22659 if ln -s conf$$.file conf$$ 2>/dev/null; then 22660 as_ln_s='ln -s' 22661 # ... but there are two gotchas: 22662 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22663 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22664 # In both cases, we have to default to `cp -pR'. 22665 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22666 as_ln_s='cp -pR' 22667 elif ln conf$$.file conf$$ 2>/dev/null; then 22668 as_ln_s=ln 22669 else 22670 as_ln_s='cp -pR' 22671 fi 22672else 22673 as_ln_s='cp -pR' 22674fi 22675rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22676rmdir conf$$.dir 2>/dev/null 22677 22678 22679# as_fn_mkdir_p 22680# ------------- 22681# Create "$as_dir" as a directory, including parents if necessary. 22682as_fn_mkdir_p () 22683{ 22684 22685 case $as_dir in #( 22686 -*) as_dir=./$as_dir;; 22687 esac 22688 test -d "$as_dir" || eval $as_mkdir_p || { 22689 as_dirs= 22690 while :; do 22691 case $as_dir in #( 22692 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22693 *) as_qdir=$as_dir;; 22694 esac 22695 as_dirs="'$as_qdir' $as_dirs" 22696 as_dir=`$as_dirname -- "$as_dir" || 22697$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22698 X"$as_dir" : 'X\(//\)[^/]' \| \ 22699 X"$as_dir" : 'X\(//\)$' \| \ 22700 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22701$as_echo X"$as_dir" | 22702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22703 s//\1/ 22704 q 22705 } 22706 /^X\(\/\/\)[^/].*/{ 22707 s//\1/ 22708 q 22709 } 22710 /^X\(\/\/\)$/{ 22711 s//\1/ 22712 q 22713 } 22714 /^X\(\/\).*/{ 22715 s//\1/ 22716 q 22717 } 22718 s/.*/./; q'` 22719 test -d "$as_dir" && break 22720 done 22721 test -z "$as_dirs" || eval "mkdir $as_dirs" 22722 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22723 22724 22725} # as_fn_mkdir_p 22726if mkdir -p . 2>/dev/null; then 22727 as_mkdir_p='mkdir -p "$as_dir"' 22728else 22729 test -d ./-p && rmdir ./-p 22730 as_mkdir_p=false 22731fi 22732 22733 22734# as_fn_executable_p FILE 22735# ----------------------- 22736# Test if FILE is an executable regular file. 22737as_fn_executable_p () 22738{ 22739 test -f "$1" && test -x "$1" 22740} # as_fn_executable_p 22741as_test_x='test -x' 22742as_executable_p=as_fn_executable_p 22743 22744# Sed expression to map a string onto a valid CPP name. 22745as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22746 22747# Sed expression to map a string onto a valid variable name. 22748as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22749 22750 22751exec 6>&1 22752## ----------------------------------- ## 22753## Main body of $CONFIG_STATUS script. ## 22754## ----------------------------------- ## 22755_ASEOF 22756test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22757 22758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22759# Save the log message, to keep $0 and so on meaningful, and to 22760# report actual input values of CONFIG_FILES etc. instead of their 22761# values after options handling. 22762ac_log=" 22763This file was extended by lis $as_me 2.0.30, which was 22764generated by GNU Autoconf 2.69. Invocation command line was 22765 22766 CONFIG_FILES = $CONFIG_FILES 22767 CONFIG_HEADERS = $CONFIG_HEADERS 22768 CONFIG_LINKS = $CONFIG_LINKS 22769 CONFIG_COMMANDS = $CONFIG_COMMANDS 22770 $ $0 $@ 22771 22772on `(hostname || uname -n) 2>/dev/null | sed 1q` 22773" 22774 22775_ACEOF 22776 22777case $ac_config_files in *" 22778"*) set x $ac_config_files; shift; ac_config_files=$*;; 22779esac 22780 22781case $ac_config_headers in *" 22782"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22783esac 22784 22785 22786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22787# Files that config.status was made for. 22788config_files="$ac_config_files" 22789config_headers="$ac_config_headers" 22790config_commands="$ac_config_commands" 22791 22792_ACEOF 22793 22794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22795ac_cs_usage="\ 22796\`$as_me' instantiates files and other configuration actions 22797from templates according to the current configuration. Unless the files 22798and actions are specified as TAGs, all are instantiated by default. 22799 22800Usage: $0 [OPTION]... [TAG]... 22801 22802 -h, --help print this help, then exit 22803 -V, --version print version number and configuration settings, then exit 22804 --config print configuration, then exit 22805 -q, --quiet, --silent 22806 do not print progress messages 22807 -d, --debug don't remove temporary files 22808 --recheck update $as_me by reconfiguring in the same conditions 22809 --file=FILE[:TEMPLATE] 22810 instantiate the configuration file FILE 22811 --header=FILE[:TEMPLATE] 22812 instantiate the configuration header FILE 22813 22814Configuration files: 22815$config_files 22816 22817Configuration headers: 22818$config_headers 22819 22820Configuration commands: 22821$config_commands 22822 22823Report bugs to <devel@ssisc.org>." 22824 22825_ACEOF 22826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22827ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22828ac_cs_version="\\ 22829lis config.status 2.0.30 22830configured by $0, generated by GNU Autoconf 2.69, 22831 with options \\"\$ac_cs_config\\" 22832 22833Copyright (C) 2012 Free Software Foundation, Inc. 22834This config.status script is free software; the Free Software Foundation 22835gives unlimited permission to copy, distribute and modify it." 22836 22837ac_pwd='$ac_pwd' 22838srcdir='$srcdir' 22839INSTALL='$INSTALL' 22840MKDIR_P='$MKDIR_P' 22841AWK='$AWK' 22842test -n "\$AWK" || AWK=awk 22843_ACEOF 22844 22845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22846# The default lists apply if the user does not specify any file. 22847ac_need_defaults=: 22848while test $# != 0 22849do 22850 case $1 in 22851 --*=?*) 22852 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22853 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22854 ac_shift=: 22855 ;; 22856 --*=) 22857 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22858 ac_optarg= 22859 ac_shift=: 22860 ;; 22861 *) 22862 ac_option=$1 22863 ac_optarg=$2 22864 ac_shift=shift 22865 ;; 22866 esac 22867 22868 case $ac_option in 22869 # Handling of the options. 22870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22871 ac_cs_recheck=: ;; 22872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22873 $as_echo "$ac_cs_version"; exit ;; 22874 --config | --confi | --conf | --con | --co | --c ) 22875 $as_echo "$ac_cs_config"; exit ;; 22876 --debug | --debu | --deb | --de | --d | -d ) 22877 debug=: ;; 22878 --file | --fil | --fi | --f ) 22879 $ac_shift 22880 case $ac_optarg in 22881 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22882 '') as_fn_error $? "missing file argument" ;; 22883 esac 22884 as_fn_append CONFIG_FILES " '$ac_optarg'" 22885 ac_need_defaults=false;; 22886 --header | --heade | --head | --hea ) 22887 $ac_shift 22888 case $ac_optarg in 22889 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22890 esac 22891 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22892 ac_need_defaults=false;; 22893 --he | --h) 22894 # Conflict between --help and --header 22895 as_fn_error $? "ambiguous option: \`$1' 22896Try \`$0 --help' for more information.";; 22897 --help | --hel | -h ) 22898 $as_echo "$ac_cs_usage"; exit ;; 22899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22900 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22901 ac_cs_silent=: ;; 22902 22903 # This is an error. 22904 -*) as_fn_error $? "unrecognized option: \`$1' 22905Try \`$0 --help' for more information." ;; 22906 22907 *) as_fn_append ac_config_targets " $1" 22908 ac_need_defaults=false ;; 22909 22910 esac 22911 shift 22912done 22913 22914ac_configure_extra_args= 22915 22916if $ac_cs_silent; then 22917 exec 6>/dev/null 22918 ac_configure_extra_args="$ac_configure_extra_args --silent" 22919fi 22920 22921_ACEOF 22922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22923if \$ac_cs_recheck; then 22924 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22925 shift 22926 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22927 CONFIG_SHELL='$SHELL' 22928 export CONFIG_SHELL 22929 exec "\$@" 22930fi 22931 22932_ACEOF 22933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22934exec 5>>config.log 22935{ 22936 echo 22937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22938## Running $as_me. ## 22939_ASBOX 22940 $as_echo "$ac_log" 22941} >&5 22942 22943_ACEOF 22944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22945# 22946# INIT-COMMANDS 22947# 22948AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 22949 22950 22951# The HP-UX ksh and POSIX shell print the target directory to stdout 22952# if CDPATH is set. 22953(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22954 22955sed_quote_subst='$sed_quote_subst' 22956double_quote_subst='$double_quote_subst' 22957delay_variable_subst='$delay_variable_subst' 22958enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22959macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22960macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22961enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22962pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22963enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22964shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22965SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22966ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22967PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22968host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22969host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22970host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22971build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22972build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22973build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22974SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22975Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22976GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22977EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22978FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22979LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22980NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22981LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22982max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22983ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22984exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22985lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22986lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22987lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22988lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22989lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22990reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22991reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22992OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22993deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22994file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22995file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22996want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22997DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22998sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22999AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23000AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23001archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23002STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23003RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23004old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23005old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23006old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23007lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23008CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23009CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23010compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23011GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23012lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23013lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23014lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23015lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23016lt_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"`' 23017lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23018nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23019lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23020lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23021objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23022MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23023lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23024lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23025lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23026lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23027lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23028need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23029MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23030DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23031NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23032LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23033OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23034OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23035libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23036shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23037extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23038archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23039enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23040export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23041whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23042compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23043old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23044old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23045archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23046archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23047module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23048module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23049with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23050allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23051no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23052hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23053hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23054hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23055hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23056hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23057hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23058hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23059inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23060link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23061always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23062export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23063exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23064include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23065prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23066postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23067file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23068variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23069need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23070need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23071version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23072runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23073shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23074shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23075libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23076library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23077soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23078install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23079postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23080postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23081finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23082finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23083hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23084sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23085configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23086configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23087hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23088enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23089enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23090enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23091old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23092striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23093compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 23094predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 23095postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 23096predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 23097postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 23098compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 23099LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' 23100LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`' 23101reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' 23102reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`' 23103reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' 23104reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`' 23105old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 23106old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 23107compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' 23108compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`' 23109GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' 23110GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`' 23111lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' 23112lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`' 23113lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' 23114lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`' 23115lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' 23116lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`' 23117lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' 23118lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`' 23119lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' 23120lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`' 23121archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' 23122archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`' 23123enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' 23124enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`' 23125export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 23126export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 23127whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 23128whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 23129compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' 23130compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`' 23131old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' 23132old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`' 23133old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' 23134old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`' 23135archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 23136archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`' 23137archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 23138archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 23139module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' 23140module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`' 23141module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 23142module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`' 23143with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' 23144with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`' 23145allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 23146allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 23147no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 23148no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`' 23149hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 23150hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`' 23151hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' 23152hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`' 23153hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' 23154hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`' 23155hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' 23156hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`' 23157hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' 23158hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`' 23159hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' 23160hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`' 23161hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' 23162hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`' 23163inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' 23164inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`' 23165link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' 23166link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`' 23167always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' 23168always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`' 23169export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' 23170export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`' 23171exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' 23172exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`' 23173include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' 23174include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`' 23175prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' 23176prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`' 23177postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' 23178postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`' 23179file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' 23180file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`' 23181hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' 23182hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`' 23183compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`' 23184compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`' 23185predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`' 23186predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`' 23187postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`' 23188postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`' 23189predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`' 23190predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`' 23191postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`' 23192postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`' 23193compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`' 23194compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`' 23195 23196LTCC='$LTCC' 23197LTCFLAGS='$LTCFLAGS' 23198compiler='$compiler_DEFAULT' 23199 23200# A function that is used when there is no print builtin or printf. 23201func_fallback_echo () 23202{ 23203 eval 'cat <<_LTECHO_EOF 23204\$1 23205_LTECHO_EOF' 23206} 23207 23208# Quote evaled strings. 23209for var in SHELL \ 23210ECHO \ 23211PATH_SEPARATOR \ 23212SED \ 23213GREP \ 23214EGREP \ 23215FGREP \ 23216LD \ 23217NM \ 23218LN_S \ 23219lt_SP2NL \ 23220lt_NL2SP \ 23221reload_flag \ 23222OBJDUMP \ 23223deplibs_check_method \ 23224file_magic_cmd \ 23225file_magic_glob \ 23226want_nocaseglob \ 23227DLLTOOL \ 23228sharedlib_from_linklib_cmd \ 23229AR \ 23230AR_FLAGS \ 23231archiver_list_spec \ 23232STRIP \ 23233RANLIB \ 23234CC \ 23235CFLAGS \ 23236compiler \ 23237lt_cv_sys_global_symbol_pipe \ 23238lt_cv_sys_global_symbol_to_cdecl \ 23239lt_cv_sys_global_symbol_to_import \ 23240lt_cv_sys_global_symbol_to_c_name_address \ 23241lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23242lt_cv_nm_interface \ 23243nm_file_list_spec \ 23244lt_cv_truncate_bin \ 23245lt_prog_compiler_no_builtin_flag \ 23246lt_prog_compiler_pic \ 23247lt_prog_compiler_wl \ 23248lt_prog_compiler_static \ 23249lt_cv_prog_compiler_c_o \ 23250need_locks \ 23251MANIFEST_TOOL \ 23252DSYMUTIL \ 23253NMEDIT \ 23254LIPO \ 23255OTOOL \ 23256OTOOL64 \ 23257shrext_cmds \ 23258export_dynamic_flag_spec \ 23259whole_archive_flag_spec \ 23260compiler_needs_object \ 23261with_gnu_ld \ 23262allow_undefined_flag \ 23263no_undefined_flag \ 23264hardcode_libdir_flag_spec \ 23265hardcode_libdir_separator \ 23266exclude_expsyms \ 23267include_expsyms \ 23268file_list_spec \ 23269variables_saved_for_relink \ 23270libname_spec \ 23271library_names_spec \ 23272soname_spec \ 23273install_override_mode \ 23274finish_eval \ 23275old_striplib \ 23276striplib \ 23277compiler_lib_search_dirs \ 23278predep_objects \ 23279postdep_objects \ 23280predeps \ 23281postdeps \ 23282compiler_lib_search_path \ 23283LD_F77 \ 23284LD_FC \ 23285reload_flag_F77 \ 23286reload_flag_FC \ 23287compiler_F77 \ 23288compiler_FC \ 23289lt_prog_compiler_no_builtin_flag_F77 \ 23290lt_prog_compiler_no_builtin_flag_FC \ 23291lt_prog_compiler_pic_F77 \ 23292lt_prog_compiler_pic_FC \ 23293lt_prog_compiler_wl_F77 \ 23294lt_prog_compiler_wl_FC \ 23295lt_prog_compiler_static_F77 \ 23296lt_prog_compiler_static_FC \ 23297lt_cv_prog_compiler_c_o_F77 \ 23298lt_cv_prog_compiler_c_o_FC \ 23299export_dynamic_flag_spec_F77 \ 23300export_dynamic_flag_spec_FC \ 23301whole_archive_flag_spec_F77 \ 23302whole_archive_flag_spec_FC \ 23303compiler_needs_object_F77 \ 23304compiler_needs_object_FC \ 23305with_gnu_ld_F77 \ 23306with_gnu_ld_FC \ 23307allow_undefined_flag_F77 \ 23308allow_undefined_flag_FC \ 23309no_undefined_flag_F77 \ 23310no_undefined_flag_FC \ 23311hardcode_libdir_flag_spec_F77 \ 23312hardcode_libdir_flag_spec_FC \ 23313hardcode_libdir_separator_F77 \ 23314hardcode_libdir_separator_FC \ 23315exclude_expsyms_F77 \ 23316exclude_expsyms_FC \ 23317include_expsyms_F77 \ 23318include_expsyms_FC \ 23319file_list_spec_F77 \ 23320file_list_spec_FC \ 23321compiler_lib_search_dirs_F77 \ 23322compiler_lib_search_dirs_FC \ 23323predep_objects_F77 \ 23324predep_objects_FC \ 23325postdep_objects_F77 \ 23326postdep_objects_FC \ 23327predeps_F77 \ 23328predeps_FC \ 23329postdeps_F77 \ 23330postdeps_FC \ 23331compiler_lib_search_path_F77 \ 23332compiler_lib_search_path_FC; do 23333 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23334 *[\\\\\\\`\\"\\\$]*) 23335 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23336 ;; 23337 *) 23338 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23339 ;; 23340 esac 23341done 23342 23343# Double-quote double-evaled strings. 23344for var in reload_cmds \ 23345old_postinstall_cmds \ 23346old_postuninstall_cmds \ 23347old_archive_cmds \ 23348extract_expsyms_cmds \ 23349old_archive_from_new_cmds \ 23350old_archive_from_expsyms_cmds \ 23351archive_cmds \ 23352archive_expsym_cmds \ 23353module_cmds \ 23354module_expsym_cmds \ 23355export_symbols_cmds \ 23356prelink_cmds \ 23357postlink_cmds \ 23358postinstall_cmds \ 23359postuninstall_cmds \ 23360finish_cmds \ 23361sys_lib_search_path_spec \ 23362configure_time_dlsearch_path \ 23363configure_time_lt_sys_library_path \ 23364reload_cmds_F77 \ 23365reload_cmds_FC \ 23366old_archive_cmds_F77 \ 23367old_archive_cmds_FC \ 23368old_archive_from_new_cmds_F77 \ 23369old_archive_from_new_cmds_FC \ 23370old_archive_from_expsyms_cmds_F77 \ 23371old_archive_from_expsyms_cmds_FC \ 23372archive_cmds_F77 \ 23373archive_cmds_FC \ 23374archive_expsym_cmds_F77 \ 23375archive_expsym_cmds_FC \ 23376module_cmds_F77 \ 23377module_cmds_FC \ 23378module_expsym_cmds_F77 \ 23379module_expsym_cmds_FC \ 23380export_symbols_cmds_F77 \ 23381export_symbols_cmds_FC \ 23382prelink_cmds_F77 \ 23383prelink_cmds_FC \ 23384postlink_cmds_F77 \ 23385postlink_cmds_FC; do 23386 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23387 *[\\\\\\\`\\"\\\$]*) 23388 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23389 ;; 23390 *) 23391 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23392 ;; 23393 esac 23394done 23395 23396ac_aux_dir='$ac_aux_dir' 23397 23398# See if we are running on zsh, and set the options that allow our 23399# commands through without removal of \ escapes INIT. 23400if test -n "\${ZSH_VERSION+set}"; then 23401 setopt NO_GLOB_SUBST 23402fi 23403 23404 23405 PACKAGE='$PACKAGE' 23406 VERSION='$VERSION' 23407 RM='$RM' 23408 ofile='$ofile' 23409 23410 23411 23412 23413 23414 23415 23416 23417_ACEOF 23418 23419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23420 23421# Handling of arguments. 23422for ac_config_target in $ac_config_targets 23423do 23424 case $ac_config_target in 23425 "include/lis_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lis_config.h" ;; 23426 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23427 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23428 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23429 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23430 "src/vector/Makefile") CONFIG_FILES="$CONFIG_FILES src/vector/Makefile" ;; 23431 "src/matrix/Makefile") CONFIG_FILES="$CONFIG_FILES src/matrix/Makefile" ;; 23432 "src/matvec/Makefile") CONFIG_FILES="$CONFIG_FILES src/matvec/Makefile" ;; 23433 "src/array/Makefile") CONFIG_FILES="$CONFIG_FILES src/array/Makefile" ;; 23434 "src/solver/Makefile") CONFIG_FILES="$CONFIG_FILES src/solver/Makefile" ;; 23435 "src/esolver/Makefile") CONFIG_FILES="$CONFIG_FILES src/esolver/Makefile" ;; 23436 "src/precon/Makefile") CONFIG_FILES="$CONFIG_FILES src/precon/Makefile" ;; 23437 "src/system/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/Makefile" ;; 23438 "src/precision/Makefile") CONFIG_FILES="$CONFIG_FILES src/precision/Makefile" ;; 23439 "src/fortran/Makefile") CONFIG_FILES="$CONFIG_FILES src/fortran/Makefile" ;; 23440 "src/fortran/amg/Makefile") CONFIG_FILES="$CONFIG_FILES src/fortran/amg/Makefile" ;; 23441 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 23442 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 23443 "include/lisf.h") CONFIG_FILES="$CONFIG_FILES include/lisf.h" ;; 23444 23445 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 23446 esac 23447done 23448 23449 23450# If the user did not use the arguments to specify the items to instantiate, 23451# then the envvar interface is used. Set only those that are not. 23452# We use the long form for the default assignment because of an extremely 23453# bizarre bug on SunOS 4.1.3. 23454if $ac_need_defaults; then 23455 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23456 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23457 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23458fi 23459 23460# Have a temporary directory for convenience. Make it in the build tree 23461# simply because there is no reason against having it here, and in addition, 23462# creating and moving files from /tmp can sometimes cause problems. 23463# Hook for its removal unless debugging. 23464# Note that there is a small window in which the directory will not be cleaned: 23465# after its creation but before its name has been assigned to `$tmp'. 23466$debug || 23467{ 23468 tmp= ac_tmp= 23469 trap 'exit_status=$? 23470 : "${ac_tmp:=$tmp}" 23471 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23472' 0 23473 trap 'as_fn_exit 1' 1 2 13 15 23474} 23475# Create a (secure) tmp directory for tmp files. 23476 23477{ 23478 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23479 test -d "$tmp" 23480} || 23481{ 23482 tmp=./conf$$-$RANDOM 23483 (umask 077 && mkdir "$tmp") 23484} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23485ac_tmp=$tmp 23486 23487# Set up the scripts for CONFIG_FILES section. 23488# No need to generate them if there are no CONFIG_FILES. 23489# This happens for instance with `./config.status config.h'. 23490if test -n "$CONFIG_FILES"; then 23491 23492 23493ac_cr=`echo X | tr X '\015'` 23494# On cygwin, bash can eat \r inside `` if the user requested igncr. 23495# But we know of no other shell where ac_cr would be empty at this 23496# point, so we can use a bashism as a fallback. 23497if test "x$ac_cr" = x; then 23498 eval ac_cr=\$\'\\r\' 23499fi 23500ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23501if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23502 ac_cs_awk_cr='\\r' 23503else 23504 ac_cs_awk_cr=$ac_cr 23505fi 23506 23507echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23508_ACEOF 23509 23510 23511{ 23512 echo "cat >conf$$subs.awk <<_ACEOF" && 23513 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23514 echo "_ACEOF" 23515} >conf$$subs.sh || 23516 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23517ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23518ac_delim='%!_!# ' 23519for ac_last_try in false false false false false :; do 23520 . ./conf$$subs.sh || 23521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23522 23523 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23524 if test $ac_delim_n = $ac_delim_num; then 23525 break 23526 elif $ac_last_try; then 23527 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23528 else 23529 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23530 fi 23531done 23532rm -f conf$$subs.sh 23533 23534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23535cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23536_ACEOF 23537sed -n ' 23538h 23539s/^/S["/; s/!.*/"]=/ 23540p 23541g 23542s/^[^!]*!// 23543:repl 23544t repl 23545s/'"$ac_delim"'$// 23546t delim 23547:nl 23548h 23549s/\(.\{148\}\)..*/\1/ 23550t more1 23551s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23552p 23553n 23554b repl 23555:more1 23556s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23557p 23558g 23559s/.\{148\}// 23560t nl 23561:delim 23562h 23563s/\(.\{148\}\)..*/\1/ 23564t more2 23565s/["\\]/\\&/g; s/^/"/; s/$/"/ 23566p 23567b 23568:more2 23569s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23570p 23571g 23572s/.\{148\}// 23573t delim 23574' <conf$$subs.awk | sed ' 23575/^[^""]/{ 23576 N 23577 s/\n// 23578} 23579' >>$CONFIG_STATUS || ac_write_fail=1 23580rm -f conf$$subs.awk 23581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23582_ACAWK 23583cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23584 for (key in S) S_is_set[key] = 1 23585 FS = "" 23586 23587} 23588{ 23589 line = $ 0 23590 nfields = split(line, field, "@") 23591 substed = 0 23592 len = length(field[1]) 23593 for (i = 2; i < nfields; i++) { 23594 key = field[i] 23595 keylen = length(key) 23596 if (S_is_set[key]) { 23597 value = S[key] 23598 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23599 len += length(value) + length(field[++i]) 23600 substed = 1 23601 } else 23602 len += 1 + keylen 23603 } 23604 23605 print line 23606} 23607 23608_ACAWK 23609_ACEOF 23610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23611if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23612 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23613else 23614 cat 23615fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23616 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23617_ACEOF 23618 23619# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23620# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23621# trailing colons and then remove the whole line if VPATH becomes empty 23622# (actually we leave an empty line to preserve line numbers). 23623if test "x$srcdir" = x.; then 23624 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23625h 23626s/// 23627s/^/:/ 23628s/[ ]*$/:/ 23629s/:\$(srcdir):/:/g 23630s/:\${srcdir}:/:/g 23631s/:@srcdir@:/:/g 23632s/^:*// 23633s/:*$// 23634x 23635s/\(=[ ]*\).*/\1/ 23636G 23637s/\n// 23638s/^[^=]*=[ ]*$// 23639}' 23640fi 23641 23642cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23643fi # test -n "$CONFIG_FILES" 23644 23645# Set up the scripts for CONFIG_HEADERS section. 23646# No need to generate them if there are no CONFIG_HEADERS. 23647# This happens for instance with `./config.status Makefile'. 23648if test -n "$CONFIG_HEADERS"; then 23649cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23650BEGIN { 23651_ACEOF 23652 23653# Transform confdefs.h into an awk script `defines.awk', embedded as 23654# here-document in config.status, that substitutes the proper values into 23655# config.h.in to produce config.h. 23656 23657# Create a delimiter string that does not exist in confdefs.h, to ease 23658# handling of long lines. 23659ac_delim='%!_!# ' 23660for ac_last_try in false false :; do 23661 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23662 if test -z "$ac_tt"; then 23663 break 23664 elif $ac_last_try; then 23665 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23666 else 23667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23668 fi 23669done 23670 23671# For the awk script, D is an array of macro values keyed by name, 23672# likewise P contains macro parameters if any. Preserve backslash 23673# newline sequences. 23674 23675ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23676sed -n ' 23677s/.\{148\}/&'"$ac_delim"'/g 23678t rset 23679:rset 23680s/^[ ]*#[ ]*define[ ][ ]*/ / 23681t def 23682d 23683:def 23684s/\\$// 23685t bsnl 23686s/["\\]/\\&/g 23687s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23688D["\1"]=" \3"/p 23689s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23690d 23691:bsnl 23692s/["\\]/\\&/g 23693s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23694D["\1"]=" \3\\\\\\n"\\/p 23695t cont 23696s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23697t cont 23698d 23699:cont 23700n 23701s/.\{148\}/&'"$ac_delim"'/g 23702t clear 23703:clear 23704s/\\$// 23705t bsnlc 23706s/["\\]/\\&/g; s/^/"/; s/$/"/p 23707d 23708:bsnlc 23709s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23710b cont 23711' <confdefs.h | sed ' 23712s/'"$ac_delim"'/"\\\ 23713"/g' >>$CONFIG_STATUS || ac_write_fail=1 23714 23715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23716 for (key in D) D_is_set[key] = 1 23717 FS = "" 23718} 23719/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23720 line = \$ 0 23721 split(line, arg, " ") 23722 if (arg[1] == "#") { 23723 defundef = arg[2] 23724 mac1 = arg[3] 23725 } else { 23726 defundef = substr(arg[1], 2) 23727 mac1 = arg[2] 23728 } 23729 split(mac1, mac2, "(") #) 23730 macro = mac2[1] 23731 prefix = substr(line, 1, index(line, defundef) - 1) 23732 if (D_is_set[macro]) { 23733 # Preserve the white space surrounding the "#". 23734 print prefix "define", macro P[macro] D[macro] 23735 next 23736 } else { 23737 # Replace #undef with comments. This is necessary, for example, 23738 # in the case of _POSIX_SOURCE, which is predefined and required 23739 # on some systems where configure will not decide to define it. 23740 if (defundef == "undef") { 23741 print "/*", prefix defundef, macro, "*/" 23742 next 23743 } 23744 } 23745} 23746{ print } 23747_ACAWK 23748_ACEOF 23749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23750 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23751fi # test -n "$CONFIG_HEADERS" 23752 23753 23754eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23755shift 23756for ac_tag 23757do 23758 case $ac_tag in 23759 :[FHLC]) ac_mode=$ac_tag; continue;; 23760 esac 23761 case $ac_mode$ac_tag in 23762 :[FHL]*:*);; 23763 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23764 :[FH]-) ac_tag=-:-;; 23765 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23766 esac 23767 ac_save_IFS=$IFS 23768 IFS=: 23769 set x $ac_tag 23770 IFS=$ac_save_IFS 23771 shift 23772 ac_file=$1 23773 shift 23774 23775 case $ac_mode in 23776 :L) ac_source=$1;; 23777 :[FH]) 23778 ac_file_inputs= 23779 for ac_f 23780 do 23781 case $ac_f in 23782 -) ac_f="$ac_tmp/stdin";; 23783 *) # Look for the file first in the build tree, then in the source tree 23784 # (if the path is not absolute). The absolute path cannot be DOS-style, 23785 # because $ac_f cannot contain `:'. 23786 test -f "$ac_f" || 23787 case $ac_f in 23788 [\\/$]*) false;; 23789 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23790 esac || 23791 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23792 esac 23793 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23794 as_fn_append ac_file_inputs " '$ac_f'" 23795 done 23796 23797 # Let's still pretend it is `configure' which instantiates (i.e., don't 23798 # use $as_me), people would be surprised to read: 23799 # /* config.h. Generated by config.status. */ 23800 configure_input='Generated from '` 23801 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23802 `' by configure.' 23803 if test x"$ac_file" != x-; then 23804 configure_input="$ac_file. $configure_input" 23805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23806$as_echo "$as_me: creating $ac_file" >&6;} 23807 fi 23808 # Neutralize special characters interpreted by sed in replacement strings. 23809 case $configure_input in #( 23810 *\&* | *\|* | *\\* ) 23811 ac_sed_conf_input=`$as_echo "$configure_input" | 23812 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23813 *) ac_sed_conf_input=$configure_input;; 23814 esac 23815 23816 case $ac_tag in 23817 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23819 esac 23820 ;; 23821 esac 23822 23823 ac_dir=`$as_dirname -- "$ac_file" || 23824$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23825 X"$ac_file" : 'X\(//\)[^/]' \| \ 23826 X"$ac_file" : 'X\(//\)$' \| \ 23827 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23828$as_echo X"$ac_file" | 23829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23830 s//\1/ 23831 q 23832 } 23833 /^X\(\/\/\)[^/].*/{ 23834 s//\1/ 23835 q 23836 } 23837 /^X\(\/\/\)$/{ 23838 s//\1/ 23839 q 23840 } 23841 /^X\(\/\).*/{ 23842 s//\1/ 23843 q 23844 } 23845 s/.*/./; q'` 23846 as_dir="$ac_dir"; as_fn_mkdir_p 23847 ac_builddir=. 23848 23849case "$ac_dir" in 23850.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23851*) 23852 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23853 # A ".." for each directory in $ac_dir_suffix. 23854 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23855 case $ac_top_builddir_sub in 23856 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23857 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23858 esac ;; 23859esac 23860ac_abs_top_builddir=$ac_pwd 23861ac_abs_builddir=$ac_pwd$ac_dir_suffix 23862# for backward compatibility: 23863ac_top_builddir=$ac_top_build_prefix 23864 23865case $srcdir in 23866 .) # We are building in place. 23867 ac_srcdir=. 23868 ac_top_srcdir=$ac_top_builddir_sub 23869 ac_abs_top_srcdir=$ac_pwd ;; 23870 [\\/]* | ?:[\\/]* ) # Absolute name. 23871 ac_srcdir=$srcdir$ac_dir_suffix; 23872 ac_top_srcdir=$srcdir 23873 ac_abs_top_srcdir=$srcdir ;; 23874 *) # Relative name. 23875 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23876 ac_top_srcdir=$ac_top_build_prefix$srcdir 23877 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23878esac 23879ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23880 23881 23882 case $ac_mode in 23883 :F) 23884 # 23885 # CONFIG_FILE 23886 # 23887 23888 case $INSTALL in 23889 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23890 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23891 esac 23892 ac_MKDIR_P=$MKDIR_P 23893 case $MKDIR_P in 23894 [\\/$]* | ?:[\\/]* ) ;; 23895 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23896 esac 23897_ACEOF 23898 23899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23900# If the template does not know about datarootdir, expand it. 23901# FIXME: This hack should be removed a few years after 2.60. 23902ac_datarootdir_hack=; ac_datarootdir_seen= 23903ac_sed_dataroot=' 23904/datarootdir/ { 23905 p 23906 q 23907} 23908/@datadir@/p 23909/@docdir@/p 23910/@infodir@/p 23911/@localedir@/p 23912/@mandir@/p' 23913case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23914*datarootdir*) ac_datarootdir_seen=yes;; 23915*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23917$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23918_ACEOF 23919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23920 ac_datarootdir_hack=' 23921 s&@datadir@&$datadir&g 23922 s&@docdir@&$docdir&g 23923 s&@infodir@&$infodir&g 23924 s&@localedir@&$localedir&g 23925 s&@mandir@&$mandir&g 23926 s&\\\${datarootdir}&$datarootdir&g' ;; 23927esac 23928_ACEOF 23929 23930# Neutralize VPATH when `$srcdir' = `.'. 23931# Shell code in configure.ac might set extrasub. 23932# FIXME: do we really want to maintain this feature? 23933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23934ac_sed_extra="$ac_vpsub 23935$extrasub 23936_ACEOF 23937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23938:t 23939/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23940s|@configure_input@|$ac_sed_conf_input|;t t 23941s&@top_builddir@&$ac_top_builddir_sub&;t t 23942s&@top_build_prefix@&$ac_top_build_prefix&;t t 23943s&@srcdir@&$ac_srcdir&;t t 23944s&@abs_srcdir@&$ac_abs_srcdir&;t t 23945s&@top_srcdir@&$ac_top_srcdir&;t t 23946s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23947s&@builddir@&$ac_builddir&;t t 23948s&@abs_builddir@&$ac_abs_builddir&;t t 23949s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23950s&@INSTALL@&$ac_INSTALL&;t t 23951s&@MKDIR_P@&$ac_MKDIR_P&;t t 23952$ac_datarootdir_hack 23953" 23954eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23955 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23956 23957test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23958 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23959 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23960 "$ac_tmp/out"`; test -z "$ac_out"; } && 23961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23962which seems to be undefined. Please make sure it is defined" >&5 23963$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23964which seems to be undefined. Please make sure it is defined" >&2;} 23965 23966 rm -f "$ac_tmp/stdin" 23967 case $ac_file in 23968 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23969 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23970 esac \ 23971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23972 ;; 23973 :H) 23974 # 23975 # CONFIG_HEADER 23976 # 23977 if test x"$ac_file" != x-; then 23978 { 23979 $as_echo "/* $configure_input */" \ 23980 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23981 } >"$ac_tmp/config.h" \ 23982 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23983 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23984 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23985$as_echo "$as_me: $ac_file is unchanged" >&6;} 23986 else 23987 rm -f "$ac_file" 23988 mv "$ac_tmp/config.h" "$ac_file" \ 23989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23990 fi 23991 else 23992 $as_echo "/* $configure_input */" \ 23993 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23994 || as_fn_error $? "could not create -" "$LINENO" 5 23995 fi 23996# Compute "$ac_file"'s index in $config_headers. 23997_am_arg="$ac_file" 23998_am_stamp_count=1 23999for _am_header in $config_headers :; do 24000 case $_am_header in 24001 $_am_arg | $_am_arg:* ) 24002 break ;; 24003 * ) 24004 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24005 esac 24006done 24007echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24008$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24009 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24010 X"$_am_arg" : 'X\(//\)$' \| \ 24011 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24012$as_echo X"$_am_arg" | 24013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24014 s//\1/ 24015 q 24016 } 24017 /^X\(\/\/\)[^/].*/{ 24018 s//\1/ 24019 q 24020 } 24021 /^X\(\/\/\)$/{ 24022 s//\1/ 24023 q 24024 } 24025 /^X\(\/\).*/{ 24026 s//\1/ 24027 q 24028 } 24029 s/.*/./; q'`/stamp-h$_am_stamp_count 24030 ;; 24031 24032 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24033$as_echo "$as_me: executing $ac_file commands" >&6;} 24034 ;; 24035 esac 24036 24037 24038 case $ac_file$ac_mode in 24039 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24040 # Autoconf 2.62 quotes --file arguments for eval, but not when files 24041 # are listed without --file. Let's play safe and only enable the eval 24042 # if we detect the quoting. 24043 case $CONFIG_FILES in 24044 *\'*) eval set x "$CONFIG_FILES" ;; 24045 *) set x $CONFIG_FILES ;; 24046 esac 24047 shift 24048 for mf 24049 do 24050 # Strip MF so we end up with the name of the file. 24051 mf=`echo "$mf" | sed -e 's/:.*$//'` 24052 # Check whether this is an Automake generated Makefile or not. 24053 # We used to match only the files named `Makefile.in', but 24054 # some people rename them; so instead we look at the file content. 24055 # Grep'ing the first line is not enough: some people post-process 24056 # each Makefile.in and add a new line on top of each file to say so. 24057 # Grep'ing the whole file is not good either: AIX grep has a line 24058 # limit of 2048, but all sed's we know have understand at least 4000. 24059 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 24060 dirpart=`$as_dirname -- "$mf" || 24061$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24062 X"$mf" : 'X\(//\)[^/]' \| \ 24063 X"$mf" : 'X\(//\)$' \| \ 24064 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 24065$as_echo X"$mf" | 24066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24067 s//\1/ 24068 q 24069 } 24070 /^X\(\/\/\)[^/].*/{ 24071 s//\1/ 24072 q 24073 } 24074 /^X\(\/\/\)$/{ 24075 s//\1/ 24076 q 24077 } 24078 /^X\(\/\).*/{ 24079 s//\1/ 24080 q 24081 } 24082 s/.*/./; q'` 24083 else 24084 continue 24085 fi 24086 # Extract the definition of DEPDIR, am__include, and am__quote 24087 # from the Makefile without running `make'. 24088 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 24089 test -z "$DEPDIR" && continue 24090 am__include=`sed -n 's/^am__include = //p' < "$mf"` 24091 test -z "am__include" && continue 24092 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 24093 # When using ansi2knr, U may be empty or an underscore; expand it 24094 U=`sed -n 's/^U = //p' < "$mf"` 24095 # Find all dependency output files, they are included files with 24096 # $(DEPDIR) in their names. We invoke sed twice because it is the 24097 # simplest approach to changing $(DEPDIR) to its actual value in the 24098 # expansion. 24099 for file in `sed -n " 24100 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 24101 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 24102 # Make sure the directory exists. 24103 test -f "$dirpart/$file" && continue 24104 fdir=`$as_dirname -- "$file" || 24105$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24106 X"$file" : 'X\(//\)[^/]' \| \ 24107 X"$file" : 'X\(//\)$' \| \ 24108 X"$file" : 'X\(/\)' \| . 2>/dev/null || 24109$as_echo X"$file" | 24110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24111 s//\1/ 24112 q 24113 } 24114 /^X\(\/\/\)[^/].*/{ 24115 s//\1/ 24116 q 24117 } 24118 /^X\(\/\/\)$/{ 24119 s//\1/ 24120 q 24121 } 24122 /^X\(\/\).*/{ 24123 s//\1/ 24124 q 24125 } 24126 s/.*/./; q'` 24127 as_dir=$dirpart/$fdir; as_fn_mkdir_p 24128 # echo "creating $dirpart/$file" 24129 echo '# dummy' > "$dirpart/$file" 24130 done 24131 done 24132} 24133 ;; 24134 "libtool":C) 24135 24136 # See if we are running on zsh, and set the options that allow our 24137 # commands through without removal of \ escapes. 24138 if test -n "${ZSH_VERSION+set}"; then 24139 setopt NO_GLOB_SUBST 24140 fi 24141 24142 cfgfile=${ofile}T 24143 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24144 $RM "$cfgfile" 24145 24146 cat <<_LT_EOF >> "$cfgfile" 24147#! $SHELL 24148# Generated automatically by $as_me ($PACKAGE) $VERSION 24149# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24150# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24151 24152# Provide generalized library-building support services. 24153# Written by Gordon Matzigkeit, 1996 24154 24155# Copyright (C) 2014 Free Software Foundation, Inc. 24156# This is free software; see the source for copying conditions. There is NO 24157# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24158 24159# GNU Libtool is free software; you can redistribute it and/or modify 24160# it under the terms of the GNU General Public License as published by 24161# the Free Software Foundation; either version 2 of of the License, or 24162# (at your option) any later version. 24163# 24164# As a special exception to the GNU General Public License, if you 24165# distribute this file as part of a program or library that is built 24166# using GNU Libtool, you may include this file under the same 24167# distribution terms that you use for the rest of that program. 24168# 24169# GNU Libtool is distributed in the hope that it will be useful, but 24170# WITHOUT ANY WARRANTY; without even the implied warranty of 24171# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24172# GNU General Public License for more details. 24173# 24174# You should have received a copy of the GNU General Public License 24175# along with this program. If not, see <http://www.gnu.org/licenses/>. 24176 24177 24178# The names of the tagged configurations supported by this script. 24179available_tags='F77 FC ' 24180 24181# Configured defaults for sys_lib_dlsearch_path munging. 24182: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24183 24184# ### BEGIN LIBTOOL CONFIG 24185 24186# Whether or not to build shared libraries. 24187build_libtool_libs=$enable_shared 24188 24189# Which release of libtool.m4 was used? 24190macro_version=$macro_version 24191macro_revision=$macro_revision 24192 24193# Whether or not to build static libraries. 24194build_old_libs=$enable_static 24195 24196# What type of objects to build. 24197pic_mode=$pic_mode 24198 24199# Whether or not to optimize for fast installation. 24200fast_install=$enable_fast_install 24201 24202# Shared archive member basename,for filename based shared library versioning on AIX. 24203shared_archive_member_spec=$shared_archive_member_spec 24204 24205# Shell to use when invoking shell scripts. 24206SHELL=$lt_SHELL 24207 24208# An echo program that protects backslashes. 24209ECHO=$lt_ECHO 24210 24211# The PATH separator for the build system. 24212PATH_SEPARATOR=$lt_PATH_SEPARATOR 24213 24214# The host system. 24215host_alias=$host_alias 24216host=$host 24217host_os=$host_os 24218 24219# The build system. 24220build_alias=$build_alias 24221build=$build 24222build_os=$build_os 24223 24224# A sed program that does not truncate output. 24225SED=$lt_SED 24226 24227# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24228Xsed="\$SED -e 1s/^X//" 24229 24230# A grep program that handles long lines. 24231GREP=$lt_GREP 24232 24233# An ERE matcher. 24234EGREP=$lt_EGREP 24235 24236# A literal string matcher. 24237FGREP=$lt_FGREP 24238 24239# A BSD- or MS-compatible name lister. 24240NM=$lt_NM 24241 24242# Whether we need soft or hard links. 24243LN_S=$lt_LN_S 24244 24245# What is the maximum length of a command? 24246max_cmd_len=$max_cmd_len 24247 24248# Object file suffix (normally "o"). 24249objext=$ac_objext 24250 24251# Executable file suffix (normally ""). 24252exeext=$exeext 24253 24254# whether the shell understands "unset". 24255lt_unset=$lt_unset 24256 24257# turn spaces into newlines. 24258SP2NL=$lt_lt_SP2NL 24259 24260# turn newlines into spaces. 24261NL2SP=$lt_lt_NL2SP 24262 24263# convert \$build file names to \$host format. 24264to_host_file_cmd=$lt_cv_to_host_file_cmd 24265 24266# convert \$build files to toolchain format. 24267to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24268 24269# An object symbol dumper. 24270OBJDUMP=$lt_OBJDUMP 24271 24272# Method to check whether dependent libraries are shared objects. 24273deplibs_check_method=$lt_deplibs_check_method 24274 24275# Command to use when deplibs_check_method = "file_magic". 24276file_magic_cmd=$lt_file_magic_cmd 24277 24278# How to find potential files when deplibs_check_method = "file_magic". 24279file_magic_glob=$lt_file_magic_glob 24280 24281# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24282want_nocaseglob=$lt_want_nocaseglob 24283 24284# DLL creation program. 24285DLLTOOL=$lt_DLLTOOL 24286 24287# Command to associate shared and link libraries. 24288sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24289 24290# The archiver. 24291AR=$lt_AR 24292 24293# Flags to create an archive. 24294AR_FLAGS=$lt_AR_FLAGS 24295 24296# How to feed a file listing to the archiver. 24297archiver_list_spec=$lt_archiver_list_spec 24298 24299# A symbol stripping program. 24300STRIP=$lt_STRIP 24301 24302# Commands used to install an old-style archive. 24303RANLIB=$lt_RANLIB 24304old_postinstall_cmds=$lt_old_postinstall_cmds 24305old_postuninstall_cmds=$lt_old_postuninstall_cmds 24306 24307# Whether to use a lock for old archive extraction. 24308lock_old_archive_extraction=$lock_old_archive_extraction 24309 24310# A C compiler. 24311LTCC=$lt_CC 24312 24313# LTCC compiler flags. 24314LTCFLAGS=$lt_CFLAGS 24315 24316# Take the output of nm and produce a listing of raw symbols and C names. 24317global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24318 24319# Transform the output of nm in a proper C declaration. 24320global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24321 24322# Transform the output of nm into a list of symbols to manually relocate. 24323global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24324 24325# Transform the output of nm in a C name address pair. 24326global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24327 24328# Transform the output of nm in a C name address pair when lib prefix is needed. 24329global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24330 24331# The name lister interface. 24332nm_interface=$lt_lt_cv_nm_interface 24333 24334# Specify filename containing input files for \$NM. 24335nm_file_list_spec=$lt_nm_file_list_spec 24336 24337# The root where to search for dependent libraries,and where our libraries should be installed. 24338lt_sysroot=$lt_sysroot 24339 24340# Command to truncate a binary pipe. 24341lt_truncate_bin=$lt_lt_cv_truncate_bin 24342 24343# The name of the directory that contains temporary libtool files. 24344objdir=$objdir 24345 24346# Used to examine libraries when file_magic_cmd begins with "file". 24347MAGIC_CMD=$MAGIC_CMD 24348 24349# Must we lock files when doing compilation? 24350need_locks=$lt_need_locks 24351 24352# Manifest tool. 24353MANIFEST_TOOL=$lt_MANIFEST_TOOL 24354 24355# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24356DSYMUTIL=$lt_DSYMUTIL 24357 24358# Tool to change global to local symbols on Mac OS X. 24359NMEDIT=$lt_NMEDIT 24360 24361# Tool to manipulate fat objects and archives on Mac OS X. 24362LIPO=$lt_LIPO 24363 24364# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24365OTOOL=$lt_OTOOL 24366 24367# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24368OTOOL64=$lt_OTOOL64 24369 24370# Old archive suffix (normally "a"). 24371libext=$libext 24372 24373# Shared library suffix (normally ".so"). 24374shrext_cmds=$lt_shrext_cmds 24375 24376# The commands to extract the exported symbol list from a shared archive. 24377extract_expsyms_cmds=$lt_extract_expsyms_cmds 24378 24379# Variables whose values should be saved in libtool wrapper scripts and 24380# restored at link time. 24381variables_saved_for_relink=$lt_variables_saved_for_relink 24382 24383# Do we need the "lib" prefix for modules? 24384need_lib_prefix=$need_lib_prefix 24385 24386# Do we need a version for libraries? 24387need_version=$need_version 24388 24389# Library versioning type. 24390version_type=$version_type 24391 24392# Shared library runtime path variable. 24393runpath_var=$runpath_var 24394 24395# Shared library path variable. 24396shlibpath_var=$shlibpath_var 24397 24398# Is shlibpath searched before the hard-coded library search path? 24399shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24400 24401# Format of library name prefix. 24402libname_spec=$lt_libname_spec 24403 24404# List of archive names. First name is the real one, the rest are links. 24405# The last name is the one that the linker finds with -lNAME 24406library_names_spec=$lt_library_names_spec 24407 24408# The coded name of the library, if different from the real name. 24409soname_spec=$lt_soname_spec 24410 24411# Permission mode override for installation of shared libraries. 24412install_override_mode=$lt_install_override_mode 24413 24414# Command to use after installation of a shared archive. 24415postinstall_cmds=$lt_postinstall_cmds 24416 24417# Command to use after uninstallation of a shared archive. 24418postuninstall_cmds=$lt_postuninstall_cmds 24419 24420# Commands used to finish a libtool library installation in a directory. 24421finish_cmds=$lt_finish_cmds 24422 24423# As "finish_cmds", except a single script fragment to be evaled but 24424# not shown. 24425finish_eval=$lt_finish_eval 24426 24427# Whether we should hardcode library paths into libraries. 24428hardcode_into_libs=$hardcode_into_libs 24429 24430# Compile-time system search path for libraries. 24431sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24432 24433# Detected run-time system search path for libraries. 24434sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24435 24436# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24437configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24438 24439# Whether dlopen is supported. 24440dlopen_support=$enable_dlopen 24441 24442# Whether dlopen of programs is supported. 24443dlopen_self=$enable_dlopen_self 24444 24445# Whether dlopen of statically linked programs is supported. 24446dlopen_self_static=$enable_dlopen_self_static 24447 24448# Commands to strip libraries. 24449old_striplib=$lt_old_striplib 24450striplib=$lt_striplib 24451 24452 24453# The linker used to build libraries. 24454LD=$lt_LD 24455 24456# How to create reloadable object files. 24457reload_flag=$lt_reload_flag 24458reload_cmds=$lt_reload_cmds 24459 24460# Commands used to build an old-style archive. 24461old_archive_cmds=$lt_old_archive_cmds 24462 24463# A language specific compiler. 24464CC=$lt_compiler 24465 24466# Is the compiler the GNU compiler? 24467with_gcc=$GCC 24468 24469# Compiler flag to turn off builtin functions. 24470no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24471 24472# Additional compiler flags for building library objects. 24473pic_flag=$lt_lt_prog_compiler_pic 24474 24475# How to pass a linker flag through the compiler. 24476wl=$lt_lt_prog_compiler_wl 24477 24478# Compiler flag to prevent dynamic linking. 24479link_static_flag=$lt_lt_prog_compiler_static 24480 24481# Does compiler simultaneously support -c and -o options? 24482compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24483 24484# Whether or not to add -lc for building shared libraries. 24485build_libtool_need_lc=$archive_cmds_need_lc 24486 24487# Whether or not to disallow shared libs when runtime libs are static. 24488allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24489 24490# Compiler flag to allow reflexive dlopens. 24491export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24492 24493# Compiler flag to generate shared objects directly from archives. 24494whole_archive_flag_spec=$lt_whole_archive_flag_spec 24495 24496# Whether the compiler copes with passing no objects directly. 24497compiler_needs_object=$lt_compiler_needs_object 24498 24499# Create an old-style archive from a shared archive. 24500old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24501 24502# Create a temporary old-style archive to link instead of a shared archive. 24503old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24504 24505# Commands used to build a shared archive. 24506archive_cmds=$lt_archive_cmds 24507archive_expsym_cmds=$lt_archive_expsym_cmds 24508 24509# Commands used to build a loadable module if different from building 24510# a shared archive. 24511module_cmds=$lt_module_cmds 24512module_expsym_cmds=$lt_module_expsym_cmds 24513 24514# Whether we are building with GNU ld or not. 24515with_gnu_ld=$lt_with_gnu_ld 24516 24517# Flag that allows shared libraries with undefined symbols to be built. 24518allow_undefined_flag=$lt_allow_undefined_flag 24519 24520# Flag that enforces no undefined symbols. 24521no_undefined_flag=$lt_no_undefined_flag 24522 24523# Flag to hardcode \$libdir into a binary during linking. 24524# This must work even if \$libdir does not exist 24525hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24526 24527# Whether we need a single "-rpath" flag with a separated argument. 24528hardcode_libdir_separator=$lt_hardcode_libdir_separator 24529 24530# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24531# DIR into the resulting binary. 24532hardcode_direct=$hardcode_direct 24533 24534# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24535# DIR into the resulting binary and the resulting library dependency is 24536# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24537# library is relocated. 24538hardcode_direct_absolute=$hardcode_direct_absolute 24539 24540# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24541# into the resulting binary. 24542hardcode_minus_L=$hardcode_minus_L 24543 24544# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24545# into the resulting binary. 24546hardcode_shlibpath_var=$hardcode_shlibpath_var 24547 24548# Set to "yes" if building a shared library automatically hardcodes DIR 24549# into the library and all subsequent libraries and executables linked 24550# against it. 24551hardcode_automatic=$hardcode_automatic 24552 24553# Set to yes if linker adds runtime paths of dependent libraries 24554# to runtime path list. 24555inherit_rpath=$inherit_rpath 24556 24557# Whether libtool must link a program against all its dependency libraries. 24558link_all_deplibs=$link_all_deplibs 24559 24560# Set to "yes" if exported symbols are required. 24561always_export_symbols=$always_export_symbols 24562 24563# The commands to list exported symbols. 24564export_symbols_cmds=$lt_export_symbols_cmds 24565 24566# Symbols that should not be listed in the preloaded symbols. 24567exclude_expsyms=$lt_exclude_expsyms 24568 24569# Symbols that must always be exported. 24570include_expsyms=$lt_include_expsyms 24571 24572# Commands necessary for linking programs (against libraries) with templates. 24573prelink_cmds=$lt_prelink_cmds 24574 24575# Commands necessary for finishing linking programs. 24576postlink_cmds=$lt_postlink_cmds 24577 24578# Specify filename containing input files. 24579file_list_spec=$lt_file_list_spec 24580 24581# How to hardcode a shared library path into an executable. 24582hardcode_action=$hardcode_action 24583 24584# The directories searched by this compiler when creating a shared library. 24585compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 24586 24587# Dependencies to place before and after the objects being linked to 24588# create a shared library. 24589predep_objects=$lt_predep_objects 24590postdep_objects=$lt_postdep_objects 24591predeps=$lt_predeps 24592postdeps=$lt_postdeps 24593 24594# The library search path used internally by the compiler when linking 24595# a shared library. 24596compiler_lib_search_path=$lt_compiler_lib_search_path 24597 24598# ### END LIBTOOL CONFIG 24599 24600_LT_EOF 24601 24602 cat <<'_LT_EOF' >> "$cfgfile" 24603 24604# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24605 24606# func_munge_path_list VARIABLE PATH 24607# ----------------------------------- 24608# VARIABLE is name of variable containing _space_ separated list of 24609# directories to be munged by the contents of PATH, which is string 24610# having a format: 24611# "DIR[:DIR]:" 24612# string "DIR[ DIR]" will be prepended to VARIABLE 24613# ":DIR[:DIR]" 24614# string "DIR[ DIR]" will be appended to VARIABLE 24615# "DIRP[:DIRP]::[DIRA:]DIRA" 24616# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24617# "DIRA[ DIRA]" will be appended to VARIABLE 24618# "DIR[:DIR]" 24619# VARIABLE will be replaced by "DIR[ DIR]" 24620func_munge_path_list () 24621{ 24622 case x$2 in 24623 x) 24624 ;; 24625 *:) 24626 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24627 ;; 24628 x:*) 24629 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24630 ;; 24631 *::*) 24632 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24633 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24634 ;; 24635 *) 24636 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24637 ;; 24638 esac 24639} 24640 24641 24642# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24643func_cc_basename () 24644{ 24645 for cc_temp in $*""; do 24646 case $cc_temp in 24647 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24648 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24649 \-*) ;; 24650 *) break;; 24651 esac 24652 done 24653 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24654} 24655 24656 24657# ### END FUNCTIONS SHARED WITH CONFIGURE 24658 24659_LT_EOF 24660 24661 case $host_os in 24662 aix3*) 24663 cat <<\_LT_EOF >> "$cfgfile" 24664# AIX sometimes has problems with the GCC collect2 program. For some 24665# reason, if we set the COLLECT_NAMES environment variable, the problems 24666# vanish in a puff of smoke. 24667if test set != "${COLLECT_NAMES+set}"; then 24668 COLLECT_NAMES= 24669 export COLLECT_NAMES 24670fi 24671_LT_EOF 24672 ;; 24673 esac 24674 24675 24676ltmain=$ac_aux_dir/ltmain.sh 24677 24678 24679 # We use sed instead of cat because bash on DJGPP gets confused if 24680 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24681 # text mode, it properly converts lines to CR/LF. This bash problem 24682 # is reportedly fixed, but why not run on old versions too? 24683 sed '$q' "$ltmain" >> "$cfgfile" \ 24684 || (rm -f "$cfgfile"; exit 1) 24685 24686 mv -f "$cfgfile" "$ofile" || 24687 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24688 chmod +x "$ofile" 24689 24690 24691 cat <<_LT_EOF >> "$ofile" 24692 24693# ### BEGIN LIBTOOL TAG CONFIG: F77 24694 24695# The linker used to build libraries. 24696LD=$lt_LD_F77 24697 24698# How to create reloadable object files. 24699reload_flag=$lt_reload_flag_F77 24700reload_cmds=$lt_reload_cmds_F77 24701 24702# Commands used to build an old-style archive. 24703old_archive_cmds=$lt_old_archive_cmds_F77 24704 24705# A language specific compiler. 24706CC=$lt_compiler_F77 24707 24708# Is the compiler the GNU compiler? 24709with_gcc=$GCC_F77 24710 24711# Compiler flag to turn off builtin functions. 24712no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 24713 24714# Additional compiler flags for building library objects. 24715pic_flag=$lt_lt_prog_compiler_pic_F77 24716 24717# How to pass a linker flag through the compiler. 24718wl=$lt_lt_prog_compiler_wl_F77 24719 24720# Compiler flag to prevent dynamic linking. 24721link_static_flag=$lt_lt_prog_compiler_static_F77 24722 24723# Does compiler simultaneously support -c and -o options? 24724compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 24725 24726# Whether or not to add -lc for building shared libraries. 24727build_libtool_need_lc=$archive_cmds_need_lc_F77 24728 24729# Whether or not to disallow shared libs when runtime libs are static. 24730allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 24731 24732# Compiler flag to allow reflexive dlopens. 24733export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 24734 24735# Compiler flag to generate shared objects directly from archives. 24736whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 24737 24738# Whether the compiler copes with passing no objects directly. 24739compiler_needs_object=$lt_compiler_needs_object_F77 24740 24741# Create an old-style archive from a shared archive. 24742old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 24743 24744# Create a temporary old-style archive to link instead of a shared archive. 24745old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 24746 24747# Commands used to build a shared archive. 24748archive_cmds=$lt_archive_cmds_F77 24749archive_expsym_cmds=$lt_archive_expsym_cmds_F77 24750 24751# Commands used to build a loadable module if different from building 24752# a shared archive. 24753module_cmds=$lt_module_cmds_F77 24754module_expsym_cmds=$lt_module_expsym_cmds_F77 24755 24756# Whether we are building with GNU ld or not. 24757with_gnu_ld=$lt_with_gnu_ld_F77 24758 24759# Flag that allows shared libraries with undefined symbols to be built. 24760allow_undefined_flag=$lt_allow_undefined_flag_F77 24761 24762# Flag that enforces no undefined symbols. 24763no_undefined_flag=$lt_no_undefined_flag_F77 24764 24765# Flag to hardcode \$libdir into a binary during linking. 24766# This must work even if \$libdir does not exist 24767hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 24768 24769# Whether we need a single "-rpath" flag with a separated argument. 24770hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 24771 24772# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24773# DIR into the resulting binary. 24774hardcode_direct=$hardcode_direct_F77 24775 24776# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24777# DIR into the resulting binary and the resulting library dependency is 24778# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24779# library is relocated. 24780hardcode_direct_absolute=$hardcode_direct_absolute_F77 24781 24782# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24783# into the resulting binary. 24784hardcode_minus_L=$hardcode_minus_L_F77 24785 24786# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24787# into the resulting binary. 24788hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 24789 24790# Set to "yes" if building a shared library automatically hardcodes DIR 24791# into the library and all subsequent libraries and executables linked 24792# against it. 24793hardcode_automatic=$hardcode_automatic_F77 24794 24795# Set to yes if linker adds runtime paths of dependent libraries 24796# to runtime path list. 24797inherit_rpath=$inherit_rpath_F77 24798 24799# Whether libtool must link a program against all its dependency libraries. 24800link_all_deplibs=$link_all_deplibs_F77 24801 24802# Set to "yes" if exported symbols are required. 24803always_export_symbols=$always_export_symbols_F77 24804 24805# The commands to list exported symbols. 24806export_symbols_cmds=$lt_export_symbols_cmds_F77 24807 24808# Symbols that should not be listed in the preloaded symbols. 24809exclude_expsyms=$lt_exclude_expsyms_F77 24810 24811# Symbols that must always be exported. 24812include_expsyms=$lt_include_expsyms_F77 24813 24814# Commands necessary for linking programs (against libraries) with templates. 24815prelink_cmds=$lt_prelink_cmds_F77 24816 24817# Commands necessary for finishing linking programs. 24818postlink_cmds=$lt_postlink_cmds_F77 24819 24820# Specify filename containing input files. 24821file_list_spec=$lt_file_list_spec_F77 24822 24823# How to hardcode a shared library path into an executable. 24824hardcode_action=$hardcode_action_F77 24825 24826# The directories searched by this compiler when creating a shared library. 24827compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 24828 24829# Dependencies to place before and after the objects being linked to 24830# create a shared library. 24831predep_objects=$lt_predep_objects_F77 24832postdep_objects=$lt_postdep_objects_F77 24833predeps=$lt_predeps_F77 24834postdeps=$lt_postdeps_F77 24835 24836# The library search path used internally by the compiler when linking 24837# a shared library. 24838compiler_lib_search_path=$lt_compiler_lib_search_path_F77 24839 24840# ### END LIBTOOL TAG CONFIG: F77 24841_LT_EOF 24842 24843 24844 cat <<_LT_EOF >> "$ofile" 24845 24846# ### BEGIN LIBTOOL TAG CONFIG: FC 24847 24848# The linker used to build libraries. 24849LD=$lt_LD_FC 24850 24851# How to create reloadable object files. 24852reload_flag=$lt_reload_flag_FC 24853reload_cmds=$lt_reload_cmds_FC 24854 24855# Commands used to build an old-style archive. 24856old_archive_cmds=$lt_old_archive_cmds_FC 24857 24858# A language specific compiler. 24859CC=$lt_compiler_FC 24860 24861# Is the compiler the GNU compiler? 24862with_gcc=$GCC_FC 24863 24864# Compiler flag to turn off builtin functions. 24865no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 24866 24867# Additional compiler flags for building library objects. 24868pic_flag=$lt_lt_prog_compiler_pic_FC 24869 24870# How to pass a linker flag through the compiler. 24871wl=$lt_lt_prog_compiler_wl_FC 24872 24873# Compiler flag to prevent dynamic linking. 24874link_static_flag=$lt_lt_prog_compiler_static_FC 24875 24876# Does compiler simultaneously support -c and -o options? 24877compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 24878 24879# Whether or not to add -lc for building shared libraries. 24880build_libtool_need_lc=$archive_cmds_need_lc_FC 24881 24882# Whether or not to disallow shared libs when runtime libs are static. 24883allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 24884 24885# Compiler flag to allow reflexive dlopens. 24886export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 24887 24888# Compiler flag to generate shared objects directly from archives. 24889whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 24890 24891# Whether the compiler copes with passing no objects directly. 24892compiler_needs_object=$lt_compiler_needs_object_FC 24893 24894# Create an old-style archive from a shared archive. 24895old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 24896 24897# Create a temporary old-style archive to link instead of a shared archive. 24898old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 24899 24900# Commands used to build a shared archive. 24901archive_cmds=$lt_archive_cmds_FC 24902archive_expsym_cmds=$lt_archive_expsym_cmds_FC 24903 24904# Commands used to build a loadable module if different from building 24905# a shared archive. 24906module_cmds=$lt_module_cmds_FC 24907module_expsym_cmds=$lt_module_expsym_cmds_FC 24908 24909# Whether we are building with GNU ld or not. 24910with_gnu_ld=$lt_with_gnu_ld_FC 24911 24912# Flag that allows shared libraries with undefined symbols to be built. 24913allow_undefined_flag=$lt_allow_undefined_flag_FC 24914 24915# Flag that enforces no undefined symbols. 24916no_undefined_flag=$lt_no_undefined_flag_FC 24917 24918# Flag to hardcode \$libdir into a binary during linking. 24919# This must work even if \$libdir does not exist 24920hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 24921 24922# Whether we need a single "-rpath" flag with a separated argument. 24923hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 24924 24925# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24926# DIR into the resulting binary. 24927hardcode_direct=$hardcode_direct_FC 24928 24929# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24930# DIR into the resulting binary and the resulting library dependency is 24931# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24932# library is relocated. 24933hardcode_direct_absolute=$hardcode_direct_absolute_FC 24934 24935# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24936# into the resulting binary. 24937hardcode_minus_L=$hardcode_minus_L_FC 24938 24939# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24940# into the resulting binary. 24941hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 24942 24943# Set to "yes" if building a shared library automatically hardcodes DIR 24944# into the library and all subsequent libraries and executables linked 24945# against it. 24946hardcode_automatic=$hardcode_automatic_FC 24947 24948# Set to yes if linker adds runtime paths of dependent libraries 24949# to runtime path list. 24950inherit_rpath=$inherit_rpath_FC 24951 24952# Whether libtool must link a program against all its dependency libraries. 24953link_all_deplibs=$link_all_deplibs_FC 24954 24955# Set to "yes" if exported symbols are required. 24956always_export_symbols=$always_export_symbols_FC 24957 24958# The commands to list exported symbols. 24959export_symbols_cmds=$lt_export_symbols_cmds_FC 24960 24961# Symbols that should not be listed in the preloaded symbols. 24962exclude_expsyms=$lt_exclude_expsyms_FC 24963 24964# Symbols that must always be exported. 24965include_expsyms=$lt_include_expsyms_FC 24966 24967# Commands necessary for linking programs (against libraries) with templates. 24968prelink_cmds=$lt_prelink_cmds_FC 24969 24970# Commands necessary for finishing linking programs. 24971postlink_cmds=$lt_postlink_cmds_FC 24972 24973# Specify filename containing input files. 24974file_list_spec=$lt_file_list_spec_FC 24975 24976# How to hardcode a shared library path into an executable. 24977hardcode_action=$hardcode_action_FC 24978 24979# The directories searched by this compiler when creating a shared library. 24980compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC 24981 24982# Dependencies to place before and after the objects being linked to 24983# create a shared library. 24984predep_objects=$lt_predep_objects_FC 24985postdep_objects=$lt_postdep_objects_FC 24986predeps=$lt_predeps_FC 24987postdeps=$lt_postdeps_FC 24988 24989# The library search path used internally by the compiler when linking 24990# a shared library. 24991compiler_lib_search_path=$lt_compiler_lib_search_path_FC 24992 24993# ### END LIBTOOL TAG CONFIG: FC 24994_LT_EOF 24995 24996 ;; 24997 24998 esac 24999done # for ac_tag 25000 25001 25002as_fn_exit 0 25003_ACEOF 25004ac_clean_files=$ac_clean_files_save 25005 25006test $ac_write_fail = 0 || 25007 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25008 25009 25010# configure is writing to config.log, and then calls config.status. 25011# config.status does its own redirection, appending to config.log. 25012# Unfortunately, on DOS this fails, as config.log is still kept open 25013# by configure, so config.status won't be able to write to it; its 25014# output is simply discarded. So we exec the FD to /dev/null, 25015# effectively closing config.log, so it can be properly (re)opened and 25016# appended to by config.status. When coming back to configure, we 25017# need to make the FD available again. 25018if test "$no_create" != yes; then 25019 ac_cs_success=: 25020 ac_config_status_args= 25021 test "$silent" = yes && 25022 ac_config_status_args="$ac_config_status_args --quiet" 25023 exec 5>/dev/null 25024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25025 exec 5>>config.log 25026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25027 # would make configure fail if this is the last instruction. 25028 $ac_cs_success || as_fn_exit 1 25029fi 25030if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25032$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25033fi 25034 25035 25036echo 25037echo " Build with OpenMP library = $enable_omp" 25038echo " Build with MPI library = $enable_mpi" 25039echo " Enable FORTRAN 77 compatible interface = $enable_fortran" 25040echo " Enable Fortran 90 compatible interface = $enable_f90" 25041echo " Enable SA-AMG preconditioner = $enable_saamg" 25042echo " Enable double-double precision support = $enable_quad" 25043if test "$enable_quad" = "yes"; then 25044echo " Enable SSE2 = $enable_sse2" 25045echo " Enable FMA = $enable_fma" 25046fi 25047echo " Enable long double precision support = $enable_longdouble" 25048echo " Enable 64bit integer support = $enable_longlong" 25049echo " Enable complex scalar support = $enable_complex" 25050if test "$enable_debug" = "yes"; then 25051echo " Enable debugging = $enable_debug" 25052fi 25053echo " Enable dynamic linking = $enable_shared" 25054echo " Enable profiling = $enable_gprof" 25055echo 25056echo " C compiler = $CC" 25057echo " C flags = $CFLAGS $DEFS $MPFLAG $AMDEFS" 25058echo " C libraries = $LIBS $CLIBS" 25059 25060if test "$enable_fortran" = "yes"; then 25061 echo " F77 compiler = $F77" 25062 echo " F77 flags = $FFLAGS" 25063 echo " F77 libraries = $FLIBS" 25064fi 25065if test "$enable_f90" = "yes" || test "$enable_saamg" = "yes"; then 25066 echo " F90 compiler = $FC" 25067 echo " F90 flags = $FCFLAGS" 25068 echo " F90 libraries = $FCLIBS" 25069fi 25070if test "$enable_mpi" = "yes"; then 25071 echo " MPI libraries = $MPILIBS" 25072 echo " MPIRUN script = $MPIRUN" 25073fi 25074echo 25075