1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for mpb 1.11.1. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='mpb' 589PACKAGE_TARNAME='mpb' 590PACKAGE_VERSION='1.11.1' 591PACKAGE_STRING='mpb 1.11.1' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/matrices/matrices.c" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636MPB_SUFFIX 637SH_JOB 638EIGS_FLAGS_SCM 639NLOPT_LIB 640WITH_LIBCTLGEOM_FALSE 641WITH_LIBCTLGEOM_TRUE 642CTLGEOM_H_CPPFLAG 643CTL_H_CPPFLAG 644GEN_CTL_IO 645LIBCTL_DIR 646GUILE_CPPFLAGS 647GUILE_LIBS 648ACTIVATE_READLINE 649GUILE_CONFIG 650guile_ok 651WITH_LIBCTL_FALSE 652WITH_LIBCTL_TRUE 653RUNCODE 654MPIRUN 655MPI_FALSE 656MPI_TRUE 657MPILIBS 658MPICC 659LAPACK_LIBS 660BLAS_LIBS 661FLIBS 662SCALAR_TYPE 663PERL 664ac_ct_F77 665FFLAGS 666F77 667MPB_VERSION 668CPP 669LT_SYS_LIBRARY_PATH 670OTOOL64 671OTOOL 672LIPO 673NMEDIT 674DSYMUTIL 675MANIFEST_TOOL 676RANLIB 677ac_ct_AR 678AR 679DLLTOOL 680OBJDUMP 681LN_S 682NM 683ac_ct_DUMPBIN 684DUMPBIN 685LD 686FGREP 687EGREP 688GREP 689SED 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693am__nodep 694AMDEPBACKSLASH 695AMDEP_FALSE 696AMDEP_TRUE 697am__include 698DEPDIR 699OBJEXT 700EXEEXT 701ac_ct_CC 702CPPFLAGS 703LDFLAGS 704CFLAGS 705CC 706host_os 707host_vendor 708host_cpu 709host 710build_os 711build_vendor 712build_cpu 713build 714LIBTOOL 715SHARED_VERSION_INFO 716AM_BACKSLASH 717AM_DEFAULT_VERBOSITY 718AM_DEFAULT_V 719AM_V 720am__untar 721am__tar 722AMTAR 723am__leading_dot 724SET_MAKE 725AWK 726mkdir_p 727MKDIR_P 728INSTALL_STRIP_PROGRAM 729STRIP 730install_sh 731MAKEINFO 732AUTOHEADER 733AUTOMAKE 734AUTOCONF 735ACLOCAL 736VERSION 737PACKAGE 738CYGPATH_W 739am__isrc 740INSTALL_DATA 741INSTALL_SCRIPT 742INSTALL_PROGRAM 743MAINT 744MAINTAINER_MODE_FALSE 745MAINTAINER_MODE_TRUE 746target_alias 747host_alias 748build_alias 749LIBS 750ECHO_T 751ECHO_N 752ECHO_C 753DEFS 754mandir 755localedir 756libdir 757psdir 758pdfdir 759dvidir 760htmldir 761infodir 762docdir 763oldincludedir 764includedir 765localstatedir 766sharedstatedir 767sysconfdir 768datadir 769datarootdir 770libexecdir 771sbindir 772bindir 773program_transform_name 774prefix 775exec_prefix 776PACKAGE_URL 777PACKAGE_BUGREPORT 778PACKAGE_STRING 779PACKAGE_VERSION 780PACKAGE_TARNAME 781PACKAGE_NAME 782PATH_SEPARATOR 783SHELL 784am__quote' 785ac_subst_files='' 786ac_user_opts=' 787enable_option_checking 788enable_maintainer_mode 789enable_silent_rules 790enable_shared 791enable_static 792with_pic 793enable_fast_install 794with_aix_soname 795enable_dependency_tracking 796with_gnu_ld 797with_sysroot 798enable_libtool_lock 799enable_single 800enable_long_double 801enable_debug 802enable_debug_malloc 803enable_prof 804enable_checks 805with_inv_symmetry 806with_hermitian_eps 807with_efence 808with_mpi 809with_fftw2 810with_openmp 811with_blas 812with_lapack 813with_hdf5 814with_libctl 815' 816 ac_precious_vars='build_alias 817host_alias 818target_alias 819CC 820CFLAGS 821LDFLAGS 822LIBS 823CPPFLAGS 824LT_SYS_LIBRARY_PATH 825CPP 826F77 827FFLAGS 828MPICC' 829 830 831# Initialize some variables set by options. 832ac_init_help= 833ac_init_version=false 834ac_unrecognized_opts= 835ac_unrecognized_sep= 836# The variables have the same names as the options, with 837# dashes changed to underlines. 838cache_file=/dev/null 839exec_prefix=NONE 840no_create= 841no_recursion= 842prefix=NONE 843program_prefix=NONE 844program_suffix=NONE 845program_transform_name=s,x,x, 846silent= 847site= 848srcdir= 849verbose= 850x_includes=NONE 851x_libraries=NONE 852 853# Installation directory options. 854# These are left unexpanded so users can "make install exec_prefix=/foo" 855# and all the variables that are supposed to be based on exec_prefix 856# by default will actually change. 857# Use braces instead of parens because sh, perl, etc. also accept them. 858# (The list follows the same order as the GNU Coding Standards.) 859bindir='${exec_prefix}/bin' 860sbindir='${exec_prefix}/sbin' 861libexecdir='${exec_prefix}/libexec' 862datarootdir='${prefix}/share' 863datadir='${datarootdir}' 864sysconfdir='${prefix}/etc' 865sharedstatedir='${prefix}/com' 866localstatedir='${prefix}/var' 867includedir='${prefix}/include' 868oldincludedir='/usr/include' 869docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 870infodir='${datarootdir}/info' 871htmldir='${docdir}' 872dvidir='${docdir}' 873pdfdir='${docdir}' 874psdir='${docdir}' 875libdir='${exec_prefix}/lib' 876localedir='${datarootdir}/locale' 877mandir='${datarootdir}/man' 878 879ac_prev= 880ac_dashdash= 881for ac_option 882do 883 # If the previous option needs an argument, assign it. 884 if test -n "$ac_prev"; then 885 eval $ac_prev=\$ac_option 886 ac_prev= 887 continue 888 fi 889 890 case $ac_option in 891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 892 *=) ac_optarg= ;; 893 *) ac_optarg=yes ;; 894 esac 895 896 # Accept the important Cygnus configure options, so we can diagnose typos. 897 898 case $ac_dashdash$ac_option in 899 --) 900 ac_dashdash=yes ;; 901 902 -bindir | --bindir | --bindi | --bind | --bin | --bi) 903 ac_prev=bindir ;; 904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 905 bindir=$ac_optarg ;; 906 907 -build | --build | --buil | --bui | --bu) 908 ac_prev=build_alias ;; 909 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 910 build_alias=$ac_optarg ;; 911 912 -cache-file | --cache-file | --cache-fil | --cache-fi \ 913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 914 ac_prev=cache_file ;; 915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 917 cache_file=$ac_optarg ;; 918 919 --config-cache | -C) 920 cache_file=config.cache ;; 921 922 -datadir | --datadir | --datadi | --datad) 923 ac_prev=datadir ;; 924 -datadir=* | --datadir=* | --datadi=* | --datad=*) 925 datadir=$ac_optarg ;; 926 927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 928 | --dataroo | --dataro | --datar) 929 ac_prev=datarootdir ;; 930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 932 datarootdir=$ac_optarg ;; 933 934 -disable-* | --disable-*) 935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 938 as_fn_error $? "invalid feature name: $ac_useropt" 939 ac_useropt_orig=$ac_useropt 940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 941 case $ac_user_opts in 942 *" 943"enable_$ac_useropt" 944"*) ;; 945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 946 ac_unrecognized_sep=', ';; 947 esac 948 eval enable_$ac_useropt=no ;; 949 950 -docdir | --docdir | --docdi | --doc | --do) 951 ac_prev=docdir ;; 952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 953 docdir=$ac_optarg ;; 954 955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 956 ac_prev=dvidir ;; 957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 958 dvidir=$ac_optarg ;; 959 960 -enable-* | --enable-*) 961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 962 # Reject names that are not valid shell variable names. 963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 964 as_fn_error $? "invalid feature name: $ac_useropt" 965 ac_useropt_orig=$ac_useropt 966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 967 case $ac_user_opts in 968 *" 969"enable_$ac_useropt" 970"*) ;; 971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 972 ac_unrecognized_sep=', ';; 973 esac 974 eval enable_$ac_useropt=\$ac_optarg ;; 975 976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 978 | --exec | --exe | --ex) 979 ac_prev=exec_prefix ;; 980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 982 | --exec=* | --exe=* | --ex=*) 983 exec_prefix=$ac_optarg ;; 984 985 -gas | --gas | --ga | --g) 986 # Obsolete; use --with-gas. 987 with_gas=yes ;; 988 989 -help | --help | --hel | --he | -h) 990 ac_init_help=long ;; 991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 992 ac_init_help=recursive ;; 993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 994 ac_init_help=short ;; 995 996 -host | --host | --hos | --ho) 997 ac_prev=host_alias ;; 998 -host=* | --host=* | --hos=* | --ho=*) 999 host_alias=$ac_optarg ;; 1000 1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1002 ac_prev=htmldir ;; 1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1004 | --ht=*) 1005 htmldir=$ac_optarg ;; 1006 1007 -includedir | --includedir | --includedi | --included | --include \ 1008 | --includ | --inclu | --incl | --inc) 1009 ac_prev=includedir ;; 1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1011 | --includ=* | --inclu=* | --incl=* | --inc=*) 1012 includedir=$ac_optarg ;; 1013 1014 -infodir | --infodir | --infodi | --infod | --info | --inf) 1015 ac_prev=infodir ;; 1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1017 infodir=$ac_optarg ;; 1018 1019 -libdir | --libdir | --libdi | --libd) 1020 ac_prev=libdir ;; 1021 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1022 libdir=$ac_optarg ;; 1023 1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1025 | --libexe | --libex | --libe) 1026 ac_prev=libexecdir ;; 1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1028 | --libexe=* | --libex=* | --libe=*) 1029 libexecdir=$ac_optarg ;; 1030 1031 -localedir | --localedir | --localedi | --localed | --locale) 1032 ac_prev=localedir ;; 1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1034 localedir=$ac_optarg ;; 1035 1036 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1037 | --localstate | --localstat | --localsta | --localst | --locals) 1038 ac_prev=localstatedir ;; 1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1041 localstatedir=$ac_optarg ;; 1042 1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1044 ac_prev=mandir ;; 1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1046 mandir=$ac_optarg ;; 1047 1048 -nfp | --nfp | --nf) 1049 # Obsolete; use --without-fp. 1050 with_fp=no ;; 1051 1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1053 | --no-cr | --no-c | -n) 1054 no_create=yes ;; 1055 1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1058 no_recursion=yes ;; 1059 1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1062 | --oldin | --oldi | --old | --ol | --o) 1063 ac_prev=oldincludedir ;; 1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1067 oldincludedir=$ac_optarg ;; 1068 1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1070 ac_prev=prefix ;; 1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1072 prefix=$ac_optarg ;; 1073 1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1075 | --program-pre | --program-pr | --program-p) 1076 ac_prev=program_prefix ;; 1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1079 program_prefix=$ac_optarg ;; 1080 1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1082 | --program-suf | --program-su | --program-s) 1083 ac_prev=program_suffix ;; 1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1086 program_suffix=$ac_optarg ;; 1087 1088 -program-transform-name | --program-transform-name \ 1089 | --program-transform-nam | --program-transform-na \ 1090 | --program-transform-n | --program-transform- \ 1091 | --program-transform | --program-transfor \ 1092 | --program-transfo | --program-transf \ 1093 | --program-trans | --program-tran \ 1094 | --progr-tra | --program-tr | --program-t) 1095 ac_prev=program_transform_name ;; 1096 -program-transform-name=* | --program-transform-name=* \ 1097 | --program-transform-nam=* | --program-transform-na=* \ 1098 | --program-transform-n=* | --program-transform-=* \ 1099 | --program-transform=* | --program-transfor=* \ 1100 | --program-transfo=* | --program-transf=* \ 1101 | --program-trans=* | --program-tran=* \ 1102 | --progr-tra=* | --program-tr=* | --program-t=*) 1103 program_transform_name=$ac_optarg ;; 1104 1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1106 ac_prev=pdfdir ;; 1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1108 pdfdir=$ac_optarg ;; 1109 1110 -psdir | --psdir | --psdi | --psd | --ps) 1111 ac_prev=psdir ;; 1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1113 psdir=$ac_optarg ;; 1114 1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1116 | -silent | --silent | --silen | --sile | --sil) 1117 silent=yes ;; 1118 1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1120 ac_prev=sbindir ;; 1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1122 | --sbi=* | --sb=*) 1123 sbindir=$ac_optarg ;; 1124 1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1127 | --sharedst | --shareds | --shared | --share | --shar \ 1128 | --sha | --sh) 1129 ac_prev=sharedstatedir ;; 1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1133 | --sha=* | --sh=*) 1134 sharedstatedir=$ac_optarg ;; 1135 1136 -site | --site | --sit) 1137 ac_prev=site ;; 1138 -site=* | --site=* | --sit=*) 1139 site=$ac_optarg ;; 1140 1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1142 ac_prev=srcdir ;; 1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1144 srcdir=$ac_optarg ;; 1145 1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1147 | --syscon | --sysco | --sysc | --sys | --sy) 1148 ac_prev=sysconfdir ;; 1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1151 sysconfdir=$ac_optarg ;; 1152 1153 -target | --target | --targe | --targ | --tar | --ta | --t) 1154 ac_prev=target_alias ;; 1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1156 target_alias=$ac_optarg ;; 1157 1158 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1159 verbose=yes ;; 1160 1161 -version | --version | --versio | --versi | --vers | -V) 1162 ac_init_version=: ;; 1163 1164 -with-* | --with-*) 1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1166 # Reject names that are not valid shell variable names. 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1168 as_fn_error $? "invalid package name: $ac_useropt" 1169 ac_useropt_orig=$ac_useropt 1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1171 case $ac_user_opts in 1172 *" 1173"with_$ac_useropt" 1174"*) ;; 1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1176 ac_unrecognized_sep=', ';; 1177 esac 1178 eval with_$ac_useropt=\$ac_optarg ;; 1179 1180 -without-* | --without-*) 1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1182 # Reject names that are not valid shell variable names. 1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1184 as_fn_error $? "invalid package name: $ac_useropt" 1185 ac_useropt_orig=$ac_useropt 1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1187 case $ac_user_opts in 1188 *" 1189"with_$ac_useropt" 1190"*) ;; 1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1192 ac_unrecognized_sep=', ';; 1193 esac 1194 eval with_$ac_useropt=no ;; 1195 1196 --x) 1197 # Obsolete; use --with-x. 1198 with_x=yes ;; 1199 1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1201 | --x-incl | --x-inc | --x-in | --x-i) 1202 ac_prev=x_includes ;; 1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1205 x_includes=$ac_optarg ;; 1206 1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1209 ac_prev=x_libraries ;; 1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1212 x_libraries=$ac_optarg ;; 1213 1214 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1215Try \`$0 --help' for more information" 1216 ;; 1217 1218 *=*) 1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1220 # Reject names that are not valid shell variable names. 1221 case $ac_envvar in #( 1222 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1223 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1224 esac 1225 eval $ac_envvar=\$ac_optarg 1226 export $ac_envvar ;; 1227 1228 *) 1229 # FIXME: should be removed in autoconf 3.0. 1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1233 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1234 ;; 1235 1236 esac 1237done 1238 1239if test -n "$ac_prev"; then 1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1241 as_fn_error $? "missing argument to $ac_option" 1242fi 1243 1244if test -n "$ac_unrecognized_opts"; then 1245 case $enable_option_checking in 1246 no) ;; 1247 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1249 esac 1250fi 1251 1252# Check all directory arguments for consistency. 1253for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1254 datadir sysconfdir sharedstatedir localstatedir includedir \ 1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1256 libdir localedir mandir 1257do 1258 eval ac_val=\$$ac_var 1259 # Remove trailing slashes. 1260 case $ac_val in 1261 */ ) 1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1263 eval $ac_var=\$ac_val;; 1264 esac 1265 # Be sure to have absolute directory names. 1266 case $ac_val in 1267 [\\/$]* | ?:[\\/]* ) continue;; 1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1269 esac 1270 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1271done 1272 1273# There might be people who depend on the old broken behavior: `$host' 1274# used to hold the argument of --host etc. 1275# FIXME: To remove some day. 1276build=$build_alias 1277host=$host_alias 1278target=$target_alias 1279 1280# FIXME: To remove some day. 1281if test "x$host_alias" != x; then 1282 if test "x$build_alias" = x; then 1283 cross_compiling=maybe 1284 elif test "x$build_alias" != "x$host_alias"; then 1285 cross_compiling=yes 1286 fi 1287fi 1288 1289ac_tool_prefix= 1290test -n "$host_alias" && ac_tool_prefix=$host_alias- 1291 1292test "$silent" = yes && exec 6>/dev/null 1293 1294 1295ac_pwd=`pwd` && test -n "$ac_pwd" && 1296ac_ls_di=`ls -di .` && 1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1298 as_fn_error $? "working directory cannot be determined" 1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1300 as_fn_error $? "pwd does not report name of working directory" 1301 1302 1303# Find the source files, if location was not specified. 1304if test -z "$srcdir"; then 1305 ac_srcdir_defaulted=yes 1306 # Try the directory containing this script, then the parent directory. 1307 ac_confdir=`$as_dirname -- "$as_myself" || 1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1309 X"$as_myself" : 'X\(//\)[^/]' \| \ 1310 X"$as_myself" : 'X\(//\)$' \| \ 1311 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1312$as_echo X"$as_myself" | 1313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\/\)[^/].*/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\/\)$/{ 1322 s//\1/ 1323 q 1324 } 1325 /^X\(\/\).*/{ 1326 s//\1/ 1327 q 1328 } 1329 s/.*/./; q'` 1330 srcdir=$ac_confdir 1331 if test ! -r "$srcdir/$ac_unique_file"; then 1332 srcdir=.. 1333 fi 1334else 1335 ac_srcdir_defaulted=no 1336fi 1337if test ! -r "$srcdir/$ac_unique_file"; then 1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1339 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1340fi 1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1342ac_abs_confdir=`( 1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1344 pwd)` 1345# When building in place, set srcdir=. 1346if test "$ac_abs_confdir" = "$ac_pwd"; then 1347 srcdir=. 1348fi 1349# Remove unnecessary trailing slashes from srcdir. 1350# Double slashes in file names in object file debugging info 1351# mess up M-x gdb in Emacs. 1352case $srcdir in 1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1354esac 1355for ac_var in $ac_precious_vars; do 1356 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1357 eval ac_env_${ac_var}_value=\$${ac_var} 1358 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1359 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1360done 1361 1362# 1363# Report the --help message. 1364# 1365if test "$ac_init_help" = "long"; then 1366 # Omit some internal or obsolete options to make the list less imposing. 1367 # This message is too long to be a string in the A/UX 3.1 sh. 1368 cat <<_ACEOF 1369\`configure' configures mpb 1.11.1 to adapt to many kinds of systems. 1370 1371Usage: $0 [OPTION]... [VAR=VALUE]... 1372 1373To assign environment variables (e.g., CC, CFLAGS...), specify them as 1374VAR=VALUE. See below for descriptions of some of the useful variables. 1375 1376Defaults for the options are specified in brackets. 1377 1378Configuration: 1379 -h, --help display this help and exit 1380 --help=short display options specific to this package 1381 --help=recursive display the short help of all the included packages 1382 -V, --version display version information and exit 1383 -q, --quiet, --silent do not print \`checking ...' messages 1384 --cache-file=FILE cache test results in FILE [disabled] 1385 -C, --config-cache alias for \`--cache-file=config.cache' 1386 -n, --no-create do not create output files 1387 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1388 1389Installation directories: 1390 --prefix=PREFIX install architecture-independent files in PREFIX 1391 [$ac_default_prefix] 1392 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1393 [PREFIX] 1394 1395By default, \`make install' will install all the files in 1396\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1397an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1398for instance \`--prefix=\$HOME'. 1399 1400For better control, use the options below. 1401 1402Fine tuning of the installation directories: 1403 --bindir=DIR user executables [EPREFIX/bin] 1404 --sbindir=DIR system admin executables [EPREFIX/sbin] 1405 --libexecdir=DIR program executables [EPREFIX/libexec] 1406 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1407 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1408 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1409 --libdir=DIR object code libraries [EPREFIX/lib] 1410 --includedir=DIR C header files [PREFIX/include] 1411 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1412 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1413 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1414 --infodir=DIR info documentation [DATAROOTDIR/info] 1415 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1416 --mandir=DIR man documentation [DATAROOTDIR/man] 1417 --docdir=DIR documentation root [DATAROOTDIR/doc/mpb] 1418 --htmldir=DIR html documentation [DOCDIR] 1419 --dvidir=DIR dvi documentation [DOCDIR] 1420 --pdfdir=DIR pdf documentation [DOCDIR] 1421 --psdir=DIR ps documentation [DOCDIR] 1422_ACEOF 1423 1424 cat <<\_ACEOF 1425 1426Program names: 1427 --program-prefix=PREFIX prepend PREFIX to installed program names 1428 --program-suffix=SUFFIX append SUFFIX to installed program names 1429 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1430 1431System types: 1432 --build=BUILD configure for building on BUILD [guessed] 1433 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1434_ACEOF 1435fi 1436 1437if test -n "$ac_init_help"; then 1438 case $ac_init_help in 1439 short | recursive ) echo "Configuration of mpb 1.11.1:";; 1440 esac 1441 cat <<\_ACEOF 1442 1443Optional Features: 1444 --disable-option-checking ignore unrecognized --enable/--with options 1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1447 --enable-maintainer-mode 1448 enable make rules and dependencies not useful (and 1449 sometimes confusing) to the casual installer 1450 --enable-silent-rules less verbose build output (undo: "make V=1") 1451 --disable-silent-rules verbose build output (undo: "make V=0") 1452 --enable-shared[=PKGS] build shared libraries [default=no] 1453 --enable-static[=PKGS] build static libraries [default=yes] 1454 --enable-fast-install[=PKGS] 1455 optimize for fast installation [default=yes] 1456 --enable-dependency-tracking 1457 do not reject slow dependency extractors 1458 --disable-dependency-tracking 1459 speeds up one-time build 1460 --disable-libtool-lock avoid locking (might break parallel builds) 1461 --enable-single compile for single precision 1462 --enable-long-double compile for long-double precision 1463 --enable-debug compile for debugging 1464 --enable-debug-malloc use debug malloc/free 1465 --enable-prof compile for profiling 1466 --disable-checks disable runtime checks 1467 1468Optional Packages: 1469 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1470 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1471 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1472 both] 1473 --with-aix-soname=aix|svr4|both 1474 shared library versioning (aka "SONAME") variant to 1475 provide on AIX, [default=aix]. 1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1477 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1478 compiler's sysroot if not specified). 1479 --with-inv-symmetry take advantage of (and require) inv. sym. 1480 --with-hermitian-eps allow complex-Hermitian dielectric tensors 1481 --with-efence use ElectricFence library 1482 --with-mpi enable MPI parallelization 1483 --with-fftw2 prefer FFTW2 to FFTW3 1484 --with-openmp enable OpenMP parallelization 1485 --with-blas=<lib> use BLAS library <lib> 1486 --with-lapack=<lib> use LAPACK library <lib> 1487 --without-hdf5 do not use HDF5 output 1488 --with-libctl=<dir> specify libctl directory 1489 1490Some influential environment variables: 1491 CC C compiler command 1492 CFLAGS C compiler flags 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1494 nonstandard directory <lib dir> 1495 LIBS libraries to pass to the linker, e.g. -l<library> 1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1497 you have headers in a nonstandard directory <include dir> 1498 LT_SYS_LIBRARY_PATH 1499 User-defined run-time library search path. 1500 CPP C preprocessor 1501 F77 Fortran 77 compiler command 1502 FFLAGS Fortran 77 compiler flags 1503 MPICC MPI C compiler command 1504 1505Use these variables to override the choices made by `configure' or to help 1506it to find libraries and programs with nonstandard names/locations. 1507 1508Report bugs to the package provider. 1509_ACEOF 1510ac_status=$? 1511fi 1512 1513if test "$ac_init_help" = "recursive"; then 1514 # If there are subdirs, report their specific --help. 1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1516 test -d "$ac_dir" || 1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1518 continue 1519 ac_builddir=. 1520 1521case "$ac_dir" in 1522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1523*) 1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1525 # A ".." for each directory in $ac_dir_suffix. 1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1527 case $ac_top_builddir_sub in 1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1530 esac ;; 1531esac 1532ac_abs_top_builddir=$ac_pwd 1533ac_abs_builddir=$ac_pwd$ac_dir_suffix 1534# for backward compatibility: 1535ac_top_builddir=$ac_top_build_prefix 1536 1537case $srcdir in 1538 .) # We are building in place. 1539 ac_srcdir=. 1540 ac_top_srcdir=$ac_top_builddir_sub 1541 ac_abs_top_srcdir=$ac_pwd ;; 1542 [\\/]* | ?:[\\/]* ) # Absolute name. 1543 ac_srcdir=$srcdir$ac_dir_suffix; 1544 ac_top_srcdir=$srcdir 1545 ac_abs_top_srcdir=$srcdir ;; 1546 *) # Relative name. 1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1548 ac_top_srcdir=$ac_top_build_prefix$srcdir 1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1550esac 1551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1552 1553 cd "$ac_dir" || { ac_status=$?; continue; } 1554 # Check for guested configure. 1555 if test -f "$ac_srcdir/configure.gnu"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1558 elif test -f "$ac_srcdir/configure"; then 1559 echo && 1560 $SHELL "$ac_srcdir/configure" --help=recursive 1561 else 1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1563 fi || ac_status=$? 1564 cd "$ac_pwd" || { ac_status=$?; break; } 1565 done 1566fi 1567 1568test -n "$ac_init_help" && exit $ac_status 1569if $ac_init_version; then 1570 cat <<\_ACEOF 1571mpb configure 1.11.1 1572generated by GNU Autoconf 2.69 1573 1574Copyright (C) 2012 Free Software Foundation, Inc. 1575This configure script is free software; the Free Software Foundation 1576gives unlimited permission to copy, distribute and modify it. 1577_ACEOF 1578 exit 1579fi 1580 1581## ------------------------ ## 1582## Autoconf initialization. ## 1583## ------------------------ ## 1584 1585# ac_fn_c_try_compile LINENO 1586# -------------------------- 1587# Try to compile conftest.$ac_ext, and return whether this succeeded. 1588ac_fn_c_try_compile () 1589{ 1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1591 rm -f conftest.$ac_objext 1592 if { { ac_try="$ac_compile" 1593case "(($ac_try" in 1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1595 *) ac_try_echo=$ac_try;; 1596esac 1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1598$as_echo "$ac_try_echo"; } >&5 1599 (eval "$ac_compile") 2>conftest.err 1600 ac_status=$? 1601 if test -s conftest.err; then 1602 grep -v '^ *+' conftest.err >conftest.er1 1603 cat conftest.er1 >&5 1604 mv -f conftest.er1 conftest.err 1605 fi 1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1607 test $ac_status = 0; } && { 1608 test -z "$ac_c_werror_flag" || 1609 test ! -s conftest.err 1610 } && test -s conftest.$ac_objext; then : 1611 ac_retval=0 1612else 1613 $as_echo "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617fi 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619 as_fn_set_status $ac_retval 1620 1621} # ac_fn_c_try_compile 1622 1623# ac_fn_c_try_link LINENO 1624# ----------------------- 1625# Try to link conftest.$ac_ext, and return whether this succeeded. 1626ac_fn_c_try_link () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 rm -f conftest.$ac_objext conftest$ac_exeext 1630 if { { ac_try="$ac_link" 1631case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634esac 1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636$as_echo "$ac_try_echo"; } >&5 1637 (eval "$ac_link") 2>conftest.err 1638 ac_status=$? 1639 if test -s conftest.err; then 1640 grep -v '^ *+' conftest.err >conftest.er1 1641 cat conftest.er1 >&5 1642 mv -f conftest.er1 conftest.err 1643 fi 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } && { 1646 test -z "$ac_c_werror_flag" || 1647 test ! -s conftest.err 1648 } && test -s conftest$ac_exeext && { 1649 test "$cross_compiling" = yes || 1650 test -x conftest$ac_exeext 1651 }; then : 1652 ac_retval=0 1653else 1654 $as_echo "$as_me: failed program was:" >&5 1655sed 's/^/| /' conftest.$ac_ext >&5 1656 1657 ac_retval=1 1658fi 1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1661 # interfere with the next link command; also delete a directory that is 1662 # left behind by Apple's compiler. We do this before executing the actions. 1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1665 as_fn_set_status $ac_retval 1666 1667} # ac_fn_c_try_link 1668 1669# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1670# ------------------------------------------------------- 1671# Tests whether HEADER exists and can be compiled using the include files in 1672# INCLUDES, setting the cache variable VAR accordingly. 1673ac_fn_c_check_header_compile () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1677$as_echo_n "checking for $2... " >&6; } 1678if eval \${$3+:} false; then : 1679 $as_echo_n "(cached) " >&6 1680else 1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1682/* end confdefs.h. */ 1683$4 1684#include <$2> 1685_ACEOF 1686if ac_fn_c_try_compile "$LINENO"; then : 1687 eval "$3=yes" 1688else 1689 eval "$3=no" 1690fi 1691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1692fi 1693eval ac_res=\$$3 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1695$as_echo "$ac_res" >&6; } 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 1698} # ac_fn_c_check_header_compile 1699 1700# ac_fn_c_try_cpp LINENO 1701# ---------------------- 1702# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1703ac_fn_c_try_cpp () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 if { { ac_try="$ac_cpp conftest.$ac_ext" 1707case "(($ac_try" in 1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1709 *) ac_try_echo=$ac_try;; 1710esac 1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1712$as_echo "$ac_try_echo"; } >&5 1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1714 ac_status=$? 1715 if test -s conftest.err; then 1716 grep -v '^ *+' conftest.err >conftest.er1 1717 cat conftest.er1 >&5 1718 mv -f conftest.er1 conftest.err 1719 fi 1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1721 test $ac_status = 0; } > conftest.i && { 1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1723 test ! -s conftest.err 1724 }; then : 1725 ac_retval=0 1726else 1727 $as_echo "$as_me: failed program was:" >&5 1728sed 's/^/| /' conftest.$ac_ext >&5 1729 1730 ac_retval=1 1731fi 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 as_fn_set_status $ac_retval 1734 1735} # ac_fn_c_try_cpp 1736 1737# ac_fn_c_try_run LINENO 1738# ---------------------- 1739# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1740# that executables *can* be run. 1741ac_fn_c_try_run () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 if { { ac_try="$ac_link" 1745case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748esac 1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750$as_echo "$ac_try_echo"; } >&5 1751 (eval "$ac_link") 2>&5 1752 ac_status=$? 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1755 { { case "(($ac_try" in 1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1757 *) ac_try_echo=$ac_try;; 1758esac 1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1760$as_echo "$ac_try_echo"; } >&5 1761 (eval "$ac_try") 2>&5 1762 ac_status=$? 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; }; }; then : 1765 ac_retval=0 1766else 1767 $as_echo "$as_me: program exited with status $ac_status" >&5 1768 $as_echo "$as_me: failed program was:" >&5 1769sed 's/^/| /' conftest.$ac_ext >&5 1770 1771 ac_retval=$ac_status 1772fi 1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 as_fn_set_status $ac_retval 1776 1777} # ac_fn_c_try_run 1778 1779# ac_fn_c_check_func LINENO FUNC VAR 1780# ---------------------------------- 1781# Tests whether FUNC exists, setting the cache variable VAR accordingly 1782ac_fn_c_check_func () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1786$as_echo_n "checking for $2... " >&6; } 1787if eval \${$3+:} false; then : 1788 $as_echo_n "(cached) " >&6 1789else 1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1791/* end confdefs.h. */ 1792/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1794#define $2 innocuous_$2 1795 1796/* System header to define __stub macros and hopefully few prototypes, 1797 which can conflict with char $2 (); below. 1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1799 <limits.h> exists even on freestanding compilers. */ 1800 1801#ifdef __STDC__ 1802# include <limits.h> 1803#else 1804# include <assert.h> 1805#endif 1806 1807#undef $2 1808 1809/* Override any GCC internal prototype to avoid an error. 1810 Use char because int might match the return type of a GCC 1811 builtin and then its argument prototype would still apply. */ 1812#ifdef __cplusplus 1813extern "C" 1814#endif 1815char $2 (); 1816/* The GNU C library defines this for functions which it implements 1817 to always fail with ENOSYS. Some functions are actually named 1818 something starting with __ and the normal name is an alias. */ 1819#if defined __stub_$2 || defined __stub___$2 1820choke me 1821#endif 1822 1823int 1824main () 1825{ 1826return $2 (); 1827 ; 1828 return 0; 1829} 1830_ACEOF 1831if ac_fn_c_try_link "$LINENO"; then : 1832 eval "$3=yes" 1833else 1834 eval "$3=no" 1835fi 1836rm -f core conftest.err conftest.$ac_objext \ 1837 conftest$ac_exeext conftest.$ac_ext 1838fi 1839eval ac_res=\$$3 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1841$as_echo "$ac_res" >&6; } 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 1844} # ac_fn_c_check_func 1845 1846# ac_fn_f77_try_compile LINENO 1847# ---------------------------- 1848# Try to compile conftest.$ac_ext, and return whether this succeeded. 1849ac_fn_f77_try_compile () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 rm -f conftest.$ac_objext 1853 if { { ac_try="$ac_compile" 1854case "(($ac_try" in 1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1856 *) ac_try_echo=$ac_try;; 1857esac 1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1859$as_echo "$ac_try_echo"; } >&5 1860 (eval "$ac_compile") 2>conftest.err 1861 ac_status=$? 1862 if test -s conftest.err; then 1863 grep -v '^ *+' conftest.err >conftest.er1 1864 cat conftest.er1 >&5 1865 mv -f conftest.er1 conftest.err 1866 fi 1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1868 test $ac_status = 0; } && { 1869 test -z "$ac_f77_werror_flag" || 1870 test ! -s conftest.err 1871 } && test -s conftest.$ac_objext; then : 1872 ac_retval=0 1873else 1874 $as_echo "$as_me: failed program was:" >&5 1875sed 's/^/| /' conftest.$ac_ext >&5 1876 1877 ac_retval=1 1878fi 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1880 as_fn_set_status $ac_retval 1881 1882} # ac_fn_f77_try_compile 1883 1884# ac_fn_f77_try_link LINENO 1885# ------------------------- 1886# Try to link conftest.$ac_ext, and return whether this succeeded. 1887ac_fn_f77_try_link () 1888{ 1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1890 rm -f conftest.$ac_objext conftest$ac_exeext 1891 if { { ac_try="$ac_link" 1892case "(($ac_try" in 1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1894 *) ac_try_echo=$ac_try;; 1895esac 1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1897$as_echo "$ac_try_echo"; } >&5 1898 (eval "$ac_link") 2>conftest.err 1899 ac_status=$? 1900 if test -s conftest.err; then 1901 grep -v '^ *+' conftest.err >conftest.er1 1902 cat conftest.er1 >&5 1903 mv -f conftest.er1 conftest.err 1904 fi 1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1906 test $ac_status = 0; } && { 1907 test -z "$ac_f77_werror_flag" || 1908 test ! -s conftest.err 1909 } && test -s conftest$ac_exeext && { 1910 test "$cross_compiling" = yes || 1911 test -x conftest$ac_exeext 1912 }; then : 1913 ac_retval=0 1914else 1915 $as_echo "$as_me: failed program was:" >&5 1916sed 's/^/| /' conftest.$ac_ext >&5 1917 1918 ac_retval=1 1919fi 1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1922 # interfere with the next link command; also delete a directory that is 1923 # left behind by Apple's compiler. We do this before executing the actions. 1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1926 as_fn_set_status $ac_retval 1927 1928} # ac_fn_f77_try_link 1929 1930# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1931# ------------------------------------------------------- 1932# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1933# the include files in INCLUDES and setting the cache variable VAR 1934# accordingly. 1935ac_fn_c_check_header_mongrel () 1936{ 1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1938 if eval \${$3+:} false; then : 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1940$as_echo_n "checking for $2... " >&6; } 1941if eval \${$3+:} false; then : 1942 $as_echo_n "(cached) " >&6 1943fi 1944eval ac_res=\$$3 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1946$as_echo "$ac_res" >&6; } 1947else 1948 # Is the header compilable? 1949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1950$as_echo_n "checking $2 usability... " >&6; } 1951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1952/* end confdefs.h. */ 1953$4 1954#include <$2> 1955_ACEOF 1956if ac_fn_c_try_compile "$LINENO"; then : 1957 ac_header_compiler=yes 1958else 1959 ac_header_compiler=no 1960fi 1961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1963$as_echo "$ac_header_compiler" >&6; } 1964 1965# Is the header present? 1966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1967$as_echo_n "checking $2 presence... " >&6; } 1968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1969/* end confdefs.h. */ 1970#include <$2> 1971_ACEOF 1972if ac_fn_c_try_cpp "$LINENO"; then : 1973 ac_header_preproc=yes 1974else 1975 ac_header_preproc=no 1976fi 1977rm -f conftest.err conftest.i conftest.$ac_ext 1978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1979$as_echo "$ac_header_preproc" >&6; } 1980 1981# So? What about this header? 1982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1983 yes:no: ) 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1985$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1987$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1988 ;; 1989 no:yes:* ) 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1991$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1993$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1995$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1997$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1999$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2000 ;; 2001esac 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2003$as_echo_n "checking for $2... " >&6; } 2004if eval \${$3+:} false; then : 2005 $as_echo_n "(cached) " >&6 2006else 2007 eval "$3=\$ac_header_compiler" 2008fi 2009eval ac_res=\$$3 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2011$as_echo "$ac_res" >&6; } 2012fi 2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2014 2015} # ac_fn_c_check_header_mongrel 2016cat >config.log <<_ACEOF 2017This file contains any messages produced by compilers while 2018running configure, to aid debugging if configure makes a mistake. 2019 2020It was created by mpb $as_me 1.11.1, which was 2021generated by GNU Autoconf 2.69. Invocation command line was 2022 2023 $ $0 $@ 2024 2025_ACEOF 2026exec 5>>config.log 2027{ 2028cat <<_ASUNAME 2029## --------- ## 2030## Platform. ## 2031## --------- ## 2032 2033hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2034uname -m = `(uname -m) 2>/dev/null || echo unknown` 2035uname -r = `(uname -r) 2>/dev/null || echo unknown` 2036uname -s = `(uname -s) 2>/dev/null || echo unknown` 2037uname -v = `(uname -v) 2>/dev/null || echo unknown` 2038 2039/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2040/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2041 2042/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2043/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2044/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2045/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2046/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2047/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2048/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2049 2050_ASUNAME 2051 2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2053for as_dir in $PATH 2054do 2055 IFS=$as_save_IFS 2056 test -z "$as_dir" && as_dir=. 2057 $as_echo "PATH: $as_dir" 2058 done 2059IFS=$as_save_IFS 2060 2061} >&5 2062 2063cat >&5 <<_ACEOF 2064 2065 2066## ----------- ## 2067## Core tests. ## 2068## ----------- ## 2069 2070_ACEOF 2071 2072 2073# Keep a trace of the command line. 2074# Strip out --no-create and --no-recursion so they do not pile up. 2075# Strip out --silent because we don't want to record it for future runs. 2076# Also quote any args containing shell meta-characters. 2077# Make two passes to allow for proper duplicate-argument suppression. 2078ac_configure_args= 2079ac_configure_args0= 2080ac_configure_args1= 2081ac_must_keep_next=false 2082for ac_pass in 1 2 2083do 2084 for ac_arg 2085 do 2086 case $ac_arg in 2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2089 | -silent | --silent | --silen | --sile | --sil) 2090 continue ;; 2091 *\'*) 2092 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2093 esac 2094 case $ac_pass in 2095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2096 2) 2097 as_fn_append ac_configure_args1 " '$ac_arg'" 2098 if test $ac_must_keep_next = true; then 2099 ac_must_keep_next=false # Got value, back to normal. 2100 else 2101 case $ac_arg in 2102 *=* | --config-cache | -C | -disable-* | --disable-* \ 2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2105 | -with-* | --with-* | -without-* | --without-* | --x) 2106 case "$ac_configure_args0 " in 2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2108 esac 2109 ;; 2110 -* ) ac_must_keep_next=true ;; 2111 esac 2112 fi 2113 as_fn_append ac_configure_args " '$ac_arg'" 2114 ;; 2115 esac 2116 done 2117done 2118{ ac_configure_args0=; unset ac_configure_args0;} 2119{ ac_configure_args1=; unset ac_configure_args1;} 2120 2121# When interrupted or exit'd, cleanup temporary files, and complete 2122# config.log. We remove comments because anyway the quotes in there 2123# would cause problems or look ugly. 2124# WARNING: Use '\'' to represent an apostrophe within the trap. 2125# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2126trap 'exit_status=$? 2127 # Save into config.log some information that might help in debugging. 2128 { 2129 echo 2130 2131 $as_echo "## ---------------- ## 2132## Cache variables. ## 2133## ---------------- ##" 2134 echo 2135 # The following way of writing the cache mishandles newlines in values, 2136( 2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2138 eval ac_val=\$$ac_var 2139 case $ac_val in #( 2140 *${as_nl}*) 2141 case $ac_var in #( 2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2143$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2144 esac 2145 case $ac_var in #( 2146 _ | IFS | as_nl) ;; #( 2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2148 *) { eval $ac_var=; unset $ac_var;} ;; 2149 esac ;; 2150 esac 2151 done 2152 (set) 2>&1 | 2153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2154 *${as_nl}ac_space=\ *) 2155 sed -n \ 2156 "s/'\''/'\''\\\\'\'''\''/g; 2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2158 ;; #( 2159 *) 2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2161 ;; 2162 esac | 2163 sort 2164) 2165 echo 2166 2167 $as_echo "## ----------------- ## 2168## Output variables. ## 2169## ----------------- ##" 2170 echo 2171 for ac_var in $ac_subst_vars 2172 do 2173 eval ac_val=\$$ac_var 2174 case $ac_val in 2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2176 esac 2177 $as_echo "$ac_var='\''$ac_val'\''" 2178 done | sort 2179 echo 2180 2181 if test -n "$ac_subst_files"; then 2182 $as_echo "## ------------------- ## 2183## File substitutions. ## 2184## ------------------- ##" 2185 echo 2186 for ac_var in $ac_subst_files 2187 do 2188 eval ac_val=\$$ac_var 2189 case $ac_val in 2190 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2191 esac 2192 $as_echo "$ac_var='\''$ac_val'\''" 2193 done | sort 2194 echo 2195 fi 2196 2197 if test -s confdefs.h; then 2198 $as_echo "## ----------- ## 2199## confdefs.h. ## 2200## ----------- ##" 2201 echo 2202 cat confdefs.h 2203 echo 2204 fi 2205 test "$ac_signal" != 0 && 2206 $as_echo "$as_me: caught signal $ac_signal" 2207 $as_echo "$as_me: exit $exit_status" 2208 } >&5 2209 rm -f core *.core core.conftest.* && 2210 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2211 exit $exit_status 2212' 0 2213for ac_signal in 1 2 13 15; do 2214 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2215done 2216ac_signal=0 2217 2218# confdefs.h avoids OS command line length limits that DEFS can exceed. 2219rm -f -r conftest* confdefs.h 2220 2221$as_echo "/* confdefs.h */" > confdefs.h 2222 2223# Predefined preprocessor variables. 2224 2225cat >>confdefs.h <<_ACEOF 2226#define PACKAGE_NAME "$PACKAGE_NAME" 2227_ACEOF 2228 2229cat >>confdefs.h <<_ACEOF 2230#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2231_ACEOF 2232 2233cat >>confdefs.h <<_ACEOF 2234#define PACKAGE_VERSION "$PACKAGE_VERSION" 2235_ACEOF 2236 2237cat >>confdefs.h <<_ACEOF 2238#define PACKAGE_STRING "$PACKAGE_STRING" 2239_ACEOF 2240 2241cat >>confdefs.h <<_ACEOF 2242#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2243_ACEOF 2244 2245cat >>confdefs.h <<_ACEOF 2246#define PACKAGE_URL "$PACKAGE_URL" 2247_ACEOF 2248 2249 2250# Let the site file select an alternate cache file if it wants to. 2251# Prefer an explicitly selected file to automatically selected ones. 2252ac_site_file1=NONE 2253ac_site_file2=NONE 2254if test -n "$CONFIG_SITE"; then 2255 # We do not want a PATH search for config.site. 2256 case $CONFIG_SITE in #(( 2257 -*) ac_site_file1=./$CONFIG_SITE;; 2258 */*) ac_site_file1=$CONFIG_SITE;; 2259 *) ac_site_file1=./$CONFIG_SITE;; 2260 esac 2261elif test "x$prefix" != xNONE; then 2262 ac_site_file1=$prefix/share/config.site 2263 ac_site_file2=$prefix/etc/config.site 2264else 2265 ac_site_file1=$ac_default_prefix/share/config.site 2266 ac_site_file2=$ac_default_prefix/etc/config.site 2267fi 2268for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2269do 2270 test "x$ac_site_file" = xNONE && continue 2271 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2273$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2274 sed 's/^/| /' "$ac_site_file" >&5 2275 . "$ac_site_file" \ 2276 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2278as_fn_error $? "failed to load site script $ac_site_file 2279See \`config.log' for more details" "$LINENO" 5; } 2280 fi 2281done 2282 2283if test -r "$cache_file"; then 2284 # Some versions of bash will fail to source /dev/null (special files 2285 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2288$as_echo "$as_me: loading cache $cache_file" >&6;} 2289 case $cache_file in 2290 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2291 *) . "./$cache_file";; 2292 esac 2293 fi 2294else 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2296$as_echo "$as_me: creating cache $cache_file" >&6;} 2297 >$cache_file 2298fi 2299 2300# Check that the precious variables saved in the cache have kept the same 2301# value. 2302ac_cache_corrupted=false 2303for ac_var in $ac_precious_vars; do 2304 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2305 eval ac_new_set=\$ac_env_${ac_var}_set 2306 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2307 eval ac_new_val=\$ac_env_${ac_var}_value 2308 case $ac_old_set,$ac_new_set in 2309 set,) 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2311$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2312 ac_cache_corrupted=: ;; 2313 ,set) 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2315$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2316 ac_cache_corrupted=: ;; 2317 ,);; 2318 *) 2319 if test "x$ac_old_val" != "x$ac_new_val"; then 2320 # differences in whitespace do not lead to failure. 2321 ac_old_val_w=`echo x $ac_old_val` 2322 ac_new_val_w=`echo x $ac_new_val` 2323 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2325$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2326 ac_cache_corrupted=: 2327 else 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2329$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2330 eval $ac_var=\$ac_old_val 2331 fi 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2333$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2335$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2336 fi;; 2337 esac 2338 # Pass precious variables to config.status. 2339 if test "$ac_new_set" = set; then 2340 case $ac_new_val in 2341 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2342 *) ac_arg=$ac_var=$ac_new_val ;; 2343 esac 2344 case " $ac_configure_args " in 2345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2346 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2347 esac 2348 fi 2349done 2350if $ac_cache_corrupted; then 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2354$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2355 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2356fi 2357## -------------------- ## 2358## Main body of script. ## 2359## -------------------- ## 2360 2361ac_ext=c 2362ac_cpp='$CPP $CPPFLAGS' 2363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2365ac_compiler_gnu=$ac_cv_c_compiler_gnu 2366 2367 2368 2369ac_config_headers="$ac_config_headers config.h src/mpbconf.h" 2370 2371 2372 2373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2374$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2375 # Check whether --enable-maintainer-mode was given. 2376if test "${enable_maintainer_mode+set}" = set; then : 2377 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2378else 2379 USE_MAINTAINER_MODE=no 2380fi 2381 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2383$as_echo "$USE_MAINTAINER_MODE" >&6; } 2384 if test $USE_MAINTAINER_MODE = yes; then 2385 MAINTAINER_MODE_TRUE= 2386 MAINTAINER_MODE_FALSE='#' 2387else 2388 MAINTAINER_MODE_TRUE='#' 2389 MAINTAINER_MODE_FALSE= 2390fi 2391 2392 MAINT=$MAINTAINER_MODE_TRUE 2393 2394 2395 2396# Shared-library version number; indicates api compatibility, and is 2397# not the same as the "public" version number. (Don't worry about this 2398# except for public releases.) 2399SHARED_VERSION_INFO="5:1:4" # CURRENT:REVISION:AGE 2400 2401VERSION_MAJOR=`echo $PACKAGE_VERSION | cut -d. -f1` 2402VERSION_MINOR=`echo $PACKAGE_VERSION | cut -d. -f2` 2403VERSION_PATCH=`echo $PACKAGE_VERSION | cut -d. -f3 | cut -d- -f1` 2404 2405cat >>confdefs.h <<_ACEOF 2406#define MPB_VERSION_MAJOR $VERSION_MAJOR 2407_ACEOF 2408 2409 2410cat >>confdefs.h <<_ACEOF 2411#define MPB_VERSION_MINOR $VERSION_MINOR 2412_ACEOF 2413 2414 2415cat >>confdefs.h <<_ACEOF 2416#define MPB_VERSION_PATCH $VERSION_PATCH 2417_ACEOF 2418 2419 2420am__api_version='1.16' 2421 2422ac_aux_dir= 2423for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2424 if test -f "$ac_dir/install-sh"; then 2425 ac_aux_dir=$ac_dir 2426 ac_install_sh="$ac_aux_dir/install-sh -c" 2427 break 2428 elif test -f "$ac_dir/install.sh"; then 2429 ac_aux_dir=$ac_dir 2430 ac_install_sh="$ac_aux_dir/install.sh -c" 2431 break 2432 elif test -f "$ac_dir/shtool"; then 2433 ac_aux_dir=$ac_dir 2434 ac_install_sh="$ac_aux_dir/shtool install -c" 2435 break 2436 fi 2437done 2438if test -z "$ac_aux_dir"; then 2439 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2440fi 2441 2442# These three variables are undocumented and unsupported, 2443# and are intended to be withdrawn in a future Autoconf release. 2444# They can cause serious problems if a builder's source tree is in a directory 2445# whose full name contains unusual characters. 2446ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2447ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2448ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2449 2450 2451# Find a good install program. We prefer a C program (faster), 2452# so one script is as good as another. But avoid the broken or 2453# incompatible versions: 2454# SysV /etc/install, /usr/sbin/install 2455# SunOS /usr/etc/install 2456# IRIX /sbin/install 2457# AIX /bin/install 2458# AmigaOS /C/install, which installs bootblocks on floppy discs 2459# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2460# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2461# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2462# OS/2's system install, which has a completely different semantic 2463# ./install, which can be erroneously created by make from ./install.sh. 2464# Reject install programs that cannot install multiple files. 2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2466$as_echo_n "checking for a BSD-compatible install... " >&6; } 2467if test -z "$INSTALL"; then 2468if ${ac_cv_path_install+:} false; then : 2469 $as_echo_n "(cached) " >&6 2470else 2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2472for as_dir in $PATH 2473do 2474 IFS=$as_save_IFS 2475 test -z "$as_dir" && as_dir=. 2476 # Account for people who put trailing slashes in PATH elements. 2477case $as_dir/ in #(( 2478 ./ | .// | /[cC]/* | \ 2479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2480 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2481 /usr/ucb/* ) ;; 2482 *) 2483 # OSF1 and SCO ODT 3.0 have their own names for install. 2484 # Don't use installbsd from OSF since it installs stuff as root 2485 # by default. 2486 for ac_prog in ginstall scoinst install; do 2487 for ac_exec_ext in '' $ac_executable_extensions; do 2488 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2489 if test $ac_prog = install && 2490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2491 # AIX install. It has an incompatible calling convention. 2492 : 2493 elif test $ac_prog = install && 2494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2495 # program-specific install script used by HP pwplus--don't use. 2496 : 2497 else 2498 rm -rf conftest.one conftest.two conftest.dir 2499 echo one > conftest.one 2500 echo two > conftest.two 2501 mkdir conftest.dir 2502 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2503 test -s conftest.one && test -s conftest.two && 2504 test -s conftest.dir/conftest.one && 2505 test -s conftest.dir/conftest.two 2506 then 2507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2508 break 3 2509 fi 2510 fi 2511 fi 2512 done 2513 done 2514 ;; 2515esac 2516 2517 done 2518IFS=$as_save_IFS 2519 2520rm -rf conftest.one conftest.two conftest.dir 2521 2522fi 2523 if test "${ac_cv_path_install+set}" = set; then 2524 INSTALL=$ac_cv_path_install 2525 else 2526 # As a last resort, use the slow shell script. Don't cache a 2527 # value for INSTALL within a source directory, because that will 2528 # break other packages using the cache if that directory is 2529 # removed, or if the value is a relative name. 2530 INSTALL=$ac_install_sh 2531 fi 2532fi 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2534$as_echo "$INSTALL" >&6; } 2535 2536# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2537# It thinks the first close brace ends the variable substitution. 2538test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2539 2540test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2541 2542test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2543 2544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2545$as_echo_n "checking whether build environment is sane... " >&6; } 2546# Reject unsafe characters in $srcdir or the absolute working directory 2547# name. Accept space and tab only in the latter. 2548am_lf=' 2549' 2550case `pwd` in 2551 *[\\\"\#\$\&\'\`$am_lf]*) 2552 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2553esac 2554case $srcdir in 2555 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2556 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2557esac 2558 2559# Do 'set' in a subshell so we don't clobber the current shell's 2560# arguments. Must try -L first in case configure is actually a 2561# symlink; some systems play weird games with the mod time of symlinks 2562# (eg FreeBSD returns the mod time of the symlink's containing 2563# directory). 2564if ( 2565 am_has_slept=no 2566 for am_try in 1 2; do 2567 echo "timestamp, slept: $am_has_slept" > conftest.file 2568 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2569 if test "$*" = "X"; then 2570 # -L didn't work. 2571 set X `ls -t "$srcdir/configure" conftest.file` 2572 fi 2573 if test "$*" != "X $srcdir/configure conftest.file" \ 2574 && test "$*" != "X conftest.file $srcdir/configure"; then 2575 2576 # If neither matched, then we have a broken ls. This can happen 2577 # if, for instance, CONFIG_SHELL is bash and it inherits a 2578 # broken ls alias from the environment. This has actually 2579 # happened. Such a system could not be considered "sane". 2580 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2581 alias in your environment" "$LINENO" 5 2582 fi 2583 if test "$2" = conftest.file || test $am_try -eq 2; then 2584 break 2585 fi 2586 # Just in case. 2587 sleep 1 2588 am_has_slept=yes 2589 done 2590 test "$2" = conftest.file 2591 ) 2592then 2593 # Ok. 2594 : 2595else 2596 as_fn_error $? "newly created file is older than distributed files! 2597Check your system clock" "$LINENO" 5 2598fi 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2600$as_echo "yes" >&6; } 2601# If we didn't sleep, we still need to ensure time stamps of config.status and 2602# generated files are strictly newer. 2603am_sleep_pid= 2604if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2605 ( sleep 1 ) & 2606 am_sleep_pid=$! 2607fi 2608 2609rm -f conftest.file 2610 2611test "$program_prefix" != NONE && 2612 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2613# Use a double $ so make ignores it. 2614test "$program_suffix" != NONE && 2615 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2616# Double any \ or $. 2617# By default was `s,x,x', remove it if useless. 2618ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2619program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2620 2621# Expand $ac_aux_dir to an absolute path. 2622am_aux_dir=`cd "$ac_aux_dir" && pwd` 2623 2624if test x"${MISSING+set}" != xset; then 2625 case $am_aux_dir in 2626 *\ * | *\ *) 2627 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2628 *) 2629 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2630 esac 2631fi 2632# Use eval to expand $SHELL 2633if eval "$MISSING --is-lightweight"; then 2634 am_missing_run="$MISSING " 2635else 2636 am_missing_run= 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2638$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2639fi 2640 2641if test x"${install_sh+set}" != xset; then 2642 case $am_aux_dir in 2643 *\ * | *\ *) 2644 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2645 *) 2646 install_sh="\${SHELL} $am_aux_dir/install-sh" 2647 esac 2648fi 2649 2650# Installed binaries are usually stripped using 'strip' when the user 2651# run "make install-strip". However 'strip' might not be the right 2652# tool to use in cross-compilation environments, therefore Automake 2653# will honor the 'STRIP' environment variable to overrule this program. 2654if test "$cross_compiling" != no; then 2655 if test -n "$ac_tool_prefix"; then 2656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2657set dummy ${ac_tool_prefix}strip; ac_word=$2 2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2659$as_echo_n "checking for $ac_word... " >&6; } 2660if ${ac_cv_prog_STRIP+:} false; then : 2661 $as_echo_n "(cached) " >&6 2662else 2663 if test -n "$STRIP"; then 2664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2665else 2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667for as_dir in $PATH 2668do 2669 IFS=$as_save_IFS 2670 test -z "$as_dir" && as_dir=. 2671 for ac_exec_ext in '' $ac_executable_extensions; do 2672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2673 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2675 break 2 2676 fi 2677done 2678 done 2679IFS=$as_save_IFS 2680 2681fi 2682fi 2683STRIP=$ac_cv_prog_STRIP 2684if test -n "$STRIP"; then 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2686$as_echo "$STRIP" >&6; } 2687else 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2689$as_echo "no" >&6; } 2690fi 2691 2692 2693fi 2694if test -z "$ac_cv_prog_STRIP"; then 2695 ac_ct_STRIP=$STRIP 2696 # Extract the first word of "strip", so it can be a program name with args. 2697set dummy strip; ac_word=$2 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2699$as_echo_n "checking for $ac_word... " >&6; } 2700if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2701 $as_echo_n "(cached) " >&6 2702else 2703 if test -n "$ac_ct_STRIP"; then 2704 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2705else 2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2707for as_dir in $PATH 2708do 2709 IFS=$as_save_IFS 2710 test -z "$as_dir" && as_dir=. 2711 for ac_exec_ext in '' $ac_executable_extensions; do 2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2713 ac_cv_prog_ac_ct_STRIP="strip" 2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2715 break 2 2716 fi 2717done 2718 done 2719IFS=$as_save_IFS 2720 2721fi 2722fi 2723ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2724if test -n "$ac_ct_STRIP"; then 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2726$as_echo "$ac_ct_STRIP" >&6; } 2727else 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2729$as_echo "no" >&6; } 2730fi 2731 2732 if test "x$ac_ct_STRIP" = x; then 2733 STRIP=":" 2734 else 2735 case $cross_compiling:$ac_tool_warned in 2736yes:) 2737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2739ac_tool_warned=yes ;; 2740esac 2741 STRIP=$ac_ct_STRIP 2742 fi 2743else 2744 STRIP="$ac_cv_prog_STRIP" 2745fi 2746 2747fi 2748INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2749 2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2751$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2752if test -z "$MKDIR_P"; then 2753 if ${ac_cv_path_mkdir+:} false; then : 2754 $as_echo_n "(cached) " >&6 2755else 2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2757for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2758do 2759 IFS=$as_save_IFS 2760 test -z "$as_dir" && as_dir=. 2761 for ac_prog in mkdir gmkdir; do 2762 for ac_exec_ext in '' $ac_executable_extensions; do 2763 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2764 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2765 'mkdir (GNU coreutils) '* | \ 2766 'mkdir (coreutils) '* | \ 2767 'mkdir (fileutils) '4.1*) 2768 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2769 break 3;; 2770 esac 2771 done 2772 done 2773 done 2774IFS=$as_save_IFS 2775 2776fi 2777 2778 test -d ./--version && rmdir ./--version 2779 if test "${ac_cv_path_mkdir+set}" = set; then 2780 MKDIR_P="$ac_cv_path_mkdir -p" 2781 else 2782 # As a last resort, use the slow shell script. Don't cache a 2783 # value for MKDIR_P within a source directory, because that will 2784 # break other packages using the cache if that directory is 2785 # removed, or if the value is a relative name. 2786 MKDIR_P="$ac_install_sh -d" 2787 fi 2788fi 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2790$as_echo "$MKDIR_P" >&6; } 2791 2792for ac_prog in gawk mawk nawk awk 2793do 2794 # Extract the first word of "$ac_prog", so it can be a program name with args. 2795set dummy $ac_prog; ac_word=$2 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2797$as_echo_n "checking for $ac_word... " >&6; } 2798if ${ac_cv_prog_AWK+:} false; then : 2799 $as_echo_n "(cached) " >&6 2800else 2801 if test -n "$AWK"; then 2802 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2803else 2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2805for as_dir in $PATH 2806do 2807 IFS=$as_save_IFS 2808 test -z "$as_dir" && as_dir=. 2809 for ac_exec_ext in '' $ac_executable_extensions; do 2810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2811 ac_cv_prog_AWK="$ac_prog" 2812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2813 break 2 2814 fi 2815done 2816 done 2817IFS=$as_save_IFS 2818 2819fi 2820fi 2821AWK=$ac_cv_prog_AWK 2822if test -n "$AWK"; then 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2824$as_echo "$AWK" >&6; } 2825else 2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2827$as_echo "no" >&6; } 2828fi 2829 2830 2831 test -n "$AWK" && break 2832done 2833 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2835$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2836set x ${MAKE-make} 2837ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2838if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2839 $as_echo_n "(cached) " >&6 2840else 2841 cat >conftest.make <<\_ACEOF 2842SHELL = /bin/sh 2843all: 2844 @echo '@@@%%%=$(MAKE)=@@@%%%' 2845_ACEOF 2846# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2847case `${MAKE-make} -f conftest.make 2>/dev/null` in 2848 *@@@%%%=?*=@@@%%%*) 2849 eval ac_cv_prog_make_${ac_make}_set=yes;; 2850 *) 2851 eval ac_cv_prog_make_${ac_make}_set=no;; 2852esac 2853rm -f conftest.make 2854fi 2855if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2857$as_echo "yes" >&6; } 2858 SET_MAKE= 2859else 2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2861$as_echo "no" >&6; } 2862 SET_MAKE="MAKE=${MAKE-make}" 2863fi 2864 2865rm -rf .tst 2>/dev/null 2866mkdir .tst 2>/dev/null 2867if test -d .tst; then 2868 am__leading_dot=. 2869else 2870 am__leading_dot=_ 2871fi 2872rmdir .tst 2>/dev/null 2873 2874# Check whether --enable-silent-rules was given. 2875if test "${enable_silent_rules+set}" = set; then : 2876 enableval=$enable_silent_rules; 2877fi 2878 2879case $enable_silent_rules in # ((( 2880 yes) AM_DEFAULT_VERBOSITY=0;; 2881 no) AM_DEFAULT_VERBOSITY=1;; 2882 *) AM_DEFAULT_VERBOSITY=1;; 2883esac 2884am_make=${MAKE-make} 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2886$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2887if ${am_cv_make_support_nested_variables+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 if $as_echo 'TRUE=$(BAR$(V)) 2891BAR0=false 2892BAR1=true 2893V=1 2894am__doit: 2895 @$(TRUE) 2896.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2897 am_cv_make_support_nested_variables=yes 2898else 2899 am_cv_make_support_nested_variables=no 2900fi 2901fi 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2903$as_echo "$am_cv_make_support_nested_variables" >&6; } 2904if test $am_cv_make_support_nested_variables = yes; then 2905 AM_V='$(V)' 2906 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2907else 2908 AM_V=$AM_DEFAULT_VERBOSITY 2909 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2910fi 2911AM_BACKSLASH='\' 2912 2913if test "`cd $srcdir && pwd`" != "`pwd`"; then 2914 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2915 # is not polluted with repeated "-I." 2916 am__isrc=' -I$(srcdir)' 2917 # test to see if srcdir already configured 2918 if test -f $srcdir/config.status; then 2919 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2920 fi 2921fi 2922 2923# test whether we have cygpath 2924if test -z "$CYGPATH_W"; then 2925 if (cygpath --version) >/dev/null 2>/dev/null; then 2926 CYGPATH_W='cygpath -w' 2927 else 2928 CYGPATH_W=echo 2929 fi 2930fi 2931 2932 2933# Define the identity of the package. 2934 PACKAGE='mpb' 2935 VERSION='1.11.1' 2936 2937 2938cat >>confdefs.h <<_ACEOF 2939#define PACKAGE "$PACKAGE" 2940_ACEOF 2941 2942 2943cat >>confdefs.h <<_ACEOF 2944#define VERSION "$VERSION" 2945_ACEOF 2946 2947# Some tools Automake needs. 2948 2949ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2950 2951 2952AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2953 2954 2955AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2956 2957 2958AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2959 2960 2961MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2962 2963# For better backward compatibility. To be removed once Automake 1.9.x 2964# dies out for good. For more background, see: 2965# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2966# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2967mkdir_p='$(MKDIR_P)' 2968 2969# We need awk for the "check" target (and possibly the TAP driver). The 2970# system "awk" is bad on some platforms. 2971# Always define AMTAR for backward compatibility. Yes, it's still used 2972# in the wild :-( We should find a proper way to deprecate it ... 2973AMTAR='$${TAR-tar}' 2974 2975 2976# We'll loop over all known methods to create a tar archive until one works. 2977_am_tools='gnutar pax cpio none' 2978 2979am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2980 2981 2982 2983 2984 2985 2986# POSIX will say in a future version that running "rm -f" with no argument 2987# is OK; and we want to be able to make that assumption in our Makefile 2988# recipes. So use an aggressive probe to check that the usage we want is 2989# actually supported "in the wild" to an acceptable degree. 2990# See automake bug#10828. 2991# To make any issue more visible, cause the running configure to be aborted 2992# by default if the 'rm' program in use doesn't match our expectations; the 2993# user can still override this though. 2994if rm -f && rm -fr && rm -rf; then : OK; else 2995 cat >&2 <<'END' 2996Oops! 2997 2998Your 'rm' program seems unable to run without file operands specified 2999on the command line, even when the '-f' option is present. This is contrary 3000to the behaviour of most rm programs out there, and not conforming with 3001the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3002 3003Please tell bug-automake@gnu.org about your system, including the value 3004of your $PATH and any error possibly output before this message. This 3005can help us improve future automake versions. 3006 3007END 3008 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3009 echo 'Configuration will proceed anyway, since you have set the' >&2 3010 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3011 echo >&2 3012 else 3013 cat >&2 <<'END' 3014Aborting the configuration process, to ensure you take notice of the issue. 3015 3016You can download and install GNU coreutils to get an 'rm' implementation 3017that behaves properly: <https://www.gnu.org/software/coreutils/>. 3018 3019If you want to complete the configuration process using your problematic 3020'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3021to "yes", and re-run configure. 3022 3023END 3024 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3025 fi 3026fi 3027 3028# Check whether --enable-silent-rules was given. 3029if test "${enable_silent_rules+set}" = set; then : 3030 enableval=$enable_silent_rules; 3031fi 3032 3033case $enable_silent_rules in # ((( 3034 yes) AM_DEFAULT_VERBOSITY=0;; 3035 no) AM_DEFAULT_VERBOSITY=1;; 3036 *) AM_DEFAULT_VERBOSITY=0;; 3037esac 3038am_make=${MAKE-make} 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3040$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3041if ${am_cv_make_support_nested_variables+:} false; then : 3042 $as_echo_n "(cached) " >&6 3043else 3044 if $as_echo 'TRUE=$(BAR$(V)) 3045BAR0=false 3046BAR1=true 3047V=1 3048am__doit: 3049 @$(TRUE) 3050.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3051 am_cv_make_support_nested_variables=yes 3052else 3053 am_cv_make_support_nested_variables=no 3054fi 3055fi 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3057$as_echo "$am_cv_make_support_nested_variables" >&6; } 3058if test $am_cv_make_support_nested_variables = yes; then 3059 AM_V='$(V)' 3060 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3061else 3062 AM_V=$AM_DEFAULT_VERBOSITY 3063 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3064fi 3065AM_BACKSLASH='\' 3066 3067 3068# Check whether --enable-shared was given. 3069if test "${enable_shared+set}" = set; then : 3070 enableval=$enable_shared; p=${PACKAGE-default} 3071 case $enableval in 3072 yes) enable_shared=yes ;; 3073 no) enable_shared=no ;; 3074 *) 3075 enable_shared=no 3076 # Look at the argument we got. We use all the common list separators. 3077 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3078 for pkg in $enableval; do 3079 IFS=$lt_save_ifs 3080 if test "X$pkg" = "X$p"; then 3081 enable_shared=yes 3082 fi 3083 done 3084 IFS=$lt_save_ifs 3085 ;; 3086 esac 3087else 3088 enable_shared=no 3089fi 3090 3091 3092 3093 3094 3095 3096 3097 3098 case `pwd` in 3099 *\ * | *\ *) 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3101$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3102esac 3103 3104 3105 3106macro_version='2.4.6' 3107macro_revision='2.4.6' 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121ltmain=$ac_aux_dir/ltmain.sh 3122 3123# Make sure we can run config.sub. 3124$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3125 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3126 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3128$as_echo_n "checking build system type... " >&6; } 3129if ${ac_cv_build+:} false; then : 3130 $as_echo_n "(cached) " >&6 3131else 3132 ac_build_alias=$build_alias 3133test "x$ac_build_alias" = x && 3134 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3135test "x$ac_build_alias" = x && 3136 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3137ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3138 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3139 3140fi 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3142$as_echo "$ac_cv_build" >&6; } 3143case $ac_cv_build in 3144*-*-*) ;; 3145*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3146esac 3147build=$ac_cv_build 3148ac_save_IFS=$IFS; IFS='-' 3149set x $ac_cv_build 3150shift 3151build_cpu=$1 3152build_vendor=$2 3153shift; shift 3154# Remember, the first character of IFS is used to create $*, 3155# except with old shells: 3156build_os=$* 3157IFS=$ac_save_IFS 3158case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3159 3160 3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3162$as_echo_n "checking host system type... " >&6; } 3163if ${ac_cv_host+:} false; then : 3164 $as_echo_n "(cached) " >&6 3165else 3166 if test "x$host_alias" = x; then 3167 ac_cv_host=$ac_cv_build 3168else 3169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3170 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3171fi 3172 3173fi 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3175$as_echo "$ac_cv_host" >&6; } 3176case $ac_cv_host in 3177*-*-*) ;; 3178*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3179esac 3180host=$ac_cv_host 3181ac_save_IFS=$IFS; IFS='-' 3182set x $ac_cv_host 3183shift 3184host_cpu=$1 3185host_vendor=$2 3186shift; shift 3187# Remember, the first character of IFS is used to create $*, 3188# except with old shells: 3189host_os=$* 3190IFS=$ac_save_IFS 3191case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3192 3193 3194# Backslashify metacharacters that are still active within 3195# double-quoted strings. 3196sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3197 3198# Same as above, but do not quote variable references. 3199double_quote_subst='s/\(["`\\]\)/\\\1/g' 3200 3201# Sed substitution to delay expansion of an escaped shell variable in a 3202# double_quote_subst'ed string. 3203delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3204 3205# Sed substitution to delay expansion of an escaped single quote. 3206delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3207 3208# Sed substitution to avoid accidental globbing in evaled expressions 3209no_glob_subst='s/\*/\\\*/g' 3210 3211ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3212ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3213ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3214 3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3216$as_echo_n "checking how to print strings... " >&6; } 3217# Test print first, because it will be a builtin if present. 3218if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3219 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3220 ECHO='print -r --' 3221elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3222 ECHO='printf %s\n' 3223else 3224 # Use this function as a fallback that always works. 3225 func_fallback_echo () 3226 { 3227 eval 'cat <<_LTECHO_EOF 3228$1 3229_LTECHO_EOF' 3230 } 3231 ECHO='func_fallback_echo' 3232fi 3233 3234# func_echo_all arg... 3235# Invoke $ECHO with all args, space-separated. 3236func_echo_all () 3237{ 3238 $ECHO "" 3239} 3240 3241case $ECHO in 3242 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3243$as_echo "printf" >&6; } ;; 3244 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3245$as_echo "print -r" >&6; } ;; 3246 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3247$as_echo "cat" >&6; } ;; 3248esac 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263DEPDIR="${am__leading_dot}deps" 3264 3265ac_config_commands="$ac_config_commands depfiles" 3266 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3268$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3269cat > confinc.mk << 'END' 3270am__doit: 3271 @echo this is the am__doit target >confinc.out 3272.PHONY: am__doit 3273END 3274am__include="#" 3275am__quote= 3276# BSD make does it like this. 3277echo '.include "confinc.mk" # ignored' > confmf.BSD 3278# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3279echo 'include confinc.mk # ignored' > confmf.GNU 3280_am_result=no 3281for s in GNU BSD; do 3282 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3283 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3284 ac_status=$? 3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3286 (exit $ac_status); } 3287 case $?:`cat confinc.out 2>/dev/null` in #( 3288 '0:this is the am__doit target') : 3289 case $s in #( 3290 BSD) : 3291 am__include='.include' am__quote='"' ;; #( 3292 *) : 3293 am__include='include' am__quote='' ;; 3294esac ;; #( 3295 *) : 3296 ;; 3297esac 3298 if test "$am__include" != "#"; then 3299 _am_result="yes ($s style)" 3300 break 3301 fi 3302done 3303rm -f confinc.* confmf.* 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3305$as_echo "${_am_result}" >&6; } 3306 3307# Check whether --enable-dependency-tracking was given. 3308if test "${enable_dependency_tracking+set}" = set; then : 3309 enableval=$enable_dependency_tracking; 3310fi 3311 3312if test "x$enable_dependency_tracking" != xno; then 3313 am_depcomp="$ac_aux_dir/depcomp" 3314 AMDEPBACKSLASH='\' 3315 am__nodep='_no' 3316fi 3317 if test "x$enable_dependency_tracking" != xno; then 3318 AMDEP_TRUE= 3319 AMDEP_FALSE='#' 3320else 3321 AMDEP_TRUE='#' 3322 AMDEP_FALSE= 3323fi 3324 3325 3326ac_ext=c 3327ac_cpp='$CPP $CPPFLAGS' 3328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3330ac_compiler_gnu=$ac_cv_c_compiler_gnu 3331if test -n "$ac_tool_prefix"; then 3332 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3333set dummy ${ac_tool_prefix}gcc; ac_word=$2 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3335$as_echo_n "checking for $ac_word... " >&6; } 3336if ${ac_cv_prog_CC+:} false; then : 3337 $as_echo_n "(cached) " >&6 3338else 3339 if test -n "$CC"; then 3340 ac_cv_prog_CC="$CC" # Let the user override the test. 3341else 3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3343for as_dir in $PATH 3344do 3345 IFS=$as_save_IFS 3346 test -z "$as_dir" && as_dir=. 3347 for ac_exec_ext in '' $ac_executable_extensions; do 3348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3349 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3351 break 2 3352 fi 3353done 3354 done 3355IFS=$as_save_IFS 3356 3357fi 3358fi 3359CC=$ac_cv_prog_CC 3360if test -n "$CC"; then 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3362$as_echo "$CC" >&6; } 3363else 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3365$as_echo "no" >&6; } 3366fi 3367 3368 3369fi 3370if test -z "$ac_cv_prog_CC"; then 3371 ac_ct_CC=$CC 3372 # Extract the first word of "gcc", so it can be a program name with args. 3373set dummy gcc; ac_word=$2 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3375$as_echo_n "checking for $ac_word... " >&6; } 3376if ${ac_cv_prog_ac_ct_CC+:} false; then : 3377 $as_echo_n "(cached) " >&6 3378else 3379 if test -n "$ac_ct_CC"; then 3380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3381else 3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3383for as_dir in $PATH 3384do 3385 IFS=$as_save_IFS 3386 test -z "$as_dir" && as_dir=. 3387 for ac_exec_ext in '' $ac_executable_extensions; do 3388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3389 ac_cv_prog_ac_ct_CC="gcc" 3390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3391 break 2 3392 fi 3393done 3394 done 3395IFS=$as_save_IFS 3396 3397fi 3398fi 3399ac_ct_CC=$ac_cv_prog_ac_ct_CC 3400if test -n "$ac_ct_CC"; then 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3402$as_echo "$ac_ct_CC" >&6; } 3403else 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3405$as_echo "no" >&6; } 3406fi 3407 3408 if test "x$ac_ct_CC" = x; then 3409 CC="" 3410 else 3411 case $cross_compiling:$ac_tool_warned in 3412yes:) 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3415ac_tool_warned=yes ;; 3416esac 3417 CC=$ac_ct_CC 3418 fi 3419else 3420 CC="$ac_cv_prog_CC" 3421fi 3422 3423if test -z "$CC"; then 3424 if test -n "$ac_tool_prefix"; then 3425 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3426set dummy ${ac_tool_prefix}cc; ac_word=$2 3427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3428$as_echo_n "checking for $ac_word... " >&6; } 3429if ${ac_cv_prog_CC+:} false; then : 3430 $as_echo_n "(cached) " >&6 3431else 3432 if test -n "$CC"; then 3433 ac_cv_prog_CC="$CC" # Let the user override the test. 3434else 3435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3436for as_dir in $PATH 3437do 3438 IFS=$as_save_IFS 3439 test -z "$as_dir" && as_dir=. 3440 for ac_exec_ext in '' $ac_executable_extensions; do 3441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3442 ac_cv_prog_CC="${ac_tool_prefix}cc" 3443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3444 break 2 3445 fi 3446done 3447 done 3448IFS=$as_save_IFS 3449 3450fi 3451fi 3452CC=$ac_cv_prog_CC 3453if test -n "$CC"; then 3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3455$as_echo "$CC" >&6; } 3456else 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3458$as_echo "no" >&6; } 3459fi 3460 3461 3462 fi 3463fi 3464if test -z "$CC"; then 3465 # Extract the first word of "cc", so it can be a program name with args. 3466set dummy cc; ac_word=$2 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3468$as_echo_n "checking for $ac_word... " >&6; } 3469if ${ac_cv_prog_CC+:} false; then : 3470 $as_echo_n "(cached) " >&6 3471else 3472 if test -n "$CC"; then 3473 ac_cv_prog_CC="$CC" # Let the user override the test. 3474else 3475 ac_prog_rejected=no 3476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3477for as_dir in $PATH 3478do 3479 IFS=$as_save_IFS 3480 test -z "$as_dir" && as_dir=. 3481 for ac_exec_ext in '' $ac_executable_extensions; do 3482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3484 ac_prog_rejected=yes 3485 continue 3486 fi 3487 ac_cv_prog_CC="cc" 3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3489 break 2 3490 fi 3491done 3492 done 3493IFS=$as_save_IFS 3494 3495if test $ac_prog_rejected = yes; then 3496 # We found a bogon in the path, so make sure we never use it. 3497 set dummy $ac_cv_prog_CC 3498 shift 3499 if test $# != 0; then 3500 # We chose a different compiler from the bogus one. 3501 # However, it has the same basename, so the bogon will be chosen 3502 # first if we set CC to just the basename; use the full file name. 3503 shift 3504 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3505 fi 3506fi 3507fi 3508fi 3509CC=$ac_cv_prog_CC 3510if test -n "$CC"; then 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3512$as_echo "$CC" >&6; } 3513else 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3515$as_echo "no" >&6; } 3516fi 3517 3518 3519fi 3520if test -z "$CC"; then 3521 if test -n "$ac_tool_prefix"; then 3522 for ac_prog in cl.exe 3523 do 3524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3525set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3527$as_echo_n "checking for $ac_word... " >&6; } 3528if ${ac_cv_prog_CC+:} false; then : 3529 $as_echo_n "(cached) " >&6 3530else 3531 if test -n "$CC"; then 3532 ac_cv_prog_CC="$CC" # Let the user override the test. 3533else 3534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3535for as_dir in $PATH 3536do 3537 IFS=$as_save_IFS 3538 test -z "$as_dir" && as_dir=. 3539 for ac_exec_ext in '' $ac_executable_extensions; do 3540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3541 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3543 break 2 3544 fi 3545done 3546 done 3547IFS=$as_save_IFS 3548 3549fi 3550fi 3551CC=$ac_cv_prog_CC 3552if test -n "$CC"; then 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3554$as_echo "$CC" >&6; } 3555else 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3557$as_echo "no" >&6; } 3558fi 3559 3560 3561 test -n "$CC" && break 3562 done 3563fi 3564if test -z "$CC"; then 3565 ac_ct_CC=$CC 3566 for ac_prog in cl.exe 3567do 3568 # Extract the first word of "$ac_prog", so it can be a program name with args. 3569set dummy $ac_prog; ac_word=$2 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3571$as_echo_n "checking for $ac_word... " >&6; } 3572if ${ac_cv_prog_ac_ct_CC+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 if test -n "$ac_ct_CC"; then 3576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3577else 3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3579for as_dir in $PATH 3580do 3581 IFS=$as_save_IFS 3582 test -z "$as_dir" && as_dir=. 3583 for ac_exec_ext in '' $ac_executable_extensions; do 3584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3585 ac_cv_prog_ac_ct_CC="$ac_prog" 3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3587 break 2 3588 fi 3589done 3590 done 3591IFS=$as_save_IFS 3592 3593fi 3594fi 3595ac_ct_CC=$ac_cv_prog_ac_ct_CC 3596if test -n "$ac_ct_CC"; then 3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3598$as_echo "$ac_ct_CC" >&6; } 3599else 3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3601$as_echo "no" >&6; } 3602fi 3603 3604 3605 test -n "$ac_ct_CC" && break 3606done 3607 3608 if test "x$ac_ct_CC" = x; then 3609 CC="" 3610 else 3611 case $cross_compiling:$ac_tool_warned in 3612yes:) 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3615ac_tool_warned=yes ;; 3616esac 3617 CC=$ac_ct_CC 3618 fi 3619fi 3620 3621fi 3622 3623 3624test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3626as_fn_error $? "no acceptable C compiler found in \$PATH 3627See \`config.log' for more details" "$LINENO" 5; } 3628 3629# Provide some information about the compiler. 3630$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3631set X $ac_compile 3632ac_compiler=$2 3633for ac_option in --version -v -V -qversion; do 3634 { { ac_try="$ac_compiler $ac_option >&5" 3635case "(($ac_try" in 3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3637 *) ac_try_echo=$ac_try;; 3638esac 3639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3640$as_echo "$ac_try_echo"; } >&5 3641 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3642 ac_status=$? 3643 if test -s conftest.err; then 3644 sed '10a\ 3645... rest of stderr output deleted ... 3646 10q' conftest.err >conftest.er1 3647 cat conftest.er1 >&5 3648 fi 3649 rm -f conftest.er1 conftest.err 3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3651 test $ac_status = 0; } 3652done 3653 3654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3655/* end confdefs.h. */ 3656 3657int 3658main () 3659{ 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665ac_clean_files_save=$ac_clean_files 3666ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3667# Try to create an executable without -o first, disregard a.out. 3668# It will help us diagnose broken compilers, and finding out an intuition 3669# of exeext. 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3671$as_echo_n "checking whether the C compiler works... " >&6; } 3672ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3673 3674# The possible output files: 3675ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3676 3677ac_rmfiles= 3678for ac_file in $ac_files 3679do 3680 case $ac_file in 3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3682 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3683 esac 3684done 3685rm -f $ac_rmfiles 3686 3687if { { ac_try="$ac_link_default" 3688case "(($ac_try" in 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3690 *) ac_try_echo=$ac_try;; 3691esac 3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3693$as_echo "$ac_try_echo"; } >&5 3694 (eval "$ac_link_default") 2>&5 3695 ac_status=$? 3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3697 test $ac_status = 0; }; then : 3698 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3699# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3700# in a Makefile. We should not override ac_cv_exeext if it was cached, 3701# so that the user can short-circuit this test for compilers unknown to 3702# Autoconf. 3703for ac_file in $ac_files '' 3704do 3705 test -f "$ac_file" || continue 3706 case $ac_file in 3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3708 ;; 3709 [ab].out ) 3710 # We found the default executable, but exeext='' is most 3711 # certainly right. 3712 break;; 3713 *.* ) 3714 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3715 then :; else 3716 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3717 fi 3718 # We set ac_cv_exeext here because the later test for it is not 3719 # safe: cross compilers may not add the suffix if given an `-o' 3720 # argument, so we may need to know it at that point already. 3721 # Even if this section looks crufty: it has the advantage of 3722 # actually working. 3723 break;; 3724 * ) 3725 break;; 3726 esac 3727done 3728test "$ac_cv_exeext" = no && ac_cv_exeext= 3729 3730else 3731 ac_file='' 3732fi 3733if test -z "$ac_file"; then : 3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3735$as_echo "no" >&6; } 3736$as_echo "$as_me: failed program was:" >&5 3737sed 's/^/| /' conftest.$ac_ext >&5 3738 3739{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3741as_fn_error 77 "C compiler cannot create executables 3742See \`config.log' for more details" "$LINENO" 5; } 3743else 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3745$as_echo "yes" >&6; } 3746fi 3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3748$as_echo_n "checking for C compiler default output file name... " >&6; } 3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3750$as_echo "$ac_file" >&6; } 3751ac_exeext=$ac_cv_exeext 3752 3753rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3754ac_clean_files=$ac_clean_files_save 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3756$as_echo_n "checking for suffix of executables... " >&6; } 3757if { { ac_try="$ac_link" 3758case "(($ac_try" in 3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3760 *) ac_try_echo=$ac_try;; 3761esac 3762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3763$as_echo "$ac_try_echo"; } >&5 3764 (eval "$ac_link") 2>&5 3765 ac_status=$? 3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3767 test $ac_status = 0; }; then : 3768 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3769# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3770# work properly (i.e., refer to `conftest.exe'), while it won't with 3771# `rm'. 3772for ac_file in conftest.exe conftest conftest.*; do 3773 test -f "$ac_file" || continue 3774 case $ac_file in 3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3776 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3777 break;; 3778 * ) break;; 3779 esac 3780done 3781else 3782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3784as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3785See \`config.log' for more details" "$LINENO" 5; } 3786fi 3787rm -f conftest conftest$ac_cv_exeext 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3789$as_echo "$ac_cv_exeext" >&6; } 3790 3791rm -f conftest.$ac_ext 3792EXEEXT=$ac_cv_exeext 3793ac_exeext=$EXEEXT 3794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795/* end confdefs.h. */ 3796#include <stdio.h> 3797int 3798main () 3799{ 3800FILE *f = fopen ("conftest.out", "w"); 3801 return ferror (f) || fclose (f) != 0; 3802 3803 ; 3804 return 0; 3805} 3806_ACEOF 3807ac_clean_files="$ac_clean_files conftest.out" 3808# Check that the compiler produces executables we can run. If not, either 3809# the compiler is broken, or we cross compile. 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3811$as_echo_n "checking whether we are cross compiling... " >&6; } 3812if test "$cross_compiling" != yes; then 3813 { { ac_try="$ac_link" 3814case "(($ac_try" in 3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3816 *) ac_try_echo=$ac_try;; 3817esac 3818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3819$as_echo "$ac_try_echo"; } >&5 3820 (eval "$ac_link") 2>&5 3821 ac_status=$? 3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3823 test $ac_status = 0; } 3824 if { ac_try='./conftest$ac_cv_exeext' 3825 { { case "(($ac_try" in 3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3827 *) ac_try_echo=$ac_try;; 3828esac 3829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3830$as_echo "$ac_try_echo"; } >&5 3831 (eval "$ac_try") 2>&5 3832 ac_status=$? 3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3834 test $ac_status = 0; }; }; then 3835 cross_compiling=no 3836 else 3837 if test "$cross_compiling" = maybe; then 3838 cross_compiling=yes 3839 else 3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3841$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3842as_fn_error $? "cannot run C compiled programs. 3843If you meant to cross compile, use \`--host'. 3844See \`config.log' for more details" "$LINENO" 5; } 3845 fi 3846 fi 3847fi 3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3849$as_echo "$cross_compiling" >&6; } 3850 3851rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3852ac_clean_files=$ac_clean_files_save 3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3854$as_echo_n "checking for suffix of object files... " >&6; } 3855if ${ac_cv_objext+:} false; then : 3856 $as_echo_n "(cached) " >&6 3857else 3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3859/* end confdefs.h. */ 3860 3861int 3862main () 3863{ 3864 3865 ; 3866 return 0; 3867} 3868_ACEOF 3869rm -f conftest.o conftest.obj 3870if { { ac_try="$ac_compile" 3871case "(($ac_try" in 3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3873 *) ac_try_echo=$ac_try;; 3874esac 3875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3876$as_echo "$ac_try_echo"; } >&5 3877 (eval "$ac_compile") 2>&5 3878 ac_status=$? 3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3880 test $ac_status = 0; }; then : 3881 for ac_file in conftest.o conftest.obj conftest.*; do 3882 test -f "$ac_file" || continue; 3883 case $ac_file in 3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3886 break;; 3887 esac 3888done 3889else 3890 $as_echo "$as_me: failed program was:" >&5 3891sed 's/^/| /' conftest.$ac_ext >&5 3892 3893{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3894$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3895as_fn_error $? "cannot compute suffix of object files: cannot compile 3896See \`config.log' for more details" "$LINENO" 5; } 3897fi 3898rm -f conftest.$ac_cv_objext conftest.$ac_ext 3899fi 3900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3901$as_echo "$ac_cv_objext" >&6; } 3902OBJEXT=$ac_cv_objext 3903ac_objext=$OBJEXT 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3905$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3906if ${ac_cv_c_compiler_gnu+:} false; then : 3907 $as_echo_n "(cached) " >&6 3908else 3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3910/* end confdefs.h. */ 3911 3912int 3913main () 3914{ 3915#ifndef __GNUC__ 3916 choke me 3917#endif 3918 3919 ; 3920 return 0; 3921} 3922_ACEOF 3923if ac_fn_c_try_compile "$LINENO"; then : 3924 ac_compiler_gnu=yes 3925else 3926 ac_compiler_gnu=no 3927fi 3928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3929ac_cv_c_compiler_gnu=$ac_compiler_gnu 3930 3931fi 3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3933$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3934if test $ac_compiler_gnu = yes; then 3935 GCC=yes 3936else 3937 GCC= 3938fi 3939ac_test_CFLAGS=${CFLAGS+set} 3940ac_save_CFLAGS=$CFLAGS 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3942$as_echo_n "checking whether $CC accepts -g... " >&6; } 3943if ${ac_cv_prog_cc_g+:} false; then : 3944 $as_echo_n "(cached) " >&6 3945else 3946 ac_save_c_werror_flag=$ac_c_werror_flag 3947 ac_c_werror_flag=yes 3948 ac_cv_prog_cc_g=no 3949 CFLAGS="-g" 3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3951/* end confdefs.h. */ 3952 3953int 3954main () 3955{ 3956 3957 ; 3958 return 0; 3959} 3960_ACEOF 3961if ac_fn_c_try_compile "$LINENO"; then : 3962 ac_cv_prog_cc_g=yes 3963else 3964 CFLAGS="" 3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3966/* end confdefs.h. */ 3967 3968int 3969main () 3970{ 3971 3972 ; 3973 return 0; 3974} 3975_ACEOF 3976if ac_fn_c_try_compile "$LINENO"; then : 3977 3978else 3979 ac_c_werror_flag=$ac_save_c_werror_flag 3980 CFLAGS="-g" 3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982/* end confdefs.h. */ 3983 3984int 3985main () 3986{ 3987 3988 ; 3989 return 0; 3990} 3991_ACEOF 3992if ac_fn_c_try_compile "$LINENO"; then : 3993 ac_cv_prog_cc_g=yes 3994fi 3995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3996fi 3997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3998fi 3999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4000 ac_c_werror_flag=$ac_save_c_werror_flag 4001fi 4002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4003$as_echo "$ac_cv_prog_cc_g" >&6; } 4004if test "$ac_test_CFLAGS" = set; then 4005 CFLAGS=$ac_save_CFLAGS 4006elif test $ac_cv_prog_cc_g = yes; then 4007 if test "$GCC" = yes; then 4008 CFLAGS="-g -O2" 4009 else 4010 CFLAGS="-g" 4011 fi 4012else 4013 if test "$GCC" = yes; then 4014 CFLAGS="-O2" 4015 else 4016 CFLAGS= 4017 fi 4018fi 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4020$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4021if ${ac_cv_prog_cc_c89+:} false; then : 4022 $as_echo_n "(cached) " >&6 4023else 4024 ac_cv_prog_cc_c89=no 4025ac_save_CC=$CC 4026cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4027/* end confdefs.h. */ 4028#include <stdarg.h> 4029#include <stdio.h> 4030struct stat; 4031/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4032struct buf { int x; }; 4033FILE * (*rcsopen) (struct buf *, struct stat *, int); 4034static char *e (p, i) 4035 char **p; 4036 int i; 4037{ 4038 return p[i]; 4039} 4040static char *f (char * (*g) (char **, int), char **p, ...) 4041{ 4042 char *s; 4043 va_list v; 4044 va_start (v,p); 4045 s = g (p, va_arg (v,int)); 4046 va_end (v); 4047 return s; 4048} 4049 4050/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4051 function prototypes and stuff, but not '\xHH' hex character constants. 4052 These don't provoke an error unfortunately, instead are silently treated 4053 as 'x'. The following induces an error, until -std is added to get 4054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4055 array size at least. It's necessary to write '\x00'==0 to get something 4056 that's true only with -std. */ 4057int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4058 4059/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4060 inside strings and character constants. */ 4061#define FOO(x) 'x' 4062int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4063 4064int test (int i, double x); 4065struct s1 {int (*f) (int a);}; 4066struct s2 {int (*f) (double a);}; 4067int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4068int argc; 4069char **argv; 4070int 4071main () 4072{ 4073return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4074 ; 4075 return 0; 4076} 4077_ACEOF 4078for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4080do 4081 CC="$ac_save_CC $ac_arg" 4082 if ac_fn_c_try_compile "$LINENO"; then : 4083 ac_cv_prog_cc_c89=$ac_arg 4084fi 4085rm -f core conftest.err conftest.$ac_objext 4086 test "x$ac_cv_prog_cc_c89" != "xno" && break 4087done 4088rm -f conftest.$ac_ext 4089CC=$ac_save_CC 4090 4091fi 4092# AC_CACHE_VAL 4093case "x$ac_cv_prog_cc_c89" in 4094 x) 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4096$as_echo "none needed" >&6; } ;; 4097 xno) 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4099$as_echo "unsupported" >&6; } ;; 4100 *) 4101 CC="$CC $ac_cv_prog_cc_c89" 4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4103$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4104esac 4105if test "x$ac_cv_prog_cc_c89" != xno; then : 4106 4107fi 4108 4109ac_ext=c 4110ac_cpp='$CPP $CPPFLAGS' 4111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4113ac_compiler_gnu=$ac_cv_c_compiler_gnu 4114 4115ac_ext=c 4116ac_cpp='$CPP $CPPFLAGS' 4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4119ac_compiler_gnu=$ac_cv_c_compiler_gnu 4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4121$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4122if ${am_cv_prog_cc_c_o+:} false; then : 4123 $as_echo_n "(cached) " >&6 4124else 4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4126/* end confdefs.h. */ 4127 4128int 4129main () 4130{ 4131 4132 ; 4133 return 0; 4134} 4135_ACEOF 4136 # Make sure it works both with $CC and with simple cc. 4137 # Following AC_PROG_CC_C_O, we do the test twice because some 4138 # compilers refuse to overwrite an existing .o file with -o, 4139 # though they will create one. 4140 am_cv_prog_cc_c_o=yes 4141 for am_i in 1 2; do 4142 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4143 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4144 ac_status=$? 4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4146 (exit $ac_status); } \ 4147 && test -f conftest2.$ac_objext; then 4148 : OK 4149 else 4150 am_cv_prog_cc_c_o=no 4151 break 4152 fi 4153 done 4154 rm -f core conftest* 4155 unset am_i 4156fi 4157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4158$as_echo "$am_cv_prog_cc_c_o" >&6; } 4159if test "$am_cv_prog_cc_c_o" != yes; then 4160 # Losing compiler, so override with the script. 4161 # FIXME: It is wrong to rewrite CC. 4162 # But if we don't then we get into trouble of one sort or another. 4163 # A longer-term fix would be to have automake use am__CC in this case, 4164 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4165 CC="$am_aux_dir/compile $CC" 4166fi 4167ac_ext=c 4168ac_cpp='$CPP $CPPFLAGS' 4169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4171ac_compiler_gnu=$ac_cv_c_compiler_gnu 4172 4173 4174depcc="$CC" am_compiler_list= 4175 4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4177$as_echo_n "checking dependency style of $depcc... " >&6; } 4178if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4179 $as_echo_n "(cached) " >&6 4180else 4181 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4182 # We make a subdir and do the tests there. Otherwise we can end up 4183 # making bogus files that we don't know about and never remove. For 4184 # instance it was reported that on HP-UX the gcc test will end up 4185 # making a dummy file named 'D' -- because '-MD' means "put the output 4186 # in D". 4187 rm -rf conftest.dir 4188 mkdir conftest.dir 4189 # Copy depcomp to subdir because otherwise we won't find it if we're 4190 # using a relative directory. 4191 cp "$am_depcomp" conftest.dir 4192 cd conftest.dir 4193 # We will build objects and dependencies in a subdirectory because 4194 # it helps to detect inapplicable dependency modes. For instance 4195 # both Tru64's cc and ICC support -MD to output dependencies as a 4196 # side effect of compilation, but ICC will put the dependencies in 4197 # the current directory while Tru64 will put them in the object 4198 # directory. 4199 mkdir sub 4200 4201 am_cv_CC_dependencies_compiler_type=none 4202 if test "$am_compiler_list" = ""; then 4203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4204 fi 4205 am__universal=false 4206 case " $depcc " in #( 4207 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4208 esac 4209 4210 for depmode in $am_compiler_list; do 4211 # Setup a source with many dependencies, because some compilers 4212 # like to wrap large dependency lists on column 80 (with \), and 4213 # we should not choose a depcomp mode which is confused by this. 4214 # 4215 # We need to recreate these files for each test, as the compiler may 4216 # overwrite some of them when testing with obscure command lines. 4217 # This happens at least with the AIX C compiler. 4218 : > sub/conftest.c 4219 for i in 1 2 3 4 5 6; do 4220 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4221 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4222 # Solaris 10 /bin/sh. 4223 echo '/* dummy */' > sub/conftst$i.h 4224 done 4225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4226 4227 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4228 # mode. It turns out that the SunPro C++ compiler does not properly 4229 # handle '-M -o', and we need to detect this. Also, some Intel 4230 # versions had trouble with output in subdirs. 4231 am__obj=sub/conftest.${OBJEXT-o} 4232 am__minus_obj="-o $am__obj" 4233 case $depmode in 4234 gcc) 4235 # This depmode causes a compiler race in universal mode. 4236 test "$am__universal" = false || continue 4237 ;; 4238 nosideeffect) 4239 # After this tag, mechanisms are not by side-effect, so they'll 4240 # only be used when explicitly requested. 4241 if test "x$enable_dependency_tracking" = xyes; then 4242 continue 4243 else 4244 break 4245 fi 4246 ;; 4247 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4248 # This compiler won't grok '-c -o', but also, the minuso test has 4249 # not run yet. These depmodes are late enough in the game, and 4250 # so weak that their functioning should not be impacted. 4251 am__obj=conftest.${OBJEXT-o} 4252 am__minus_obj= 4253 ;; 4254 none) break ;; 4255 esac 4256 if depmode=$depmode \ 4257 source=sub/conftest.c object=$am__obj \ 4258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4259 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4260 >/dev/null 2>conftest.err && 4261 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4263 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4265 # icc doesn't choke on unknown options, it will just issue warnings 4266 # or remarks (even with -Werror). So we grep stderr for any message 4267 # that says an option was ignored or not supported. 4268 # When given -MP, icc 7.0 and 7.1 complain thusly: 4269 # icc: Command line warning: ignoring option '-M'; no argument required 4270 # The diagnosis changed in icc 8.0: 4271 # icc: Command line remark: option '-MP' not supported 4272 if (grep 'ignoring option' conftest.err || 4273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4274 am_cv_CC_dependencies_compiler_type=$depmode 4275 break 4276 fi 4277 fi 4278 done 4279 4280 cd .. 4281 rm -rf conftest.dir 4282else 4283 am_cv_CC_dependencies_compiler_type=none 4284fi 4285 4286fi 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4288$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4289CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4290 4291 if 4292 test "x$enable_dependency_tracking" != xno \ 4293 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4294 am__fastdepCC_TRUE= 4295 am__fastdepCC_FALSE='#' 4296else 4297 am__fastdepCC_TRUE='#' 4298 am__fastdepCC_FALSE= 4299fi 4300 4301 4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4303$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4304if ${ac_cv_path_SED+:} false; then : 4305 $as_echo_n "(cached) " >&6 4306else 4307 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4308 for ac_i in 1 2 3 4 5 6 7; do 4309 ac_script="$ac_script$as_nl$ac_script" 4310 done 4311 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4312 { ac_script=; unset ac_script;} 4313 if test -z "$SED"; then 4314 ac_path_SED_found=false 4315 # Loop through the user's path and test for each of PROGNAME-LIST 4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4317for as_dir in $PATH 4318do 4319 IFS=$as_save_IFS 4320 test -z "$as_dir" && as_dir=. 4321 for ac_prog in sed gsed; do 4322 for ac_exec_ext in '' $ac_executable_extensions; do 4323 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4324 as_fn_executable_p "$ac_path_SED" || continue 4325# Check for GNU ac_path_SED and select it if it is found. 4326 # Check for GNU $ac_path_SED 4327case `"$ac_path_SED" --version 2>&1` in 4328*GNU*) 4329 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4330*) 4331 ac_count=0 4332 $as_echo_n 0123456789 >"conftest.in" 4333 while : 4334 do 4335 cat "conftest.in" "conftest.in" >"conftest.tmp" 4336 mv "conftest.tmp" "conftest.in" 4337 cp "conftest.in" "conftest.nl" 4338 $as_echo '' >> "conftest.nl" 4339 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4341 as_fn_arith $ac_count + 1 && ac_count=$as_val 4342 if test $ac_count -gt ${ac_path_SED_max-0}; then 4343 # Best one so far, save it but keep looking for a better one 4344 ac_cv_path_SED="$ac_path_SED" 4345 ac_path_SED_max=$ac_count 4346 fi 4347 # 10*(2^10) chars as input seems more than enough 4348 test $ac_count -gt 10 && break 4349 done 4350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4351esac 4352 4353 $ac_path_SED_found && break 3 4354 done 4355 done 4356 done 4357IFS=$as_save_IFS 4358 if test -z "$ac_cv_path_SED"; then 4359 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4360 fi 4361else 4362 ac_cv_path_SED=$SED 4363fi 4364 4365fi 4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4367$as_echo "$ac_cv_path_SED" >&6; } 4368 SED="$ac_cv_path_SED" 4369 rm -f conftest.sed 4370 4371test -z "$SED" && SED=sed 4372Xsed="$SED -e 1s/^X//" 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4385$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4386if ${ac_cv_path_GREP+:} false; then : 4387 $as_echo_n "(cached) " >&6 4388else 4389 if test -z "$GREP"; then 4390 ac_path_GREP_found=false 4391 # Loop through the user's path and test for each of PROGNAME-LIST 4392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4393for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4394do 4395 IFS=$as_save_IFS 4396 test -z "$as_dir" && as_dir=. 4397 for ac_prog in grep ggrep; do 4398 for ac_exec_ext in '' $ac_executable_extensions; do 4399 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4400 as_fn_executable_p "$ac_path_GREP" || continue 4401# Check for GNU ac_path_GREP and select it if it is found. 4402 # Check for GNU $ac_path_GREP 4403case `"$ac_path_GREP" --version 2>&1` in 4404*GNU*) 4405 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4406*) 4407 ac_count=0 4408 $as_echo_n 0123456789 >"conftest.in" 4409 while : 4410 do 4411 cat "conftest.in" "conftest.in" >"conftest.tmp" 4412 mv "conftest.tmp" "conftest.in" 4413 cp "conftest.in" "conftest.nl" 4414 $as_echo 'GREP' >> "conftest.nl" 4415 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4417 as_fn_arith $ac_count + 1 && ac_count=$as_val 4418 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4419 # Best one so far, save it but keep looking for a better one 4420 ac_cv_path_GREP="$ac_path_GREP" 4421 ac_path_GREP_max=$ac_count 4422 fi 4423 # 10*(2^10) chars as input seems more than enough 4424 test $ac_count -gt 10 && break 4425 done 4426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4427esac 4428 4429 $ac_path_GREP_found && break 3 4430 done 4431 done 4432 done 4433IFS=$as_save_IFS 4434 if test -z "$ac_cv_path_GREP"; then 4435 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4436 fi 4437else 4438 ac_cv_path_GREP=$GREP 4439fi 4440 4441fi 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4443$as_echo "$ac_cv_path_GREP" >&6; } 4444 GREP="$ac_cv_path_GREP" 4445 4446 4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4448$as_echo_n "checking for egrep... " >&6; } 4449if ${ac_cv_path_EGREP+:} false; then : 4450 $as_echo_n "(cached) " >&6 4451else 4452 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4453 then ac_cv_path_EGREP="$GREP -E" 4454 else 4455 if test -z "$EGREP"; then 4456 ac_path_EGREP_found=false 4457 # Loop through the user's path and test for each of PROGNAME-LIST 4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4459for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4460do 4461 IFS=$as_save_IFS 4462 test -z "$as_dir" && as_dir=. 4463 for ac_prog in egrep; do 4464 for ac_exec_ext in '' $ac_executable_extensions; do 4465 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4466 as_fn_executable_p "$ac_path_EGREP" || continue 4467# Check for GNU ac_path_EGREP and select it if it is found. 4468 # Check for GNU $ac_path_EGREP 4469case `"$ac_path_EGREP" --version 2>&1` in 4470*GNU*) 4471 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4472*) 4473 ac_count=0 4474 $as_echo_n 0123456789 >"conftest.in" 4475 while : 4476 do 4477 cat "conftest.in" "conftest.in" >"conftest.tmp" 4478 mv "conftest.tmp" "conftest.in" 4479 cp "conftest.in" "conftest.nl" 4480 $as_echo 'EGREP' >> "conftest.nl" 4481 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4483 as_fn_arith $ac_count + 1 && ac_count=$as_val 4484 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4485 # Best one so far, save it but keep looking for a better one 4486 ac_cv_path_EGREP="$ac_path_EGREP" 4487 ac_path_EGREP_max=$ac_count 4488 fi 4489 # 10*(2^10) chars as input seems more than enough 4490 test $ac_count -gt 10 && break 4491 done 4492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4493esac 4494 4495 $ac_path_EGREP_found && break 3 4496 done 4497 done 4498 done 4499IFS=$as_save_IFS 4500 if test -z "$ac_cv_path_EGREP"; then 4501 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4502 fi 4503else 4504 ac_cv_path_EGREP=$EGREP 4505fi 4506 4507 fi 4508fi 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4510$as_echo "$ac_cv_path_EGREP" >&6; } 4511 EGREP="$ac_cv_path_EGREP" 4512 4513 4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4515$as_echo_n "checking for fgrep... " >&6; } 4516if ${ac_cv_path_FGREP+:} false; then : 4517 $as_echo_n "(cached) " >&6 4518else 4519 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4520 then ac_cv_path_FGREP="$GREP -F" 4521 else 4522 if test -z "$FGREP"; then 4523 ac_path_FGREP_found=false 4524 # Loop through the user's path and test for each of PROGNAME-LIST 4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4526for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4527do 4528 IFS=$as_save_IFS 4529 test -z "$as_dir" && as_dir=. 4530 for ac_prog in fgrep; do 4531 for ac_exec_ext in '' $ac_executable_extensions; do 4532 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4533 as_fn_executable_p "$ac_path_FGREP" || continue 4534# Check for GNU ac_path_FGREP and select it if it is found. 4535 # Check for GNU $ac_path_FGREP 4536case `"$ac_path_FGREP" --version 2>&1` in 4537*GNU*) 4538 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4539*) 4540 ac_count=0 4541 $as_echo_n 0123456789 >"conftest.in" 4542 while : 4543 do 4544 cat "conftest.in" "conftest.in" >"conftest.tmp" 4545 mv "conftest.tmp" "conftest.in" 4546 cp "conftest.in" "conftest.nl" 4547 $as_echo 'FGREP' >> "conftest.nl" 4548 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4550 as_fn_arith $ac_count + 1 && ac_count=$as_val 4551 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4552 # Best one so far, save it but keep looking for a better one 4553 ac_cv_path_FGREP="$ac_path_FGREP" 4554 ac_path_FGREP_max=$ac_count 4555 fi 4556 # 10*(2^10) chars as input seems more than enough 4557 test $ac_count -gt 10 && break 4558 done 4559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4560esac 4561 4562 $ac_path_FGREP_found && break 3 4563 done 4564 done 4565 done 4566IFS=$as_save_IFS 4567 if test -z "$ac_cv_path_FGREP"; then 4568 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4569 fi 4570else 4571 ac_cv_path_FGREP=$FGREP 4572fi 4573 4574 fi 4575fi 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4577$as_echo "$ac_cv_path_FGREP" >&6; } 4578 FGREP="$ac_cv_path_FGREP" 4579 4580 4581test -z "$GREP" && GREP=grep 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601# Check whether --with-gnu-ld was given. 4602if test "${with_gnu_ld+set}" = set; then : 4603 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4604else 4605 with_gnu_ld=no 4606fi 4607 4608ac_prog=ld 4609if test yes = "$GCC"; then 4610 # Check if gcc -print-prog-name=ld gives a path. 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4612$as_echo_n "checking for ld used by $CC... " >&6; } 4613 case $host in 4614 *-*-mingw*) 4615 # gcc leaves a trailing carriage return, which upsets mingw 4616 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4617 *) 4618 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4619 esac 4620 case $ac_prog in 4621 # Accept absolute paths. 4622 [\\/]* | ?:[\\/]*) 4623 re_direlt='/[^/][^/]*/\.\./' 4624 # Canonicalize the pathname of ld 4625 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4626 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4627 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4628 done 4629 test -z "$LD" && LD=$ac_prog 4630 ;; 4631 "") 4632 # If it fails, then pretend we aren't using GCC. 4633 ac_prog=ld 4634 ;; 4635 *) 4636 # If it is relative, then search for the first ld in PATH. 4637 with_gnu_ld=unknown 4638 ;; 4639 esac 4640elif test yes = "$with_gnu_ld"; then 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4642$as_echo_n "checking for GNU ld... " >&6; } 4643else 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4645$as_echo_n "checking for non-GNU ld... " >&6; } 4646fi 4647if ${lt_cv_path_LD+:} false; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 if test -z "$LD"; then 4651 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4652 for ac_dir in $PATH; do 4653 IFS=$lt_save_ifs 4654 test -z "$ac_dir" && ac_dir=. 4655 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4656 lt_cv_path_LD=$ac_dir/$ac_prog 4657 # Check to see if the program is GNU ld. I'd rather use --version, 4658 # but apparently some variants of GNU ld only accept -v. 4659 # Break only if it was the GNU/non-GNU ld that we prefer. 4660 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4661 *GNU* | *'with BFD'*) 4662 test no != "$with_gnu_ld" && break 4663 ;; 4664 *) 4665 test yes != "$with_gnu_ld" && break 4666 ;; 4667 esac 4668 fi 4669 done 4670 IFS=$lt_save_ifs 4671else 4672 lt_cv_path_LD=$LD # Let the user override the test with a path. 4673fi 4674fi 4675 4676LD=$lt_cv_path_LD 4677if test -n "$LD"; then 4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4679$as_echo "$LD" >&6; } 4680else 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4682$as_echo "no" >&6; } 4683fi 4684test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4686$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4687if ${lt_cv_prog_gnu_ld+:} false; then : 4688 $as_echo_n "(cached) " >&6 4689else 4690 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4691case `$LD -v 2>&1 </dev/null` in 4692*GNU* | *'with BFD'*) 4693 lt_cv_prog_gnu_ld=yes 4694 ;; 4695*) 4696 lt_cv_prog_gnu_ld=no 4697 ;; 4698esac 4699fi 4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4701$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4702with_gnu_ld=$lt_cv_prog_gnu_ld 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4713$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4714if ${lt_cv_path_NM+:} false; then : 4715 $as_echo_n "(cached) " >&6 4716else 4717 if test -n "$NM"; then 4718 # Let the user override the test. 4719 lt_cv_path_NM=$NM 4720else 4721 lt_nm_to_check=${ac_tool_prefix}nm 4722 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4723 lt_nm_to_check="$lt_nm_to_check nm" 4724 fi 4725 for lt_tmp_nm in $lt_nm_to_check; do 4726 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4727 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4728 IFS=$lt_save_ifs 4729 test -z "$ac_dir" && ac_dir=. 4730 tmp_nm=$ac_dir/$lt_tmp_nm 4731 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4732 # Check to see if the nm accepts a BSD-compat flag. 4733 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4734 # nm: unknown option "B" ignored 4735 # Tru64's nm complains that /dev/null is an invalid object file 4736 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4737 case $build_os in 4738 mingw*) lt_bad_file=conftest.nm/nofile ;; 4739 *) lt_bad_file=/dev/null ;; 4740 esac 4741 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4742 *$lt_bad_file* | *'Invalid file or object type'*) 4743 lt_cv_path_NM="$tmp_nm -B" 4744 break 2 4745 ;; 4746 *) 4747 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4748 */dev/null*) 4749 lt_cv_path_NM="$tmp_nm -p" 4750 break 2 4751 ;; 4752 *) 4753 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4754 continue # so that we can try to find one that supports BSD flags 4755 ;; 4756 esac 4757 ;; 4758 esac 4759 fi 4760 done 4761 IFS=$lt_save_ifs 4762 done 4763 : ${lt_cv_path_NM=no} 4764fi 4765fi 4766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4767$as_echo "$lt_cv_path_NM" >&6; } 4768if test no != "$lt_cv_path_NM"; then 4769 NM=$lt_cv_path_NM 4770else 4771 # Didn't find any BSD compatible name lister, look for dumpbin. 4772 if test -n "$DUMPBIN"; then : 4773 # Let the user override the test. 4774 else 4775 if test -n "$ac_tool_prefix"; then 4776 for ac_prog in dumpbin "link -dump" 4777 do 4778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4779set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4781$as_echo_n "checking for $ac_word... " >&6; } 4782if ${ac_cv_prog_DUMPBIN+:} false; then : 4783 $as_echo_n "(cached) " >&6 4784else 4785 if test -n "$DUMPBIN"; then 4786 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4787else 4788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4789for as_dir in $PATH 4790do 4791 IFS=$as_save_IFS 4792 test -z "$as_dir" && as_dir=. 4793 for ac_exec_ext in '' $ac_executable_extensions; do 4794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4795 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4797 break 2 4798 fi 4799done 4800 done 4801IFS=$as_save_IFS 4802 4803fi 4804fi 4805DUMPBIN=$ac_cv_prog_DUMPBIN 4806if test -n "$DUMPBIN"; then 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4808$as_echo "$DUMPBIN" >&6; } 4809else 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4811$as_echo "no" >&6; } 4812fi 4813 4814 4815 test -n "$DUMPBIN" && break 4816 done 4817fi 4818if test -z "$DUMPBIN"; then 4819 ac_ct_DUMPBIN=$DUMPBIN 4820 for ac_prog in dumpbin "link -dump" 4821do 4822 # Extract the first word of "$ac_prog", so it can be a program name with args. 4823set dummy $ac_prog; ac_word=$2 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4825$as_echo_n "checking for $ac_word... " >&6; } 4826if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4827 $as_echo_n "(cached) " >&6 4828else 4829 if test -n "$ac_ct_DUMPBIN"; then 4830 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4831else 4832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4833for as_dir in $PATH 4834do 4835 IFS=$as_save_IFS 4836 test -z "$as_dir" && as_dir=. 4837 for ac_exec_ext in '' $ac_executable_extensions; do 4838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4839 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4841 break 2 4842 fi 4843done 4844 done 4845IFS=$as_save_IFS 4846 4847fi 4848fi 4849ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4850if test -n "$ac_ct_DUMPBIN"; then 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4852$as_echo "$ac_ct_DUMPBIN" >&6; } 4853else 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4855$as_echo "no" >&6; } 4856fi 4857 4858 4859 test -n "$ac_ct_DUMPBIN" && break 4860done 4861 4862 if test "x$ac_ct_DUMPBIN" = x; then 4863 DUMPBIN=":" 4864 else 4865 case $cross_compiling:$ac_tool_warned in 4866yes:) 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4869ac_tool_warned=yes ;; 4870esac 4871 DUMPBIN=$ac_ct_DUMPBIN 4872 fi 4873fi 4874 4875 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4876 *COFF*) 4877 DUMPBIN="$DUMPBIN -symbols -headers" 4878 ;; 4879 *) 4880 DUMPBIN=: 4881 ;; 4882 esac 4883 fi 4884 4885 if test : != "$DUMPBIN"; then 4886 NM=$DUMPBIN 4887 fi 4888fi 4889test -z "$NM" && NM=nm 4890 4891 4892 4893 4894 4895 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4897$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4898if ${lt_cv_nm_interface+:} false; then : 4899 $as_echo_n "(cached) " >&6 4900else 4901 lt_cv_nm_interface="BSD nm" 4902 echo "int some_variable = 0;" > conftest.$ac_ext 4903 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4904 (eval "$ac_compile" 2>conftest.err) 4905 cat conftest.err >&5 4906 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4907 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4908 cat conftest.err >&5 4909 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4910 cat conftest.out >&5 4911 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4912 lt_cv_nm_interface="MS dumpbin" 4913 fi 4914 rm -f conftest* 4915fi 4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4917$as_echo "$lt_cv_nm_interface" >&6; } 4918 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4920$as_echo_n "checking whether ln -s works... " >&6; } 4921LN_S=$as_ln_s 4922if test "$LN_S" = "ln -s"; then 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4924$as_echo "yes" >&6; } 4925else 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4927$as_echo "no, using $LN_S" >&6; } 4928fi 4929 4930# find the maximum length of command line arguments 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4932$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4933if ${lt_cv_sys_max_cmd_len+:} false; then : 4934 $as_echo_n "(cached) " >&6 4935else 4936 i=0 4937 teststring=ABCD 4938 4939 case $build_os in 4940 msdosdjgpp*) 4941 # On DJGPP, this test can blow up pretty badly due to problems in libc 4942 # (any single argument exceeding 2000 bytes causes a buffer overrun 4943 # during glob expansion). Even if it were fixed, the result of this 4944 # check would be larger than it should be. 4945 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4946 ;; 4947 4948 gnu*) 4949 # Under GNU Hurd, this test is not required because there is 4950 # no limit to the length of command line arguments. 4951 # Libtool will interpret -1 as no limit whatsoever 4952 lt_cv_sys_max_cmd_len=-1; 4953 ;; 4954 4955 cygwin* | mingw* | cegcc*) 4956 # On Win9x/ME, this test blows up -- it succeeds, but takes 4957 # about 5 minutes as the teststring grows exponentially. 4958 # Worse, since 9x/ME are not pre-emptively multitasking, 4959 # you end up with a "frozen" computer, even though with patience 4960 # the test eventually succeeds (with a max line length of 256k). 4961 # Instead, let's just punt: use the minimum linelength reported by 4962 # all of the supported platforms: 8192 (on NT/2K/XP). 4963 lt_cv_sys_max_cmd_len=8192; 4964 ;; 4965 4966 mint*) 4967 # On MiNT this can take a long time and run out of memory. 4968 lt_cv_sys_max_cmd_len=8192; 4969 ;; 4970 4971 amigaos*) 4972 # On AmigaOS with pdksh, this test takes hours, literally. 4973 # So we just punt and use a minimum line length of 8192. 4974 lt_cv_sys_max_cmd_len=8192; 4975 ;; 4976 4977 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4978 # This has been around since 386BSD, at least. Likely further. 4979 if test -x /sbin/sysctl; then 4980 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4981 elif test -x /usr/sbin/sysctl; then 4982 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4983 else 4984 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4985 fi 4986 # And add a safety zone 4987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4989 ;; 4990 4991 interix*) 4992 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4993 lt_cv_sys_max_cmd_len=196608 4994 ;; 4995 4996 os2*) 4997 # The test takes a long time on OS/2. 4998 lt_cv_sys_max_cmd_len=8192 4999 ;; 5000 5001 osf*) 5002 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5003 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5004 # nice to cause kernel panics so lets avoid the loop below. 5005 # First set a reasonable default. 5006 lt_cv_sys_max_cmd_len=16384 5007 # 5008 if test -x /sbin/sysconfig; then 5009 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5010 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5011 esac 5012 fi 5013 ;; 5014 sco3.2v5*) 5015 lt_cv_sys_max_cmd_len=102400 5016 ;; 5017 sysv5* | sco5v6* | sysv4.2uw2*) 5018 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5019 if test -n "$kargmax"; then 5020 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5021 else 5022 lt_cv_sys_max_cmd_len=32768 5023 fi 5024 ;; 5025 *) 5026 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5027 if test -n "$lt_cv_sys_max_cmd_len" && \ 5028 test undefined != "$lt_cv_sys_max_cmd_len"; then 5029 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5030 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5031 else 5032 # Make teststring a little bigger before we do anything with it. 5033 # a 1K string should be a reasonable start. 5034 for i in 1 2 3 4 5 6 7 8; do 5035 teststring=$teststring$teststring 5036 done 5037 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5038 # If test is not a shell built-in, we'll probably end up computing a 5039 # maximum length that is only half of the actual maximum length, but 5040 # we can't tell. 5041 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5042 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5043 test 17 != "$i" # 1/2 MB should be enough 5044 do 5045 i=`expr $i + 1` 5046 teststring=$teststring$teststring 5047 done 5048 # Only check the string length outside the loop. 5049 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5050 teststring= 5051 # Add a significant safety factor because C++ compilers can tack on 5052 # massive amounts of additional arguments before passing them to the 5053 # linker. It appears as though 1/2 is a usable value. 5054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5055 fi 5056 ;; 5057 esac 5058 5059fi 5060 5061if test -n "$lt_cv_sys_max_cmd_len"; then 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5063$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5064else 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5066$as_echo "none" >&6; } 5067fi 5068max_cmd_len=$lt_cv_sys_max_cmd_len 5069 5070 5071 5072 5073 5074 5075: ${CP="cp -f"} 5076: ${MV="mv -f"} 5077: ${RM="rm -f"} 5078 5079if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5080 lt_unset=unset 5081else 5082 lt_unset=false 5083fi 5084 5085 5086 5087 5088 5089# test EBCDIC or ASCII 5090case `echo X|tr X '\101'` in 5091 A) # ASCII based system 5092 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5093 lt_SP2NL='tr \040 \012' 5094 lt_NL2SP='tr \015\012 \040\040' 5095 ;; 5096 *) # EBCDIC based system 5097 lt_SP2NL='tr \100 \n' 5098 lt_NL2SP='tr \r\n \100\100' 5099 ;; 5100esac 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5111$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5112if ${lt_cv_to_host_file_cmd+:} false; then : 5113 $as_echo_n "(cached) " >&6 5114else 5115 case $host in 5116 *-*-mingw* ) 5117 case $build in 5118 *-*-mingw* ) # actually msys 5119 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5120 ;; 5121 *-*-cygwin* ) 5122 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5123 ;; 5124 * ) # otherwise, assume *nix 5125 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5126 ;; 5127 esac 5128 ;; 5129 *-*-cygwin* ) 5130 case $build in 5131 *-*-mingw* ) # actually msys 5132 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5133 ;; 5134 *-*-cygwin* ) 5135 lt_cv_to_host_file_cmd=func_convert_file_noop 5136 ;; 5137 * ) # otherwise, assume *nix 5138 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5139 ;; 5140 esac 5141 ;; 5142 * ) # unhandled hosts (and "normal" native builds) 5143 lt_cv_to_host_file_cmd=func_convert_file_noop 5144 ;; 5145esac 5146 5147fi 5148 5149to_host_file_cmd=$lt_cv_to_host_file_cmd 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5151$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5152 5153 5154 5155 5156 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5158$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5159if ${lt_cv_to_tool_file_cmd+:} false; then : 5160 $as_echo_n "(cached) " >&6 5161else 5162 #assume ordinary cross tools, or native build. 5163lt_cv_to_tool_file_cmd=func_convert_file_noop 5164case $host in 5165 *-*-mingw* ) 5166 case $build in 5167 *-*-mingw* ) # actually msys 5168 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5169 ;; 5170 esac 5171 ;; 5172esac 5173 5174fi 5175 5176to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5178$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5179 5180 5181 5182 5183 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5185$as_echo_n "checking for $LD option to reload object files... " >&6; } 5186if ${lt_cv_ld_reload_flag+:} false; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 lt_cv_ld_reload_flag='-r' 5190fi 5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5192$as_echo "$lt_cv_ld_reload_flag" >&6; } 5193reload_flag=$lt_cv_ld_reload_flag 5194case $reload_flag in 5195"" | " "*) ;; 5196*) reload_flag=" $reload_flag" ;; 5197esac 5198reload_cmds='$LD$reload_flag -o $output$reload_objs' 5199case $host_os in 5200 cygwin* | mingw* | pw32* | cegcc*) 5201 if test yes != "$GCC"; then 5202 reload_cmds=false 5203 fi 5204 ;; 5205 darwin*) 5206 if test yes = "$GCC"; then 5207 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5208 else 5209 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5210 fi 5211 ;; 5212esac 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222if test -n "$ac_tool_prefix"; then 5223 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5224set dummy ${ac_tool_prefix}objdump; ac_word=$2 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5226$as_echo_n "checking for $ac_word... " >&6; } 5227if ${ac_cv_prog_OBJDUMP+:} false; then : 5228 $as_echo_n "(cached) " >&6 5229else 5230 if test -n "$OBJDUMP"; then 5231 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5232else 5233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5234for as_dir in $PATH 5235do 5236 IFS=$as_save_IFS 5237 test -z "$as_dir" && as_dir=. 5238 for ac_exec_ext in '' $ac_executable_extensions; do 5239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5240 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5242 break 2 5243 fi 5244done 5245 done 5246IFS=$as_save_IFS 5247 5248fi 5249fi 5250OBJDUMP=$ac_cv_prog_OBJDUMP 5251if test -n "$OBJDUMP"; then 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5253$as_echo "$OBJDUMP" >&6; } 5254else 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5256$as_echo "no" >&6; } 5257fi 5258 5259 5260fi 5261if test -z "$ac_cv_prog_OBJDUMP"; then 5262 ac_ct_OBJDUMP=$OBJDUMP 5263 # Extract the first word of "objdump", so it can be a program name with args. 5264set dummy objdump; ac_word=$2 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5266$as_echo_n "checking for $ac_word... " >&6; } 5267if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 if test -n "$ac_ct_OBJDUMP"; then 5271 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5272else 5273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5274for as_dir in $PATH 5275do 5276 IFS=$as_save_IFS 5277 test -z "$as_dir" && as_dir=. 5278 for ac_exec_ext in '' $ac_executable_extensions; do 5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5280 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5282 break 2 5283 fi 5284done 5285 done 5286IFS=$as_save_IFS 5287 5288fi 5289fi 5290ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5291if test -n "$ac_ct_OBJDUMP"; then 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5293$as_echo "$ac_ct_OBJDUMP" >&6; } 5294else 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5296$as_echo "no" >&6; } 5297fi 5298 5299 if test "x$ac_ct_OBJDUMP" = x; then 5300 OBJDUMP="false" 5301 else 5302 case $cross_compiling:$ac_tool_warned in 5303yes:) 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5306ac_tool_warned=yes ;; 5307esac 5308 OBJDUMP=$ac_ct_OBJDUMP 5309 fi 5310else 5311 OBJDUMP="$ac_cv_prog_OBJDUMP" 5312fi 5313 5314test -z "$OBJDUMP" && OBJDUMP=objdump 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5325$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5326if ${lt_cv_deplibs_check_method+:} false; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 lt_cv_file_magic_cmd='$MAGIC_CMD' 5330lt_cv_file_magic_test_file= 5331lt_cv_deplibs_check_method='unknown' 5332# Need to set the preceding variable on all platforms that support 5333# interlibrary dependencies. 5334# 'none' -- dependencies not supported. 5335# 'unknown' -- same as none, but documents that we really don't know. 5336# 'pass_all' -- all dependencies passed with no checks. 5337# 'test_compile' -- check by making test program. 5338# 'file_magic [[regex]]' -- check by looking for files in library path 5339# that responds to the $file_magic_cmd with a given extended regex. 5340# If you have 'file' or equivalent on your system and you're not sure 5341# whether 'pass_all' will *always* work, you probably want this one. 5342 5343case $host_os in 5344aix[4-9]*) 5345 lt_cv_deplibs_check_method=pass_all 5346 ;; 5347 5348beos*) 5349 lt_cv_deplibs_check_method=pass_all 5350 ;; 5351 5352bsdi[45]*) 5353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5354 lt_cv_file_magic_cmd='/usr/bin/file -L' 5355 lt_cv_file_magic_test_file=/shlib/libc.so 5356 ;; 5357 5358cygwin*) 5359 # func_win32_libid is a shell function defined in ltmain.sh 5360 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5361 lt_cv_file_magic_cmd='func_win32_libid' 5362 ;; 5363 5364mingw* | pw32*) 5365 # Base MSYS/MinGW do not provide the 'file' command needed by 5366 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5367 # unless we find 'file', for example because we are cross-compiling. 5368 if ( file / ) >/dev/null 2>&1; then 5369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5370 lt_cv_file_magic_cmd='func_win32_libid' 5371 else 5372 # Keep this pattern in sync with the one in func_win32_libid. 5373 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5374 lt_cv_file_magic_cmd='$OBJDUMP -f' 5375 fi 5376 ;; 5377 5378cegcc*) 5379 # use the weaker test based on 'objdump'. See mingw*. 5380 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5381 lt_cv_file_magic_cmd='$OBJDUMP -f' 5382 ;; 5383 5384darwin* | rhapsody*) 5385 lt_cv_deplibs_check_method=pass_all 5386 ;; 5387 5388freebsd* | dragonfly*) 5389 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5390 case $host_cpu in 5391 i*86 ) 5392 # Not sure whether the presence of OpenBSD here was a mistake. 5393 # Let's accept both of them until this is cleared up. 5394 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5395 lt_cv_file_magic_cmd=/usr/bin/file 5396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5397 ;; 5398 esac 5399 else 5400 lt_cv_deplibs_check_method=pass_all 5401 fi 5402 ;; 5403 5404haiku*) 5405 lt_cv_deplibs_check_method=pass_all 5406 ;; 5407 5408hpux10.20* | hpux11*) 5409 lt_cv_file_magic_cmd=/usr/bin/file 5410 case $host_cpu in 5411 ia64*) 5412 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5413 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5414 ;; 5415 hppa*64*) 5416 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]' 5417 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5418 ;; 5419 *) 5420 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5421 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5422 ;; 5423 esac 5424 ;; 5425 5426interix[3-9]*) 5427 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5429 ;; 5430 5431irix5* | irix6* | nonstopux*) 5432 case $LD in 5433 *-32|*"-32 ") libmagic=32-bit;; 5434 *-n32|*"-n32 ") libmagic=N32;; 5435 *-64|*"-64 ") libmagic=64-bit;; 5436 *) libmagic=never-match;; 5437 esac 5438 lt_cv_deplibs_check_method=pass_all 5439 ;; 5440 5441# This must be glibc/ELF. 5442linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5443 lt_cv_deplibs_check_method=pass_all 5444 ;; 5445 5446netbsd*) 5447 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5449 else 5450 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5451 fi 5452 ;; 5453 5454newos6*) 5455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5456 lt_cv_file_magic_cmd=/usr/bin/file 5457 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5458 ;; 5459 5460*nto* | *qnx*) 5461 lt_cv_deplibs_check_method=pass_all 5462 ;; 5463 5464openbsd* | bitrig*) 5465 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5467 else 5468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5469 fi 5470 ;; 5471 5472osf3* | osf4* | osf5*) 5473 lt_cv_deplibs_check_method=pass_all 5474 ;; 5475 5476rdos*) 5477 lt_cv_deplibs_check_method=pass_all 5478 ;; 5479 5480solaris*) 5481 lt_cv_deplibs_check_method=pass_all 5482 ;; 5483 5484sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5485 lt_cv_deplibs_check_method=pass_all 5486 ;; 5487 5488sysv4 | sysv4.3*) 5489 case $host_vendor in 5490 motorola) 5491 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]' 5492 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5493 ;; 5494 ncr) 5495 lt_cv_deplibs_check_method=pass_all 5496 ;; 5497 sequent) 5498 lt_cv_file_magic_cmd='/bin/file' 5499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5500 ;; 5501 sni) 5502 lt_cv_file_magic_cmd='/bin/file' 5503 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5504 lt_cv_file_magic_test_file=/lib/libc.so 5505 ;; 5506 siemens) 5507 lt_cv_deplibs_check_method=pass_all 5508 ;; 5509 pc) 5510 lt_cv_deplibs_check_method=pass_all 5511 ;; 5512 esac 5513 ;; 5514 5515tpf*) 5516 lt_cv_deplibs_check_method=pass_all 5517 ;; 5518os2*) 5519 lt_cv_deplibs_check_method=pass_all 5520 ;; 5521esac 5522 5523fi 5524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5525$as_echo "$lt_cv_deplibs_check_method" >&6; } 5526 5527file_magic_glob= 5528want_nocaseglob=no 5529if test "$build" = "$host"; then 5530 case $host_os in 5531 mingw* | pw32*) 5532 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5533 want_nocaseglob=yes 5534 else 5535 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5536 fi 5537 ;; 5538 esac 5539fi 5540 5541file_magic_cmd=$lt_cv_file_magic_cmd 5542deplibs_check_method=$lt_cv_deplibs_check_method 5543test -z "$deplibs_check_method" && deplibs_check_method=unknown 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566if test -n "$ac_tool_prefix"; then 5567 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5568set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5570$as_echo_n "checking for $ac_word... " >&6; } 5571if ${ac_cv_prog_DLLTOOL+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 if test -n "$DLLTOOL"; then 5575 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5576else 5577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5578for as_dir in $PATH 5579do 5580 IFS=$as_save_IFS 5581 test -z "$as_dir" && as_dir=. 5582 for ac_exec_ext in '' $ac_executable_extensions; do 5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5584 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5586 break 2 5587 fi 5588done 5589 done 5590IFS=$as_save_IFS 5591 5592fi 5593fi 5594DLLTOOL=$ac_cv_prog_DLLTOOL 5595if test -n "$DLLTOOL"; then 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5597$as_echo "$DLLTOOL" >&6; } 5598else 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5600$as_echo "no" >&6; } 5601fi 5602 5603 5604fi 5605if test -z "$ac_cv_prog_DLLTOOL"; then 5606 ac_ct_DLLTOOL=$DLLTOOL 5607 # Extract the first word of "dlltool", so it can be a program name with args. 5608set dummy dlltool; ac_word=$2 5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5610$as_echo_n "checking for $ac_word... " >&6; } 5611if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5612 $as_echo_n "(cached) " >&6 5613else 5614 if test -n "$ac_ct_DLLTOOL"; then 5615 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5616else 5617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5618for as_dir in $PATH 5619do 5620 IFS=$as_save_IFS 5621 test -z "$as_dir" && as_dir=. 5622 for ac_exec_ext in '' $ac_executable_extensions; do 5623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5624 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5626 break 2 5627 fi 5628done 5629 done 5630IFS=$as_save_IFS 5631 5632fi 5633fi 5634ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5635if test -n "$ac_ct_DLLTOOL"; then 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5637$as_echo "$ac_ct_DLLTOOL" >&6; } 5638else 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5640$as_echo "no" >&6; } 5641fi 5642 5643 if test "x$ac_ct_DLLTOOL" = x; then 5644 DLLTOOL="false" 5645 else 5646 case $cross_compiling:$ac_tool_warned in 5647yes:) 5648{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5649$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5650ac_tool_warned=yes ;; 5651esac 5652 DLLTOOL=$ac_ct_DLLTOOL 5653 fi 5654else 5655 DLLTOOL="$ac_cv_prog_DLLTOOL" 5656fi 5657 5658test -z "$DLLTOOL" && DLLTOOL=dlltool 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5670$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5671if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5672 $as_echo_n "(cached) " >&6 5673else 5674 lt_cv_sharedlib_from_linklib_cmd='unknown' 5675 5676case $host_os in 5677cygwin* | mingw* | pw32* | cegcc*) 5678 # two different shell functions defined in ltmain.sh; 5679 # decide which one to use based on capabilities of $DLLTOOL 5680 case `$DLLTOOL --help 2>&1` in 5681 *--identify-strict*) 5682 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5683 ;; 5684 *) 5685 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5686 ;; 5687 esac 5688 ;; 5689*) 5690 # fallback: assume linklib IS sharedlib 5691 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5692 ;; 5693esac 5694 5695fi 5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5697$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5698sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5699test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5700 5701 5702 5703 5704 5705 5706 5707 5708if test -n "$ac_tool_prefix"; then 5709 for ac_prog in ar 5710 do 5711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5712set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5714$as_echo_n "checking for $ac_word... " >&6; } 5715if ${ac_cv_prog_AR+:} false; then : 5716 $as_echo_n "(cached) " >&6 5717else 5718 if test -n "$AR"; then 5719 ac_cv_prog_AR="$AR" # Let the user override the test. 5720else 5721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5722for as_dir in $PATH 5723do 5724 IFS=$as_save_IFS 5725 test -z "$as_dir" && as_dir=. 5726 for ac_exec_ext in '' $ac_executable_extensions; do 5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5728 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5730 break 2 5731 fi 5732done 5733 done 5734IFS=$as_save_IFS 5735 5736fi 5737fi 5738AR=$ac_cv_prog_AR 5739if test -n "$AR"; then 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5741$as_echo "$AR" >&6; } 5742else 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5744$as_echo "no" >&6; } 5745fi 5746 5747 5748 test -n "$AR" && break 5749 done 5750fi 5751if test -z "$AR"; then 5752 ac_ct_AR=$AR 5753 for ac_prog in ar 5754do 5755 # Extract the first word of "$ac_prog", so it can be a program name with args. 5756set dummy $ac_prog; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if ${ac_cv_prog_ac_ct_AR+:} false; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$ac_ct_AR"; then 5763 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5772 ac_cv_prog_ac_ct_AR="$ac_prog" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782ac_ct_AR=$ac_cv_prog_ac_ct_AR 5783if test -n "$ac_ct_AR"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5785$as_echo "$ac_ct_AR" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 5792 test -n "$ac_ct_AR" && break 5793done 5794 5795 if test "x$ac_ct_AR" = x; then 5796 AR="false" 5797 else 5798 case $cross_compiling:$ac_tool_warned in 5799yes:) 5800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5802ac_tool_warned=yes ;; 5803esac 5804 AR=$ac_ct_AR 5805 fi 5806fi 5807 5808: ${AR=ar} 5809: ${AR_FLAGS=cru} 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5822$as_echo_n "checking for archiver @FILE support... " >&6; } 5823if ${lt_cv_ar_at_file+:} false; then : 5824 $as_echo_n "(cached) " >&6 5825else 5826 lt_cv_ar_at_file=no 5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5828/* end confdefs.h. */ 5829 5830int 5831main () 5832{ 5833 5834 ; 5835 return 0; 5836} 5837_ACEOF 5838if ac_fn_c_try_compile "$LINENO"; then : 5839 echo conftest.$ac_objext > conftest.lst 5840 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5842 (eval $lt_ar_try) 2>&5 5843 ac_status=$? 5844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5845 test $ac_status = 0; } 5846 if test 0 -eq "$ac_status"; then 5847 # Ensure the archiver fails upon bogus file names. 5848 rm -f conftest.$ac_objext libconftest.a 5849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5850 (eval $lt_ar_try) 2>&5 5851 ac_status=$? 5852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5853 test $ac_status = 0; } 5854 if test 0 -ne "$ac_status"; then 5855 lt_cv_ar_at_file=@ 5856 fi 5857 fi 5858 rm -f conftest.* libconftest.a 5859 5860fi 5861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5862 5863fi 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5865$as_echo "$lt_cv_ar_at_file" >&6; } 5866 5867if test no = "$lt_cv_ar_at_file"; then 5868 archiver_list_spec= 5869else 5870 archiver_list_spec=$lt_cv_ar_at_file 5871fi 5872 5873 5874 5875 5876 5877 5878 5879if test -n "$ac_tool_prefix"; then 5880 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5881set dummy ${ac_tool_prefix}strip; ac_word=$2 5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5883$as_echo_n "checking for $ac_word... " >&6; } 5884if ${ac_cv_prog_STRIP+:} false; then : 5885 $as_echo_n "(cached) " >&6 5886else 5887 if test -n "$STRIP"; then 5888 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5889else 5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5891for as_dir in $PATH 5892do 5893 IFS=$as_save_IFS 5894 test -z "$as_dir" && as_dir=. 5895 for ac_exec_ext in '' $ac_executable_extensions; do 5896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5897 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5899 break 2 5900 fi 5901done 5902 done 5903IFS=$as_save_IFS 5904 5905fi 5906fi 5907STRIP=$ac_cv_prog_STRIP 5908if test -n "$STRIP"; then 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5910$as_echo "$STRIP" >&6; } 5911else 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5913$as_echo "no" >&6; } 5914fi 5915 5916 5917fi 5918if test -z "$ac_cv_prog_STRIP"; then 5919 ac_ct_STRIP=$STRIP 5920 # Extract the first word of "strip", so it can be a program name with args. 5921set dummy strip; ac_word=$2 5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5923$as_echo_n "checking for $ac_word... " >&6; } 5924if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5925 $as_echo_n "(cached) " >&6 5926else 5927 if test -n "$ac_ct_STRIP"; then 5928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5929else 5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5931for as_dir in $PATH 5932do 5933 IFS=$as_save_IFS 5934 test -z "$as_dir" && as_dir=. 5935 for ac_exec_ext in '' $ac_executable_extensions; do 5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5937 ac_cv_prog_ac_ct_STRIP="strip" 5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5939 break 2 5940 fi 5941done 5942 done 5943IFS=$as_save_IFS 5944 5945fi 5946fi 5947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5948if test -n "$ac_ct_STRIP"; then 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5950$as_echo "$ac_ct_STRIP" >&6; } 5951else 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5953$as_echo "no" >&6; } 5954fi 5955 5956 if test "x$ac_ct_STRIP" = x; then 5957 STRIP=":" 5958 else 5959 case $cross_compiling:$ac_tool_warned in 5960yes:) 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5963ac_tool_warned=yes ;; 5964esac 5965 STRIP=$ac_ct_STRIP 5966 fi 5967else 5968 STRIP="$ac_cv_prog_STRIP" 5969fi 5970 5971test -z "$STRIP" && STRIP=: 5972 5973 5974 5975 5976 5977 5978if test -n "$ac_tool_prefix"; then 5979 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5980set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5982$as_echo_n "checking for $ac_word... " >&6; } 5983if ${ac_cv_prog_RANLIB+:} false; then : 5984 $as_echo_n "(cached) " >&6 5985else 5986 if test -n "$RANLIB"; then 5987 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5988else 5989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5990for as_dir in $PATH 5991do 5992 IFS=$as_save_IFS 5993 test -z "$as_dir" && as_dir=. 5994 for ac_exec_ext in '' $ac_executable_extensions; do 5995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5996 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5998 break 2 5999 fi 6000done 6001 done 6002IFS=$as_save_IFS 6003 6004fi 6005fi 6006RANLIB=$ac_cv_prog_RANLIB 6007if test -n "$RANLIB"; then 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6009$as_echo "$RANLIB" >&6; } 6010else 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6012$as_echo "no" >&6; } 6013fi 6014 6015 6016fi 6017if test -z "$ac_cv_prog_RANLIB"; then 6018 ac_ct_RANLIB=$RANLIB 6019 # Extract the first word of "ranlib", so it can be a program name with args. 6020set dummy ranlib; ac_word=$2 6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6022$as_echo_n "checking for $ac_word... " >&6; } 6023if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6024 $as_echo_n "(cached) " >&6 6025else 6026 if test -n "$ac_ct_RANLIB"; then 6027 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6028else 6029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6030for as_dir in $PATH 6031do 6032 IFS=$as_save_IFS 6033 test -z "$as_dir" && as_dir=. 6034 for ac_exec_ext in '' $ac_executable_extensions; do 6035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6036 ac_cv_prog_ac_ct_RANLIB="ranlib" 6037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6038 break 2 6039 fi 6040done 6041 done 6042IFS=$as_save_IFS 6043 6044fi 6045fi 6046ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6047if test -n "$ac_ct_RANLIB"; then 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6049$as_echo "$ac_ct_RANLIB" >&6; } 6050else 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6052$as_echo "no" >&6; } 6053fi 6054 6055 if test "x$ac_ct_RANLIB" = x; then 6056 RANLIB=":" 6057 else 6058 case $cross_compiling:$ac_tool_warned in 6059yes:) 6060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6062ac_tool_warned=yes ;; 6063esac 6064 RANLIB=$ac_ct_RANLIB 6065 fi 6066else 6067 RANLIB="$ac_cv_prog_RANLIB" 6068fi 6069 6070test -z "$RANLIB" && RANLIB=: 6071 6072 6073 6074 6075 6076 6077# Determine commands to create old-style static archives. 6078old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6079old_postinstall_cmds='chmod 644 $oldlib' 6080old_postuninstall_cmds= 6081 6082if test -n "$RANLIB"; then 6083 case $host_os in 6084 bitrig* | openbsd*) 6085 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6086 ;; 6087 *) 6088 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6089 ;; 6090 esac 6091 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6092fi 6093 6094case $host_os in 6095 darwin*) 6096 lock_old_archive_extraction=yes ;; 6097 *) 6098 lock_old_archive_extraction=no ;; 6099esac 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139# If no C compiler was specified, use CC. 6140LTCC=${LTCC-"$CC"} 6141 6142# If no C compiler flags were specified, use CFLAGS. 6143LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6144 6145# Allow CC to be a program name with arguments. 6146compiler=$CC 6147 6148 6149# Check for command to grab the raw symbol name followed by C symbol from nm. 6150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6151$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6152if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6153 $as_echo_n "(cached) " >&6 6154else 6155 6156# These are sane defaults that work on at least a few old systems. 6157# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6158 6159# Character class describing NM global symbol codes. 6160symcode='[BCDEGRST]' 6161 6162# Regexp to match symbols that can be accessed directly from C. 6163sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6164 6165# Define system-specific variables. 6166case $host_os in 6167aix*) 6168 symcode='[BCDT]' 6169 ;; 6170cygwin* | mingw* | pw32* | cegcc*) 6171 symcode='[ABCDGISTW]' 6172 ;; 6173hpux*) 6174 if test ia64 = "$host_cpu"; then 6175 symcode='[ABCDEGRST]' 6176 fi 6177 ;; 6178irix* | nonstopux*) 6179 symcode='[BCDEGRST]' 6180 ;; 6181osf*) 6182 symcode='[BCDEGQRST]' 6183 ;; 6184solaris*) 6185 symcode='[BDRT]' 6186 ;; 6187sco3.2v5*) 6188 symcode='[DT]' 6189 ;; 6190sysv4.2uw2*) 6191 symcode='[DT]' 6192 ;; 6193sysv5* | sco5v6* | unixware* | OpenUNIX*) 6194 symcode='[ABDT]' 6195 ;; 6196sysv4) 6197 symcode='[DFNSTU]' 6198 ;; 6199esac 6200 6201# If we're using GNU nm, then use its standard symbol codes. 6202case `$NM -V 2>&1` in 6203*GNU* | *'with BFD'*) 6204 symcode='[ABCDGIRSTW]' ;; 6205esac 6206 6207if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6208 # Gets list of data symbols to import. 6209 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6210 # Adjust the below global symbol transforms to fixup imported variables. 6211 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6212 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6213 lt_c_name_lib_hook="\ 6214 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6215 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6216else 6217 # Disable hooks by default. 6218 lt_cv_sys_global_symbol_to_import= 6219 lt_cdecl_hook= 6220 lt_c_name_hook= 6221 lt_c_name_lib_hook= 6222fi 6223 6224# Transform an extracted symbol line into a proper C declaration. 6225# Some systems (esp. on ia64) link data and code symbols differently, 6226# so use this general approach. 6227lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6228$lt_cdecl_hook\ 6229" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6230" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6231 6232# Transform an extracted symbol line into symbol name and symbol address 6233lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6234$lt_c_name_hook\ 6235" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6236" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6237 6238# Transform an extracted symbol line into symbol name with lib prefix and 6239# symbol address. 6240lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6241$lt_c_name_lib_hook\ 6242" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6243" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6244" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6245 6246# Handle CRLF in mingw tool chain 6247opt_cr= 6248case $build_os in 6249mingw*) 6250 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6251 ;; 6252esac 6253 6254# Try without a prefix underscore, then with it. 6255for ac_symprfx in "" "_"; do 6256 6257 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6258 symxfrm="\\1 $ac_symprfx\\2 \\2" 6259 6260 # Write the raw and C identifiers. 6261 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6262 # Fake it for dumpbin and say T for any non-static function, 6263 # D for any global variable and I for any imported variable. 6264 # Also find C++ and __fastcall symbols from MSVC++, 6265 # which start with @ or ?. 6266 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6267" {last_section=section; section=\$ 3};"\ 6268" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6269" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6270" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6271" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6272" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6273" \$ 0!~/External *\|/{next};"\ 6274" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6275" {if(hide[section]) next};"\ 6276" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6277" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6278" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6279" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6280" ' prfx=^$ac_symprfx" 6281 else 6282 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6283 fi 6284 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6285 6286 # Check to see that the pipe works correctly. 6287 pipe_works=no 6288 6289 rm -f conftest* 6290 cat > conftest.$ac_ext <<_LT_EOF 6291#ifdef __cplusplus 6292extern "C" { 6293#endif 6294char nm_test_var; 6295void nm_test_func(void); 6296void nm_test_func(void){} 6297#ifdef __cplusplus 6298} 6299#endif 6300int main(){nm_test_var='a';nm_test_func();return(0);} 6301_LT_EOF 6302 6303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6304 (eval $ac_compile) 2>&5 6305 ac_status=$? 6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6307 test $ac_status = 0; }; then 6308 # Now try to grab the symbols. 6309 nlist=conftest.nm 6310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6311 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6312 ac_status=$? 6313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6314 test $ac_status = 0; } && test -s "$nlist"; then 6315 # Try sorting and uniquifying the output. 6316 if sort "$nlist" | uniq > "$nlist"T; then 6317 mv -f "$nlist"T "$nlist" 6318 else 6319 rm -f "$nlist"T 6320 fi 6321 6322 # Make sure that we snagged all the symbols we need. 6323 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6324 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6325 cat <<_LT_EOF > conftest.$ac_ext 6326/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6327#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6328/* DATA imports from DLLs on WIN32 can't be const, because runtime 6329 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6330# define LT_DLSYM_CONST 6331#elif defined __osf__ 6332/* This system does not cope well with relocations in const data. */ 6333# define LT_DLSYM_CONST 6334#else 6335# define LT_DLSYM_CONST const 6336#endif 6337 6338#ifdef __cplusplus 6339extern "C" { 6340#endif 6341 6342_LT_EOF 6343 # Now generate the symbol file. 6344 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6345 6346 cat <<_LT_EOF >> conftest.$ac_ext 6347 6348/* The mapping between symbol names and symbols. */ 6349LT_DLSYM_CONST struct { 6350 const char *name; 6351 void *address; 6352} 6353lt__PROGRAM__LTX_preloaded_symbols[] = 6354{ 6355 { "@PROGRAM@", (void *) 0 }, 6356_LT_EOF 6357 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6358 cat <<\_LT_EOF >> conftest.$ac_ext 6359 {0, (void *) 0} 6360}; 6361 6362/* This works around a problem in FreeBSD linker */ 6363#ifdef FREEBSD_WORKAROUND 6364static const void *lt_preloaded_setup() { 6365 return lt__PROGRAM__LTX_preloaded_symbols; 6366} 6367#endif 6368 6369#ifdef __cplusplus 6370} 6371#endif 6372_LT_EOF 6373 # Now try linking the two files. 6374 mv conftest.$ac_objext conftstm.$ac_objext 6375 lt_globsym_save_LIBS=$LIBS 6376 lt_globsym_save_CFLAGS=$CFLAGS 6377 LIBS=conftstm.$ac_objext 6378 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6380 (eval $ac_link) 2>&5 6381 ac_status=$? 6382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6383 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6384 pipe_works=yes 6385 fi 6386 LIBS=$lt_globsym_save_LIBS 6387 CFLAGS=$lt_globsym_save_CFLAGS 6388 else 6389 echo "cannot find nm_test_func in $nlist" >&5 6390 fi 6391 else 6392 echo "cannot find nm_test_var in $nlist" >&5 6393 fi 6394 else 6395 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6396 fi 6397 else 6398 echo "$progname: failed program was:" >&5 6399 cat conftest.$ac_ext >&5 6400 fi 6401 rm -rf conftest* conftst* 6402 6403 # Do not use the global_symbol_pipe unless it works. 6404 if test yes = "$pipe_works"; then 6405 break 6406 else 6407 lt_cv_sys_global_symbol_pipe= 6408 fi 6409done 6410 6411fi 6412 6413if test -z "$lt_cv_sys_global_symbol_pipe"; then 6414 lt_cv_sys_global_symbol_to_cdecl= 6415fi 6416if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6418$as_echo "failed" >&6; } 6419else 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6421$as_echo "ok" >&6; } 6422fi 6423 6424# Response file support. 6425if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6426 nm_file_list_spec='@' 6427elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6428 nm_file_list_spec='@' 6429fi 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6468$as_echo_n "checking for sysroot... " >&6; } 6469 6470# Check whether --with-sysroot was given. 6471if test "${with_sysroot+set}" = set; then : 6472 withval=$with_sysroot; 6473else 6474 with_sysroot=no 6475fi 6476 6477 6478lt_sysroot= 6479case $with_sysroot in #( 6480 yes) 6481 if test yes = "$GCC"; then 6482 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6483 fi 6484 ;; #( 6485 /*) 6486 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6487 ;; #( 6488 no|'') 6489 ;; #( 6490 *) 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6492$as_echo "$with_sysroot" >&6; } 6493 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6494 ;; 6495esac 6496 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6498$as_echo "${lt_sysroot:-no}" >&6; } 6499 6500 6501 6502 6503 6504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6505$as_echo_n "checking for a working dd... " >&6; } 6506if ${ac_cv_path_lt_DD+:} false; then : 6507 $as_echo_n "(cached) " >&6 6508else 6509 printf 0123456789abcdef0123456789abcdef >conftest.i 6510cat conftest.i conftest.i >conftest2.i 6511: ${lt_DD:=$DD} 6512if test -z "$lt_DD"; then 6513 ac_path_lt_DD_found=false 6514 # Loop through the user's path and test for each of PROGNAME-LIST 6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6516for as_dir in $PATH 6517do 6518 IFS=$as_save_IFS 6519 test -z "$as_dir" && as_dir=. 6520 for ac_prog in dd; do 6521 for ac_exec_ext in '' $ac_executable_extensions; do 6522 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6523 as_fn_executable_p "$ac_path_lt_DD" || continue 6524if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6525 cmp -s conftest.i conftest.out \ 6526 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6527fi 6528 $ac_path_lt_DD_found && break 3 6529 done 6530 done 6531 done 6532IFS=$as_save_IFS 6533 if test -z "$ac_cv_path_lt_DD"; then 6534 : 6535 fi 6536else 6537 ac_cv_path_lt_DD=$lt_DD 6538fi 6539 6540rm -f conftest.i conftest2.i conftest.out 6541fi 6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6543$as_echo "$ac_cv_path_lt_DD" >&6; } 6544 6545 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6547$as_echo_n "checking how to truncate binary pipes... " >&6; } 6548if ${lt_cv_truncate_bin+:} false; then : 6549 $as_echo_n "(cached) " >&6 6550else 6551 printf 0123456789abcdef0123456789abcdef >conftest.i 6552cat conftest.i conftest.i >conftest2.i 6553lt_cv_truncate_bin= 6554if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6555 cmp -s conftest.i conftest.out \ 6556 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6557fi 6558rm -f conftest.i conftest2.i conftest.out 6559test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6560fi 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6562$as_echo "$lt_cv_truncate_bin" >&6; } 6563 6564 6565 6566 6567 6568 6569 6570# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6571func_cc_basename () 6572{ 6573 for cc_temp in $*""; do 6574 case $cc_temp in 6575 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6576 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6577 \-*) ;; 6578 *) break;; 6579 esac 6580 done 6581 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6582} 6583 6584# Check whether --enable-libtool-lock was given. 6585if test "${enable_libtool_lock+set}" = set; then : 6586 enableval=$enable_libtool_lock; 6587fi 6588 6589test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6590 6591# Some flags need to be propagated to the compiler or linker for good 6592# libtool support. 6593case $host in 6594ia64-*-hpux*) 6595 # Find out what ABI is being produced by ac_compile, and set mode 6596 # options accordingly. 6597 echo 'int i;' > conftest.$ac_ext 6598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6599 (eval $ac_compile) 2>&5 6600 ac_status=$? 6601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6602 test $ac_status = 0; }; then 6603 case `/usr/bin/file conftest.$ac_objext` in 6604 *ELF-32*) 6605 HPUX_IA64_MODE=32 6606 ;; 6607 *ELF-64*) 6608 HPUX_IA64_MODE=64 6609 ;; 6610 esac 6611 fi 6612 rm -rf conftest* 6613 ;; 6614*-*-irix6*) 6615 # Find out what ABI is being produced by ac_compile, and set linker 6616 # options accordingly. 6617 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6619 (eval $ac_compile) 2>&5 6620 ac_status=$? 6621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6622 test $ac_status = 0; }; then 6623 if test yes = "$lt_cv_prog_gnu_ld"; then 6624 case `/usr/bin/file conftest.$ac_objext` in 6625 *32-bit*) 6626 LD="${LD-ld} -melf32bsmip" 6627 ;; 6628 *N32*) 6629 LD="${LD-ld} -melf32bmipn32" 6630 ;; 6631 *64-bit*) 6632 LD="${LD-ld} -melf64bmip" 6633 ;; 6634 esac 6635 else 6636 case `/usr/bin/file conftest.$ac_objext` in 6637 *32-bit*) 6638 LD="${LD-ld} -32" 6639 ;; 6640 *N32*) 6641 LD="${LD-ld} -n32" 6642 ;; 6643 *64-bit*) 6644 LD="${LD-ld} -64" 6645 ;; 6646 esac 6647 fi 6648 fi 6649 rm -rf conftest* 6650 ;; 6651 6652mips64*-*linux*) 6653 # Find out what ABI is being produced by ac_compile, and set linker 6654 # options accordingly. 6655 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6657 (eval $ac_compile) 2>&5 6658 ac_status=$? 6659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6660 test $ac_status = 0; }; then 6661 emul=elf 6662 case `/usr/bin/file conftest.$ac_objext` in 6663 *32-bit*) 6664 emul="${emul}32" 6665 ;; 6666 *64-bit*) 6667 emul="${emul}64" 6668 ;; 6669 esac 6670 case `/usr/bin/file conftest.$ac_objext` in 6671 *MSB*) 6672 emul="${emul}btsmip" 6673 ;; 6674 *LSB*) 6675 emul="${emul}ltsmip" 6676 ;; 6677 esac 6678 case `/usr/bin/file conftest.$ac_objext` in 6679 *N32*) 6680 emul="${emul}n32" 6681 ;; 6682 esac 6683 LD="${LD-ld} -m $emul" 6684 fi 6685 rm -rf conftest* 6686 ;; 6687 6688x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6689s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6690 # Find out what ABI is being produced by ac_compile, and set linker 6691 # options accordingly. Note that the listed cases only cover the 6692 # situations where additional linker options are needed (such as when 6693 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6694 # vice versa); the common cases where no linker options are needed do 6695 # not appear in the list. 6696 echo 'int i;' > conftest.$ac_ext 6697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6698 (eval $ac_compile) 2>&5 6699 ac_status=$? 6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6701 test $ac_status = 0; }; then 6702 case `/usr/bin/file conftest.o` in 6703 *32-bit*) 6704 case $host in 6705 x86_64-*kfreebsd*-gnu) 6706 LD="${LD-ld} -m elf_i386_fbsd" 6707 ;; 6708 x86_64-*linux*) 6709 case `/usr/bin/file conftest.o` in 6710 *x86-64*) 6711 LD="${LD-ld} -m elf32_x86_64" 6712 ;; 6713 *) 6714 LD="${LD-ld} -m elf_i386" 6715 ;; 6716 esac 6717 ;; 6718 powerpc64le-*linux*) 6719 LD="${LD-ld} -m elf32lppclinux" 6720 ;; 6721 powerpc64-*linux*) 6722 LD="${LD-ld} -m elf32ppclinux" 6723 ;; 6724 s390x-*linux*) 6725 LD="${LD-ld} -m elf_s390" 6726 ;; 6727 sparc64-*linux*) 6728 LD="${LD-ld} -m elf32_sparc" 6729 ;; 6730 esac 6731 ;; 6732 *64-bit*) 6733 case $host in 6734 x86_64-*kfreebsd*-gnu) 6735 LD="${LD-ld} -m elf_x86_64_fbsd" 6736 ;; 6737 x86_64-*linux*) 6738 LD="${LD-ld} -m elf_x86_64" 6739 ;; 6740 powerpcle-*linux*) 6741 LD="${LD-ld} -m elf64lppc" 6742 ;; 6743 powerpc-*linux*) 6744 LD="${LD-ld} -m elf64ppc" 6745 ;; 6746 s390*-*linux*|s390*-*tpf*) 6747 LD="${LD-ld} -m elf64_s390" 6748 ;; 6749 sparc*-*linux*) 6750 LD="${LD-ld} -m elf64_sparc" 6751 ;; 6752 esac 6753 ;; 6754 esac 6755 fi 6756 rm -rf conftest* 6757 ;; 6758 6759*-*-sco3.2v5*) 6760 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6761 SAVE_CFLAGS=$CFLAGS 6762 CFLAGS="$CFLAGS -belf" 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6764$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6765if ${lt_cv_cc_needs_belf+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 ac_ext=c 6769ac_cpp='$CPP $CPPFLAGS' 6770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6772ac_compiler_gnu=$ac_cv_c_compiler_gnu 6773 6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6775/* end confdefs.h. */ 6776 6777int 6778main () 6779{ 6780 6781 ; 6782 return 0; 6783} 6784_ACEOF 6785if ac_fn_c_try_link "$LINENO"; then : 6786 lt_cv_cc_needs_belf=yes 6787else 6788 lt_cv_cc_needs_belf=no 6789fi 6790rm -f core conftest.err conftest.$ac_objext \ 6791 conftest$ac_exeext conftest.$ac_ext 6792 ac_ext=c 6793ac_cpp='$CPP $CPPFLAGS' 6794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6796ac_compiler_gnu=$ac_cv_c_compiler_gnu 6797 6798fi 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6800$as_echo "$lt_cv_cc_needs_belf" >&6; } 6801 if test yes != "$lt_cv_cc_needs_belf"; then 6802 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6803 CFLAGS=$SAVE_CFLAGS 6804 fi 6805 ;; 6806*-*solaris*) 6807 # Find out what ABI is being produced by ac_compile, and set linker 6808 # options accordingly. 6809 echo 'int i;' > conftest.$ac_ext 6810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6811 (eval $ac_compile) 2>&5 6812 ac_status=$? 6813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6814 test $ac_status = 0; }; then 6815 case `/usr/bin/file conftest.o` in 6816 *64-bit*) 6817 case $lt_cv_prog_gnu_ld in 6818 yes*) 6819 case $host in 6820 i?86-*-solaris*|x86_64-*-solaris*) 6821 LD="${LD-ld} -m elf_x86_64" 6822 ;; 6823 sparc*-*-solaris*) 6824 LD="${LD-ld} -m elf64_sparc" 6825 ;; 6826 esac 6827 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6828 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6829 LD=${LD-ld}_sol2 6830 fi 6831 ;; 6832 *) 6833 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6834 LD="${LD-ld} -64" 6835 fi 6836 ;; 6837 esac 6838 ;; 6839 esac 6840 fi 6841 rm -rf conftest* 6842 ;; 6843esac 6844 6845need_locks=$enable_libtool_lock 6846 6847if test -n "$ac_tool_prefix"; then 6848 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6849set dummy ${ac_tool_prefix}mt; ac_word=$2 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6851$as_echo_n "checking for $ac_word... " >&6; } 6852if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6853 $as_echo_n "(cached) " >&6 6854else 6855 if test -n "$MANIFEST_TOOL"; then 6856 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6857else 6858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6859for as_dir in $PATH 6860do 6861 IFS=$as_save_IFS 6862 test -z "$as_dir" && as_dir=. 6863 for ac_exec_ext in '' $ac_executable_extensions; do 6864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6865 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6867 break 2 6868 fi 6869done 6870 done 6871IFS=$as_save_IFS 6872 6873fi 6874fi 6875MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6876if test -n "$MANIFEST_TOOL"; then 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6878$as_echo "$MANIFEST_TOOL" >&6; } 6879else 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6881$as_echo "no" >&6; } 6882fi 6883 6884 6885fi 6886if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6887 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6888 # Extract the first word of "mt", so it can be a program name with args. 6889set dummy mt; ac_word=$2 6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6891$as_echo_n "checking for $ac_word... " >&6; } 6892if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6893 $as_echo_n "(cached) " >&6 6894else 6895 if test -n "$ac_ct_MANIFEST_TOOL"; then 6896 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6897else 6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6899for as_dir in $PATH 6900do 6901 IFS=$as_save_IFS 6902 test -z "$as_dir" && as_dir=. 6903 for ac_exec_ext in '' $ac_executable_extensions; do 6904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6905 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6907 break 2 6908 fi 6909done 6910 done 6911IFS=$as_save_IFS 6912 6913fi 6914fi 6915ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6916if test -n "$ac_ct_MANIFEST_TOOL"; then 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6918$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6919else 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6921$as_echo "no" >&6; } 6922fi 6923 6924 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6925 MANIFEST_TOOL=":" 6926 else 6927 case $cross_compiling:$ac_tool_warned in 6928yes:) 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6931ac_tool_warned=yes ;; 6932esac 6933 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6934 fi 6935else 6936 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6937fi 6938 6939test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6941$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6942if ${lt_cv_path_mainfest_tool+:} false; then : 6943 $as_echo_n "(cached) " >&6 6944else 6945 lt_cv_path_mainfest_tool=no 6946 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6947 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6948 cat conftest.err >&5 6949 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6950 lt_cv_path_mainfest_tool=yes 6951 fi 6952 rm -f conftest* 6953fi 6954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6955$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6956if test yes != "$lt_cv_path_mainfest_tool"; then 6957 MANIFEST_TOOL=: 6958fi 6959 6960 6961 6962 6963 6964 6965 case $host_os in 6966 rhapsody* | darwin*) 6967 if test -n "$ac_tool_prefix"; then 6968 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6969set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6971$as_echo_n "checking for $ac_word... " >&6; } 6972if ${ac_cv_prog_DSYMUTIL+:} false; then : 6973 $as_echo_n "(cached) " >&6 6974else 6975 if test -n "$DSYMUTIL"; then 6976 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6977else 6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6979for as_dir in $PATH 6980do 6981 IFS=$as_save_IFS 6982 test -z "$as_dir" && as_dir=. 6983 for ac_exec_ext in '' $ac_executable_extensions; do 6984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6985 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6987 break 2 6988 fi 6989done 6990 done 6991IFS=$as_save_IFS 6992 6993fi 6994fi 6995DSYMUTIL=$ac_cv_prog_DSYMUTIL 6996if test -n "$DSYMUTIL"; then 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6998$as_echo "$DSYMUTIL" >&6; } 6999else 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7001$as_echo "no" >&6; } 7002fi 7003 7004 7005fi 7006if test -z "$ac_cv_prog_DSYMUTIL"; then 7007 ac_ct_DSYMUTIL=$DSYMUTIL 7008 # Extract the first word of "dsymutil", so it can be a program name with args. 7009set dummy dsymutil; ac_word=$2 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7011$as_echo_n "checking for $ac_word... " >&6; } 7012if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 if test -n "$ac_ct_DSYMUTIL"; then 7016 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7017else 7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7019for as_dir in $PATH 7020do 7021 IFS=$as_save_IFS 7022 test -z "$as_dir" && as_dir=. 7023 for ac_exec_ext in '' $ac_executable_extensions; do 7024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7025 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7027 break 2 7028 fi 7029done 7030 done 7031IFS=$as_save_IFS 7032 7033fi 7034fi 7035ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7036if test -n "$ac_ct_DSYMUTIL"; then 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7038$as_echo "$ac_ct_DSYMUTIL" >&6; } 7039else 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7041$as_echo "no" >&6; } 7042fi 7043 7044 if test "x$ac_ct_DSYMUTIL" = x; then 7045 DSYMUTIL=":" 7046 else 7047 case $cross_compiling:$ac_tool_warned in 7048yes:) 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7051ac_tool_warned=yes ;; 7052esac 7053 DSYMUTIL=$ac_ct_DSYMUTIL 7054 fi 7055else 7056 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7057fi 7058 7059 if test -n "$ac_tool_prefix"; then 7060 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7061set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7063$as_echo_n "checking for $ac_word... " >&6; } 7064if ${ac_cv_prog_NMEDIT+:} false; then : 7065 $as_echo_n "(cached) " >&6 7066else 7067 if test -n "$NMEDIT"; then 7068 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7069else 7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7071for as_dir in $PATH 7072do 7073 IFS=$as_save_IFS 7074 test -z "$as_dir" && as_dir=. 7075 for ac_exec_ext in '' $ac_executable_extensions; do 7076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7077 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7079 break 2 7080 fi 7081done 7082 done 7083IFS=$as_save_IFS 7084 7085fi 7086fi 7087NMEDIT=$ac_cv_prog_NMEDIT 7088if test -n "$NMEDIT"; then 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7090$as_echo "$NMEDIT" >&6; } 7091else 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7093$as_echo "no" >&6; } 7094fi 7095 7096 7097fi 7098if test -z "$ac_cv_prog_NMEDIT"; then 7099 ac_ct_NMEDIT=$NMEDIT 7100 # Extract the first word of "nmedit", so it can be a program name with args. 7101set dummy nmedit; ac_word=$2 7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7103$as_echo_n "checking for $ac_word... " >&6; } 7104if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7105 $as_echo_n "(cached) " >&6 7106else 7107 if test -n "$ac_ct_NMEDIT"; then 7108 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7109else 7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7111for as_dir in $PATH 7112do 7113 IFS=$as_save_IFS 7114 test -z "$as_dir" && as_dir=. 7115 for ac_exec_ext in '' $ac_executable_extensions; do 7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7117 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7119 break 2 7120 fi 7121done 7122 done 7123IFS=$as_save_IFS 7124 7125fi 7126fi 7127ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7128if test -n "$ac_ct_NMEDIT"; then 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7130$as_echo "$ac_ct_NMEDIT" >&6; } 7131else 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7133$as_echo "no" >&6; } 7134fi 7135 7136 if test "x$ac_ct_NMEDIT" = x; then 7137 NMEDIT=":" 7138 else 7139 case $cross_compiling:$ac_tool_warned in 7140yes:) 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7143ac_tool_warned=yes ;; 7144esac 7145 NMEDIT=$ac_ct_NMEDIT 7146 fi 7147else 7148 NMEDIT="$ac_cv_prog_NMEDIT" 7149fi 7150 7151 if test -n "$ac_tool_prefix"; then 7152 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7153set dummy ${ac_tool_prefix}lipo; ac_word=$2 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7155$as_echo_n "checking for $ac_word... " >&6; } 7156if ${ac_cv_prog_LIPO+:} false; then : 7157 $as_echo_n "(cached) " >&6 7158else 7159 if test -n "$LIPO"; then 7160 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7161else 7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7163for as_dir in $PATH 7164do 7165 IFS=$as_save_IFS 7166 test -z "$as_dir" && as_dir=. 7167 for ac_exec_ext in '' $ac_executable_extensions; do 7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7169 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7171 break 2 7172 fi 7173done 7174 done 7175IFS=$as_save_IFS 7176 7177fi 7178fi 7179LIPO=$ac_cv_prog_LIPO 7180if test -n "$LIPO"; then 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7182$as_echo "$LIPO" >&6; } 7183else 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7185$as_echo "no" >&6; } 7186fi 7187 7188 7189fi 7190if test -z "$ac_cv_prog_LIPO"; then 7191 ac_ct_LIPO=$LIPO 7192 # Extract the first word of "lipo", so it can be a program name with args. 7193set dummy lipo; ac_word=$2 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7195$as_echo_n "checking for $ac_word... " >&6; } 7196if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7197 $as_echo_n "(cached) " >&6 7198else 7199 if test -n "$ac_ct_LIPO"; then 7200 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7201else 7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7203for as_dir in $PATH 7204do 7205 IFS=$as_save_IFS 7206 test -z "$as_dir" && as_dir=. 7207 for ac_exec_ext in '' $ac_executable_extensions; do 7208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7209 ac_cv_prog_ac_ct_LIPO="lipo" 7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7211 break 2 7212 fi 7213done 7214 done 7215IFS=$as_save_IFS 7216 7217fi 7218fi 7219ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7220if test -n "$ac_ct_LIPO"; then 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7222$as_echo "$ac_ct_LIPO" >&6; } 7223else 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7225$as_echo "no" >&6; } 7226fi 7227 7228 if test "x$ac_ct_LIPO" = x; then 7229 LIPO=":" 7230 else 7231 case $cross_compiling:$ac_tool_warned in 7232yes:) 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7235ac_tool_warned=yes ;; 7236esac 7237 LIPO=$ac_ct_LIPO 7238 fi 7239else 7240 LIPO="$ac_cv_prog_LIPO" 7241fi 7242 7243 if test -n "$ac_tool_prefix"; then 7244 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7245set dummy ${ac_tool_prefix}otool; ac_word=$2 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7247$as_echo_n "checking for $ac_word... " >&6; } 7248if ${ac_cv_prog_OTOOL+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 if test -n "$OTOOL"; then 7252 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7253else 7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7255for as_dir in $PATH 7256do 7257 IFS=$as_save_IFS 7258 test -z "$as_dir" && as_dir=. 7259 for ac_exec_ext in '' $ac_executable_extensions; do 7260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7261 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7263 break 2 7264 fi 7265done 7266 done 7267IFS=$as_save_IFS 7268 7269fi 7270fi 7271OTOOL=$ac_cv_prog_OTOOL 7272if test -n "$OTOOL"; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7274$as_echo "$OTOOL" >&6; } 7275else 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7277$as_echo "no" >&6; } 7278fi 7279 7280 7281fi 7282if test -z "$ac_cv_prog_OTOOL"; then 7283 ac_ct_OTOOL=$OTOOL 7284 # Extract the first word of "otool", so it can be a program name with args. 7285set dummy otool; ac_word=$2 7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7287$as_echo_n "checking for $ac_word... " >&6; } 7288if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290else 7291 if test -n "$ac_ct_OTOOL"; then 7292 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7293else 7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7295for as_dir in $PATH 7296do 7297 IFS=$as_save_IFS 7298 test -z "$as_dir" && as_dir=. 7299 for ac_exec_ext in '' $ac_executable_extensions; do 7300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7301 ac_cv_prog_ac_ct_OTOOL="otool" 7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7303 break 2 7304 fi 7305done 7306 done 7307IFS=$as_save_IFS 7308 7309fi 7310fi 7311ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7312if test -n "$ac_ct_OTOOL"; then 7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7314$as_echo "$ac_ct_OTOOL" >&6; } 7315else 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7317$as_echo "no" >&6; } 7318fi 7319 7320 if test "x$ac_ct_OTOOL" = x; then 7321 OTOOL=":" 7322 else 7323 case $cross_compiling:$ac_tool_warned in 7324yes:) 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7327ac_tool_warned=yes ;; 7328esac 7329 OTOOL=$ac_ct_OTOOL 7330 fi 7331else 7332 OTOOL="$ac_cv_prog_OTOOL" 7333fi 7334 7335 if test -n "$ac_tool_prefix"; then 7336 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7337set dummy ${ac_tool_prefix}otool64; ac_word=$2 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7339$as_echo_n "checking for $ac_word... " >&6; } 7340if ${ac_cv_prog_OTOOL64+:} false; then : 7341 $as_echo_n "(cached) " >&6 7342else 7343 if test -n "$OTOOL64"; then 7344 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7345else 7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7347for as_dir in $PATH 7348do 7349 IFS=$as_save_IFS 7350 test -z "$as_dir" && as_dir=. 7351 for ac_exec_ext in '' $ac_executable_extensions; do 7352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7353 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7355 break 2 7356 fi 7357done 7358 done 7359IFS=$as_save_IFS 7360 7361fi 7362fi 7363OTOOL64=$ac_cv_prog_OTOOL64 7364if test -n "$OTOOL64"; then 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7366$as_echo "$OTOOL64" >&6; } 7367else 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7369$as_echo "no" >&6; } 7370fi 7371 7372 7373fi 7374if test -z "$ac_cv_prog_OTOOL64"; then 7375 ac_ct_OTOOL64=$OTOOL64 7376 # Extract the first word of "otool64", so it can be a program name with args. 7377set dummy otool64; ac_word=$2 7378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7379$as_echo_n "checking for $ac_word... " >&6; } 7380if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7381 $as_echo_n "(cached) " >&6 7382else 7383 if test -n "$ac_ct_OTOOL64"; then 7384 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7385else 7386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7387for as_dir in $PATH 7388do 7389 IFS=$as_save_IFS 7390 test -z "$as_dir" && as_dir=. 7391 for ac_exec_ext in '' $ac_executable_extensions; do 7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7393 ac_cv_prog_ac_ct_OTOOL64="otool64" 7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7395 break 2 7396 fi 7397done 7398 done 7399IFS=$as_save_IFS 7400 7401fi 7402fi 7403ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7404if test -n "$ac_ct_OTOOL64"; then 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7406$as_echo "$ac_ct_OTOOL64" >&6; } 7407else 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7409$as_echo "no" >&6; } 7410fi 7411 7412 if test "x$ac_ct_OTOOL64" = x; then 7413 OTOOL64=":" 7414 else 7415 case $cross_compiling:$ac_tool_warned in 7416yes:) 7417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7419ac_tool_warned=yes ;; 7420esac 7421 OTOOL64=$ac_ct_OTOOL64 7422 fi 7423else 7424 OTOOL64="$ac_cv_prog_OTOOL64" 7425fi 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7454$as_echo_n "checking for -single_module linker flag... " >&6; } 7455if ${lt_cv_apple_cc_single_mod+:} false; then : 7456 $as_echo_n "(cached) " >&6 7457else 7458 lt_cv_apple_cc_single_mod=no 7459 if test -z "$LT_MULTI_MODULE"; then 7460 # By default we will add the -single_module flag. You can override 7461 # by either setting the environment variable LT_MULTI_MODULE 7462 # non-empty at configure time, or by adding -multi_module to the 7463 # link flags. 7464 rm -rf libconftest.dylib* 7465 echo "int foo(void){return 1;}" > conftest.c 7466 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7467-dynamiclib -Wl,-single_module conftest.c" >&5 7468 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7469 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7470 _lt_result=$? 7471 # If there is a non-empty error log, and "single_module" 7472 # appears in it, assume the flag caused a linker warning 7473 if test -s conftest.err && $GREP single_module conftest.err; then 7474 cat conftest.err >&5 7475 # Otherwise, if the output was created with a 0 exit code from 7476 # the compiler, it worked. 7477 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7478 lt_cv_apple_cc_single_mod=yes 7479 else 7480 cat conftest.err >&5 7481 fi 7482 rm -rf libconftest.dylib* 7483 rm -f conftest.* 7484 fi 7485fi 7486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7487$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7488 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7490$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7491if ${lt_cv_ld_exported_symbols_list+:} false; then : 7492 $as_echo_n "(cached) " >&6 7493else 7494 lt_cv_ld_exported_symbols_list=no 7495 save_LDFLAGS=$LDFLAGS 7496 echo "_main" > conftest.sym 7497 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7499/* end confdefs.h. */ 7500 7501int 7502main () 7503{ 7504 7505 ; 7506 return 0; 7507} 7508_ACEOF 7509if ac_fn_c_try_link "$LINENO"; then : 7510 lt_cv_ld_exported_symbols_list=yes 7511else 7512 lt_cv_ld_exported_symbols_list=no 7513fi 7514rm -f core conftest.err conftest.$ac_objext \ 7515 conftest$ac_exeext conftest.$ac_ext 7516 LDFLAGS=$save_LDFLAGS 7517 7518fi 7519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7520$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7521 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7523$as_echo_n "checking for -force_load linker flag... " >&6; } 7524if ${lt_cv_ld_force_load+:} false; then : 7525 $as_echo_n "(cached) " >&6 7526else 7527 lt_cv_ld_force_load=no 7528 cat > conftest.c << _LT_EOF 7529int forced_loaded() { return 2;} 7530_LT_EOF 7531 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7532 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7533 echo "$AR cru libconftest.a conftest.o" >&5 7534 $AR cru libconftest.a conftest.o 2>&5 7535 echo "$RANLIB libconftest.a" >&5 7536 $RANLIB libconftest.a 2>&5 7537 cat > conftest.c << _LT_EOF 7538int main() { return 0;} 7539_LT_EOF 7540 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7541 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7542 _lt_result=$? 7543 if test -s conftest.err && $GREP force_load conftest.err; then 7544 cat conftest.err >&5 7545 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7546 lt_cv_ld_force_load=yes 7547 else 7548 cat conftest.err >&5 7549 fi 7550 rm -f conftest.err libconftest.a conftest conftest.c 7551 rm -rf conftest.dSYM 7552 7553fi 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7555$as_echo "$lt_cv_ld_force_load" >&6; } 7556 case $host_os in 7557 rhapsody* | darwin1.[012]) 7558 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7559 darwin1.*) 7560 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7561 darwin*) # darwin 5.x on 7562 # if running on 10.5 or later, the deployment target defaults 7563 # to the OS version, if on x86, and 10.4, the deployment 7564 # target defaults to 10.4. Don't you love it? 7565 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7566 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7567 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7568 10.[012][,.]*) 7569 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7570 10.*) 7571 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7572 esac 7573 ;; 7574 esac 7575 if test yes = "$lt_cv_apple_cc_single_mod"; then 7576 _lt_dar_single_mod='$single_module' 7577 fi 7578 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7579 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7580 else 7581 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7582 fi 7583 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7584 _lt_dsymutil='~$DSYMUTIL $lib || :' 7585 else 7586 _lt_dsymutil= 7587 fi 7588 ;; 7589 esac 7590 7591# func_munge_path_list VARIABLE PATH 7592# ----------------------------------- 7593# VARIABLE is name of variable containing _space_ separated list of 7594# directories to be munged by the contents of PATH, which is string 7595# having a format: 7596# "DIR[:DIR]:" 7597# string "DIR[ DIR]" will be prepended to VARIABLE 7598# ":DIR[:DIR]" 7599# string "DIR[ DIR]" will be appended to VARIABLE 7600# "DIRP[:DIRP]::[DIRA:]DIRA" 7601# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7602# "DIRA[ DIRA]" will be appended to VARIABLE 7603# "DIR[:DIR]" 7604# VARIABLE will be replaced by "DIR[ DIR]" 7605func_munge_path_list () 7606{ 7607 case x$2 in 7608 x) 7609 ;; 7610 *:) 7611 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7612 ;; 7613 x:*) 7614 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7615 ;; 7616 *::*) 7617 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7618 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7619 ;; 7620 *) 7621 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7622 ;; 7623 esac 7624} 7625 7626ac_ext=c 7627ac_cpp='$CPP $CPPFLAGS' 7628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7630ac_compiler_gnu=$ac_cv_c_compiler_gnu 7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7632$as_echo_n "checking how to run the C preprocessor... " >&6; } 7633# On Suns, sometimes $CPP names a directory. 7634if test -n "$CPP" && test -d "$CPP"; then 7635 CPP= 7636fi 7637if test -z "$CPP"; then 7638 if ${ac_cv_prog_CPP+:} false; then : 7639 $as_echo_n "(cached) " >&6 7640else 7641 # Double quotes because CPP needs to be expanded 7642 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7643 do 7644 ac_preproc_ok=false 7645for ac_c_preproc_warn_flag in '' yes 7646do 7647 # Use a header file that comes with gcc, so configuring glibc 7648 # with a fresh cross-compiler works. 7649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7650 # <limits.h> exists even on freestanding compilers. 7651 # On the NeXT, cc -E runs the code through the compiler's parser, 7652 # not just through cpp. "Syntax error" is here to catch this case. 7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7654/* end confdefs.h. */ 7655#ifdef __STDC__ 7656# include <limits.h> 7657#else 7658# include <assert.h> 7659#endif 7660 Syntax error 7661_ACEOF 7662if ac_fn_c_try_cpp "$LINENO"; then : 7663 7664else 7665 # Broken: fails on valid input. 7666continue 7667fi 7668rm -f conftest.err conftest.i conftest.$ac_ext 7669 7670 # OK, works on sane cases. Now check whether nonexistent headers 7671 # can be detected and how. 7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7673/* end confdefs.h. */ 7674#include <ac_nonexistent.h> 7675_ACEOF 7676if ac_fn_c_try_cpp "$LINENO"; then : 7677 # Broken: success on invalid input. 7678continue 7679else 7680 # Passes both tests. 7681ac_preproc_ok=: 7682break 7683fi 7684rm -f conftest.err conftest.i conftest.$ac_ext 7685 7686done 7687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7688rm -f conftest.i conftest.err conftest.$ac_ext 7689if $ac_preproc_ok; then : 7690 break 7691fi 7692 7693 done 7694 ac_cv_prog_CPP=$CPP 7695 7696fi 7697 CPP=$ac_cv_prog_CPP 7698else 7699 ac_cv_prog_CPP=$CPP 7700fi 7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7702$as_echo "$CPP" >&6; } 7703ac_preproc_ok=false 7704for ac_c_preproc_warn_flag in '' yes 7705do 7706 # Use a header file that comes with gcc, so configuring glibc 7707 # with a fresh cross-compiler works. 7708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7709 # <limits.h> exists even on freestanding compilers. 7710 # On the NeXT, cc -E runs the code through the compiler's parser, 7711 # not just through cpp. "Syntax error" is here to catch this case. 7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7713/* end confdefs.h. */ 7714#ifdef __STDC__ 7715# include <limits.h> 7716#else 7717# include <assert.h> 7718#endif 7719 Syntax error 7720_ACEOF 7721if ac_fn_c_try_cpp "$LINENO"; then : 7722 7723else 7724 # Broken: fails on valid input. 7725continue 7726fi 7727rm -f conftest.err conftest.i conftest.$ac_ext 7728 7729 # OK, works on sane cases. Now check whether nonexistent headers 7730 # can be detected and how. 7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7732/* end confdefs.h. */ 7733#include <ac_nonexistent.h> 7734_ACEOF 7735if ac_fn_c_try_cpp "$LINENO"; then : 7736 # Broken: success on invalid input. 7737continue 7738else 7739 # Passes both tests. 7740ac_preproc_ok=: 7741break 7742fi 7743rm -f conftest.err conftest.i conftest.$ac_ext 7744 7745done 7746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7747rm -f conftest.i conftest.err conftest.$ac_ext 7748if $ac_preproc_ok; then : 7749 7750else 7751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7753as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7754See \`config.log' for more details" "$LINENO" 5; } 7755fi 7756 7757ac_ext=c 7758ac_cpp='$CPP $CPPFLAGS' 7759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7761ac_compiler_gnu=$ac_cv_c_compiler_gnu 7762 7763 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7765$as_echo_n "checking for ANSI C header files... " >&6; } 7766if ${ac_cv_header_stdc+:} false; then : 7767 $as_echo_n "(cached) " >&6 7768else 7769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7770/* end confdefs.h. */ 7771#include <stdlib.h> 7772#include <stdarg.h> 7773#include <string.h> 7774#include <float.h> 7775 7776int 7777main () 7778{ 7779 7780 ; 7781 return 0; 7782} 7783_ACEOF 7784if ac_fn_c_try_compile "$LINENO"; then : 7785 ac_cv_header_stdc=yes 7786else 7787 ac_cv_header_stdc=no 7788fi 7789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7790 7791if test $ac_cv_header_stdc = yes; then 7792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7794/* end confdefs.h. */ 7795#include <string.h> 7796 7797_ACEOF 7798if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7799 $EGREP "memchr" >/dev/null 2>&1; then : 7800 7801else 7802 ac_cv_header_stdc=no 7803fi 7804rm -f conftest* 7805 7806fi 7807 7808if test $ac_cv_header_stdc = yes; then 7809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811/* end confdefs.h. */ 7812#include <stdlib.h> 7813 7814_ACEOF 7815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7816 $EGREP "free" >/dev/null 2>&1; then : 7817 7818else 7819 ac_cv_header_stdc=no 7820fi 7821rm -f conftest* 7822 7823fi 7824 7825if test $ac_cv_header_stdc = yes; then 7826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7827 if test "$cross_compiling" = yes; then : 7828 : 7829else 7830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7831/* end confdefs.h. */ 7832#include <ctype.h> 7833#include <stdlib.h> 7834#if ((' ' & 0x0FF) == 0x020) 7835# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7836# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7837#else 7838# define ISLOWER(c) \ 7839 (('a' <= (c) && (c) <= 'i') \ 7840 || ('j' <= (c) && (c) <= 'r') \ 7841 || ('s' <= (c) && (c) <= 'z')) 7842# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7843#endif 7844 7845#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7846int 7847main () 7848{ 7849 int i; 7850 for (i = 0; i < 256; i++) 7851 if (XOR (islower (i), ISLOWER (i)) 7852 || toupper (i) != TOUPPER (i)) 7853 return 2; 7854 return 0; 7855} 7856_ACEOF 7857if ac_fn_c_try_run "$LINENO"; then : 7858 7859else 7860 ac_cv_header_stdc=no 7861fi 7862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7863 conftest.$ac_objext conftest.beam conftest.$ac_ext 7864fi 7865 7866fi 7867fi 7868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7869$as_echo "$ac_cv_header_stdc" >&6; } 7870if test $ac_cv_header_stdc = yes; then 7871 7872$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7873 7874fi 7875 7876# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7877for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7878 inttypes.h stdint.h unistd.h 7879do : 7880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7881ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7882" 7883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7884 cat >>confdefs.h <<_ACEOF 7885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7886_ACEOF 7887 7888fi 7889 7890done 7891 7892 7893for ac_header in dlfcn.h 7894do : 7895 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7896" 7897if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7898 cat >>confdefs.h <<_ACEOF 7899#define HAVE_DLFCN_H 1 7900_ACEOF 7901 7902fi 7903 7904done 7905 7906 7907 7908 7909 7910# Set options 7911 7912 7913 7914 enable_dlopen=no 7915 7916 7917 enable_win32_dll=no 7918 7919 7920 7921 # Check whether --enable-static was given. 7922if test "${enable_static+set}" = set; then : 7923 enableval=$enable_static; p=${PACKAGE-default} 7924 case $enableval in 7925 yes) enable_static=yes ;; 7926 no) enable_static=no ;; 7927 *) 7928 enable_static=no 7929 # Look at the argument we got. We use all the common list separators. 7930 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7931 for pkg in $enableval; do 7932 IFS=$lt_save_ifs 7933 if test "X$pkg" = "X$p"; then 7934 enable_static=yes 7935 fi 7936 done 7937 IFS=$lt_save_ifs 7938 ;; 7939 esac 7940else 7941 enable_static=yes 7942fi 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953# Check whether --with-pic was given. 7954if test "${with_pic+set}" = set; then : 7955 withval=$with_pic; lt_p=${PACKAGE-default} 7956 case $withval in 7957 yes|no) pic_mode=$withval ;; 7958 *) 7959 pic_mode=default 7960 # Look at the argument we got. We use all the common list separators. 7961 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7962 for lt_pkg in $withval; do 7963 IFS=$lt_save_ifs 7964 if test "X$lt_pkg" = "X$lt_p"; then 7965 pic_mode=yes 7966 fi 7967 done 7968 IFS=$lt_save_ifs 7969 ;; 7970 esac 7971else 7972 pic_mode=default 7973fi 7974 7975 7976 7977 7978 7979 7980 7981 7982 # Check whether --enable-fast-install was given. 7983if test "${enable_fast_install+set}" = set; then : 7984 enableval=$enable_fast_install; p=${PACKAGE-default} 7985 case $enableval in 7986 yes) enable_fast_install=yes ;; 7987 no) enable_fast_install=no ;; 7988 *) 7989 enable_fast_install=no 7990 # Look at the argument we got. We use all the common list separators. 7991 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7992 for pkg in $enableval; do 7993 IFS=$lt_save_ifs 7994 if test "X$pkg" = "X$p"; then 7995 enable_fast_install=yes 7996 fi 7997 done 7998 IFS=$lt_save_ifs 7999 ;; 8000 esac 8001else 8002 enable_fast_install=yes 8003fi 8004 8005 8006 8007 8008 8009 8010 8011 8012 shared_archive_member_spec= 8013case $host,$enable_shared in 8014power*-*-aix[5-9]*,yes) 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8016$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8017 8018# Check whether --with-aix-soname was given. 8019if test "${with_aix_soname+set}" = set; then : 8020 withval=$with_aix_soname; case $withval in 8021 aix|svr4|both) 8022 ;; 8023 *) 8024 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8025 ;; 8026 esac 8027 lt_cv_with_aix_soname=$with_aix_soname 8028else 8029 if ${lt_cv_with_aix_soname+:} false; then : 8030 $as_echo_n "(cached) " >&6 8031else 8032 lt_cv_with_aix_soname=aix 8033fi 8034 8035 with_aix_soname=$lt_cv_with_aix_soname 8036fi 8037 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8039$as_echo "$with_aix_soname" >&6; } 8040 if test aix != "$with_aix_soname"; then 8041 # For the AIX way of multilib, we name the shared archive member 8042 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8043 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8044 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8045 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8046 if test 64 = "${OBJECT_MODE-32}"; then 8047 shared_archive_member_spec=shr_64 8048 else 8049 shared_archive_member_spec=shr 8050 fi 8051 fi 8052 ;; 8053*) 8054 with_aix_soname=aix 8055 ;; 8056esac 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067# This can be used to rebuild libtool when needed 8068LIBTOOL_DEPS=$ltmain 8069 8070# Always use our own libtool. 8071LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102test -z "$LN_S" && LN_S="ln -s" 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117if test -n "${ZSH_VERSION+set}"; then 8118 setopt NO_GLOB_SUBST 8119fi 8120 8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8122$as_echo_n "checking for objdir... " >&6; } 8123if ${lt_cv_objdir+:} false; then : 8124 $as_echo_n "(cached) " >&6 8125else 8126 rm -f .libs 2>/dev/null 8127mkdir .libs 2>/dev/null 8128if test -d .libs; then 8129 lt_cv_objdir=.libs 8130else 8131 # MS-DOS does not allow filenames that begin with a dot. 8132 lt_cv_objdir=_libs 8133fi 8134rmdir .libs 2>/dev/null 8135fi 8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8137$as_echo "$lt_cv_objdir" >&6; } 8138objdir=$lt_cv_objdir 8139 8140 8141 8142 8143 8144cat >>confdefs.h <<_ACEOF 8145#define LT_OBJDIR "$lt_cv_objdir/" 8146_ACEOF 8147 8148 8149 8150 8151case $host_os in 8152aix3*) 8153 # AIX sometimes has problems with the GCC collect2 program. For some 8154 # reason, if we set the COLLECT_NAMES environment variable, the problems 8155 # vanish in a puff of smoke. 8156 if test set != "${COLLECT_NAMES+set}"; then 8157 COLLECT_NAMES= 8158 export COLLECT_NAMES 8159 fi 8160 ;; 8161esac 8162 8163# Global variables: 8164ofile=libtool 8165can_build_shared=yes 8166 8167# All known linkers require a '.a' archive for static linking (except MSVC, 8168# which needs '.lib'). 8169libext=a 8170 8171with_gnu_ld=$lt_cv_prog_gnu_ld 8172 8173old_CC=$CC 8174old_CFLAGS=$CFLAGS 8175 8176# Set sane defaults for various variables 8177test -z "$CC" && CC=cc 8178test -z "$LTCC" && LTCC=$CC 8179test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8180test -z "$LD" && LD=ld 8181test -z "$ac_objext" && ac_objext=o 8182 8183func_cc_basename $compiler 8184cc_basename=$func_cc_basename_result 8185 8186 8187# Only perform the check for file, if the check method requires it 8188test -z "$MAGIC_CMD" && MAGIC_CMD=file 8189case $deplibs_check_method in 8190file_magic*) 8191 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8193$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8194if ${lt_cv_path_MAGIC_CMD+:} false; then : 8195 $as_echo_n "(cached) " >&6 8196else 8197 case $MAGIC_CMD in 8198[\\/*] | ?:[\\/]*) 8199 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8200 ;; 8201*) 8202 lt_save_MAGIC_CMD=$MAGIC_CMD 8203 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8204 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8205 for ac_dir in $ac_dummy; do 8206 IFS=$lt_save_ifs 8207 test -z "$ac_dir" && ac_dir=. 8208 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8209 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8210 if test -n "$file_magic_test_file"; then 8211 case $deplibs_check_method in 8212 "file_magic "*) 8213 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8214 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8215 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8216 $EGREP "$file_magic_regex" > /dev/null; then 8217 : 8218 else 8219 cat <<_LT_EOF 1>&2 8220 8221*** Warning: the command libtool uses to detect shared libraries, 8222*** $file_magic_cmd, produces output that libtool cannot recognize. 8223*** The result is that libtool may fail to recognize shared libraries 8224*** as such. This will affect the creation of libtool libraries that 8225*** depend on shared libraries, but programs linked with such libtool 8226*** libraries will work regardless of this problem. Nevertheless, you 8227*** may want to report the problem to your system manager and/or to 8228*** bug-libtool@gnu.org 8229 8230_LT_EOF 8231 fi ;; 8232 esac 8233 fi 8234 break 8235 fi 8236 done 8237 IFS=$lt_save_ifs 8238 MAGIC_CMD=$lt_save_MAGIC_CMD 8239 ;; 8240esac 8241fi 8242 8243MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8244if test -n "$MAGIC_CMD"; then 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8246$as_echo "$MAGIC_CMD" >&6; } 8247else 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8249$as_echo "no" >&6; } 8250fi 8251 8252 8253 8254 8255 8256if test -z "$lt_cv_path_MAGIC_CMD"; then 8257 if test -n "$ac_tool_prefix"; then 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8259$as_echo_n "checking for file... " >&6; } 8260if ${lt_cv_path_MAGIC_CMD+:} false; then : 8261 $as_echo_n "(cached) " >&6 8262else 8263 case $MAGIC_CMD in 8264[\\/*] | ?:[\\/]*) 8265 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8266 ;; 8267*) 8268 lt_save_MAGIC_CMD=$MAGIC_CMD 8269 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8270 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8271 for ac_dir in $ac_dummy; do 8272 IFS=$lt_save_ifs 8273 test -z "$ac_dir" && ac_dir=. 8274 if test -f "$ac_dir/file"; then 8275 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8276 if test -n "$file_magic_test_file"; then 8277 case $deplibs_check_method in 8278 "file_magic "*) 8279 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8280 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8281 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8282 $EGREP "$file_magic_regex" > /dev/null; then 8283 : 8284 else 8285 cat <<_LT_EOF 1>&2 8286 8287*** Warning: the command libtool uses to detect shared libraries, 8288*** $file_magic_cmd, produces output that libtool cannot recognize. 8289*** The result is that libtool may fail to recognize shared libraries 8290*** as such. This will affect the creation of libtool libraries that 8291*** depend on shared libraries, but programs linked with such libtool 8292*** libraries will work regardless of this problem. Nevertheless, you 8293*** may want to report the problem to your system manager and/or to 8294*** bug-libtool@gnu.org 8295 8296_LT_EOF 8297 fi ;; 8298 esac 8299 fi 8300 break 8301 fi 8302 done 8303 IFS=$lt_save_ifs 8304 MAGIC_CMD=$lt_save_MAGIC_CMD 8305 ;; 8306esac 8307fi 8308 8309MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8310if test -n "$MAGIC_CMD"; then 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8312$as_echo "$MAGIC_CMD" >&6; } 8313else 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8315$as_echo "no" >&6; } 8316fi 8317 8318 8319 else 8320 MAGIC_CMD=: 8321 fi 8322fi 8323 8324 fi 8325 ;; 8326esac 8327 8328# Use C for the default configuration in the libtool script 8329 8330lt_save_CC=$CC 8331ac_ext=c 8332ac_cpp='$CPP $CPPFLAGS' 8333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8335ac_compiler_gnu=$ac_cv_c_compiler_gnu 8336 8337 8338# Source file extension for C test sources. 8339ac_ext=c 8340 8341# Object file extension for compiled C test sources. 8342objext=o 8343objext=$objext 8344 8345# Code to be used in simple compile tests 8346lt_simple_compile_test_code="int some_variable = 0;" 8347 8348# Code to be used in simple link tests 8349lt_simple_link_test_code='int main(){return(0);}' 8350 8351 8352 8353 8354 8355 8356 8357# If no C compiler was specified, use CC. 8358LTCC=${LTCC-"$CC"} 8359 8360# If no C compiler flags were specified, use CFLAGS. 8361LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8362 8363# Allow CC to be a program name with arguments. 8364compiler=$CC 8365 8366# Save the default compiler, since it gets overwritten when the other 8367# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8368compiler_DEFAULT=$CC 8369 8370# save warnings/boilerplate of simple test code 8371ac_outfile=conftest.$ac_objext 8372echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8373eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8374_lt_compiler_boilerplate=`cat conftest.err` 8375$RM conftest* 8376 8377ac_outfile=conftest.$ac_objext 8378echo "$lt_simple_link_test_code" >conftest.$ac_ext 8379eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8380_lt_linker_boilerplate=`cat conftest.err` 8381$RM -r conftest* 8382 8383 8384## CAVEAT EMPTOR: 8385## There is no encapsulation within the following macros, do not change 8386## the running order or otherwise move them around unless you know exactly 8387## what you are doing... 8388if test -n "$compiler"; then 8389 8390lt_prog_compiler_no_builtin_flag= 8391 8392if test yes = "$GCC"; then 8393 case $cc_basename in 8394 nvcc*) 8395 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8396 *) 8397 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8398 esac 8399 8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8401$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8402if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8403 $as_echo_n "(cached) " >&6 8404else 8405 lt_cv_prog_compiler_rtti_exceptions=no 8406 ac_outfile=conftest.$ac_objext 8407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8408 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8409 # Insert the option either (1) after the last *FLAGS variable, or 8410 # (2) before a word containing "conftest.", or (3) at the end. 8411 # Note that $ac_compile itself does not contain backslashes and begins 8412 # with a dollar sign (not a hyphen), so the echo should work correctly. 8413 # The option is referenced via a variable to avoid confusing sed. 8414 lt_compile=`echo "$ac_compile" | $SED \ 8415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8417 -e 's:$: $lt_compiler_flag:'` 8418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8419 (eval "$lt_compile" 2>conftest.err) 8420 ac_status=$? 8421 cat conftest.err >&5 8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8423 if (exit $ac_status) && test -s "$ac_outfile"; then 8424 # The compiler can only warn and ignore the option if not recognized 8425 # So say no if there are warnings other than the usual output. 8426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8428 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8429 lt_cv_prog_compiler_rtti_exceptions=yes 8430 fi 8431 fi 8432 $RM conftest* 8433 8434fi 8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8436$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8437 8438if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8439 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8440else 8441 : 8442fi 8443 8444fi 8445 8446 8447 8448 8449 8450 8451 lt_prog_compiler_wl= 8452lt_prog_compiler_pic= 8453lt_prog_compiler_static= 8454 8455 8456 if test yes = "$GCC"; then 8457 lt_prog_compiler_wl='-Wl,' 8458 lt_prog_compiler_static='-static' 8459 8460 case $host_os in 8461 aix*) 8462 # All AIX code is PIC. 8463 if test ia64 = "$host_cpu"; then 8464 # AIX 5 now supports IA64 processor 8465 lt_prog_compiler_static='-Bstatic' 8466 fi 8467 lt_prog_compiler_pic='-fPIC' 8468 ;; 8469 8470 amigaos*) 8471 case $host_cpu in 8472 powerpc) 8473 # see comment about AmigaOS4 .so support 8474 lt_prog_compiler_pic='-fPIC' 8475 ;; 8476 m68k) 8477 # FIXME: we need at least 68020 code to build shared libraries, but 8478 # adding the '-m68020' flag to GCC prevents building anything better, 8479 # like '-m68040'. 8480 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8481 ;; 8482 esac 8483 ;; 8484 8485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8486 # PIC is the default for these OSes. 8487 ;; 8488 8489 mingw* | cygwin* | pw32* | os2* | cegcc*) 8490 # This hack is so that the source file can tell whether it is being 8491 # built for inclusion in a dll (and should export symbols for example). 8492 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8493 # (--disable-auto-import) libraries 8494 lt_prog_compiler_pic='-DDLL_EXPORT' 8495 case $host_os in 8496 os2*) 8497 lt_prog_compiler_static='$wl-static' 8498 ;; 8499 esac 8500 ;; 8501 8502 darwin* | rhapsody*) 8503 # PIC is the default on this platform 8504 # Common symbols not allowed in MH_DYLIB files 8505 lt_prog_compiler_pic='-fno-common' 8506 ;; 8507 8508 haiku*) 8509 # PIC is the default for Haiku. 8510 # The "-static" flag exists, but is broken. 8511 lt_prog_compiler_static= 8512 ;; 8513 8514 hpux*) 8515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8517 # sets the default TLS model and affects inlining. 8518 case $host_cpu in 8519 hppa*64*) 8520 # +Z the default 8521 ;; 8522 *) 8523 lt_prog_compiler_pic='-fPIC' 8524 ;; 8525 esac 8526 ;; 8527 8528 interix[3-9]*) 8529 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8530 # Instead, we relocate shared libraries at runtime. 8531 ;; 8532 8533 msdosdjgpp*) 8534 # Just because we use GCC doesn't mean we suddenly get shared libraries 8535 # on systems that don't support them. 8536 lt_prog_compiler_can_build_shared=no 8537 enable_shared=no 8538 ;; 8539 8540 *nto* | *qnx*) 8541 # QNX uses GNU C++, but need to define -shared option too, otherwise 8542 # it will coredump. 8543 lt_prog_compiler_pic='-fPIC -shared' 8544 ;; 8545 8546 sysv4*MP*) 8547 if test -d /usr/nec; then 8548 lt_prog_compiler_pic=-Kconform_pic 8549 fi 8550 ;; 8551 8552 *) 8553 lt_prog_compiler_pic='-fPIC' 8554 ;; 8555 esac 8556 8557 case $cc_basename in 8558 nvcc*) # Cuda Compiler Driver 2.2 8559 lt_prog_compiler_wl='-Xlinker ' 8560 if test -n "$lt_prog_compiler_pic"; then 8561 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8562 fi 8563 ;; 8564 esac 8565 else 8566 # PORTME Check for flag to pass linker flags through the system compiler. 8567 case $host_os in 8568 aix*) 8569 lt_prog_compiler_wl='-Wl,' 8570 if test ia64 = "$host_cpu"; then 8571 # AIX 5 now supports IA64 processor 8572 lt_prog_compiler_static='-Bstatic' 8573 else 8574 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8575 fi 8576 ;; 8577 8578 darwin* | rhapsody*) 8579 # PIC is the default on this platform 8580 # Common symbols not allowed in MH_DYLIB files 8581 lt_prog_compiler_pic='-fno-common' 8582 case $cc_basename in 8583 nagfor*) 8584 # NAG Fortran compiler 8585 lt_prog_compiler_wl='-Wl,-Wl,,' 8586 lt_prog_compiler_pic='-PIC' 8587 lt_prog_compiler_static='-Bstatic' 8588 ;; 8589 esac 8590 ;; 8591 8592 mingw* | cygwin* | pw32* | os2* | cegcc*) 8593 # This hack is so that the source file can tell whether it is being 8594 # built for inclusion in a dll (and should export symbols for example). 8595 lt_prog_compiler_pic='-DDLL_EXPORT' 8596 case $host_os in 8597 os2*) 8598 lt_prog_compiler_static='$wl-static' 8599 ;; 8600 esac 8601 ;; 8602 8603 hpux9* | hpux10* | hpux11*) 8604 lt_prog_compiler_wl='-Wl,' 8605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8606 # not for PA HP-UX. 8607 case $host_cpu in 8608 hppa*64*|ia64*) 8609 # +Z the default 8610 ;; 8611 *) 8612 lt_prog_compiler_pic='+Z' 8613 ;; 8614 esac 8615 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8616 lt_prog_compiler_static='$wl-a ${wl}archive' 8617 ;; 8618 8619 irix5* | irix6* | nonstopux*) 8620 lt_prog_compiler_wl='-Wl,' 8621 # PIC (with -KPIC) is the default. 8622 lt_prog_compiler_static='-non_shared' 8623 ;; 8624 8625 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8626 case $cc_basename in 8627 # old Intel for x86_64, which still supported -KPIC. 8628 ecc*) 8629 lt_prog_compiler_wl='-Wl,' 8630 lt_prog_compiler_pic='-KPIC' 8631 lt_prog_compiler_static='-static' 8632 ;; 8633 # icc used to be incompatible with GCC. 8634 # ICC 10 doesn't accept -KPIC any more. 8635 icc* | ifort*) 8636 lt_prog_compiler_wl='-Wl,' 8637 lt_prog_compiler_pic='-fPIC' 8638 lt_prog_compiler_static='-static' 8639 ;; 8640 # Lahey Fortran 8.1. 8641 lf95*) 8642 lt_prog_compiler_wl='-Wl,' 8643 lt_prog_compiler_pic='--shared' 8644 lt_prog_compiler_static='--static' 8645 ;; 8646 nagfor*) 8647 # NAG Fortran compiler 8648 lt_prog_compiler_wl='-Wl,-Wl,,' 8649 lt_prog_compiler_pic='-PIC' 8650 lt_prog_compiler_static='-Bstatic' 8651 ;; 8652 tcc*) 8653 # Fabrice Bellard et al's Tiny C Compiler 8654 lt_prog_compiler_wl='-Wl,' 8655 lt_prog_compiler_pic='-fPIC' 8656 lt_prog_compiler_static='-static' 8657 ;; 8658 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8659 # Portland Group compilers (*not* the Pentium gcc compiler, 8660 # which looks to be a dead project) 8661 lt_prog_compiler_wl='-Wl,' 8662 lt_prog_compiler_pic='-fpic' 8663 lt_prog_compiler_static='-Bstatic' 8664 ;; 8665 ccc*) 8666 lt_prog_compiler_wl='-Wl,' 8667 # All Alpha code is PIC. 8668 lt_prog_compiler_static='-non_shared' 8669 ;; 8670 xl* | bgxl* | bgf* | mpixl*) 8671 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8672 lt_prog_compiler_wl='-Wl,' 8673 lt_prog_compiler_pic='-qpic' 8674 lt_prog_compiler_static='-qstaticlink' 8675 ;; 8676 *) 8677 case `$CC -V 2>&1 | sed 5q` in 8678 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8679 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8680 lt_prog_compiler_pic='-KPIC' 8681 lt_prog_compiler_static='-Bstatic' 8682 lt_prog_compiler_wl='' 8683 ;; 8684 *Sun\ F* | *Sun*Fortran*) 8685 lt_prog_compiler_pic='-KPIC' 8686 lt_prog_compiler_static='-Bstatic' 8687 lt_prog_compiler_wl='-Qoption ld ' 8688 ;; 8689 *Sun\ C*) 8690 # Sun C 5.9 8691 lt_prog_compiler_pic='-KPIC' 8692 lt_prog_compiler_static='-Bstatic' 8693 lt_prog_compiler_wl='-Wl,' 8694 ;; 8695 *Intel*\ [CF]*Compiler*) 8696 lt_prog_compiler_wl='-Wl,' 8697 lt_prog_compiler_pic='-fPIC' 8698 lt_prog_compiler_static='-static' 8699 ;; 8700 *Portland\ Group*) 8701 lt_prog_compiler_wl='-Wl,' 8702 lt_prog_compiler_pic='-fpic' 8703 lt_prog_compiler_static='-Bstatic' 8704 ;; 8705 esac 8706 ;; 8707 esac 8708 ;; 8709 8710 newsos6) 8711 lt_prog_compiler_pic='-KPIC' 8712 lt_prog_compiler_static='-Bstatic' 8713 ;; 8714 8715 *nto* | *qnx*) 8716 # QNX uses GNU C++, but need to define -shared option too, otherwise 8717 # it will coredump. 8718 lt_prog_compiler_pic='-fPIC -shared' 8719 ;; 8720 8721 osf3* | osf4* | osf5*) 8722 lt_prog_compiler_wl='-Wl,' 8723 # All OSF/1 code is PIC. 8724 lt_prog_compiler_static='-non_shared' 8725 ;; 8726 8727 rdos*) 8728 lt_prog_compiler_static='-non_shared' 8729 ;; 8730 8731 solaris*) 8732 lt_prog_compiler_pic='-KPIC' 8733 lt_prog_compiler_static='-Bstatic' 8734 case $cc_basename in 8735 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8736 lt_prog_compiler_wl='-Qoption ld ';; 8737 *) 8738 lt_prog_compiler_wl='-Wl,';; 8739 esac 8740 ;; 8741 8742 sunos4*) 8743 lt_prog_compiler_wl='-Qoption ld ' 8744 lt_prog_compiler_pic='-PIC' 8745 lt_prog_compiler_static='-Bstatic' 8746 ;; 8747 8748 sysv4 | sysv4.2uw2* | sysv4.3*) 8749 lt_prog_compiler_wl='-Wl,' 8750 lt_prog_compiler_pic='-KPIC' 8751 lt_prog_compiler_static='-Bstatic' 8752 ;; 8753 8754 sysv4*MP*) 8755 if test -d /usr/nec; then 8756 lt_prog_compiler_pic='-Kconform_pic' 8757 lt_prog_compiler_static='-Bstatic' 8758 fi 8759 ;; 8760 8761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8762 lt_prog_compiler_wl='-Wl,' 8763 lt_prog_compiler_pic='-KPIC' 8764 lt_prog_compiler_static='-Bstatic' 8765 ;; 8766 8767 unicos*) 8768 lt_prog_compiler_wl='-Wl,' 8769 lt_prog_compiler_can_build_shared=no 8770 ;; 8771 8772 uts4*) 8773 lt_prog_compiler_pic='-pic' 8774 lt_prog_compiler_static='-Bstatic' 8775 ;; 8776 8777 *) 8778 lt_prog_compiler_can_build_shared=no 8779 ;; 8780 esac 8781 fi 8782 8783case $host_os in 8784 # For platforms that do not support PIC, -DPIC is meaningless: 8785 *djgpp*) 8786 lt_prog_compiler_pic= 8787 ;; 8788 *) 8789 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8790 ;; 8791esac 8792 8793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8794$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8795if ${lt_cv_prog_compiler_pic+:} false; then : 8796 $as_echo_n "(cached) " >&6 8797else 8798 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8799fi 8800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8801$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8802lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8803 8804# 8805# Check to make sure the PIC flag actually works. 8806# 8807if test -n "$lt_prog_compiler_pic"; then 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8809$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8810if ${lt_cv_prog_compiler_pic_works+:} false; then : 8811 $as_echo_n "(cached) " >&6 8812else 8813 lt_cv_prog_compiler_pic_works=no 8814 ac_outfile=conftest.$ac_objext 8815 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8816 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8817 # Insert the option either (1) after the last *FLAGS variable, or 8818 # (2) before a word containing "conftest.", or (3) at the end. 8819 # Note that $ac_compile itself does not contain backslashes and begins 8820 # with a dollar sign (not a hyphen), so the echo should work correctly. 8821 # The option is referenced via a variable to avoid confusing sed. 8822 lt_compile=`echo "$ac_compile" | $SED \ 8823 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8824 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8825 -e 's:$: $lt_compiler_flag:'` 8826 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8827 (eval "$lt_compile" 2>conftest.err) 8828 ac_status=$? 8829 cat conftest.err >&5 8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8831 if (exit $ac_status) && test -s "$ac_outfile"; then 8832 # The compiler can only warn and ignore the option if not recognized 8833 # So say no if there are warnings other than the usual output. 8834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8836 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8837 lt_cv_prog_compiler_pic_works=yes 8838 fi 8839 fi 8840 $RM conftest* 8841 8842fi 8843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8844$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8845 8846if test yes = "$lt_cv_prog_compiler_pic_works"; then 8847 case $lt_prog_compiler_pic in 8848 "" | " "*) ;; 8849 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8850 esac 8851else 8852 lt_prog_compiler_pic= 8853 lt_prog_compiler_can_build_shared=no 8854fi 8855 8856fi 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868# 8869# Check to make sure the static flag actually works. 8870# 8871wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8873$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8874if ${lt_cv_prog_compiler_static_works+:} false; then : 8875 $as_echo_n "(cached) " >&6 8876else 8877 lt_cv_prog_compiler_static_works=no 8878 save_LDFLAGS=$LDFLAGS 8879 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8880 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8881 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8882 # The linker can only warn and ignore the option if not recognized 8883 # So say no if there are warnings 8884 if test -s conftest.err; then 8885 # Append any errors to the config.log. 8886 cat conftest.err 1>&5 8887 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8888 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8889 if diff conftest.exp conftest.er2 >/dev/null; then 8890 lt_cv_prog_compiler_static_works=yes 8891 fi 8892 else 8893 lt_cv_prog_compiler_static_works=yes 8894 fi 8895 fi 8896 $RM -r conftest* 8897 LDFLAGS=$save_LDFLAGS 8898 8899fi 8900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8901$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8902 8903if test yes = "$lt_cv_prog_compiler_static_works"; then 8904 : 8905else 8906 lt_prog_compiler_static= 8907fi 8908 8909 8910 8911 8912 8913 8914 8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8916$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8917if ${lt_cv_prog_compiler_c_o+:} false; then : 8918 $as_echo_n "(cached) " >&6 8919else 8920 lt_cv_prog_compiler_c_o=no 8921 $RM -r conftest 2>/dev/null 8922 mkdir conftest 8923 cd conftest 8924 mkdir out 8925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8926 8927 lt_compiler_flag="-o out/conftest2.$ac_objext" 8928 # Insert the option either (1) after the last *FLAGS variable, or 8929 # (2) before a word containing "conftest.", or (3) at the end. 8930 # Note that $ac_compile itself does not contain backslashes and begins 8931 # with a dollar sign (not a hyphen), so the echo should work correctly. 8932 lt_compile=`echo "$ac_compile" | $SED \ 8933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8935 -e 's:$: $lt_compiler_flag:'` 8936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8937 (eval "$lt_compile" 2>out/conftest.err) 8938 ac_status=$? 8939 cat out/conftest.err >&5 8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8941 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8942 then 8943 # The compiler can only warn and ignore the option if not recognized 8944 # So say no if there are warnings 8945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8946 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8947 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8948 lt_cv_prog_compiler_c_o=yes 8949 fi 8950 fi 8951 chmod u+w . 2>&5 8952 $RM conftest* 8953 # SGI C++ compiler will create directory out/ii_files/ for 8954 # template instantiation 8955 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8956 $RM out/* && rmdir out 8957 cd .. 8958 $RM -r conftest 8959 $RM conftest* 8960 8961fi 8962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8963$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8964 8965 8966 8967 8968 8969 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8971$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8972if ${lt_cv_prog_compiler_c_o+:} false; then : 8973 $as_echo_n "(cached) " >&6 8974else 8975 lt_cv_prog_compiler_c_o=no 8976 $RM -r conftest 2>/dev/null 8977 mkdir conftest 8978 cd conftest 8979 mkdir out 8980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8981 8982 lt_compiler_flag="-o out/conftest2.$ac_objext" 8983 # Insert the option either (1) after the last *FLAGS variable, or 8984 # (2) before a word containing "conftest.", or (3) at the end. 8985 # Note that $ac_compile itself does not contain backslashes and begins 8986 # with a dollar sign (not a hyphen), so the echo should work correctly. 8987 lt_compile=`echo "$ac_compile" | $SED \ 8988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8990 -e 's:$: $lt_compiler_flag:'` 8991 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8992 (eval "$lt_compile" 2>out/conftest.err) 8993 ac_status=$? 8994 cat out/conftest.err >&5 8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8996 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8997 then 8998 # The compiler can only warn and ignore the option if not recognized 8999 # So say no if there are warnings 9000 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9001 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9002 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9003 lt_cv_prog_compiler_c_o=yes 9004 fi 9005 fi 9006 chmod u+w . 2>&5 9007 $RM conftest* 9008 # SGI C++ compiler will create directory out/ii_files/ for 9009 # template instantiation 9010 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9011 $RM out/* && rmdir out 9012 cd .. 9013 $RM -r conftest 9014 $RM conftest* 9015 9016fi 9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9018$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9019 9020 9021 9022 9023hard_links=nottested 9024if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9025 # do not overwrite the value of need_locks provided by the user 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9027$as_echo_n "checking if we can lock with hard links... " >&6; } 9028 hard_links=yes 9029 $RM conftest* 9030 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9031 touch conftest.a 9032 ln conftest.a conftest.b 2>&5 || hard_links=no 9033 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9035$as_echo "$hard_links" >&6; } 9036 if test no = "$hard_links"; then 9037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9038$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9039 need_locks=warn 9040 fi 9041else 9042 need_locks=no 9043fi 9044 9045 9046 9047 9048 9049 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9051$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9052 9053 runpath_var= 9054 allow_undefined_flag= 9055 always_export_symbols=no 9056 archive_cmds= 9057 archive_expsym_cmds= 9058 compiler_needs_object=no 9059 enable_shared_with_static_runtimes=no 9060 export_dynamic_flag_spec= 9061 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9062 hardcode_automatic=no 9063 hardcode_direct=no 9064 hardcode_direct_absolute=no 9065 hardcode_libdir_flag_spec= 9066 hardcode_libdir_separator= 9067 hardcode_minus_L=no 9068 hardcode_shlibpath_var=unsupported 9069 inherit_rpath=no 9070 link_all_deplibs=unknown 9071 module_cmds= 9072 module_expsym_cmds= 9073 old_archive_from_new_cmds= 9074 old_archive_from_expsyms_cmds= 9075 thread_safe_flag_spec= 9076 whole_archive_flag_spec= 9077 # include_expsyms should be a list of space-separated symbols to be *always* 9078 # included in the symbol list 9079 include_expsyms= 9080 # exclude_expsyms can be an extended regexp of symbols to exclude 9081 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9082 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9083 # as well as any symbol that contains 'd'. 9084 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9085 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9086 # platforms (ab)use it in PIC code, but their linkers get confused if 9087 # the symbol is explicitly referenced. Since portable code cannot 9088 # rely on this symbol name, it's probably fine to never include it in 9089 # preloaded symbol tables. 9090 # Exclude shared library initialization/finalization symbols. 9091 extract_expsyms_cmds= 9092 9093 case $host_os in 9094 cygwin* | mingw* | pw32* | cegcc*) 9095 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9096 # When not using gcc, we currently assume that we are using 9097 # Microsoft Visual C++. 9098 if test yes != "$GCC"; then 9099 with_gnu_ld=no 9100 fi 9101 ;; 9102 interix*) 9103 # we just hope/assume this is gcc and not c89 (= MSVC++) 9104 with_gnu_ld=yes 9105 ;; 9106 openbsd* | bitrig*) 9107 with_gnu_ld=no 9108 ;; 9109 esac 9110 9111 ld_shlibs=yes 9112 9113 # On some targets, GNU ld is compatible enough with the native linker 9114 # that we're better off using the native interface for both. 9115 lt_use_gnu_ld_interface=no 9116 if test yes = "$with_gnu_ld"; then 9117 case $host_os in 9118 aix*) 9119 # The AIX port of GNU ld has always aspired to compatibility 9120 # with the native linker. However, as the warning in the GNU ld 9121 # block says, versions before 2.19.5* couldn't really create working 9122 # shared libraries, regardless of the interface used. 9123 case `$LD -v 2>&1` in 9124 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9125 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9126 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9127 *) 9128 lt_use_gnu_ld_interface=yes 9129 ;; 9130 esac 9131 ;; 9132 *) 9133 lt_use_gnu_ld_interface=yes 9134 ;; 9135 esac 9136 fi 9137 9138 if test yes = "$lt_use_gnu_ld_interface"; then 9139 # If archive_cmds runs LD, not CC, wlarc should be empty 9140 wlarc='$wl' 9141 9142 # Set some defaults for GNU ld with shared library support. These 9143 # are reset later if shared libraries are not supported. Putting them 9144 # here allows them to be overridden if necessary. 9145 runpath_var=LD_RUN_PATH 9146 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9147 export_dynamic_flag_spec='$wl--export-dynamic' 9148 # ancient GNU ld didn't support --whole-archive et. al. 9149 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9150 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9151 else 9152 whole_archive_flag_spec= 9153 fi 9154 supports_anon_versioning=no 9155 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9156 *GNU\ gold*) supports_anon_versioning=yes ;; 9157 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9158 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9159 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9160 *\ 2.11.*) ;; # other 2.11 versions 9161 *) supports_anon_versioning=yes ;; 9162 esac 9163 9164 # See if GNU ld supports shared libraries. 9165 case $host_os in 9166 aix[3-9]*) 9167 # On AIX/PPC, the GNU linker is very broken 9168 if test ia64 != "$host_cpu"; then 9169 ld_shlibs=no 9170 cat <<_LT_EOF 1>&2 9171 9172*** Warning: the GNU linker, at least up to release 2.19, is reported 9173*** to be unable to reliably create shared libraries on AIX. 9174*** Therefore, libtool is disabling shared libraries support. If you 9175*** really care for shared libraries, you may want to install binutils 9176*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9177*** You will then need to restart the configuration process. 9178 9179_LT_EOF 9180 fi 9181 ;; 9182 9183 amigaos*) 9184 case $host_cpu in 9185 powerpc) 9186 # see comment about AmigaOS4 .so support 9187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9188 archive_expsym_cmds='' 9189 ;; 9190 m68k) 9191 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)' 9192 hardcode_libdir_flag_spec='-L$libdir' 9193 hardcode_minus_L=yes 9194 ;; 9195 esac 9196 ;; 9197 9198 beos*) 9199 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9200 allow_undefined_flag=unsupported 9201 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9202 # support --undefined. This deserves some investigation. FIXME 9203 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9204 else 9205 ld_shlibs=no 9206 fi 9207 ;; 9208 9209 cygwin* | mingw* | pw32* | cegcc*) 9210 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9211 # as there is no search path for DLLs. 9212 hardcode_libdir_flag_spec='-L$libdir' 9213 export_dynamic_flag_spec='$wl--export-all-symbols' 9214 allow_undefined_flag=unsupported 9215 always_export_symbols=no 9216 enable_shared_with_static_runtimes=yes 9217 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' 9218 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9219 9220 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9222 # If the export-symbols file already is a .def file, use it as 9223 # is; otherwise, prepend EXPORTS... 9224 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9225 cp $export_symbols $output_objdir/$soname.def; 9226 else 9227 echo EXPORTS > $output_objdir/$soname.def; 9228 cat $export_symbols >> $output_objdir/$soname.def; 9229 fi~ 9230 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9231 else 9232 ld_shlibs=no 9233 fi 9234 ;; 9235 9236 haiku*) 9237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9238 link_all_deplibs=yes 9239 ;; 9240 9241 os2*) 9242 hardcode_libdir_flag_spec='-L$libdir' 9243 hardcode_minus_L=yes 9244 allow_undefined_flag=unsupported 9245 shrext_cmds=.dll 9246 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9247 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9248 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9249 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9250 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9251 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9252 emximp -o $lib $output_objdir/$libname.def' 9253 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9254 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9255 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9256 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9257 prefix_cmds="$SED"~ 9258 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9259 prefix_cmds="$prefix_cmds -e 1d"; 9260 fi~ 9261 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9262 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9263 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9264 emximp -o $lib $output_objdir/$libname.def' 9265 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9266 enable_shared_with_static_runtimes=yes 9267 ;; 9268 9269 interix[3-9]*) 9270 hardcode_direct=no 9271 hardcode_shlibpath_var=no 9272 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9273 export_dynamic_flag_spec='$wl-E' 9274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9275 # Instead, shared libraries are loaded at an image base (0x10000000 by 9276 # default) and relocated if they conflict, which is a slow very memory 9277 # consuming and fragmenting process. To avoid this, we pick a random, 9278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9279 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9280 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9281 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' 9282 ;; 9283 9284 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9285 tmp_diet=no 9286 if test linux-dietlibc = "$host_os"; then 9287 case $cc_basename in 9288 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9289 esac 9290 fi 9291 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9292 && test no = "$tmp_diet" 9293 then 9294 tmp_addflag=' $pic_flag' 9295 tmp_sharedflag='-shared' 9296 case $cc_basename,$host_cpu in 9297 pgcc*) # Portland Group C compiler 9298 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' 9299 tmp_addflag=' $pic_flag' 9300 ;; 9301 pgf77* | pgf90* | pgf95* | pgfortran*) 9302 # Portland Group f77 and f90 compilers 9303 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' 9304 tmp_addflag=' $pic_flag -Mnomain' ;; 9305 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9306 tmp_addflag=' -i_dynamic' ;; 9307 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9308 tmp_addflag=' -i_dynamic -nofor_main' ;; 9309 ifc* | ifort*) # Intel Fortran compiler 9310 tmp_addflag=' -nofor_main' ;; 9311 lf95*) # Lahey Fortran 8.1 9312 whole_archive_flag_spec= 9313 tmp_sharedflag='--shared' ;; 9314 nagfor*) # NAGFOR 5.3 9315 tmp_sharedflag='-Wl,-shared' ;; 9316 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9317 tmp_sharedflag='-qmkshrobj' 9318 tmp_addflag= ;; 9319 nvcc*) # Cuda Compiler Driver 2.2 9320 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' 9321 compiler_needs_object=yes 9322 ;; 9323 esac 9324 case `$CC -V 2>&1 | sed 5q` in 9325 *Sun\ C*) # Sun C 5.9 9326 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' 9327 compiler_needs_object=yes 9328 tmp_sharedflag='-G' ;; 9329 *Sun\ F*) # Sun Fortran 8.3 9330 tmp_sharedflag='-G' ;; 9331 esac 9332 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9333 9334 if test yes = "$supports_anon_versioning"; then 9335 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9337 echo "local: *; };" >> $output_objdir/$libname.ver~ 9338 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9339 fi 9340 9341 case $cc_basename in 9342 tcc*) 9343 export_dynamic_flag_spec='-rdynamic' 9344 ;; 9345 xlf* | bgf* | bgxlf* | mpixlf*) 9346 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9347 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9348 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9349 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9350 if test yes = "$supports_anon_versioning"; then 9351 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9352 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9353 echo "local: *; };" >> $output_objdir/$libname.ver~ 9354 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9355 fi 9356 ;; 9357 esac 9358 else 9359 ld_shlibs=no 9360 fi 9361 ;; 9362 9363 netbsd*) 9364 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9365 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9366 wlarc= 9367 else 9368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9369 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9370 fi 9371 ;; 9372 9373 solaris*) 9374 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9375 ld_shlibs=no 9376 cat <<_LT_EOF 1>&2 9377 9378*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9379*** create shared libraries on Solaris systems. Therefore, libtool 9380*** is disabling shared libraries support. We urge you to upgrade GNU 9381*** binutils to release 2.9.1 or newer. Another option is to modify 9382*** your PATH or compiler configuration so that the native linker is 9383*** used, and then restart. 9384 9385_LT_EOF 9386 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9387 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9388 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9389 else 9390 ld_shlibs=no 9391 fi 9392 ;; 9393 9394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9395 case `$LD -v 2>&1` in 9396 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9397 ld_shlibs=no 9398 cat <<_LT_EOF 1>&2 9399 9400*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9401*** reliably create shared libraries on SCO systems. Therefore, libtool 9402*** is disabling shared libraries support. We urge you to upgrade GNU 9403*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9404*** your PATH or compiler configuration so that the native linker is 9405*** used, and then restart. 9406 9407_LT_EOF 9408 ;; 9409 *) 9410 # For security reasons, it is highly recommended that you always 9411 # use absolute paths for naming shared libraries, and exclude the 9412 # DT_RUNPATH tag from executables and libraries. But doing so 9413 # requires that you compile everything twice, which is a pain. 9414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9415 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9418 else 9419 ld_shlibs=no 9420 fi 9421 ;; 9422 esac 9423 ;; 9424 9425 sunos4*) 9426 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9427 wlarc= 9428 hardcode_direct=yes 9429 hardcode_shlibpath_var=no 9430 ;; 9431 9432 *) 9433 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9434 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9435 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9436 else 9437 ld_shlibs=no 9438 fi 9439 ;; 9440 esac 9441 9442 if test no = "$ld_shlibs"; then 9443 runpath_var= 9444 hardcode_libdir_flag_spec= 9445 export_dynamic_flag_spec= 9446 whole_archive_flag_spec= 9447 fi 9448 else 9449 # PORTME fill in a description of your system's linker (not GNU ld) 9450 case $host_os in 9451 aix3*) 9452 allow_undefined_flag=unsupported 9453 always_export_symbols=yes 9454 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' 9455 # Note: this linker hardcodes the directories in LIBPATH if there 9456 # are no directories specified by -L. 9457 hardcode_minus_L=yes 9458 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9459 # Neither direct hardcoding nor static linking is supported with a 9460 # broken collect2. 9461 hardcode_direct=unsupported 9462 fi 9463 ;; 9464 9465 aix[4-9]*) 9466 if test ia64 = "$host_cpu"; then 9467 # On IA64, the linker does run time linking by default, so we don't 9468 # have to do anything special. 9469 aix_use_runtimelinking=no 9470 exp_sym_flag='-Bexport' 9471 no_entry_flag= 9472 else 9473 # If we're using GNU nm, then we don't want the "-C" option. 9474 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9475 # Without the "-l" option, or with the "-B" option, AIX nm treats 9476 # weak defined symbols like other global defined symbols, whereas 9477 # GNU nm marks them as "W". 9478 # While the 'weak' keyword is ignored in the Export File, we need 9479 # it in the Import File for the 'aix-soname' feature, so we have 9480 # to replace the "-B" option with "-P" for AIX nm. 9481 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9482 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' 9483 else 9484 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' 9485 fi 9486 aix_use_runtimelinking=no 9487 9488 # Test if we are trying to use run time linking or normal 9489 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9490 # have runtime linking enabled, and use it for executables. 9491 # For shared libraries, we enable/disable runtime linking 9492 # depending on the kind of the shared library created - 9493 # when "with_aix_soname,aix_use_runtimelinking" is: 9494 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9495 # "aix,yes" lib.so shared, rtl:yes, for executables 9496 # lib.a static archive 9497 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9498 # lib.a(lib.so.V) shared, rtl:no, for executables 9499 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9500 # lib.a(lib.so.V) shared, rtl:no 9501 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9502 # lib.a static archive 9503 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9504 for ld_flag in $LDFLAGS; do 9505 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9506 aix_use_runtimelinking=yes 9507 break 9508 fi 9509 done 9510 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9511 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9512 # so we don't have lib.a shared libs to link our executables. 9513 # We have to force runtime linking in this case. 9514 aix_use_runtimelinking=yes 9515 LDFLAGS="$LDFLAGS -Wl,-brtl" 9516 fi 9517 ;; 9518 esac 9519 9520 exp_sym_flag='-bexport' 9521 no_entry_flag='-bnoentry' 9522 fi 9523 9524 # When large executables or shared objects are built, AIX ld can 9525 # have problems creating the table of contents. If linking a library 9526 # or program results in "error TOC overflow" add -mminimal-toc to 9527 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9528 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9529 9530 archive_cmds='' 9531 hardcode_direct=yes 9532 hardcode_direct_absolute=yes 9533 hardcode_libdir_separator=':' 9534 link_all_deplibs=yes 9535 file_list_spec='$wl-f,' 9536 case $with_aix_soname,$aix_use_runtimelinking in 9537 aix,*) ;; # traditional, no import file 9538 svr4,* | *,yes) # use import file 9539 # The Import File defines what to hardcode. 9540 hardcode_direct=no 9541 hardcode_direct_absolute=no 9542 ;; 9543 esac 9544 9545 if test yes = "$GCC"; then 9546 case $host_os in aix4.[012]|aix4.[012].*) 9547 # We only want to do this on AIX 4.2 and lower, the check 9548 # below for broken collect2 doesn't work under 4.3+ 9549 collect2name=`$CC -print-prog-name=collect2` 9550 if test -f "$collect2name" && 9551 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9552 then 9553 # We have reworked collect2 9554 : 9555 else 9556 # We have old collect2 9557 hardcode_direct=unsupported 9558 # It fails to find uninstalled libraries when the uninstalled 9559 # path is not listed in the libpath. Setting hardcode_minus_L 9560 # to unsupported forces relinking 9561 hardcode_minus_L=yes 9562 hardcode_libdir_flag_spec='-L$libdir' 9563 hardcode_libdir_separator= 9564 fi 9565 ;; 9566 esac 9567 shared_flag='-shared' 9568 if test yes = "$aix_use_runtimelinking"; then 9569 shared_flag="$shared_flag "'$wl-G' 9570 fi 9571 # Need to ensure runtime linking is disabled for the traditional 9572 # shared library, or the linker may eventually find shared libraries 9573 # /with/ Import File - we do not want to mix them. 9574 shared_flag_aix='-shared' 9575 shared_flag_svr4='-shared $wl-G' 9576 else 9577 # not using gcc 9578 if test ia64 = "$host_cpu"; then 9579 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9580 # chokes on -Wl,-G. The following line is correct: 9581 shared_flag='-G' 9582 else 9583 if test yes = "$aix_use_runtimelinking"; then 9584 shared_flag='$wl-G' 9585 else 9586 shared_flag='$wl-bM:SRE' 9587 fi 9588 shared_flag_aix='$wl-bM:SRE' 9589 shared_flag_svr4='$wl-G' 9590 fi 9591 fi 9592 9593 export_dynamic_flag_spec='$wl-bexpall' 9594 # It seems that -bexpall does not export symbols beginning with 9595 # underscore (_), so it is better to generate a list of symbols to export. 9596 always_export_symbols=yes 9597 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9598 # Warning - without using the other runtime loading flags (-brtl), 9599 # -berok will link without error, but may produce a broken library. 9600 allow_undefined_flag='-berok' 9601 # Determine the default libpath from the value encoded in an 9602 # empty executable. 9603 if test set = "${lt_cv_aix_libpath+set}"; then 9604 aix_libpath=$lt_cv_aix_libpath 9605else 9606 if ${lt_cv_aix_libpath_+:} false; then : 9607 $as_echo_n "(cached) " >&6 9608else 9609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9610/* end confdefs.h. */ 9611 9612int 9613main () 9614{ 9615 9616 ; 9617 return 0; 9618} 9619_ACEOF 9620if ac_fn_c_try_link "$LINENO"; then : 9621 9622 lt_aix_libpath_sed=' 9623 /Import File Strings/,/^$/ { 9624 /^0/ { 9625 s/^0 *\([^ ]*\) *$/\1/ 9626 p 9627 } 9628 }' 9629 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9630 # Check for a 64-bit object if we didn't find anything. 9631 if test -z "$lt_cv_aix_libpath_"; then 9632 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9633 fi 9634fi 9635rm -f core conftest.err conftest.$ac_objext \ 9636 conftest$ac_exeext conftest.$ac_ext 9637 if test -z "$lt_cv_aix_libpath_"; then 9638 lt_cv_aix_libpath_=/usr/lib:/lib 9639 fi 9640 9641fi 9642 9643 aix_libpath=$lt_cv_aix_libpath_ 9644fi 9645 9646 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9647 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 9648 else 9649 if test ia64 = "$host_cpu"; then 9650 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9651 allow_undefined_flag="-z nodefs" 9652 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" 9653 else 9654 # Determine the default libpath from the value encoded in an 9655 # empty executable. 9656 if test set = "${lt_cv_aix_libpath+set}"; then 9657 aix_libpath=$lt_cv_aix_libpath 9658else 9659 if ${lt_cv_aix_libpath_+:} false; then : 9660 $as_echo_n "(cached) " >&6 9661else 9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663/* end confdefs.h. */ 9664 9665int 9666main () 9667{ 9668 9669 ; 9670 return 0; 9671} 9672_ACEOF 9673if ac_fn_c_try_link "$LINENO"; then : 9674 9675 lt_aix_libpath_sed=' 9676 /Import File Strings/,/^$/ { 9677 /^0/ { 9678 s/^0 *\([^ ]*\) *$/\1/ 9679 p 9680 } 9681 }' 9682 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9683 # Check for a 64-bit object if we didn't find anything. 9684 if test -z "$lt_cv_aix_libpath_"; then 9685 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9686 fi 9687fi 9688rm -f core conftest.err conftest.$ac_objext \ 9689 conftest$ac_exeext conftest.$ac_ext 9690 if test -z "$lt_cv_aix_libpath_"; then 9691 lt_cv_aix_libpath_=/usr/lib:/lib 9692 fi 9693 9694fi 9695 9696 aix_libpath=$lt_cv_aix_libpath_ 9697fi 9698 9699 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9700 # Warning - without using the other run time loading flags, 9701 # -berok will link without error, but may produce a broken library. 9702 no_undefined_flag=' $wl-bernotok' 9703 allow_undefined_flag=' $wl-berok' 9704 if test yes = "$with_gnu_ld"; then 9705 # We only use this code for GNU lds that support --whole-archive. 9706 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9707 else 9708 # Exported symbols can be pulled into shared objects from archives 9709 whole_archive_flag_spec='$convenience' 9710 fi 9711 archive_cmds_need_lc=yes 9712 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9713 # -brtl affects multiple linker settings, -berok does not and is overridden later 9714 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9715 if test svr4 != "$with_aix_soname"; then 9716 # This is similar to how AIX traditionally builds its shared libraries. 9717 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' 9718 fi 9719 if test aix != "$with_aix_soname"; then 9720 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' 9721 else 9722 # used by -dlpreopen to get the symbols 9723 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9724 fi 9725 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9726 fi 9727 fi 9728 ;; 9729 9730 amigaos*) 9731 case $host_cpu in 9732 powerpc) 9733 # see comment about AmigaOS4 .so support 9734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9735 archive_expsym_cmds='' 9736 ;; 9737 m68k) 9738 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)' 9739 hardcode_libdir_flag_spec='-L$libdir' 9740 hardcode_minus_L=yes 9741 ;; 9742 esac 9743 ;; 9744 9745 bsdi[45]*) 9746 export_dynamic_flag_spec=-rdynamic 9747 ;; 9748 9749 cygwin* | mingw* | pw32* | cegcc*) 9750 # When not using gcc, we currently assume that we are using 9751 # Microsoft Visual C++. 9752 # hardcode_libdir_flag_spec is actually meaningless, as there is 9753 # no search path for DLLs. 9754 case $cc_basename in 9755 cl*) 9756 # Native MSVC 9757 hardcode_libdir_flag_spec=' ' 9758 allow_undefined_flag=unsupported 9759 always_export_symbols=yes 9760 file_list_spec='@' 9761 # Tell ltmain to make .lib files, not .a files. 9762 libext=lib 9763 # Tell ltmain to make .dll files, not .so files. 9764 shrext_cmds=.dll 9765 # FIXME: Setting linknames here is a bad hack. 9766 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9767 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9768 cp "$export_symbols" "$output_objdir/$soname.def"; 9769 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9770 else 9771 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9772 fi~ 9773 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9774 linknames=' 9775 # The linker will not automatically build a static lib if we build a DLL. 9776 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9777 enable_shared_with_static_runtimes=yes 9778 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9779 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9780 # Don't use ranlib 9781 old_postinstall_cmds='chmod 644 $oldlib' 9782 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9783 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9784 case $lt_outputfile in 9785 *.exe|*.EXE) ;; 9786 *) 9787 lt_outputfile=$lt_outputfile.exe 9788 lt_tool_outputfile=$lt_tool_outputfile.exe 9789 ;; 9790 esac~ 9791 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9792 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9793 $RM "$lt_outputfile.manifest"; 9794 fi' 9795 ;; 9796 *) 9797 # Assume MSVC wrapper 9798 hardcode_libdir_flag_spec=' ' 9799 allow_undefined_flag=unsupported 9800 # Tell ltmain to make .lib files, not .a files. 9801 libext=lib 9802 # Tell ltmain to make .dll files, not .so files. 9803 shrext_cmds=.dll 9804 # FIXME: Setting linknames here is a bad hack. 9805 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9806 # The linker will automatically build a .lib file if we build a DLL. 9807 old_archive_from_new_cmds='true' 9808 # FIXME: Should let the user specify the lib program. 9809 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9810 enable_shared_with_static_runtimes=yes 9811 ;; 9812 esac 9813 ;; 9814 9815 darwin* | rhapsody*) 9816 9817 9818 archive_cmds_need_lc=no 9819 hardcode_direct=no 9820 hardcode_automatic=yes 9821 hardcode_shlibpath_var=unsupported 9822 if test yes = "$lt_cv_ld_force_load"; then 9823 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\"`' 9824 9825 else 9826 whole_archive_flag_spec='' 9827 fi 9828 link_all_deplibs=yes 9829 allow_undefined_flag=$_lt_dar_allow_undefined 9830 case $cc_basename in 9831 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9832 *) _lt_dar_can_shared=$GCC ;; 9833 esac 9834 if test yes = "$_lt_dar_can_shared"; then 9835 output_verbose_link_cmd=func_echo_all 9836 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9837 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9838 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" 9839 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" 9840 9841 else 9842 ld_shlibs=no 9843 fi 9844 9845 ;; 9846 9847 dgux*) 9848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9849 hardcode_libdir_flag_spec='-L$libdir' 9850 hardcode_shlibpath_var=no 9851 ;; 9852 9853 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9854 # support. Future versions do this automatically, but an explicit c++rt0.o 9855 # does not break anything, and helps significantly (at the cost of a little 9856 # extra space). 9857 freebsd2.2*) 9858 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9859 hardcode_libdir_flag_spec='-R$libdir' 9860 hardcode_direct=yes 9861 hardcode_shlibpath_var=no 9862 ;; 9863 9864 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9865 freebsd2.*) 9866 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9867 hardcode_direct=yes 9868 hardcode_minus_L=yes 9869 hardcode_shlibpath_var=no 9870 ;; 9871 9872 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9873 freebsd* | dragonfly*) 9874 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9875 hardcode_libdir_flag_spec='-R$libdir' 9876 hardcode_direct=yes 9877 hardcode_shlibpath_var=no 9878 ;; 9879 9880 hpux9*) 9881 if test yes = "$GCC"; then 9882 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' 9883 else 9884 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' 9885 fi 9886 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9887 hardcode_libdir_separator=: 9888 hardcode_direct=yes 9889 9890 # hardcode_minus_L: Not really in the search PATH, 9891 # but as the default location of the library. 9892 hardcode_minus_L=yes 9893 export_dynamic_flag_spec='$wl-E' 9894 ;; 9895 9896 hpux10*) 9897 if test yes,no = "$GCC,$with_gnu_ld"; then 9898 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9899 else 9900 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9901 fi 9902 if test no = "$with_gnu_ld"; then 9903 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9904 hardcode_libdir_separator=: 9905 hardcode_direct=yes 9906 hardcode_direct_absolute=yes 9907 export_dynamic_flag_spec='$wl-E' 9908 # hardcode_minus_L: Not really in the search PATH, 9909 # but as the default location of the library. 9910 hardcode_minus_L=yes 9911 fi 9912 ;; 9913 9914 hpux11*) 9915 if test yes,no = "$GCC,$with_gnu_ld"; then 9916 case $host_cpu in 9917 hppa*64*) 9918 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9919 ;; 9920 ia64*) 9921 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9922 ;; 9923 *) 9924 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9925 ;; 9926 esac 9927 else 9928 case $host_cpu in 9929 hppa*64*) 9930 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9931 ;; 9932 ia64*) 9933 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9934 ;; 9935 *) 9936 9937 # Older versions of the 11.00 compiler do not understand -b yet 9938 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9940$as_echo_n "checking if $CC understands -b... " >&6; } 9941if ${lt_cv_prog_compiler__b+:} false; then : 9942 $as_echo_n "(cached) " >&6 9943else 9944 lt_cv_prog_compiler__b=no 9945 save_LDFLAGS=$LDFLAGS 9946 LDFLAGS="$LDFLAGS -b" 9947 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9948 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9949 # The linker can only warn and ignore the option if not recognized 9950 # So say no if there are warnings 9951 if test -s conftest.err; then 9952 # Append any errors to the config.log. 9953 cat conftest.err 1>&5 9954 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9955 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9956 if diff conftest.exp conftest.er2 >/dev/null; then 9957 lt_cv_prog_compiler__b=yes 9958 fi 9959 else 9960 lt_cv_prog_compiler__b=yes 9961 fi 9962 fi 9963 $RM -r conftest* 9964 LDFLAGS=$save_LDFLAGS 9965 9966fi 9967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9968$as_echo "$lt_cv_prog_compiler__b" >&6; } 9969 9970if test yes = "$lt_cv_prog_compiler__b"; then 9971 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9972else 9973 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9974fi 9975 9976 ;; 9977 esac 9978 fi 9979 if test no = "$with_gnu_ld"; then 9980 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9981 hardcode_libdir_separator=: 9982 9983 case $host_cpu in 9984 hppa*64*|ia64*) 9985 hardcode_direct=no 9986 hardcode_shlibpath_var=no 9987 ;; 9988 *) 9989 hardcode_direct=yes 9990 hardcode_direct_absolute=yes 9991 export_dynamic_flag_spec='$wl-E' 9992 9993 # hardcode_minus_L: Not really in the search PATH, 9994 # but as the default location of the library. 9995 hardcode_minus_L=yes 9996 ;; 9997 esac 9998 fi 9999 ;; 10000 10001 irix5* | irix6* | nonstopux*) 10002 if test yes = "$GCC"; then 10003 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' 10004 # Try to use the -exported_symbol ld option, if it does not 10005 # work, assume that -exports_file does not work either and 10006 # implicitly export all symbols. 10007 # This should be the same for all languages, so no per-tag cache variable. 10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10009$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10010if ${lt_cv_irix_exported_symbol+:} false; then : 10011 $as_echo_n "(cached) " >&6 10012else 10013 save_LDFLAGS=$LDFLAGS 10014 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10016/* end confdefs.h. */ 10017int foo (void) { return 0; } 10018_ACEOF 10019if ac_fn_c_try_link "$LINENO"; then : 10020 lt_cv_irix_exported_symbol=yes 10021else 10022 lt_cv_irix_exported_symbol=no 10023fi 10024rm -f core conftest.err conftest.$ac_objext \ 10025 conftest$ac_exeext conftest.$ac_ext 10026 LDFLAGS=$save_LDFLAGS 10027fi 10028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10029$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10030 if test yes = "$lt_cv_irix_exported_symbol"; then 10031 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' 10032 fi 10033 else 10034 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' 10035 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' 10036 fi 10037 archive_cmds_need_lc='no' 10038 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10039 hardcode_libdir_separator=: 10040 inherit_rpath=yes 10041 link_all_deplibs=yes 10042 ;; 10043 10044 linux*) 10045 case $cc_basename in 10046 tcc*) 10047 # Fabrice Bellard et al's Tiny C Compiler 10048 ld_shlibs=yes 10049 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10050 ;; 10051 esac 10052 ;; 10053 10054 netbsd*) 10055 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10057 else 10058 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10059 fi 10060 hardcode_libdir_flag_spec='-R$libdir' 10061 hardcode_direct=yes 10062 hardcode_shlibpath_var=no 10063 ;; 10064 10065 newsos6) 10066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10067 hardcode_direct=yes 10068 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10069 hardcode_libdir_separator=: 10070 hardcode_shlibpath_var=no 10071 ;; 10072 10073 *nto* | *qnx*) 10074 ;; 10075 10076 openbsd* | bitrig*) 10077 if test -f /usr/libexec/ld.so; then 10078 hardcode_direct=yes 10079 hardcode_shlibpath_var=no 10080 hardcode_direct_absolute=yes 10081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10082 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10083 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10084 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10085 export_dynamic_flag_spec='$wl-E' 10086 else 10087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10088 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10089 fi 10090 else 10091 ld_shlibs=no 10092 fi 10093 ;; 10094 10095 os2*) 10096 hardcode_libdir_flag_spec='-L$libdir' 10097 hardcode_minus_L=yes 10098 allow_undefined_flag=unsupported 10099 shrext_cmds=.dll 10100 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10101 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10102 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10103 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10104 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10105 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10106 emximp -o $lib $output_objdir/$libname.def' 10107 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10108 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10109 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10110 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10111 prefix_cmds="$SED"~ 10112 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10113 prefix_cmds="$prefix_cmds -e 1d"; 10114 fi~ 10115 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10116 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10117 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10118 emximp -o $lib $output_objdir/$libname.def' 10119 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10120 enable_shared_with_static_runtimes=yes 10121 ;; 10122 10123 osf3*) 10124 if test yes = "$GCC"; then 10125 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10126 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' 10127 else 10128 allow_undefined_flag=' -expect_unresolved \*' 10129 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' 10130 fi 10131 archive_cmds_need_lc='no' 10132 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10133 hardcode_libdir_separator=: 10134 ;; 10135 10136 osf4* | osf5*) # as osf3* with the addition of -msym flag 10137 if test yes = "$GCC"; then 10138 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10139 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' 10140 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10141 else 10142 allow_undefined_flag=' -expect_unresolved \*' 10143 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' 10144 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~ 10145 $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' 10146 10147 # Both c and cxx compiler support -rpath directly 10148 hardcode_libdir_flag_spec='-rpath $libdir' 10149 fi 10150 archive_cmds_need_lc='no' 10151 hardcode_libdir_separator=: 10152 ;; 10153 10154 solaris*) 10155 no_undefined_flag=' -z defs' 10156 if test yes = "$GCC"; then 10157 wlarc='$wl' 10158 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10160 $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' 10161 else 10162 case `$CC -V 2>&1` in 10163 *"Compilers 5.0"*) 10164 wlarc='' 10165 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10166 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10167 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10168 ;; 10169 *) 10170 wlarc='$wl' 10171 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10173 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10174 ;; 10175 esac 10176 fi 10177 hardcode_libdir_flag_spec='-R$libdir' 10178 hardcode_shlibpath_var=no 10179 case $host_os in 10180 solaris2.[0-5] | solaris2.[0-5].*) ;; 10181 *) 10182 # The compiler driver will combine and reorder linker options, 10183 # but understands '-z linker_flag'. GCC discards it without '$wl', 10184 # but is careful enough not to reorder. 10185 # Supported since Solaris 2.6 (maybe 2.5.1?) 10186 if test yes = "$GCC"; then 10187 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10188 else 10189 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10190 fi 10191 ;; 10192 esac 10193 link_all_deplibs=yes 10194 ;; 10195 10196 sunos4*) 10197 if test sequent = "$host_vendor"; then 10198 # Use $CC to link under sequent, because it throws in some extra .o 10199 # files that make .init and .fini sections work. 10200 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10201 else 10202 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10203 fi 10204 hardcode_libdir_flag_spec='-L$libdir' 10205 hardcode_direct=yes 10206 hardcode_minus_L=yes 10207 hardcode_shlibpath_var=no 10208 ;; 10209 10210 sysv4) 10211 case $host_vendor in 10212 sni) 10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10214 hardcode_direct=yes # is this really true??? 10215 ;; 10216 siemens) 10217 ## LD is ld it makes a PLAMLIB 10218 ## CC just makes a GrossModule. 10219 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10220 reload_cmds='$CC -r -o $output$reload_objs' 10221 hardcode_direct=no 10222 ;; 10223 motorola) 10224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10225 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10226 ;; 10227 esac 10228 runpath_var='LD_RUN_PATH' 10229 hardcode_shlibpath_var=no 10230 ;; 10231 10232 sysv4.3*) 10233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10234 hardcode_shlibpath_var=no 10235 export_dynamic_flag_spec='-Bexport' 10236 ;; 10237 10238 sysv4*MP*) 10239 if test -d /usr/nec; then 10240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10241 hardcode_shlibpath_var=no 10242 runpath_var=LD_RUN_PATH 10243 hardcode_runpath_var=yes 10244 ld_shlibs=yes 10245 fi 10246 ;; 10247 10248 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10249 no_undefined_flag='$wl-z,text' 10250 archive_cmds_need_lc=no 10251 hardcode_shlibpath_var=no 10252 runpath_var='LD_RUN_PATH' 10253 10254 if test yes = "$GCC"; then 10255 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10256 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10257 else 10258 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10259 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10260 fi 10261 ;; 10262 10263 sysv5* | sco3.2v5* | sco5v6*) 10264 # Note: We CANNOT use -z defs as we might desire, because we do not 10265 # link with -lc, and that would cause any symbols used from libc to 10266 # always be unresolved, which means just about no library would 10267 # ever link correctly. If we're not using GNU ld we use -z text 10268 # though, which does catch some bad symbols but isn't as heavy-handed 10269 # as -z defs. 10270 no_undefined_flag='$wl-z,text' 10271 allow_undefined_flag='$wl-z,nodefs' 10272 archive_cmds_need_lc=no 10273 hardcode_shlibpath_var=no 10274 hardcode_libdir_flag_spec='$wl-R,$libdir' 10275 hardcode_libdir_separator=':' 10276 link_all_deplibs=yes 10277 export_dynamic_flag_spec='$wl-Bexport' 10278 runpath_var='LD_RUN_PATH' 10279 10280 if test yes = "$GCC"; then 10281 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10282 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10283 else 10284 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10285 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10286 fi 10287 ;; 10288 10289 uts4*) 10290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10291 hardcode_libdir_flag_spec='-L$libdir' 10292 hardcode_shlibpath_var=no 10293 ;; 10294 10295 *) 10296 ld_shlibs=no 10297 ;; 10298 esac 10299 10300 if test sni = "$host_vendor"; then 10301 case $host in 10302 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10303 export_dynamic_flag_spec='$wl-Blargedynsym' 10304 ;; 10305 esac 10306 fi 10307 fi 10308 10309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10310$as_echo "$ld_shlibs" >&6; } 10311test no = "$ld_shlibs" && can_build_shared=no 10312 10313with_gnu_ld=$with_gnu_ld 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329# 10330# Do we need to explicitly link libc? 10331# 10332case "x$archive_cmds_need_lc" in 10333x|xyes) 10334 # Assume -lc should be added 10335 archive_cmds_need_lc=yes 10336 10337 if test yes,yes = "$GCC,$enable_shared"; then 10338 case $archive_cmds in 10339 *'~'*) 10340 # FIXME: we may have to deal with multi-command sequences. 10341 ;; 10342 '$CC '*) 10343 # Test whether the compiler implicitly links with -lc since on some 10344 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10345 # to ld, don't add -lc before -lgcc. 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10347$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10348if ${lt_cv_archive_cmds_need_lc+:} false; then : 10349 $as_echo_n "(cached) " >&6 10350else 10351 $RM conftest* 10352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10353 10354 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10355 (eval $ac_compile) 2>&5 10356 ac_status=$? 10357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10358 test $ac_status = 0; } 2>conftest.err; then 10359 soname=conftest 10360 lib=conftest 10361 libobjs=conftest.$ac_objext 10362 deplibs= 10363 wl=$lt_prog_compiler_wl 10364 pic_flag=$lt_prog_compiler_pic 10365 compiler_flags=-v 10366 linker_flags=-v 10367 verstring= 10368 output_objdir=. 10369 libname=conftest 10370 lt_save_allow_undefined_flag=$allow_undefined_flag 10371 allow_undefined_flag= 10372 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10373 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10374 ac_status=$? 10375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10376 test $ac_status = 0; } 10377 then 10378 lt_cv_archive_cmds_need_lc=no 10379 else 10380 lt_cv_archive_cmds_need_lc=yes 10381 fi 10382 allow_undefined_flag=$lt_save_allow_undefined_flag 10383 else 10384 cat conftest.err 1>&5 10385 fi 10386 $RM conftest* 10387 10388fi 10389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10390$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10391 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10392 ;; 10393 esac 10394 fi 10395 ;; 10396esac 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10550$as_echo_n "checking dynamic linker characteristics... " >&6; } 10551 10552if test yes = "$GCC"; then 10553 case $host_os in 10554 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10555 *) lt_awk_arg='/^libraries:/' ;; 10556 esac 10557 case $host_os in 10558 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10559 *) lt_sed_strip_eq='s|=/|/|g' ;; 10560 esac 10561 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10562 case $lt_search_path_spec in 10563 *\;*) 10564 # if the path contains ";" then we assume it to be the separator 10565 # otherwise default to the standard path separator (i.e. ":") - it is 10566 # assumed that no part of a normal pathname contains ";" but that should 10567 # okay in the real world where ";" in dirpaths is itself problematic. 10568 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10569 ;; 10570 *) 10571 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10572 ;; 10573 esac 10574 # Ok, now we have the path, separated by spaces, we can step through it 10575 # and add multilib dir if necessary... 10576 lt_tmp_lt_search_path_spec= 10577 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10578 # ...but if some path component already ends with the multilib dir we assume 10579 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10580 case "$lt_multi_os_dir; $lt_search_path_spec " in 10581 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10582 lt_multi_os_dir= 10583 ;; 10584 esac 10585 for lt_sys_path in $lt_search_path_spec; do 10586 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10587 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10588 elif test -n "$lt_multi_os_dir"; then 10589 test -d "$lt_sys_path" && \ 10590 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10591 fi 10592 done 10593 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10594BEGIN {RS = " "; FS = "/|\n";} { 10595 lt_foo = ""; 10596 lt_count = 0; 10597 for (lt_i = NF; lt_i > 0; lt_i--) { 10598 if ($lt_i != "" && $lt_i != ".") { 10599 if ($lt_i == "..") { 10600 lt_count++; 10601 } else { 10602 if (lt_count == 0) { 10603 lt_foo = "/" $lt_i lt_foo; 10604 } else { 10605 lt_count--; 10606 } 10607 } 10608 } 10609 } 10610 if (lt_foo != "") { lt_freq[lt_foo]++; } 10611 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10612}'` 10613 # AWK program above erroneously prepends '/' to C:/dos/paths 10614 # for these hosts. 10615 case $host_os in 10616 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10617 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10618 esac 10619 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10620else 10621 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10622fi 10623library_names_spec= 10624libname_spec='lib$name' 10625soname_spec= 10626shrext_cmds=.so 10627postinstall_cmds= 10628postuninstall_cmds= 10629finish_cmds= 10630finish_eval= 10631shlibpath_var= 10632shlibpath_overrides_runpath=unknown 10633version_type=none 10634dynamic_linker="$host_os ld.so" 10635sys_lib_dlsearch_path_spec="/lib /usr/lib" 10636need_lib_prefix=unknown 10637hardcode_into_libs=no 10638 10639# when you set need_version to no, make sure it does not cause -set_version 10640# flags to be left without arguments 10641need_version=unknown 10642 10643 10644 10645case $host_os in 10646aix3*) 10647 version_type=linux # correct to gnu/linux during the next big refactor 10648 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10649 shlibpath_var=LIBPATH 10650 10651 # AIX 3 has no versioning support, so we append a major version to the name. 10652 soname_spec='$libname$release$shared_ext$major' 10653 ;; 10654 10655aix[4-9]*) 10656 version_type=linux # correct to gnu/linux during the next big refactor 10657 need_lib_prefix=no 10658 need_version=no 10659 hardcode_into_libs=yes 10660 if test ia64 = "$host_cpu"; then 10661 # AIX 5 supports IA64 10662 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10663 shlibpath_var=LD_LIBRARY_PATH 10664 else 10665 # With GCC up to 2.95.x, collect2 would create an import file 10666 # for dependence libraries. The import file would start with 10667 # the line '#! .'. This would cause the generated library to 10668 # depend on '.', always an invalid library. This was fixed in 10669 # development snapshots of GCC prior to 3.0. 10670 case $host_os in 10671 aix4 | aix4.[01] | aix4.[01].*) 10672 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10673 echo ' yes ' 10674 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10675 : 10676 else 10677 can_build_shared=no 10678 fi 10679 ;; 10680 esac 10681 # Using Import Files as archive members, it is possible to support 10682 # filename-based versioning of shared library archives on AIX. While 10683 # this would work for both with and without runtime linking, it will 10684 # prevent static linking of such archives. So we do filename-based 10685 # shared library versioning with .so extension only, which is used 10686 # when both runtime linking and shared linking is enabled. 10687 # Unfortunately, runtime linking may impact performance, so we do 10688 # not want this to be the default eventually. Also, we use the 10689 # versioned .so libs for executables only if there is the -brtl 10690 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10691 # To allow for filename-based versioning support, we need to create 10692 # libNAME.so.V as an archive file, containing: 10693 # *) an Import File, referring to the versioned filename of the 10694 # archive as well as the shared archive member, telling the 10695 # bitwidth (32 or 64) of that shared object, and providing the 10696 # list of exported symbols of that shared object, eventually 10697 # decorated with the 'weak' keyword 10698 # *) the shared object with the F_LOADONLY flag set, to really avoid 10699 # it being seen by the linker. 10700 # At run time we better use the real file rather than another symlink, 10701 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10702 10703 case $with_aix_soname,$aix_use_runtimelinking in 10704 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10705 # soname into executable. Probably we can add versioning support to 10706 # collect2, so additional links can be useful in future. 10707 aix,yes) # traditional libtool 10708 dynamic_linker='AIX unversionable lib.so' 10709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10710 # instead of lib<name>.a to let people know that these are not 10711 # typical AIX shared libraries. 10712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10713 ;; 10714 aix,no) # traditional AIX only 10715 dynamic_linker='AIX lib.a(lib.so.V)' 10716 # We preserve .a as extension for shared libraries through AIX4.2 10717 # and later when we are not doing run time linking. 10718 library_names_spec='$libname$release.a $libname.a' 10719 soname_spec='$libname$release$shared_ext$major' 10720 ;; 10721 svr4,*) # full svr4 only 10722 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10723 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10724 # We do not specify a path in Import Files, so LIBPATH fires. 10725 shlibpath_overrides_runpath=yes 10726 ;; 10727 *,yes) # both, prefer svr4 10728 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10729 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10730 # unpreferred sharedlib libNAME.a needs extra handling 10731 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"' 10732 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"' 10733 # We do not specify a path in Import Files, so LIBPATH fires. 10734 shlibpath_overrides_runpath=yes 10735 ;; 10736 *,no) # both, prefer aix 10737 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10738 library_names_spec='$libname$release.a $libname.a' 10739 soname_spec='$libname$release$shared_ext$major' 10740 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10741 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)' 10742 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"' 10743 ;; 10744 esac 10745 shlibpath_var=LIBPATH 10746 fi 10747 ;; 10748 10749amigaos*) 10750 case $host_cpu in 10751 powerpc) 10752 # Since July 2007 AmigaOS4 officially supports .so libraries. 10753 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10755 ;; 10756 m68k) 10757 library_names_spec='$libname.ixlibrary $libname.a' 10758 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10759 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' 10760 ;; 10761 esac 10762 ;; 10763 10764beos*) 10765 library_names_spec='$libname$shared_ext' 10766 dynamic_linker="$host_os ld.so" 10767 shlibpath_var=LIBRARY_PATH 10768 ;; 10769 10770bsdi[45]*) 10771 version_type=linux # correct to gnu/linux during the next big refactor 10772 need_version=no 10773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10774 soname_spec='$libname$release$shared_ext$major' 10775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10776 shlibpath_var=LD_LIBRARY_PATH 10777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10779 # the default ld.so.conf also contains /usr/contrib/lib and 10780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10781 # libtool to hard-code these into programs 10782 ;; 10783 10784cygwin* | mingw* | pw32* | cegcc*) 10785 version_type=windows 10786 shrext_cmds=.dll 10787 need_version=no 10788 need_lib_prefix=no 10789 10790 case $GCC,$cc_basename in 10791 yes,*) 10792 # gcc 10793 library_names_spec='$libname.dll.a' 10794 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10795 postinstall_cmds='base_file=`basename \$file`~ 10796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10797 dldir=$destdir/`dirname \$dlpath`~ 10798 test -d \$dldir || mkdir -p \$dldir~ 10799 $install_prog $dir/$dlname \$dldir/$dlname~ 10800 chmod a+x \$dldir/$dlname~ 10801 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10802 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10803 fi' 10804 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10805 dlpath=$dir/\$dldll~ 10806 $RM \$dlpath' 10807 shlibpath_overrides_runpath=yes 10808 10809 case $host_os in 10810 cygwin*) 10811 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10812 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10813 10814 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10815 ;; 10816 mingw* | cegcc*) 10817 # MinGW DLLs use traditional 'lib' prefix 10818 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10819 ;; 10820 pw32*) 10821 # pw32 DLLs use 'pw' prefix rather than 'lib' 10822 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10823 ;; 10824 esac 10825 dynamic_linker='Win32 ld.exe' 10826 ;; 10827 10828 *,cl*) 10829 # Native MSVC 10830 libname_spec='$name' 10831 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10832 library_names_spec='$libname.dll.lib' 10833 10834 case $build_os in 10835 mingw*) 10836 sys_lib_search_path_spec= 10837 lt_save_ifs=$IFS 10838 IFS=';' 10839 for lt_path in $LIB 10840 do 10841 IFS=$lt_save_ifs 10842 # Let DOS variable expansion print the short 8.3 style file name. 10843 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10844 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10845 done 10846 IFS=$lt_save_ifs 10847 # Convert to MSYS style. 10848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10849 ;; 10850 cygwin*) 10851 # Convert to unix form, then to dos form, then back to unix form 10852 # but this time dos style (no spaces!) so that the unix form looks 10853 # like /cygdrive/c/PROGRA~1:/cygdr... 10854 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10855 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10856 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10857 ;; 10858 *) 10859 sys_lib_search_path_spec=$LIB 10860 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10861 # It is most probably a Windows format PATH. 10862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10863 else 10864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10865 fi 10866 # FIXME: find the short name or the path components, as spaces are 10867 # common. (e.g. "Program Files" -> "PROGRA~1") 10868 ;; 10869 esac 10870 10871 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10872 postinstall_cmds='base_file=`basename \$file`~ 10873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10874 dldir=$destdir/`dirname \$dlpath`~ 10875 test -d \$dldir || mkdir -p \$dldir~ 10876 $install_prog $dir/$dlname \$dldir/$dlname' 10877 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10878 dlpath=$dir/\$dldll~ 10879 $RM \$dlpath' 10880 shlibpath_overrides_runpath=yes 10881 dynamic_linker='Win32 link.exe' 10882 ;; 10883 10884 *) 10885 # Assume MSVC wrapper 10886 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10887 dynamic_linker='Win32 ld.exe' 10888 ;; 10889 esac 10890 # FIXME: first we should search . and the directory the executable is in 10891 shlibpath_var=PATH 10892 ;; 10893 10894darwin* | rhapsody*) 10895 dynamic_linker="$host_os dyld" 10896 version_type=darwin 10897 need_lib_prefix=no 10898 need_version=no 10899 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10900 soname_spec='$libname$release$major$shared_ext' 10901 shlibpath_overrides_runpath=yes 10902 shlibpath_var=DYLD_LIBRARY_PATH 10903 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10904 10905 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10907 ;; 10908 10909dgux*) 10910 version_type=linux # correct to gnu/linux during the next big refactor 10911 need_lib_prefix=no 10912 need_version=no 10913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10914 soname_spec='$libname$release$shared_ext$major' 10915 shlibpath_var=LD_LIBRARY_PATH 10916 ;; 10917 10918freebsd* | dragonfly*) 10919 # DragonFly does not have aout. When/if they implement a new 10920 # versioning mechanism, adjust this. 10921 if test -x /usr/bin/objformat; then 10922 objformat=`/usr/bin/objformat` 10923 else 10924 case $host_os in 10925 freebsd[23].*) objformat=aout ;; 10926 *) objformat=elf ;; 10927 esac 10928 fi 10929 version_type=freebsd-$objformat 10930 case $version_type in 10931 freebsd-elf*) 10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10933 soname_spec='$libname$release$shared_ext$major' 10934 need_version=no 10935 need_lib_prefix=no 10936 ;; 10937 freebsd-*) 10938 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10939 need_version=yes 10940 ;; 10941 esac 10942 shlibpath_var=LD_LIBRARY_PATH 10943 case $host_os in 10944 freebsd2.*) 10945 shlibpath_overrides_runpath=yes 10946 ;; 10947 freebsd3.[01]* | freebsdelf3.[01]*) 10948 shlibpath_overrides_runpath=yes 10949 hardcode_into_libs=yes 10950 ;; 10951 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10952 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10953 shlibpath_overrides_runpath=no 10954 hardcode_into_libs=yes 10955 ;; 10956 *) # from 4.6 on, and DragonFly 10957 shlibpath_overrides_runpath=yes 10958 hardcode_into_libs=yes 10959 ;; 10960 esac 10961 ;; 10962 10963haiku*) 10964 version_type=linux # correct to gnu/linux during the next big refactor 10965 need_lib_prefix=no 10966 need_version=no 10967 dynamic_linker="$host_os runtime_loader" 10968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10969 soname_spec='$libname$release$shared_ext$major' 10970 shlibpath_var=LIBRARY_PATH 10971 shlibpath_overrides_runpath=no 10972 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10973 hardcode_into_libs=yes 10974 ;; 10975 10976hpux9* | hpux10* | hpux11*) 10977 # Give a soname corresponding to the major version so that dld.sl refuses to 10978 # link against other versions. 10979 version_type=sunos 10980 need_lib_prefix=no 10981 need_version=no 10982 case $host_cpu in 10983 ia64*) 10984 shrext_cmds='.so' 10985 hardcode_into_libs=yes 10986 dynamic_linker="$host_os dld.so" 10987 shlibpath_var=LD_LIBRARY_PATH 10988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10990 soname_spec='$libname$release$shared_ext$major' 10991 if test 32 = "$HPUX_IA64_MODE"; then 10992 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10993 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10994 else 10995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10996 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10997 fi 10998 ;; 10999 hppa*64*) 11000 shrext_cmds='.sl' 11001 hardcode_into_libs=yes 11002 dynamic_linker="$host_os dld.sl" 11003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11005 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11006 soname_spec='$libname$release$shared_ext$major' 11007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11009 ;; 11010 *) 11011 shrext_cmds='.sl' 11012 dynamic_linker="$host_os dld.sl" 11013 shlibpath_var=SHLIB_PATH 11014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11016 soname_spec='$libname$release$shared_ext$major' 11017 ;; 11018 esac 11019 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11020 postinstall_cmds='chmod 555 $lib' 11021 # or fails outright, so override atomically: 11022 install_override_mode=555 11023 ;; 11024 11025interix[3-9]*) 11026 version_type=linux # correct to gnu/linux during the next big refactor 11027 need_lib_prefix=no 11028 need_version=no 11029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11030 soname_spec='$libname$release$shared_ext$major' 11031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11032 shlibpath_var=LD_LIBRARY_PATH 11033 shlibpath_overrides_runpath=no 11034 hardcode_into_libs=yes 11035 ;; 11036 11037irix5* | irix6* | nonstopux*) 11038 case $host_os in 11039 nonstopux*) version_type=nonstopux ;; 11040 *) 11041 if test yes = "$lt_cv_prog_gnu_ld"; then 11042 version_type=linux # correct to gnu/linux during the next big refactor 11043 else 11044 version_type=irix 11045 fi ;; 11046 esac 11047 need_lib_prefix=no 11048 need_version=no 11049 soname_spec='$libname$release$shared_ext$major' 11050 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11051 case $host_os in 11052 irix5* | nonstopux*) 11053 libsuff= shlibsuff= 11054 ;; 11055 *) 11056 case $LD in # libtool.m4 will add one of these switches to LD 11057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11058 libsuff= shlibsuff= libmagic=32-bit;; 11059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11060 libsuff=32 shlibsuff=N32 libmagic=N32;; 11061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11062 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11063 *) libsuff= shlibsuff= libmagic=never-match;; 11064 esac 11065 ;; 11066 esac 11067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11068 shlibpath_overrides_runpath=no 11069 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11070 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11071 hardcode_into_libs=yes 11072 ;; 11073 11074# No shared lib support for Linux oldld, aout, or coff. 11075linux*oldld* | linux*aout* | linux*coff*) 11076 dynamic_linker=no 11077 ;; 11078 11079linux*android*) 11080 version_type=none # Android doesn't support versioned libraries. 11081 need_lib_prefix=no 11082 need_version=no 11083 library_names_spec='$libname$release$shared_ext' 11084 soname_spec='$libname$release$shared_ext' 11085 finish_cmds= 11086 shlibpath_var=LD_LIBRARY_PATH 11087 shlibpath_overrides_runpath=yes 11088 11089 # This implies no fast_install, which is unacceptable. 11090 # Some rework will be needed to allow for fast_install 11091 # before this can be enabled. 11092 hardcode_into_libs=yes 11093 11094 dynamic_linker='Android linker' 11095 # Don't embed -rpath directories since the linker doesn't support them. 11096 hardcode_libdir_flag_spec='-L$libdir' 11097 ;; 11098 11099# This must be glibc/ELF. 11100linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11101 version_type=linux # correct to gnu/linux during the next big refactor 11102 need_lib_prefix=no 11103 need_version=no 11104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11105 soname_spec='$libname$release$shared_ext$major' 11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11107 shlibpath_var=LD_LIBRARY_PATH 11108 shlibpath_overrides_runpath=no 11109 11110 # Some binutils ld are patched to set DT_RUNPATH 11111 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11112 $as_echo_n "(cached) " >&6 11113else 11114 lt_cv_shlibpath_overrides_runpath=no 11115 save_LDFLAGS=$LDFLAGS 11116 save_libdir=$libdir 11117 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11118 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11120/* end confdefs.h. */ 11121 11122int 11123main () 11124{ 11125 11126 ; 11127 return 0; 11128} 11129_ACEOF 11130if ac_fn_c_try_link "$LINENO"; then : 11131 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11132 lt_cv_shlibpath_overrides_runpath=yes 11133fi 11134fi 11135rm -f core conftest.err conftest.$ac_objext \ 11136 conftest$ac_exeext conftest.$ac_ext 11137 LDFLAGS=$save_LDFLAGS 11138 libdir=$save_libdir 11139 11140fi 11141 11142 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11143 11144 # This implies no fast_install, which is unacceptable. 11145 # Some rework will be needed to allow for fast_install 11146 # before this can be enabled. 11147 hardcode_into_libs=yes 11148 11149 # Ideally, we could use ldconfig to report *all* directores which are 11150 # searched for libraries, however this is still not possible. Aside from not 11151 # being certain /sbin/ldconfig is available, command 11152 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11153 # even though it is searched at run-time. Try to do the best guess by 11154 # appending ld.so.conf contents (and includes) to the search path. 11155 if test -f /etc/ld.so.conf; then 11156 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' ' '` 11157 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11158 fi 11159 11160 # We used to test for /lib/ld.so.1 and disable shared libraries on 11161 # powerpc, because MkLinux only supported shared libraries with the 11162 # GNU dynamic linker. Since this was broken with cross compilers, 11163 # most powerpc-linux boxes support dynamic linking these days and 11164 # people can always --disable-shared, the test was removed, and we 11165 # assume the GNU/Linux dynamic linker is in use. 11166 dynamic_linker='GNU/Linux ld.so' 11167 ;; 11168 11169netbsd*) 11170 version_type=sunos 11171 need_lib_prefix=no 11172 need_version=no 11173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11174 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11176 dynamic_linker='NetBSD (a.out) ld.so' 11177 else 11178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11179 soname_spec='$libname$release$shared_ext$major' 11180 dynamic_linker='NetBSD ld.elf_so' 11181 fi 11182 shlibpath_var=LD_LIBRARY_PATH 11183 shlibpath_overrides_runpath=yes 11184 hardcode_into_libs=yes 11185 ;; 11186 11187newsos6) 11188 version_type=linux # correct to gnu/linux during the next big refactor 11189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11190 shlibpath_var=LD_LIBRARY_PATH 11191 shlibpath_overrides_runpath=yes 11192 ;; 11193 11194*nto* | *qnx*) 11195 version_type=qnx 11196 need_lib_prefix=no 11197 need_version=no 11198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11199 soname_spec='$libname$release$shared_ext$major' 11200 shlibpath_var=LD_LIBRARY_PATH 11201 shlibpath_overrides_runpath=no 11202 hardcode_into_libs=yes 11203 dynamic_linker='ldqnx.so' 11204 ;; 11205 11206openbsd* | bitrig*) 11207 version_type=sunos 11208 sys_lib_dlsearch_path_spec=/usr/lib 11209 need_lib_prefix=no 11210 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11211 need_version=no 11212 else 11213 need_version=yes 11214 fi 11215 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11216 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11217 shlibpath_var=LD_LIBRARY_PATH 11218 shlibpath_overrides_runpath=yes 11219 ;; 11220 11221os2*) 11222 libname_spec='$name' 11223 version_type=windows 11224 shrext_cmds=.dll 11225 need_version=no 11226 need_lib_prefix=no 11227 # OS/2 can only load a DLL with a base name of 8 characters or less. 11228 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11229 v=$($ECHO $release$versuffix | tr -d .-); 11230 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11231 $ECHO $n$v`$shared_ext' 11232 library_names_spec='${libname}_dll.$libext' 11233 dynamic_linker='OS/2 ld.exe' 11234 shlibpath_var=BEGINLIBPATH 11235 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11236 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11237 postinstall_cmds='base_file=`basename \$file`~ 11238 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11239 dldir=$destdir/`dirname \$dlpath`~ 11240 test -d \$dldir || mkdir -p \$dldir~ 11241 $install_prog $dir/$dlname \$dldir/$dlname~ 11242 chmod a+x \$dldir/$dlname~ 11243 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11244 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11245 fi' 11246 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11247 dlpath=$dir/\$dldll~ 11248 $RM \$dlpath' 11249 ;; 11250 11251osf3* | osf4* | osf5*) 11252 version_type=osf 11253 need_lib_prefix=no 11254 need_version=no 11255 soname_spec='$libname$release$shared_ext$major' 11256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11257 shlibpath_var=LD_LIBRARY_PATH 11258 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11260 ;; 11261 11262rdos*) 11263 dynamic_linker=no 11264 ;; 11265 11266solaris*) 11267 version_type=linux # correct to gnu/linux during the next big refactor 11268 need_lib_prefix=no 11269 need_version=no 11270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11271 soname_spec='$libname$release$shared_ext$major' 11272 shlibpath_var=LD_LIBRARY_PATH 11273 shlibpath_overrides_runpath=yes 11274 hardcode_into_libs=yes 11275 # ldd complains unless libraries are executable 11276 postinstall_cmds='chmod +x $lib' 11277 ;; 11278 11279sunos4*) 11280 version_type=sunos 11281 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11282 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11283 shlibpath_var=LD_LIBRARY_PATH 11284 shlibpath_overrides_runpath=yes 11285 if test yes = "$with_gnu_ld"; then 11286 need_lib_prefix=no 11287 fi 11288 need_version=yes 11289 ;; 11290 11291sysv4 | sysv4.3*) 11292 version_type=linux # correct to gnu/linux during the next big refactor 11293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11294 soname_spec='$libname$release$shared_ext$major' 11295 shlibpath_var=LD_LIBRARY_PATH 11296 case $host_vendor in 11297 sni) 11298 shlibpath_overrides_runpath=no 11299 need_lib_prefix=no 11300 runpath_var=LD_RUN_PATH 11301 ;; 11302 siemens) 11303 need_lib_prefix=no 11304 ;; 11305 motorola) 11306 need_lib_prefix=no 11307 need_version=no 11308 shlibpath_overrides_runpath=no 11309 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11310 ;; 11311 esac 11312 ;; 11313 11314sysv4*MP*) 11315 if test -d /usr/nec; then 11316 version_type=linux # correct to gnu/linux during the next big refactor 11317 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11318 soname_spec='$libname$shared_ext.$major' 11319 shlibpath_var=LD_LIBRARY_PATH 11320 fi 11321 ;; 11322 11323sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11324 version_type=sco 11325 need_lib_prefix=no 11326 need_version=no 11327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11328 soname_spec='$libname$release$shared_ext$major' 11329 shlibpath_var=LD_LIBRARY_PATH 11330 shlibpath_overrides_runpath=yes 11331 hardcode_into_libs=yes 11332 if test yes = "$with_gnu_ld"; then 11333 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11334 else 11335 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11336 case $host_os in 11337 sco3.2v5*) 11338 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11339 ;; 11340 esac 11341 fi 11342 sys_lib_dlsearch_path_spec='/usr/lib' 11343 ;; 11344 11345tpf*) 11346 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11347 version_type=linux # correct to gnu/linux during the next big refactor 11348 need_lib_prefix=no 11349 need_version=no 11350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11351 shlibpath_var=LD_LIBRARY_PATH 11352 shlibpath_overrides_runpath=no 11353 hardcode_into_libs=yes 11354 ;; 11355 11356uts4*) 11357 version_type=linux # correct to gnu/linux during the next big refactor 11358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11359 soname_spec='$libname$release$shared_ext$major' 11360 shlibpath_var=LD_LIBRARY_PATH 11361 ;; 11362 11363*) 11364 dynamic_linker=no 11365 ;; 11366esac 11367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11368$as_echo "$dynamic_linker" >&6; } 11369test no = "$dynamic_linker" && can_build_shared=no 11370 11371variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11372if test yes = "$GCC"; then 11373 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11374fi 11375 11376if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11377 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11378fi 11379 11380if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11381 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11382fi 11383 11384# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11385configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11386 11387# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11388func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11389 11390# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11391configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11490$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11491hardcode_action= 11492if test -n "$hardcode_libdir_flag_spec" || 11493 test -n "$runpath_var" || 11494 test yes = "$hardcode_automatic"; then 11495 11496 # We can hardcode non-existent directories. 11497 if test no != "$hardcode_direct" && 11498 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11499 # have to relink, otherwise we might link with an installed library 11500 # when we should be linking with a yet-to-be-installed one 11501 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11502 test no != "$hardcode_minus_L"; then 11503 # Linking always hardcodes the temporary library directory. 11504 hardcode_action=relink 11505 else 11506 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11507 hardcode_action=immediate 11508 fi 11509else 11510 # We cannot hardcode anything, or else we can only hardcode existing 11511 # directories. 11512 hardcode_action=unsupported 11513fi 11514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11515$as_echo "$hardcode_action" >&6; } 11516 11517if test relink = "$hardcode_action" || 11518 test yes = "$inherit_rpath"; then 11519 # Fast installation is not supported 11520 enable_fast_install=no 11521elif test yes = "$shlibpath_overrides_runpath" || 11522 test no = "$enable_shared"; then 11523 # Fast installation is not necessary 11524 enable_fast_install=needless 11525fi 11526 11527 11528 11529 11530 11531 11532 if test yes != "$enable_dlopen"; then 11533 enable_dlopen=unknown 11534 enable_dlopen_self=unknown 11535 enable_dlopen_self_static=unknown 11536else 11537 lt_cv_dlopen=no 11538 lt_cv_dlopen_libs= 11539 11540 case $host_os in 11541 beos*) 11542 lt_cv_dlopen=load_add_on 11543 lt_cv_dlopen_libs= 11544 lt_cv_dlopen_self=yes 11545 ;; 11546 11547 mingw* | pw32* | cegcc*) 11548 lt_cv_dlopen=LoadLibrary 11549 lt_cv_dlopen_libs= 11550 ;; 11551 11552 cygwin*) 11553 lt_cv_dlopen=dlopen 11554 lt_cv_dlopen_libs= 11555 ;; 11556 11557 darwin*) 11558 # if libdl is installed we need to link against it 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11560$as_echo_n "checking for dlopen in -ldl... " >&6; } 11561if ${ac_cv_lib_dl_dlopen+:} false; then : 11562 $as_echo_n "(cached) " >&6 11563else 11564 ac_check_lib_save_LIBS=$LIBS 11565LIBS="-ldl $LIBS" 11566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11567/* end confdefs.h. */ 11568 11569/* Override any GCC internal prototype to avoid an error. 11570 Use char because int might match the return type of a GCC 11571 builtin and then its argument prototype would still apply. */ 11572#ifdef __cplusplus 11573extern "C" 11574#endif 11575char dlopen (); 11576int 11577main () 11578{ 11579return dlopen (); 11580 ; 11581 return 0; 11582} 11583_ACEOF 11584if ac_fn_c_try_link "$LINENO"; then : 11585 ac_cv_lib_dl_dlopen=yes 11586else 11587 ac_cv_lib_dl_dlopen=no 11588fi 11589rm -f core conftest.err conftest.$ac_objext \ 11590 conftest$ac_exeext conftest.$ac_ext 11591LIBS=$ac_check_lib_save_LIBS 11592fi 11593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11594$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11595if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11596 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11597else 11598 11599 lt_cv_dlopen=dyld 11600 lt_cv_dlopen_libs= 11601 lt_cv_dlopen_self=yes 11602 11603fi 11604 11605 ;; 11606 11607 tpf*) 11608 # Don't try to run any link tests for TPF. We know it's impossible 11609 # because TPF is a cross-compiler, and we know how we open DSOs. 11610 lt_cv_dlopen=dlopen 11611 lt_cv_dlopen_libs= 11612 lt_cv_dlopen_self=no 11613 ;; 11614 11615 *) 11616 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11617if test "x$ac_cv_func_shl_load" = xyes; then : 11618 lt_cv_dlopen=shl_load 11619else 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11621$as_echo_n "checking for shl_load in -ldld... " >&6; } 11622if ${ac_cv_lib_dld_shl_load+:} false; then : 11623 $as_echo_n "(cached) " >&6 11624else 11625 ac_check_lib_save_LIBS=$LIBS 11626LIBS="-ldld $LIBS" 11627cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11628/* end confdefs.h. */ 11629 11630/* Override any GCC internal prototype to avoid an error. 11631 Use char because int might match the return type of a GCC 11632 builtin and then its argument prototype would still apply. */ 11633#ifdef __cplusplus 11634extern "C" 11635#endif 11636char shl_load (); 11637int 11638main () 11639{ 11640return shl_load (); 11641 ; 11642 return 0; 11643} 11644_ACEOF 11645if ac_fn_c_try_link "$LINENO"; then : 11646 ac_cv_lib_dld_shl_load=yes 11647else 11648 ac_cv_lib_dld_shl_load=no 11649fi 11650rm -f core conftest.err conftest.$ac_objext \ 11651 conftest$ac_exeext conftest.$ac_ext 11652LIBS=$ac_check_lib_save_LIBS 11653fi 11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11655$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11656if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11657 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11658else 11659 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11660if test "x$ac_cv_func_dlopen" = xyes; then : 11661 lt_cv_dlopen=dlopen 11662else 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11664$as_echo_n "checking for dlopen in -ldl... " >&6; } 11665if ${ac_cv_lib_dl_dlopen+:} false; then : 11666 $as_echo_n "(cached) " >&6 11667else 11668 ac_check_lib_save_LIBS=$LIBS 11669LIBS="-ldl $LIBS" 11670cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11671/* end confdefs.h. */ 11672 11673/* Override any GCC internal prototype to avoid an error. 11674 Use char because int might match the return type of a GCC 11675 builtin and then its argument prototype would still apply. */ 11676#ifdef __cplusplus 11677extern "C" 11678#endif 11679char dlopen (); 11680int 11681main () 11682{ 11683return dlopen (); 11684 ; 11685 return 0; 11686} 11687_ACEOF 11688if ac_fn_c_try_link "$LINENO"; then : 11689 ac_cv_lib_dl_dlopen=yes 11690else 11691 ac_cv_lib_dl_dlopen=no 11692fi 11693rm -f core conftest.err conftest.$ac_objext \ 11694 conftest$ac_exeext conftest.$ac_ext 11695LIBS=$ac_check_lib_save_LIBS 11696fi 11697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11698$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11699if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11700 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11701else 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11703$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11704if ${ac_cv_lib_svld_dlopen+:} false; then : 11705 $as_echo_n "(cached) " >&6 11706else 11707 ac_check_lib_save_LIBS=$LIBS 11708LIBS="-lsvld $LIBS" 11709cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11710/* end confdefs.h. */ 11711 11712/* Override any GCC internal prototype to avoid an error. 11713 Use char because int might match the return type of a GCC 11714 builtin and then its argument prototype would still apply. */ 11715#ifdef __cplusplus 11716extern "C" 11717#endif 11718char dlopen (); 11719int 11720main () 11721{ 11722return dlopen (); 11723 ; 11724 return 0; 11725} 11726_ACEOF 11727if ac_fn_c_try_link "$LINENO"; then : 11728 ac_cv_lib_svld_dlopen=yes 11729else 11730 ac_cv_lib_svld_dlopen=no 11731fi 11732rm -f core conftest.err conftest.$ac_objext \ 11733 conftest$ac_exeext conftest.$ac_ext 11734LIBS=$ac_check_lib_save_LIBS 11735fi 11736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11737$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11738if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11739 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11740else 11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11742$as_echo_n "checking for dld_link in -ldld... " >&6; } 11743if ${ac_cv_lib_dld_dld_link+:} false; then : 11744 $as_echo_n "(cached) " >&6 11745else 11746 ac_check_lib_save_LIBS=$LIBS 11747LIBS="-ldld $LIBS" 11748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11749/* end confdefs.h. */ 11750 11751/* Override any GCC internal prototype to avoid an error. 11752 Use char because int might match the return type of a GCC 11753 builtin and then its argument prototype would still apply. */ 11754#ifdef __cplusplus 11755extern "C" 11756#endif 11757char dld_link (); 11758int 11759main () 11760{ 11761return dld_link (); 11762 ; 11763 return 0; 11764} 11765_ACEOF 11766if ac_fn_c_try_link "$LINENO"; then : 11767 ac_cv_lib_dld_dld_link=yes 11768else 11769 ac_cv_lib_dld_dld_link=no 11770fi 11771rm -f core conftest.err conftest.$ac_objext \ 11772 conftest$ac_exeext conftest.$ac_ext 11773LIBS=$ac_check_lib_save_LIBS 11774fi 11775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11776$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11777if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11778 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11779fi 11780 11781 11782fi 11783 11784 11785fi 11786 11787 11788fi 11789 11790 11791fi 11792 11793 11794fi 11795 11796 ;; 11797 esac 11798 11799 if test no = "$lt_cv_dlopen"; then 11800 enable_dlopen=no 11801 else 11802 enable_dlopen=yes 11803 fi 11804 11805 case $lt_cv_dlopen in 11806 dlopen) 11807 save_CPPFLAGS=$CPPFLAGS 11808 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11809 11810 save_LDFLAGS=$LDFLAGS 11811 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11812 11813 save_LIBS=$LIBS 11814 LIBS="$lt_cv_dlopen_libs $LIBS" 11815 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11817$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11818if ${lt_cv_dlopen_self+:} false; then : 11819 $as_echo_n "(cached) " >&6 11820else 11821 if test yes = "$cross_compiling"; then : 11822 lt_cv_dlopen_self=cross 11823else 11824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11825 lt_status=$lt_dlunknown 11826 cat > conftest.$ac_ext <<_LT_EOF 11827#line $LINENO "configure" 11828#include "confdefs.h" 11829 11830#if HAVE_DLFCN_H 11831#include <dlfcn.h> 11832#endif 11833 11834#include <stdio.h> 11835 11836#ifdef RTLD_GLOBAL 11837# define LT_DLGLOBAL RTLD_GLOBAL 11838#else 11839# ifdef DL_GLOBAL 11840# define LT_DLGLOBAL DL_GLOBAL 11841# else 11842# define LT_DLGLOBAL 0 11843# endif 11844#endif 11845 11846/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11847 find out it does not work in some platform. */ 11848#ifndef LT_DLLAZY_OR_NOW 11849# ifdef RTLD_LAZY 11850# define LT_DLLAZY_OR_NOW RTLD_LAZY 11851# else 11852# ifdef DL_LAZY 11853# define LT_DLLAZY_OR_NOW DL_LAZY 11854# else 11855# ifdef RTLD_NOW 11856# define LT_DLLAZY_OR_NOW RTLD_NOW 11857# else 11858# ifdef DL_NOW 11859# define LT_DLLAZY_OR_NOW DL_NOW 11860# else 11861# define LT_DLLAZY_OR_NOW 0 11862# endif 11863# endif 11864# endif 11865# endif 11866#endif 11867 11868/* When -fvisibility=hidden is used, assume the code has been annotated 11869 correspondingly for the symbols needed. */ 11870#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11871int fnord () __attribute__((visibility("default"))); 11872#endif 11873 11874int fnord () { return 42; } 11875int main () 11876{ 11877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11878 int status = $lt_dlunknown; 11879 11880 if (self) 11881 { 11882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11883 else 11884 { 11885 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11886 else puts (dlerror ()); 11887 } 11888 /* dlclose (self); */ 11889 } 11890 else 11891 puts (dlerror ()); 11892 11893 return status; 11894} 11895_LT_EOF 11896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11897 (eval $ac_link) 2>&5 11898 ac_status=$? 11899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11900 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11901 (./conftest; exit; ) >&5 2>/dev/null 11902 lt_status=$? 11903 case x$lt_status in 11904 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11905 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11906 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11907 esac 11908 else : 11909 # compilation failed 11910 lt_cv_dlopen_self=no 11911 fi 11912fi 11913rm -fr conftest* 11914 11915 11916fi 11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11918$as_echo "$lt_cv_dlopen_self" >&6; } 11919 11920 if test yes = "$lt_cv_dlopen_self"; then 11921 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11923$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11924if ${lt_cv_dlopen_self_static+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926else 11927 if test yes = "$cross_compiling"; then : 11928 lt_cv_dlopen_self_static=cross 11929else 11930 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11931 lt_status=$lt_dlunknown 11932 cat > conftest.$ac_ext <<_LT_EOF 11933#line $LINENO "configure" 11934#include "confdefs.h" 11935 11936#if HAVE_DLFCN_H 11937#include <dlfcn.h> 11938#endif 11939 11940#include <stdio.h> 11941 11942#ifdef RTLD_GLOBAL 11943# define LT_DLGLOBAL RTLD_GLOBAL 11944#else 11945# ifdef DL_GLOBAL 11946# define LT_DLGLOBAL DL_GLOBAL 11947# else 11948# define LT_DLGLOBAL 0 11949# endif 11950#endif 11951 11952/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11953 find out it does not work in some platform. */ 11954#ifndef LT_DLLAZY_OR_NOW 11955# ifdef RTLD_LAZY 11956# define LT_DLLAZY_OR_NOW RTLD_LAZY 11957# else 11958# ifdef DL_LAZY 11959# define LT_DLLAZY_OR_NOW DL_LAZY 11960# else 11961# ifdef RTLD_NOW 11962# define LT_DLLAZY_OR_NOW RTLD_NOW 11963# else 11964# ifdef DL_NOW 11965# define LT_DLLAZY_OR_NOW DL_NOW 11966# else 11967# define LT_DLLAZY_OR_NOW 0 11968# endif 11969# endif 11970# endif 11971# endif 11972#endif 11973 11974/* When -fvisibility=hidden is used, assume the code has been annotated 11975 correspondingly for the symbols needed. */ 11976#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11977int fnord () __attribute__((visibility("default"))); 11978#endif 11979 11980int fnord () { return 42; } 11981int main () 11982{ 11983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11984 int status = $lt_dlunknown; 11985 11986 if (self) 11987 { 11988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11989 else 11990 { 11991 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11992 else puts (dlerror ()); 11993 } 11994 /* dlclose (self); */ 11995 } 11996 else 11997 puts (dlerror ()); 11998 11999 return status; 12000} 12001_LT_EOF 12002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12003 (eval $ac_link) 2>&5 12004 ac_status=$? 12005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12006 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12007 (./conftest; exit; ) >&5 2>/dev/null 12008 lt_status=$? 12009 case x$lt_status in 12010 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12011 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12012 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12013 esac 12014 else : 12015 # compilation failed 12016 lt_cv_dlopen_self_static=no 12017 fi 12018fi 12019rm -fr conftest* 12020 12021 12022fi 12023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12024$as_echo "$lt_cv_dlopen_self_static" >&6; } 12025 fi 12026 12027 CPPFLAGS=$save_CPPFLAGS 12028 LDFLAGS=$save_LDFLAGS 12029 LIBS=$save_LIBS 12030 ;; 12031 esac 12032 12033 case $lt_cv_dlopen_self in 12034 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12035 *) enable_dlopen_self=unknown ;; 12036 esac 12037 12038 case $lt_cv_dlopen_self_static in 12039 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12040 *) enable_dlopen_self_static=unknown ;; 12041 esac 12042fi 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060striplib= 12061old_striplib= 12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12063$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12064if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12065 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12066 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12068$as_echo "yes" >&6; } 12069else 12070# FIXME - insert some real tests, host_os isn't really good enough 12071 case $host_os in 12072 darwin*) 12073 if test -n "$STRIP"; then 12074 striplib="$STRIP -x" 12075 old_striplib="$STRIP -S" 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12077$as_echo "yes" >&6; } 12078 else 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12080$as_echo "no" >&6; } 12081 fi 12082 ;; 12083 *) 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12085$as_echo "no" >&6; } 12086 ;; 12087 esac 12088fi 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 # Report what library types will actually be built 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12103$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12105$as_echo "$can_build_shared" >&6; } 12106 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12108$as_echo_n "checking whether to build shared libraries... " >&6; } 12109 test no = "$can_build_shared" && enable_shared=no 12110 12111 # On AIX, shared libraries and static libraries use the same namespace, and 12112 # are all built from PIC. 12113 case $host_os in 12114 aix3*) 12115 test yes = "$enable_shared" && enable_static=no 12116 if test -n "$RANLIB"; then 12117 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12118 postinstall_cmds='$RANLIB $lib' 12119 fi 12120 ;; 12121 12122 aix[4-9]*) 12123 if test ia64 != "$host_cpu"; then 12124 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12125 yes,aix,yes) ;; # shared object as lib.so file only 12126 yes,svr4,*) ;; # shared object as lib.so archive member only 12127 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12128 esac 12129 fi 12130 ;; 12131 esac 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12133$as_echo "$enable_shared" >&6; } 12134 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12136$as_echo_n "checking whether to build static libraries... " >&6; } 12137 # Make sure either enable_shared or enable_static is yes. 12138 test yes = "$enable_shared" || enable_static=yes 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12140$as_echo "$enable_static" >&6; } 12141 12142 12143 12144 12145fi 12146ac_ext=c 12147ac_cpp='$CPP $CPPFLAGS' 12148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12150ac_compiler_gnu=$ac_cv_c_compiler_gnu 12151 12152CC=$lt_save_CC 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 ac_config_commands="$ac_config_commands libtool" 12169 12170 12171 12172 12173# Only expand once: 12174 12175 12176 12177########################################################################### 12178MPB_VERSION=$PACKAGE_VERSION 12179 12180ac_ext=f 12181ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12182ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12183ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12184if test -n "$ac_tool_prefix"; then 12185 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor 12186 do 12187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12188set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12190$as_echo_n "checking for $ac_word... " >&6; } 12191if ${ac_cv_prog_F77+:} false; then : 12192 $as_echo_n "(cached) " >&6 12193else 12194 if test -n "$F77"; then 12195 ac_cv_prog_F77="$F77" # Let the user override the test. 12196else 12197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12198for as_dir in $PATH 12199do 12200 IFS=$as_save_IFS 12201 test -z "$as_dir" && as_dir=. 12202 for ac_exec_ext in '' $ac_executable_extensions; do 12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12204 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12206 break 2 12207 fi 12208done 12209 done 12210IFS=$as_save_IFS 12211 12212fi 12213fi 12214F77=$ac_cv_prog_F77 12215if test -n "$F77"; then 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 12217$as_echo "$F77" >&6; } 12218else 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12220$as_echo "no" >&6; } 12221fi 12222 12223 12224 test -n "$F77" && break 12225 done 12226fi 12227if test -z "$F77"; then 12228 ac_ct_F77=$F77 12229 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor 12230do 12231 # Extract the first word of "$ac_prog", so it can be a program name with args. 12232set dummy $ac_prog; ac_word=$2 12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12234$as_echo_n "checking for $ac_word... " >&6; } 12235if ${ac_cv_prog_ac_ct_F77+:} false; then : 12236 $as_echo_n "(cached) " >&6 12237else 12238 if test -n "$ac_ct_F77"; then 12239 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 12240else 12241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12242for as_dir in $PATH 12243do 12244 IFS=$as_save_IFS 12245 test -z "$as_dir" && as_dir=. 12246 for ac_exec_ext in '' $ac_executable_extensions; do 12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12248 ac_cv_prog_ac_ct_F77="$ac_prog" 12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12250 break 2 12251 fi 12252done 12253 done 12254IFS=$as_save_IFS 12255 12256fi 12257fi 12258ac_ct_F77=$ac_cv_prog_ac_ct_F77 12259if test -n "$ac_ct_F77"; then 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 12261$as_echo "$ac_ct_F77" >&6; } 12262else 12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12264$as_echo "no" >&6; } 12265fi 12266 12267 12268 test -n "$ac_ct_F77" && break 12269done 12270 12271 if test "x$ac_ct_F77" = x; then 12272 F77="" 12273 else 12274 case $cross_compiling:$ac_tool_warned in 12275yes:) 12276{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12278ac_tool_warned=yes ;; 12279esac 12280 F77=$ac_ct_F77 12281 fi 12282fi 12283 12284 12285# Provide some information about the compiler. 12286$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 12287set X $ac_compile 12288ac_compiler=$2 12289for ac_option in --version -v -V -qversion; do 12290 { { ac_try="$ac_compiler $ac_option >&5" 12291case "(($ac_try" in 12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12293 *) ac_try_echo=$ac_try;; 12294esac 12295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12296$as_echo "$ac_try_echo"; } >&5 12297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12298 ac_status=$? 12299 if test -s conftest.err; then 12300 sed '10a\ 12301... rest of stderr output deleted ... 12302 10q' conftest.err >conftest.er1 12303 cat conftest.er1 >&5 12304 fi 12305 rm -f conftest.er1 conftest.err 12306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12307 test $ac_status = 0; } 12308done 12309rm -f a.out 12310 12311# If we don't use `.F' as extension, the preprocessor is not run on the 12312# input file. (Note that this only needs to work for GNU compilers.) 12313ac_save_ext=$ac_ext 12314ac_ext=F 12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 12316$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 12317if ${ac_cv_f77_compiler_gnu+:} false; then : 12318 $as_echo_n "(cached) " >&6 12319else 12320 cat > conftest.$ac_ext <<_ACEOF 12321 program main 12322#ifndef __GNUC__ 12323 choke me 12324#endif 12325 12326 end 12327_ACEOF 12328if ac_fn_f77_try_compile "$LINENO"; then : 12329 ac_compiler_gnu=yes 12330else 12331 ac_compiler_gnu=no 12332fi 12333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12334ac_cv_f77_compiler_gnu=$ac_compiler_gnu 12335 12336fi 12337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 12338$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 12339ac_ext=$ac_save_ext 12340ac_test_FFLAGS=${FFLAGS+set} 12341ac_save_FFLAGS=$FFLAGS 12342FFLAGS= 12343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 12344$as_echo_n "checking whether $F77 accepts -g... " >&6; } 12345if ${ac_cv_prog_f77_g+:} false; then : 12346 $as_echo_n "(cached) " >&6 12347else 12348 FFLAGS=-g 12349cat > conftest.$ac_ext <<_ACEOF 12350 program main 12351 12352 end 12353_ACEOF 12354if ac_fn_f77_try_compile "$LINENO"; then : 12355 ac_cv_prog_f77_g=yes 12356else 12357 ac_cv_prog_f77_g=no 12358fi 12359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12360 12361fi 12362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 12363$as_echo "$ac_cv_prog_f77_g" >&6; } 12364if test "$ac_test_FFLAGS" = set; then 12365 FFLAGS=$ac_save_FFLAGS 12366elif test $ac_cv_prog_f77_g = yes; then 12367 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 12368 FFLAGS="-g -O2" 12369 else 12370 FFLAGS="-g" 12371 fi 12372else 12373 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 12374 FFLAGS="-O2" 12375 else 12376 FFLAGS= 12377 fi 12378fi 12379 12380if test $ac_compiler_gnu = yes; then 12381 G77=yes 12382else 12383 G77= 12384fi 12385ac_ext=c 12386ac_cpp='$CPP $CPPFLAGS' 12387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12389ac_compiler_gnu=$ac_cv_c_compiler_gnu 12390 12391 ac_ext=f 12392ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12393ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12394ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12395 12396if test -z "$F77" || test no = "$F77"; then 12397 _lt_disable_F77=yes 12398fi 12399 12400archive_cmds_need_lc_F77=no 12401allow_undefined_flag_F77= 12402always_export_symbols_F77=no 12403archive_expsym_cmds_F77= 12404export_dynamic_flag_spec_F77= 12405hardcode_direct_F77=no 12406hardcode_direct_absolute_F77=no 12407hardcode_libdir_flag_spec_F77= 12408hardcode_libdir_separator_F77= 12409hardcode_minus_L_F77=no 12410hardcode_automatic_F77=no 12411inherit_rpath_F77=no 12412module_cmds_F77= 12413module_expsym_cmds_F77= 12414link_all_deplibs_F77=unknown 12415old_archive_cmds_F77=$old_archive_cmds 12416reload_flag_F77=$reload_flag 12417reload_cmds_F77=$reload_cmds 12418no_undefined_flag_F77= 12419whole_archive_flag_spec_F77= 12420enable_shared_with_static_runtimes_F77=no 12421 12422# Source file extension for f77 test sources. 12423ac_ext=f 12424 12425# Object file extension for compiled f77 test sources. 12426objext=o 12427objext_F77=$objext 12428 12429# No sense in running all these tests if we already determined that 12430# the F77 compiler isn't working. Some variables (like enable_shared) 12431# are currently assumed to apply to all compilers on this platform, 12432# and will be corrupted by setting them based on a non-working compiler. 12433if test yes != "$_lt_disable_F77"; then 12434 # Code to be used in simple compile tests 12435 lt_simple_compile_test_code="\ 12436 subroutine t 12437 return 12438 end 12439" 12440 12441 # Code to be used in simple link tests 12442 lt_simple_link_test_code="\ 12443 program t 12444 end 12445" 12446 12447 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12448 12449 12450 12451 12452 12453 12454# If no C compiler was specified, use CC. 12455LTCC=${LTCC-"$CC"} 12456 12457# If no C compiler flags were specified, use CFLAGS. 12458LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12459 12460# Allow CC to be a program name with arguments. 12461compiler=$CC 12462 12463 12464 # save warnings/boilerplate of simple test code 12465 ac_outfile=conftest.$ac_objext 12466echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12467eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12468_lt_compiler_boilerplate=`cat conftest.err` 12469$RM conftest* 12470 12471 ac_outfile=conftest.$ac_objext 12472echo "$lt_simple_link_test_code" >conftest.$ac_ext 12473eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12474_lt_linker_boilerplate=`cat conftest.err` 12475$RM -r conftest* 12476 12477 12478 # Allow CC to be a program name with arguments. 12479 lt_save_CC=$CC 12480 lt_save_GCC=$GCC 12481 lt_save_CFLAGS=$CFLAGS 12482 CC=${F77-"f77"} 12483 CFLAGS=$FFLAGS 12484 compiler=$CC 12485 compiler_F77=$CC 12486 func_cc_basename $compiler 12487cc_basename=$func_cc_basename_result 12488 12489 GCC=$G77 12490 if test -n "$compiler"; then 12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12492$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12494$as_echo "$can_build_shared" >&6; } 12495 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12497$as_echo_n "checking whether to build shared libraries... " >&6; } 12498 test no = "$can_build_shared" && enable_shared=no 12499 12500 # On AIX, shared libraries and static libraries use the same namespace, and 12501 # are all built from PIC. 12502 case $host_os in 12503 aix3*) 12504 test yes = "$enable_shared" && enable_static=no 12505 if test -n "$RANLIB"; then 12506 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12507 postinstall_cmds='$RANLIB $lib' 12508 fi 12509 ;; 12510 aix[4-9]*) 12511 if test ia64 != "$host_cpu"; then 12512 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12513 yes,aix,yes) ;; # shared object as lib.so file only 12514 yes,svr4,*) ;; # shared object as lib.so archive member only 12515 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12516 esac 12517 fi 12518 ;; 12519 esac 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12521$as_echo "$enable_shared" >&6; } 12522 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12524$as_echo_n "checking whether to build static libraries... " >&6; } 12525 # Make sure either enable_shared or enable_static is yes. 12526 test yes = "$enable_shared" || enable_static=yes 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12528$as_echo "$enable_static" >&6; } 12529 12530 GCC_F77=$G77 12531 LD_F77=$LD 12532 12533 ## CAVEAT EMPTOR: 12534 ## There is no encapsulation within the following macros, do not change 12535 ## the running order or otherwise move them around unless you know exactly 12536 ## what you are doing... 12537 lt_prog_compiler_wl_F77= 12538lt_prog_compiler_pic_F77= 12539lt_prog_compiler_static_F77= 12540 12541 12542 if test yes = "$GCC"; then 12543 lt_prog_compiler_wl_F77='-Wl,' 12544 lt_prog_compiler_static_F77='-static' 12545 12546 case $host_os in 12547 aix*) 12548 # All AIX code is PIC. 12549 if test ia64 = "$host_cpu"; then 12550 # AIX 5 now supports IA64 processor 12551 lt_prog_compiler_static_F77='-Bstatic' 12552 fi 12553 lt_prog_compiler_pic_F77='-fPIC' 12554 ;; 12555 12556 amigaos*) 12557 case $host_cpu in 12558 powerpc) 12559 # see comment about AmigaOS4 .so support 12560 lt_prog_compiler_pic_F77='-fPIC' 12561 ;; 12562 m68k) 12563 # FIXME: we need at least 68020 code to build shared libraries, but 12564 # adding the '-m68020' flag to GCC prevents building anything better, 12565 # like '-m68040'. 12566 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12567 ;; 12568 esac 12569 ;; 12570 12571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12572 # PIC is the default for these OSes. 12573 ;; 12574 12575 mingw* | cygwin* | pw32* | os2* | cegcc*) 12576 # This hack is so that the source file can tell whether it is being 12577 # built for inclusion in a dll (and should export symbols for example). 12578 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12579 # (--disable-auto-import) libraries 12580 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12581 case $host_os in 12582 os2*) 12583 lt_prog_compiler_static_F77='$wl-static' 12584 ;; 12585 esac 12586 ;; 12587 12588 darwin* | rhapsody*) 12589 # PIC is the default on this platform 12590 # Common symbols not allowed in MH_DYLIB files 12591 lt_prog_compiler_pic_F77='-fno-common' 12592 ;; 12593 12594 haiku*) 12595 # PIC is the default for Haiku. 12596 # The "-static" flag exists, but is broken. 12597 lt_prog_compiler_static_F77= 12598 ;; 12599 12600 hpux*) 12601 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12602 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12603 # sets the default TLS model and affects inlining. 12604 case $host_cpu in 12605 hppa*64*) 12606 # +Z the default 12607 ;; 12608 *) 12609 lt_prog_compiler_pic_F77='-fPIC' 12610 ;; 12611 esac 12612 ;; 12613 12614 interix[3-9]*) 12615 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12616 # Instead, we relocate shared libraries at runtime. 12617 ;; 12618 12619 msdosdjgpp*) 12620 # Just because we use GCC doesn't mean we suddenly get shared libraries 12621 # on systems that don't support them. 12622 lt_prog_compiler_can_build_shared_F77=no 12623 enable_shared=no 12624 ;; 12625 12626 *nto* | *qnx*) 12627 # QNX uses GNU C++, but need to define -shared option too, otherwise 12628 # it will coredump. 12629 lt_prog_compiler_pic_F77='-fPIC -shared' 12630 ;; 12631 12632 sysv4*MP*) 12633 if test -d /usr/nec; then 12634 lt_prog_compiler_pic_F77=-Kconform_pic 12635 fi 12636 ;; 12637 12638 *) 12639 lt_prog_compiler_pic_F77='-fPIC' 12640 ;; 12641 esac 12642 12643 case $cc_basename in 12644 nvcc*) # Cuda Compiler Driver 2.2 12645 lt_prog_compiler_wl_F77='-Xlinker ' 12646 if test -n "$lt_prog_compiler_pic_F77"; then 12647 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" 12648 fi 12649 ;; 12650 esac 12651 else 12652 # PORTME Check for flag to pass linker flags through the system compiler. 12653 case $host_os in 12654 aix*) 12655 lt_prog_compiler_wl_F77='-Wl,' 12656 if test ia64 = "$host_cpu"; then 12657 # AIX 5 now supports IA64 processor 12658 lt_prog_compiler_static_F77='-Bstatic' 12659 else 12660 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12661 fi 12662 ;; 12663 12664 darwin* | rhapsody*) 12665 # PIC is the default on this platform 12666 # Common symbols not allowed in MH_DYLIB files 12667 lt_prog_compiler_pic_F77='-fno-common' 12668 case $cc_basename in 12669 nagfor*) 12670 # NAG Fortran compiler 12671 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 12672 lt_prog_compiler_pic_F77='-PIC' 12673 lt_prog_compiler_static_F77='-Bstatic' 12674 ;; 12675 esac 12676 ;; 12677 12678 mingw* | cygwin* | pw32* | os2* | cegcc*) 12679 # This hack is so that the source file can tell whether it is being 12680 # built for inclusion in a dll (and should export symbols for example). 12681 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12682 case $host_os in 12683 os2*) 12684 lt_prog_compiler_static_F77='$wl-static' 12685 ;; 12686 esac 12687 ;; 12688 12689 hpux9* | hpux10* | hpux11*) 12690 lt_prog_compiler_wl_F77='-Wl,' 12691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12692 # not for PA HP-UX. 12693 case $host_cpu in 12694 hppa*64*|ia64*) 12695 # +Z the default 12696 ;; 12697 *) 12698 lt_prog_compiler_pic_F77='+Z' 12699 ;; 12700 esac 12701 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12702 lt_prog_compiler_static_F77='$wl-a ${wl}archive' 12703 ;; 12704 12705 irix5* | irix6* | nonstopux*) 12706 lt_prog_compiler_wl_F77='-Wl,' 12707 # PIC (with -KPIC) is the default. 12708 lt_prog_compiler_static_F77='-non_shared' 12709 ;; 12710 12711 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12712 case $cc_basename in 12713 # old Intel for x86_64, which still supported -KPIC. 12714 ecc*) 12715 lt_prog_compiler_wl_F77='-Wl,' 12716 lt_prog_compiler_pic_F77='-KPIC' 12717 lt_prog_compiler_static_F77='-static' 12718 ;; 12719 # icc used to be incompatible with GCC. 12720 # ICC 10 doesn't accept -KPIC any more. 12721 icc* | ifort*) 12722 lt_prog_compiler_wl_F77='-Wl,' 12723 lt_prog_compiler_pic_F77='-fPIC' 12724 lt_prog_compiler_static_F77='-static' 12725 ;; 12726 # Lahey Fortran 8.1. 12727 lf95*) 12728 lt_prog_compiler_wl_F77='-Wl,' 12729 lt_prog_compiler_pic_F77='--shared' 12730 lt_prog_compiler_static_F77='--static' 12731 ;; 12732 nagfor*) 12733 # NAG Fortran compiler 12734 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 12735 lt_prog_compiler_pic_F77='-PIC' 12736 lt_prog_compiler_static_F77='-Bstatic' 12737 ;; 12738 tcc*) 12739 # Fabrice Bellard et al's Tiny C Compiler 12740 lt_prog_compiler_wl_F77='-Wl,' 12741 lt_prog_compiler_pic_F77='-fPIC' 12742 lt_prog_compiler_static_F77='-static' 12743 ;; 12744 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12745 # Portland Group compilers (*not* the Pentium gcc compiler, 12746 # which looks to be a dead project) 12747 lt_prog_compiler_wl_F77='-Wl,' 12748 lt_prog_compiler_pic_F77='-fpic' 12749 lt_prog_compiler_static_F77='-Bstatic' 12750 ;; 12751 ccc*) 12752 lt_prog_compiler_wl_F77='-Wl,' 12753 # All Alpha code is PIC. 12754 lt_prog_compiler_static_F77='-non_shared' 12755 ;; 12756 xl* | bgxl* | bgf* | mpixl*) 12757 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12758 lt_prog_compiler_wl_F77='-Wl,' 12759 lt_prog_compiler_pic_F77='-qpic' 12760 lt_prog_compiler_static_F77='-qstaticlink' 12761 ;; 12762 *) 12763 case `$CC -V 2>&1 | sed 5q` in 12764 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12765 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12766 lt_prog_compiler_pic_F77='-KPIC' 12767 lt_prog_compiler_static_F77='-Bstatic' 12768 lt_prog_compiler_wl_F77='' 12769 ;; 12770 *Sun\ F* | *Sun*Fortran*) 12771 lt_prog_compiler_pic_F77='-KPIC' 12772 lt_prog_compiler_static_F77='-Bstatic' 12773 lt_prog_compiler_wl_F77='-Qoption ld ' 12774 ;; 12775 *Sun\ C*) 12776 # Sun C 5.9 12777 lt_prog_compiler_pic_F77='-KPIC' 12778 lt_prog_compiler_static_F77='-Bstatic' 12779 lt_prog_compiler_wl_F77='-Wl,' 12780 ;; 12781 *Intel*\ [CF]*Compiler*) 12782 lt_prog_compiler_wl_F77='-Wl,' 12783 lt_prog_compiler_pic_F77='-fPIC' 12784 lt_prog_compiler_static_F77='-static' 12785 ;; 12786 *Portland\ Group*) 12787 lt_prog_compiler_wl_F77='-Wl,' 12788 lt_prog_compiler_pic_F77='-fpic' 12789 lt_prog_compiler_static_F77='-Bstatic' 12790 ;; 12791 esac 12792 ;; 12793 esac 12794 ;; 12795 12796 newsos6) 12797 lt_prog_compiler_pic_F77='-KPIC' 12798 lt_prog_compiler_static_F77='-Bstatic' 12799 ;; 12800 12801 *nto* | *qnx*) 12802 # QNX uses GNU C++, but need to define -shared option too, otherwise 12803 # it will coredump. 12804 lt_prog_compiler_pic_F77='-fPIC -shared' 12805 ;; 12806 12807 osf3* | osf4* | osf5*) 12808 lt_prog_compiler_wl_F77='-Wl,' 12809 # All OSF/1 code is PIC. 12810 lt_prog_compiler_static_F77='-non_shared' 12811 ;; 12812 12813 rdos*) 12814 lt_prog_compiler_static_F77='-non_shared' 12815 ;; 12816 12817 solaris*) 12818 lt_prog_compiler_pic_F77='-KPIC' 12819 lt_prog_compiler_static_F77='-Bstatic' 12820 case $cc_basename in 12821 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12822 lt_prog_compiler_wl_F77='-Qoption ld ';; 12823 *) 12824 lt_prog_compiler_wl_F77='-Wl,';; 12825 esac 12826 ;; 12827 12828 sunos4*) 12829 lt_prog_compiler_wl_F77='-Qoption ld ' 12830 lt_prog_compiler_pic_F77='-PIC' 12831 lt_prog_compiler_static_F77='-Bstatic' 12832 ;; 12833 12834 sysv4 | sysv4.2uw2* | sysv4.3*) 12835 lt_prog_compiler_wl_F77='-Wl,' 12836 lt_prog_compiler_pic_F77='-KPIC' 12837 lt_prog_compiler_static_F77='-Bstatic' 12838 ;; 12839 12840 sysv4*MP*) 12841 if test -d /usr/nec; then 12842 lt_prog_compiler_pic_F77='-Kconform_pic' 12843 lt_prog_compiler_static_F77='-Bstatic' 12844 fi 12845 ;; 12846 12847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12848 lt_prog_compiler_wl_F77='-Wl,' 12849 lt_prog_compiler_pic_F77='-KPIC' 12850 lt_prog_compiler_static_F77='-Bstatic' 12851 ;; 12852 12853 unicos*) 12854 lt_prog_compiler_wl_F77='-Wl,' 12855 lt_prog_compiler_can_build_shared_F77=no 12856 ;; 12857 12858 uts4*) 12859 lt_prog_compiler_pic_F77='-pic' 12860 lt_prog_compiler_static_F77='-Bstatic' 12861 ;; 12862 12863 *) 12864 lt_prog_compiler_can_build_shared_F77=no 12865 ;; 12866 esac 12867 fi 12868 12869case $host_os in 12870 # For platforms that do not support PIC, -DPIC is meaningless: 12871 *djgpp*) 12872 lt_prog_compiler_pic_F77= 12873 ;; 12874 *) 12875 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12876 ;; 12877esac 12878 12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12880$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12881if ${lt_cv_prog_compiler_pic_F77+:} false; then : 12882 $as_echo_n "(cached) " >&6 12883else 12884 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 12885fi 12886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 12887$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } 12888lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 12889 12890# 12891# Check to make sure the PIC flag actually works. 12892# 12893if test -n "$lt_prog_compiler_pic_F77"; then 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12895$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 12896if ${lt_cv_prog_compiler_pic_works_F77+:} false; then : 12897 $as_echo_n "(cached) " >&6 12898else 12899 lt_cv_prog_compiler_pic_works_F77=no 12900 ac_outfile=conftest.$ac_objext 12901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12902 lt_compiler_flag="$lt_prog_compiler_pic_F77" ## exclude from sc_useless_quotes_in_assignment 12903 # Insert the option either (1) after the last *FLAGS variable, or 12904 # (2) before a word containing "conftest.", or (3) at the end. 12905 # Note that $ac_compile itself does not contain backslashes and begins 12906 # with a dollar sign (not a hyphen), so the echo should work correctly. 12907 # The option is referenced via a variable to avoid confusing sed. 12908 lt_compile=`echo "$ac_compile" | $SED \ 12909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12911 -e 's:$: $lt_compiler_flag:'` 12912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12913 (eval "$lt_compile" 2>conftest.err) 12914 ac_status=$? 12915 cat conftest.err >&5 12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12917 if (exit $ac_status) && test -s "$ac_outfile"; then 12918 # The compiler can only warn and ignore the option if not recognized 12919 # So say no if there are warnings other than the usual output. 12920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12923 lt_cv_prog_compiler_pic_works_F77=yes 12924 fi 12925 fi 12926 $RM conftest* 12927 12928fi 12929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 12930$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 12931 12932if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then 12933 case $lt_prog_compiler_pic_F77 in 12934 "" | " "*) ;; 12935 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12936 esac 12937else 12938 lt_prog_compiler_pic_F77= 12939 lt_prog_compiler_can_build_shared_F77=no 12940fi 12941 12942fi 12943 12944 12945 12946 12947 12948# 12949# Check to make sure the static flag actually works. 12950# 12951wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12953$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12954if ${lt_cv_prog_compiler_static_works_F77+:} false; then : 12955 $as_echo_n "(cached) " >&6 12956else 12957 lt_cv_prog_compiler_static_works_F77=no 12958 save_LDFLAGS=$LDFLAGS 12959 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12960 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12961 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12962 # The linker can only warn and ignore the option if not recognized 12963 # So say no if there are warnings 12964 if test -s conftest.err; then 12965 # Append any errors to the config.log. 12966 cat conftest.err 1>&5 12967 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12969 if diff conftest.exp conftest.er2 >/dev/null; then 12970 lt_cv_prog_compiler_static_works_F77=yes 12971 fi 12972 else 12973 lt_cv_prog_compiler_static_works_F77=yes 12974 fi 12975 fi 12976 $RM -r conftest* 12977 LDFLAGS=$save_LDFLAGS 12978 12979fi 12980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 12981$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 12982 12983if test yes = "$lt_cv_prog_compiler_static_works_F77"; then 12984 : 12985else 12986 lt_prog_compiler_static_F77= 12987fi 12988 12989 12990 12991 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 12993$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 12994if ${lt_cv_prog_compiler_c_o_F77+:} false; then : 12995 $as_echo_n "(cached) " >&6 12996else 12997 lt_cv_prog_compiler_c_o_F77=no 12998 $RM -r conftest 2>/dev/null 12999 mkdir conftest 13000 cd conftest 13001 mkdir out 13002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13003 13004 lt_compiler_flag="-o out/conftest2.$ac_objext" 13005 # Insert the option either (1) after the last *FLAGS variable, or 13006 # (2) before a word containing "conftest.", or (3) at the end. 13007 # Note that $ac_compile itself does not contain backslashes and begins 13008 # with a dollar sign (not a hyphen), so the echo should work correctly. 13009 lt_compile=`echo "$ac_compile" | $SED \ 13010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13012 -e 's:$: $lt_compiler_flag:'` 13013 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13014 (eval "$lt_compile" 2>out/conftest.err) 13015 ac_status=$? 13016 cat out/conftest.err >&5 13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13018 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13019 then 13020 # The compiler can only warn and ignore the option if not recognized 13021 # So say no if there are warnings 13022 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13023 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13024 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13025 lt_cv_prog_compiler_c_o_F77=yes 13026 fi 13027 fi 13028 chmod u+w . 2>&5 13029 $RM conftest* 13030 # SGI C++ compiler will create directory out/ii_files/ for 13031 # template instantiation 13032 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13033 $RM out/* && rmdir out 13034 cd .. 13035 $RM -r conftest 13036 $RM conftest* 13037 13038fi 13039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 13040$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 13041 13042 13043 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13045$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13046if ${lt_cv_prog_compiler_c_o_F77+:} false; then : 13047 $as_echo_n "(cached) " >&6 13048else 13049 lt_cv_prog_compiler_c_o_F77=no 13050 $RM -r conftest 2>/dev/null 13051 mkdir conftest 13052 cd conftest 13053 mkdir out 13054 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13055 13056 lt_compiler_flag="-o out/conftest2.$ac_objext" 13057 # Insert the option either (1) after the last *FLAGS variable, or 13058 # (2) before a word containing "conftest.", or (3) at the end. 13059 # Note that $ac_compile itself does not contain backslashes and begins 13060 # with a dollar sign (not a hyphen), so the echo should work correctly. 13061 lt_compile=`echo "$ac_compile" | $SED \ 13062 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13063 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13064 -e 's:$: $lt_compiler_flag:'` 13065 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13066 (eval "$lt_compile" 2>out/conftest.err) 13067 ac_status=$? 13068 cat out/conftest.err >&5 13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13070 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13071 then 13072 # The compiler can only warn and ignore the option if not recognized 13073 # So say no if there are warnings 13074 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13075 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13076 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13077 lt_cv_prog_compiler_c_o_F77=yes 13078 fi 13079 fi 13080 chmod u+w . 2>&5 13081 $RM conftest* 13082 # SGI C++ compiler will create directory out/ii_files/ for 13083 # template instantiation 13084 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13085 $RM out/* && rmdir out 13086 cd .. 13087 $RM -r conftest 13088 $RM conftest* 13089 13090fi 13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 13092$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 13093 13094 13095 13096 13097hard_links=nottested 13098if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then 13099 # do not overwrite the value of need_locks provided by the user 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13101$as_echo_n "checking if we can lock with hard links... " >&6; } 13102 hard_links=yes 13103 $RM conftest* 13104 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13105 touch conftest.a 13106 ln conftest.a conftest.b 2>&5 || hard_links=no 13107 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13109$as_echo "$hard_links" >&6; } 13110 if test no = "$hard_links"; then 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 13112$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 13113 need_locks=warn 13114 fi 13115else 13116 need_locks=no 13117fi 13118 13119 13120 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13122$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13123 13124 runpath_var= 13125 allow_undefined_flag_F77= 13126 always_export_symbols_F77=no 13127 archive_cmds_F77= 13128 archive_expsym_cmds_F77= 13129 compiler_needs_object_F77=no 13130 enable_shared_with_static_runtimes_F77=no 13131 export_dynamic_flag_spec_F77= 13132 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13133 hardcode_automatic_F77=no 13134 hardcode_direct_F77=no 13135 hardcode_direct_absolute_F77=no 13136 hardcode_libdir_flag_spec_F77= 13137 hardcode_libdir_separator_F77= 13138 hardcode_minus_L_F77=no 13139 hardcode_shlibpath_var_F77=unsupported 13140 inherit_rpath_F77=no 13141 link_all_deplibs_F77=unknown 13142 module_cmds_F77= 13143 module_expsym_cmds_F77= 13144 old_archive_from_new_cmds_F77= 13145 old_archive_from_expsyms_cmds_F77= 13146 thread_safe_flag_spec_F77= 13147 whole_archive_flag_spec_F77= 13148 # include_expsyms should be a list of space-separated symbols to be *always* 13149 # included in the symbol list 13150 include_expsyms_F77= 13151 # exclude_expsyms can be an extended regexp of symbols to exclude 13152 # it will be wrapped by ' (' and ')$', so one must not match beginning or 13153 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 13154 # as well as any symbol that contains 'd'. 13155 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13156 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13157 # platforms (ab)use it in PIC code, but their linkers get confused if 13158 # the symbol is explicitly referenced. Since portable code cannot 13159 # rely on this symbol name, it's probably fine to never include it in 13160 # preloaded symbol tables. 13161 # Exclude shared library initialization/finalization symbols. 13162 extract_expsyms_cmds= 13163 13164 case $host_os in 13165 cygwin* | mingw* | pw32* | cegcc*) 13166 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13167 # When not using gcc, we currently assume that we are using 13168 # Microsoft Visual C++. 13169 if test yes != "$GCC"; then 13170 with_gnu_ld=no 13171 fi 13172 ;; 13173 interix*) 13174 # we just hope/assume this is gcc and not c89 (= MSVC++) 13175 with_gnu_ld=yes 13176 ;; 13177 openbsd* | bitrig*) 13178 with_gnu_ld=no 13179 ;; 13180 esac 13181 13182 ld_shlibs_F77=yes 13183 13184 # On some targets, GNU ld is compatible enough with the native linker 13185 # that we're better off using the native interface for both. 13186 lt_use_gnu_ld_interface=no 13187 if test yes = "$with_gnu_ld"; then 13188 case $host_os in 13189 aix*) 13190 # The AIX port of GNU ld has always aspired to compatibility 13191 # with the native linker. However, as the warning in the GNU ld 13192 # block says, versions before 2.19.5* couldn't really create working 13193 # shared libraries, regardless of the interface used. 13194 case `$LD -v 2>&1` in 13195 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 13196 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 13197 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 13198 *) 13199 lt_use_gnu_ld_interface=yes 13200 ;; 13201 esac 13202 ;; 13203 *) 13204 lt_use_gnu_ld_interface=yes 13205 ;; 13206 esac 13207 fi 13208 13209 if test yes = "$lt_use_gnu_ld_interface"; then 13210 # If archive_cmds runs LD, not CC, wlarc should be empty 13211 wlarc='$wl' 13212 13213 # Set some defaults for GNU ld with shared library support. These 13214 # are reset later if shared libraries are not supported. Putting them 13215 # here allows them to be overridden if necessary. 13216 runpath_var=LD_RUN_PATH 13217 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 13218 export_dynamic_flag_spec_F77='$wl--export-dynamic' 13219 # ancient GNU ld didn't support --whole-archive et. al. 13220 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 13221 whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13222 else 13223 whole_archive_flag_spec_F77= 13224 fi 13225 supports_anon_versioning=no 13226 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 13227 *GNU\ gold*) supports_anon_versioning=yes ;; 13228 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13229 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13230 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13231 *\ 2.11.*) ;; # other 2.11 versions 13232 *) supports_anon_versioning=yes ;; 13233 esac 13234 13235 # See if GNU ld supports shared libraries. 13236 case $host_os in 13237 aix[3-9]*) 13238 # On AIX/PPC, the GNU linker is very broken 13239 if test ia64 != "$host_cpu"; then 13240 ld_shlibs_F77=no 13241 cat <<_LT_EOF 1>&2 13242 13243*** Warning: the GNU linker, at least up to release 2.19, is reported 13244*** to be unable to reliably create shared libraries on AIX. 13245*** Therefore, libtool is disabling shared libraries support. If you 13246*** really care for shared libraries, you may want to install binutils 13247*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 13248*** You will then need to restart the configuration process. 13249 13250_LT_EOF 13251 fi 13252 ;; 13253 13254 amigaos*) 13255 case $host_cpu in 13256 powerpc) 13257 # see comment about AmigaOS4 .so support 13258 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13259 archive_expsym_cmds_F77='' 13260 ;; 13261 m68k) 13262 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)' 13263 hardcode_libdir_flag_spec_F77='-L$libdir' 13264 hardcode_minus_L_F77=yes 13265 ;; 13266 esac 13267 ;; 13268 13269 beos*) 13270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13271 allow_undefined_flag_F77=unsupported 13272 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13273 # support --undefined. This deserves some investigation. FIXME 13274 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13275 else 13276 ld_shlibs_F77=no 13277 fi 13278 ;; 13279 13280 cygwin* | mingw* | pw32* | cegcc*) 13281 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13282 # as there is no search path for DLLs. 13283 hardcode_libdir_flag_spec_F77='-L$libdir' 13284 export_dynamic_flag_spec_F77='$wl--export-all-symbols' 13285 allow_undefined_flag_F77=unsupported 13286 always_export_symbols_F77=no 13287 enable_shared_with_static_runtimes_F77=yes 13288 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' 13289 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 13290 13291 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13292 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13293 # If the export-symbols file already is a .def file, use it as 13294 # is; otherwise, prepend EXPORTS... 13295 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13296 cp $export_symbols $output_objdir/$soname.def; 13297 else 13298 echo EXPORTS > $output_objdir/$soname.def; 13299 cat $export_symbols >> $output_objdir/$soname.def; 13300 fi~ 13301 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13302 else 13303 ld_shlibs_F77=no 13304 fi 13305 ;; 13306 13307 haiku*) 13308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13309 link_all_deplibs_F77=yes 13310 ;; 13311 13312 os2*) 13313 hardcode_libdir_flag_spec_F77='-L$libdir' 13314 hardcode_minus_L_F77=yes 13315 allow_undefined_flag_F77=unsupported 13316 shrext_cmds=.dll 13317 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13318 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13319 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13320 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13321 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13322 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13323 emximp -o $lib $output_objdir/$libname.def' 13324 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13325 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13326 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13327 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13328 prefix_cmds="$SED"~ 13329 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13330 prefix_cmds="$prefix_cmds -e 1d"; 13331 fi~ 13332 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13333 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13334 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13335 emximp -o $lib $output_objdir/$libname.def' 13336 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13337 enable_shared_with_static_runtimes_F77=yes 13338 ;; 13339 13340 interix[3-9]*) 13341 hardcode_direct_F77=no 13342 hardcode_shlibpath_var_F77=no 13343 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 13344 export_dynamic_flag_spec_F77='$wl-E' 13345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13346 # Instead, shared libraries are loaded at an image base (0x10000000 by 13347 # default) and relocated if they conflict, which is a slow very memory 13348 # consuming and fragmenting process. To avoid this, we pick a random, 13349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13350 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13351 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' 13352 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' 13353 ;; 13354 13355 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 13356 tmp_diet=no 13357 if test linux-dietlibc = "$host_os"; then 13358 case $cc_basename in 13359 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 13360 esac 13361 fi 13362 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 13363 && test no = "$tmp_diet" 13364 then 13365 tmp_addflag=' $pic_flag' 13366 tmp_sharedflag='-shared' 13367 case $cc_basename,$host_cpu in 13368 pgcc*) # Portland Group C compiler 13369 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' 13370 tmp_addflag=' $pic_flag' 13371 ;; 13372 pgf77* | pgf90* | pgf95* | pgfortran*) 13373 # Portland Group f77 and f90 compilers 13374 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' 13375 tmp_addflag=' $pic_flag -Mnomain' ;; 13376 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 13377 tmp_addflag=' -i_dynamic' ;; 13378 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 13379 tmp_addflag=' -i_dynamic -nofor_main' ;; 13380 ifc* | ifort*) # Intel Fortran compiler 13381 tmp_addflag=' -nofor_main' ;; 13382 lf95*) # Lahey Fortran 8.1 13383 whole_archive_flag_spec_F77= 13384 tmp_sharedflag='--shared' ;; 13385 nagfor*) # NAGFOR 5.3 13386 tmp_sharedflag='-Wl,-shared' ;; 13387 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 13388 tmp_sharedflag='-qmkshrobj' 13389 tmp_addflag= ;; 13390 nvcc*) # Cuda Compiler Driver 2.2 13391 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' 13392 compiler_needs_object_F77=yes 13393 ;; 13394 esac 13395 case `$CC -V 2>&1 | sed 5q` in 13396 *Sun\ C*) # Sun C 5.9 13397 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' 13398 compiler_needs_object_F77=yes 13399 tmp_sharedflag='-G' ;; 13400 *Sun\ F*) # Sun Fortran 8.3 13401 tmp_sharedflag='-G' ;; 13402 esac 13403 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13404 13405 if test yes = "$supports_anon_versioning"; then 13406 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 13407 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13408 echo "local: *; };" >> $output_objdir/$libname.ver~ 13409 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13410 fi 13411 13412 case $cc_basename in 13413 tcc*) 13414 export_dynamic_flag_spec_F77='-rdynamic' 13415 ;; 13416 xlf* | bgf* | bgxlf* | mpixlf*) 13417 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 13418 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' 13419 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 13420 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 13421 if test yes = "$supports_anon_versioning"; then 13422 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 13423 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13424 echo "local: *; };" >> $output_objdir/$libname.ver~ 13425 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 13426 fi 13427 ;; 13428 esac 13429 else 13430 ld_shlibs_F77=no 13431 fi 13432 ;; 13433 13434 netbsd*) 13435 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13436 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13437 wlarc= 13438 else 13439 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13440 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' 13441 fi 13442 ;; 13443 13444 solaris*) 13445 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 13446 ld_shlibs_F77=no 13447 cat <<_LT_EOF 1>&2 13448 13449*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13450*** create shared libraries on Solaris systems. Therefore, libtool 13451*** is disabling shared libraries support. We urge you to upgrade GNU 13452*** binutils to release 2.9.1 or newer. Another option is to modify 13453*** your PATH or compiler configuration so that the native linker is 13454*** used, and then restart. 13455 13456_LT_EOF 13457 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13458 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13459 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' 13460 else 13461 ld_shlibs_F77=no 13462 fi 13463 ;; 13464 13465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 13466 case `$LD -v 2>&1` in 13467 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 13468 ld_shlibs_F77=no 13469 cat <<_LT_EOF 1>&2 13470 13471*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 13472*** reliably create shared libraries on SCO systems. Therefore, libtool 13473*** is disabling shared libraries support. We urge you to upgrade GNU 13474*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 13475*** your PATH or compiler configuration so that the native linker is 13476*** used, and then restart. 13477 13478_LT_EOF 13479 ;; 13480 *) 13481 # For security reasons, it is highly recommended that you always 13482 # use absolute paths for naming shared libraries, and exclude the 13483 # DT_RUNPATH tag from executables and libraries. But doing so 13484 # requires that you compile everything twice, which is a pain. 13485 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13486 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 13487 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13488 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13489 else 13490 ld_shlibs_F77=no 13491 fi 13492 ;; 13493 esac 13494 ;; 13495 13496 sunos4*) 13497 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13498 wlarc= 13499 hardcode_direct_F77=yes 13500 hardcode_shlibpath_var_F77=no 13501 ;; 13502 13503 *) 13504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13505 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13506 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' 13507 else 13508 ld_shlibs_F77=no 13509 fi 13510 ;; 13511 esac 13512 13513 if test no = "$ld_shlibs_F77"; then 13514 runpath_var= 13515 hardcode_libdir_flag_spec_F77= 13516 export_dynamic_flag_spec_F77= 13517 whole_archive_flag_spec_F77= 13518 fi 13519 else 13520 # PORTME fill in a description of your system's linker (not GNU ld) 13521 case $host_os in 13522 aix3*) 13523 allow_undefined_flag_F77=unsupported 13524 always_export_symbols_F77=yes 13525 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' 13526 # Note: this linker hardcodes the directories in LIBPATH if there 13527 # are no directories specified by -L. 13528 hardcode_minus_L_F77=yes 13529 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 13530 # Neither direct hardcoding nor static linking is supported with a 13531 # broken collect2. 13532 hardcode_direct_F77=unsupported 13533 fi 13534 ;; 13535 13536 aix[4-9]*) 13537 if test ia64 = "$host_cpu"; then 13538 # On IA64, the linker does run time linking by default, so we don't 13539 # have to do anything special. 13540 aix_use_runtimelinking=no 13541 exp_sym_flag='-Bexport' 13542 no_entry_flag= 13543 else 13544 # If we're using GNU nm, then we don't want the "-C" option. 13545 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 13546 # Without the "-l" option, or with the "-B" option, AIX nm treats 13547 # weak defined symbols like other global defined symbols, whereas 13548 # GNU nm marks them as "W". 13549 # While the 'weak' keyword is ignored in the Export File, we need 13550 # it in the Import File for the 'aix-soname' feature, so we have 13551 # to replace the "-B" option with "-P" for AIX nm. 13552 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13553 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' 13554 else 13555 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' 13556 fi 13557 aix_use_runtimelinking=no 13558 13559 # Test if we are trying to use run time linking or normal 13560 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13561 # have runtime linking enabled, and use it for executables. 13562 # For shared libraries, we enable/disable runtime linking 13563 # depending on the kind of the shared library created - 13564 # when "with_aix_soname,aix_use_runtimelinking" is: 13565 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13566 # "aix,yes" lib.so shared, rtl:yes, for executables 13567 # lib.a static archive 13568 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13569 # lib.a(lib.so.V) shared, rtl:no, for executables 13570 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13571 # lib.a(lib.so.V) shared, rtl:no 13572 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13573 # lib.a static archive 13574 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13575 for ld_flag in $LDFLAGS; do 13576 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 13577 aix_use_runtimelinking=yes 13578 break 13579 fi 13580 done 13581 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13582 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13583 # so we don't have lib.a shared libs to link our executables. 13584 # We have to force runtime linking in this case. 13585 aix_use_runtimelinking=yes 13586 LDFLAGS="$LDFLAGS -Wl,-brtl" 13587 fi 13588 ;; 13589 esac 13590 13591 exp_sym_flag='-bexport' 13592 no_entry_flag='-bnoentry' 13593 fi 13594 13595 # When large executables or shared objects are built, AIX ld can 13596 # have problems creating the table of contents. If linking a library 13597 # or program results in "error TOC overflow" add -mminimal-toc to 13598 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13599 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13600 13601 archive_cmds_F77='' 13602 hardcode_direct_F77=yes 13603 hardcode_direct_absolute_F77=yes 13604 hardcode_libdir_separator_F77=':' 13605 link_all_deplibs_F77=yes 13606 file_list_spec_F77='$wl-f,' 13607 case $with_aix_soname,$aix_use_runtimelinking in 13608 aix,*) ;; # traditional, no import file 13609 svr4,* | *,yes) # use import file 13610 # The Import File defines what to hardcode. 13611 hardcode_direct_F77=no 13612 hardcode_direct_absolute_F77=no 13613 ;; 13614 esac 13615 13616 if test yes = "$GCC"; then 13617 case $host_os in aix4.[012]|aix4.[012].*) 13618 # We only want to do this on AIX 4.2 and lower, the check 13619 # below for broken collect2 doesn't work under 4.3+ 13620 collect2name=`$CC -print-prog-name=collect2` 13621 if test -f "$collect2name" && 13622 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13623 then 13624 # We have reworked collect2 13625 : 13626 else 13627 # We have old collect2 13628 hardcode_direct_F77=unsupported 13629 # It fails to find uninstalled libraries when the uninstalled 13630 # path is not listed in the libpath. Setting hardcode_minus_L 13631 # to unsupported forces relinking 13632 hardcode_minus_L_F77=yes 13633 hardcode_libdir_flag_spec_F77='-L$libdir' 13634 hardcode_libdir_separator_F77= 13635 fi 13636 ;; 13637 esac 13638 shared_flag='-shared' 13639 if test yes = "$aix_use_runtimelinking"; then 13640 shared_flag="$shared_flag "'$wl-G' 13641 fi 13642 # Need to ensure runtime linking is disabled for the traditional 13643 # shared library, or the linker may eventually find shared libraries 13644 # /with/ Import File - we do not want to mix them. 13645 shared_flag_aix='-shared' 13646 shared_flag_svr4='-shared $wl-G' 13647 else 13648 # not using gcc 13649 if test ia64 = "$host_cpu"; then 13650 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13651 # chokes on -Wl,-G. The following line is correct: 13652 shared_flag='-G' 13653 else 13654 if test yes = "$aix_use_runtimelinking"; then 13655 shared_flag='$wl-G' 13656 else 13657 shared_flag='$wl-bM:SRE' 13658 fi 13659 shared_flag_aix='$wl-bM:SRE' 13660 shared_flag_svr4='$wl-G' 13661 fi 13662 fi 13663 13664 export_dynamic_flag_spec_F77='$wl-bexpall' 13665 # It seems that -bexpall does not export symbols beginning with 13666 # underscore (_), so it is better to generate a list of symbols to export. 13667 always_export_symbols_F77=yes 13668 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13669 # Warning - without using the other runtime loading flags (-brtl), 13670 # -berok will link without error, but may produce a broken library. 13671 allow_undefined_flag_F77='-berok' 13672 # Determine the default libpath from the value encoded in an 13673 # empty executable. 13674 if test set = "${lt_cv_aix_libpath+set}"; then 13675 aix_libpath=$lt_cv_aix_libpath 13676else 13677 if ${lt_cv_aix_libpath__F77+:} false; then : 13678 $as_echo_n "(cached) " >&6 13679else 13680 cat > conftest.$ac_ext <<_ACEOF 13681 program main 13682 13683 end 13684_ACEOF 13685if ac_fn_f77_try_link "$LINENO"; then : 13686 13687 lt_aix_libpath_sed=' 13688 /Import File Strings/,/^$/ { 13689 /^0/ { 13690 s/^0 *\([^ ]*\) *$/\1/ 13691 p 13692 } 13693 }' 13694 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13695 # Check for a 64-bit object if we didn't find anything. 13696 if test -z "$lt_cv_aix_libpath__F77"; then 13697 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13698 fi 13699fi 13700rm -f core conftest.err conftest.$ac_objext \ 13701 conftest$ac_exeext conftest.$ac_ext 13702 if test -z "$lt_cv_aix_libpath__F77"; then 13703 lt_cv_aix_libpath__F77=/usr/lib:/lib 13704 fi 13705 13706fi 13707 13708 aix_libpath=$lt_cv_aix_libpath__F77 13709fi 13710 13711 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 13712 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 13713 else 13714 if test ia64 = "$host_cpu"; then 13715 hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib' 13716 allow_undefined_flag_F77="-z nodefs" 13717 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" 13718 else 13719 # Determine the default libpath from the value encoded in an 13720 # empty executable. 13721 if test set = "${lt_cv_aix_libpath+set}"; then 13722 aix_libpath=$lt_cv_aix_libpath 13723else 13724 if ${lt_cv_aix_libpath__F77+:} false; then : 13725 $as_echo_n "(cached) " >&6 13726else 13727 cat > conftest.$ac_ext <<_ACEOF 13728 program main 13729 13730 end 13731_ACEOF 13732if ac_fn_f77_try_link "$LINENO"; then : 13733 13734 lt_aix_libpath_sed=' 13735 /Import File Strings/,/^$/ { 13736 /^0/ { 13737 s/^0 *\([^ ]*\) *$/\1/ 13738 p 13739 } 13740 }' 13741 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13742 # Check for a 64-bit object if we didn't find anything. 13743 if test -z "$lt_cv_aix_libpath__F77"; then 13744 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13745 fi 13746fi 13747rm -f core conftest.err conftest.$ac_objext \ 13748 conftest$ac_exeext conftest.$ac_ext 13749 if test -z "$lt_cv_aix_libpath__F77"; then 13750 lt_cv_aix_libpath__F77=/usr/lib:/lib 13751 fi 13752 13753fi 13754 13755 aix_libpath=$lt_cv_aix_libpath__F77 13756fi 13757 13758 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath" 13759 # Warning - without using the other run time loading flags, 13760 # -berok will link without error, but may produce a broken library. 13761 no_undefined_flag_F77=' $wl-bernotok' 13762 allow_undefined_flag_F77=' $wl-berok' 13763 if test yes = "$with_gnu_ld"; then 13764 # We only use this code for GNU lds that support --whole-archive. 13765 whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive' 13766 else 13767 # Exported symbols can be pulled into shared objects from archives 13768 whole_archive_flag_spec_F77='$convenience' 13769 fi 13770 archive_cmds_need_lc_F77=yes 13771 archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13772 # -brtl affects multiple linker settings, -berok does not and is overridden later 13773 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13774 if test svr4 != "$with_aix_soname"; then 13775 # This is similar to how AIX traditionally builds its shared libraries. 13776 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' 13777 fi 13778 if test aix != "$with_aix_soname"; then 13779 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' 13780 else 13781 # used by -dlpreopen to get the symbols 13782 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13783 fi 13784 archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d' 13785 fi 13786 fi 13787 ;; 13788 13789 amigaos*) 13790 case $host_cpu in 13791 powerpc) 13792 # see comment about AmigaOS4 .so support 13793 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13794 archive_expsym_cmds_F77='' 13795 ;; 13796 m68k) 13797 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)' 13798 hardcode_libdir_flag_spec_F77='-L$libdir' 13799 hardcode_minus_L_F77=yes 13800 ;; 13801 esac 13802 ;; 13803 13804 bsdi[45]*) 13805 export_dynamic_flag_spec_F77=-rdynamic 13806 ;; 13807 13808 cygwin* | mingw* | pw32* | cegcc*) 13809 # When not using gcc, we currently assume that we are using 13810 # Microsoft Visual C++. 13811 # hardcode_libdir_flag_spec is actually meaningless, as there is 13812 # no search path for DLLs. 13813 case $cc_basename in 13814 cl*) 13815 # Native MSVC 13816 hardcode_libdir_flag_spec_F77=' ' 13817 allow_undefined_flag_F77=unsupported 13818 always_export_symbols_F77=yes 13819 file_list_spec_F77='@' 13820 # Tell ltmain to make .lib files, not .a files. 13821 libext=lib 13822 # Tell ltmain to make .dll files, not .so files. 13823 shrext_cmds=.dll 13824 # FIXME: Setting linknames here is a bad hack. 13825 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13826 archive_expsym_cmds_F77='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13827 cp "$export_symbols" "$output_objdir/$soname.def"; 13828 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13829 else 13830 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13831 fi~ 13832 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13833 linknames=' 13834 # The linker will not automatically build a static lib if we build a DLL. 13835 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' 13836 enable_shared_with_static_runtimes_F77=yes 13837 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 13838 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13839 # Don't use ranlib 13840 old_postinstall_cmds_F77='chmod 644 $oldlib' 13841 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ 13842 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13843 case $lt_outputfile in 13844 *.exe|*.EXE) ;; 13845 *) 13846 lt_outputfile=$lt_outputfile.exe 13847 lt_tool_outputfile=$lt_tool_outputfile.exe 13848 ;; 13849 esac~ 13850 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13851 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13852 $RM "$lt_outputfile.manifest"; 13853 fi' 13854 ;; 13855 *) 13856 # Assume MSVC wrapper 13857 hardcode_libdir_flag_spec_F77=' ' 13858 allow_undefined_flag_F77=unsupported 13859 # Tell ltmain to make .lib files, not .a files. 13860 libext=lib 13861 # Tell ltmain to make .dll files, not .so files. 13862 shrext_cmds=.dll 13863 # FIXME: Setting linknames here is a bad hack. 13864 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 13865 # The linker will automatically build a .lib file if we build a DLL. 13866 old_archive_from_new_cmds_F77='true' 13867 # FIXME: Should let the user specify the lib program. 13868 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 13869 enable_shared_with_static_runtimes_F77=yes 13870 ;; 13871 esac 13872 ;; 13873 13874 darwin* | rhapsody*) 13875 13876 13877 archive_cmds_need_lc_F77=no 13878 hardcode_direct_F77=no 13879 hardcode_automatic_F77=yes 13880 hardcode_shlibpath_var_F77=unsupported 13881 if test yes = "$lt_cv_ld_force_load"; then 13882 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\"`' 13883 compiler_needs_object_F77=yes 13884 else 13885 whole_archive_flag_spec_F77='' 13886 fi 13887 link_all_deplibs_F77=yes 13888 allow_undefined_flag_F77=$_lt_dar_allow_undefined 13889 case $cc_basename in 13890 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13891 *) _lt_dar_can_shared=$GCC ;; 13892 esac 13893 if test yes = "$_lt_dar_can_shared"; then 13894 output_verbose_link_cmd=func_echo_all 13895 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" 13896 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13897 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" 13898 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" 13899 13900 else 13901 ld_shlibs_F77=no 13902 fi 13903 13904 ;; 13905 13906 dgux*) 13907 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13908 hardcode_libdir_flag_spec_F77='-L$libdir' 13909 hardcode_shlibpath_var_F77=no 13910 ;; 13911 13912 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13913 # support. Future versions do this automatically, but an explicit c++rt0.o 13914 # does not break anything, and helps significantly (at the cost of a little 13915 # extra space). 13916 freebsd2.2*) 13917 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13918 hardcode_libdir_flag_spec_F77='-R$libdir' 13919 hardcode_direct_F77=yes 13920 hardcode_shlibpath_var_F77=no 13921 ;; 13922 13923 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13924 freebsd2.*) 13925 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13926 hardcode_direct_F77=yes 13927 hardcode_minus_L_F77=yes 13928 hardcode_shlibpath_var_F77=no 13929 ;; 13930 13931 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13932 freebsd* | dragonfly*) 13933 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13934 hardcode_libdir_flag_spec_F77='-R$libdir' 13935 hardcode_direct_F77=yes 13936 hardcode_shlibpath_var_F77=no 13937 ;; 13938 13939 hpux9*) 13940 if test yes = "$GCC"; then 13941 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' 13942 else 13943 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' 13944 fi 13945 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 13946 hardcode_libdir_separator_F77=: 13947 hardcode_direct_F77=yes 13948 13949 # hardcode_minus_L: Not really in the search PATH, 13950 # but as the default location of the library. 13951 hardcode_minus_L_F77=yes 13952 export_dynamic_flag_spec_F77='$wl-E' 13953 ;; 13954 13955 hpux10*) 13956 if test yes,no = "$GCC,$with_gnu_ld"; then 13957 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13958 else 13959 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13960 fi 13961 if test no = "$with_gnu_ld"; then 13962 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 13963 hardcode_libdir_separator_F77=: 13964 hardcode_direct_F77=yes 13965 hardcode_direct_absolute_F77=yes 13966 export_dynamic_flag_spec_F77='$wl-E' 13967 # hardcode_minus_L: Not really in the search PATH, 13968 # but as the default location of the library. 13969 hardcode_minus_L_F77=yes 13970 fi 13971 ;; 13972 13973 hpux11*) 13974 if test yes,no = "$GCC,$with_gnu_ld"; then 13975 case $host_cpu in 13976 hppa*64*) 13977 archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13978 ;; 13979 ia64*) 13980 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13981 ;; 13982 *) 13983 archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13984 ;; 13985 esac 13986 else 13987 case $host_cpu in 13988 hppa*64*) 13989 archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 13990 ;; 13991 ia64*) 13992 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 13993 ;; 13994 *) 13995 archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13996 ;; 13997 esac 13998 fi 13999 if test no = "$with_gnu_ld"; then 14000 hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir' 14001 hardcode_libdir_separator_F77=: 14002 14003 case $host_cpu in 14004 hppa*64*|ia64*) 14005 hardcode_direct_F77=no 14006 hardcode_shlibpath_var_F77=no 14007 ;; 14008 *) 14009 hardcode_direct_F77=yes 14010 hardcode_direct_absolute_F77=yes 14011 export_dynamic_flag_spec_F77='$wl-E' 14012 14013 # hardcode_minus_L: Not really in the search PATH, 14014 # but as the default location of the library. 14015 hardcode_minus_L_F77=yes 14016 ;; 14017 esac 14018 fi 14019 ;; 14020 14021 irix5* | irix6* | nonstopux*) 14022 if test yes = "$GCC"; then 14023 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' 14024 # Try to use the -exported_symbol ld option, if it does not 14025 # work, assume that -exports_file does not work either and 14026 # implicitly export all symbols. 14027 # This should be the same for all languages, so no per-tag cache variable. 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 14029$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 14030if ${lt_cv_irix_exported_symbol+:} false; then : 14031 $as_echo_n "(cached) " >&6 14032else 14033 save_LDFLAGS=$LDFLAGS 14034 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 14035 cat > conftest.$ac_ext <<_ACEOF 14036 14037 subroutine foo 14038 end 14039_ACEOF 14040if ac_fn_f77_try_link "$LINENO"; then : 14041 lt_cv_irix_exported_symbol=yes 14042else 14043 lt_cv_irix_exported_symbol=no 14044fi 14045rm -f core conftest.err conftest.$ac_objext \ 14046 conftest$ac_exeext conftest.$ac_ext 14047 LDFLAGS=$save_LDFLAGS 14048fi 14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 14050$as_echo "$lt_cv_irix_exported_symbol" >&6; } 14051 if test yes = "$lt_cv_irix_exported_symbol"; then 14052 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' 14053 fi 14054 else 14055 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' 14056 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' 14057 fi 14058 archive_cmds_need_lc_F77='no' 14059 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 14060 hardcode_libdir_separator_F77=: 14061 inherit_rpath_F77=yes 14062 link_all_deplibs_F77=yes 14063 ;; 14064 14065 linux*) 14066 case $cc_basename in 14067 tcc*) 14068 # Fabrice Bellard et al's Tiny C Compiler 14069 ld_shlibs_F77=yes 14070 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14071 ;; 14072 esac 14073 ;; 14074 14075 netbsd*) 14076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14077 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14078 else 14079 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14080 fi 14081 hardcode_libdir_flag_spec_F77='-R$libdir' 14082 hardcode_direct_F77=yes 14083 hardcode_shlibpath_var_F77=no 14084 ;; 14085 14086 newsos6) 14087 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14088 hardcode_direct_F77=yes 14089 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 14090 hardcode_libdir_separator_F77=: 14091 hardcode_shlibpath_var_F77=no 14092 ;; 14093 14094 *nto* | *qnx*) 14095 ;; 14096 14097 openbsd* | bitrig*) 14098 if test -f /usr/libexec/ld.so; then 14099 hardcode_direct_F77=yes 14100 hardcode_shlibpath_var_F77=no 14101 hardcode_direct_absolute_F77=yes 14102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 14103 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14104 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 14105 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 14106 export_dynamic_flag_spec_F77='$wl-E' 14107 else 14108 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14109 hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir' 14110 fi 14111 else 14112 ld_shlibs_F77=no 14113 fi 14114 ;; 14115 14116 os2*) 14117 hardcode_libdir_flag_spec_F77='-L$libdir' 14118 hardcode_minus_L_F77=yes 14119 allow_undefined_flag_F77=unsupported 14120 shrext_cmds=.dll 14121 archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14122 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14123 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14124 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14125 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14126 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14127 emximp -o $lib $output_objdir/$libname.def' 14128 archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14129 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14130 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14131 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14132 prefix_cmds="$SED"~ 14133 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14134 prefix_cmds="$prefix_cmds -e 1d"; 14135 fi~ 14136 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14137 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14138 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14139 emximp -o $lib $output_objdir/$libname.def' 14140 old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14141 enable_shared_with_static_runtimes_F77=yes 14142 ;; 14143 14144 osf3*) 14145 if test yes = "$GCC"; then 14146 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 14147 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' 14148 else 14149 allow_undefined_flag_F77=' -expect_unresolved \*' 14150 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' 14151 fi 14152 archive_cmds_need_lc_F77='no' 14153 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 14154 hardcode_libdir_separator_F77=: 14155 ;; 14156 14157 osf4* | osf5*) # as osf3* with the addition of -msym flag 14158 if test yes = "$GCC"; then 14159 allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*' 14160 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' 14161 hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir' 14162 else 14163 allow_undefined_flag_F77=' -expect_unresolved \*' 14164 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' 14165 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~ 14166 $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' 14167 14168 # Both c and cxx compiler support -rpath directly 14169 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14170 fi 14171 archive_cmds_need_lc_F77='no' 14172 hardcode_libdir_separator_F77=: 14173 ;; 14174 14175 solaris*) 14176 no_undefined_flag_F77=' -z defs' 14177 if test yes = "$GCC"; then 14178 wlarc='$wl' 14179 archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 14180 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14181 $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' 14182 else 14183 case `$CC -V 2>&1` in 14184 *"Compilers 5.0"*) 14185 wlarc='' 14186 archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 14187 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14188 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 14189 ;; 14190 *) 14191 wlarc='$wl' 14192 archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 14193 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14194 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 14195 ;; 14196 esac 14197 fi 14198 hardcode_libdir_flag_spec_F77='-R$libdir' 14199 hardcode_shlibpath_var_F77=no 14200 case $host_os in 14201 solaris2.[0-5] | solaris2.[0-5].*) ;; 14202 *) 14203 # The compiler driver will combine and reorder linker options, 14204 # but understands '-z linker_flag'. GCC discards it without '$wl', 14205 # but is careful enough not to reorder. 14206 # Supported since Solaris 2.6 (maybe 2.5.1?) 14207 if test yes = "$GCC"; then 14208 whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14209 else 14210 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 14211 fi 14212 ;; 14213 esac 14214 link_all_deplibs_F77=yes 14215 ;; 14216 14217 sunos4*) 14218 if test sequent = "$host_vendor"; then 14219 # Use $CC to link under sequent, because it throws in some extra .o 14220 # files that make .init and .fini sections work. 14221 archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14222 else 14223 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14224 fi 14225 hardcode_libdir_flag_spec_F77='-L$libdir' 14226 hardcode_direct_F77=yes 14227 hardcode_minus_L_F77=yes 14228 hardcode_shlibpath_var_F77=no 14229 ;; 14230 14231 sysv4) 14232 case $host_vendor in 14233 sni) 14234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14235 hardcode_direct_F77=yes # is this really true??? 14236 ;; 14237 siemens) 14238 ## LD is ld it makes a PLAMLIB 14239 ## CC just makes a GrossModule. 14240 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14241 reload_cmds_F77='$CC -r -o $output$reload_objs' 14242 hardcode_direct_F77=no 14243 ;; 14244 motorola) 14245 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14246 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14247 ;; 14248 esac 14249 runpath_var='LD_RUN_PATH' 14250 hardcode_shlibpath_var_F77=no 14251 ;; 14252 14253 sysv4.3*) 14254 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14255 hardcode_shlibpath_var_F77=no 14256 export_dynamic_flag_spec_F77='-Bexport' 14257 ;; 14258 14259 sysv4*MP*) 14260 if test -d /usr/nec; then 14261 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14262 hardcode_shlibpath_var_F77=no 14263 runpath_var=LD_RUN_PATH 14264 hardcode_runpath_var=yes 14265 ld_shlibs_F77=yes 14266 fi 14267 ;; 14268 14269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14270 no_undefined_flag_F77='$wl-z,text' 14271 archive_cmds_need_lc_F77=no 14272 hardcode_shlibpath_var_F77=no 14273 runpath_var='LD_RUN_PATH' 14274 14275 if test yes = "$GCC"; then 14276 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14277 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14278 else 14279 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14280 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14281 fi 14282 ;; 14283 14284 sysv5* | sco3.2v5* | sco5v6*) 14285 # Note: We CANNOT use -z defs as we might desire, because we do not 14286 # link with -lc, and that would cause any symbols used from libc to 14287 # always be unresolved, which means just about no library would 14288 # ever link correctly. If we're not using GNU ld we use -z text 14289 # though, which does catch some bad symbols but isn't as heavy-handed 14290 # as -z defs. 14291 no_undefined_flag_F77='$wl-z,text' 14292 allow_undefined_flag_F77='$wl-z,nodefs' 14293 archive_cmds_need_lc_F77=no 14294 hardcode_shlibpath_var_F77=no 14295 hardcode_libdir_flag_spec_F77='$wl-R,$libdir' 14296 hardcode_libdir_separator_F77=':' 14297 link_all_deplibs_F77=yes 14298 export_dynamic_flag_spec_F77='$wl-Bexport' 14299 runpath_var='LD_RUN_PATH' 14300 14301 if test yes = "$GCC"; then 14302 archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14303 archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14304 else 14305 archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14306 archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14307 fi 14308 ;; 14309 14310 uts4*) 14311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14312 hardcode_libdir_flag_spec_F77='-L$libdir' 14313 hardcode_shlibpath_var_F77=no 14314 ;; 14315 14316 *) 14317 ld_shlibs_F77=no 14318 ;; 14319 esac 14320 14321 if test sni = "$host_vendor"; then 14322 case $host in 14323 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14324 export_dynamic_flag_spec_F77='$wl-Blargedynsym' 14325 ;; 14326 esac 14327 fi 14328 fi 14329 14330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 14331$as_echo "$ld_shlibs_F77" >&6; } 14332test no = "$ld_shlibs_F77" && can_build_shared=no 14333 14334with_gnu_ld_F77=$with_gnu_ld 14335 14336 14337 14338 14339 14340 14341# 14342# Do we need to explicitly link libc? 14343# 14344case "x$archive_cmds_need_lc_F77" in 14345x|xyes) 14346 # Assume -lc should be added 14347 archive_cmds_need_lc_F77=yes 14348 14349 if test yes,yes = "$GCC,$enable_shared"; then 14350 case $archive_cmds_F77 in 14351 *'~'*) 14352 # FIXME: we may have to deal with multi-command sequences. 14353 ;; 14354 '$CC '*) 14355 # Test whether the compiler implicitly links with -lc since on some 14356 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14357 # to ld, don't add -lc before -lgcc. 14358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14359$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14360if ${lt_cv_archive_cmds_need_lc_F77+:} false; then : 14361 $as_echo_n "(cached) " >&6 14362else 14363 $RM conftest* 14364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14365 14366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14367 (eval $ac_compile) 2>&5 14368 ac_status=$? 14369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14370 test $ac_status = 0; } 2>conftest.err; then 14371 soname=conftest 14372 lib=conftest 14373 libobjs=conftest.$ac_objext 14374 deplibs= 14375 wl=$lt_prog_compiler_wl_F77 14376 pic_flag=$lt_prog_compiler_pic_F77 14377 compiler_flags=-v 14378 linker_flags=-v 14379 verstring= 14380 output_objdir=. 14381 libname=conftest 14382 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14383 allow_undefined_flag_F77= 14384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14385 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14386 ac_status=$? 14387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14388 test $ac_status = 0; } 14389 then 14390 lt_cv_archive_cmds_need_lc_F77=no 14391 else 14392 lt_cv_archive_cmds_need_lc_F77=yes 14393 fi 14394 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14395 else 14396 cat conftest.err 1>&5 14397 fi 14398 $RM conftest* 14399 14400fi 14401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 14402$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } 14403 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 14404 ;; 14405 esac 14406 fi 14407 ;; 14408esac 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14472$as_echo_n "checking dynamic linker characteristics... " >&6; } 14473 14474library_names_spec= 14475libname_spec='lib$name' 14476soname_spec= 14477shrext_cmds=.so 14478postinstall_cmds= 14479postuninstall_cmds= 14480finish_cmds= 14481finish_eval= 14482shlibpath_var= 14483shlibpath_overrides_runpath=unknown 14484version_type=none 14485dynamic_linker="$host_os ld.so" 14486sys_lib_dlsearch_path_spec="/lib /usr/lib" 14487need_lib_prefix=unknown 14488hardcode_into_libs=no 14489 14490# when you set need_version to no, make sure it does not cause -set_version 14491# flags to be left without arguments 14492need_version=unknown 14493 14494 14495 14496case $host_os in 14497aix3*) 14498 version_type=linux # correct to gnu/linux during the next big refactor 14499 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 14500 shlibpath_var=LIBPATH 14501 14502 # AIX 3 has no versioning support, so we append a major version to the name. 14503 soname_spec='$libname$release$shared_ext$major' 14504 ;; 14505 14506aix[4-9]*) 14507 version_type=linux # correct to gnu/linux during the next big refactor 14508 need_lib_prefix=no 14509 need_version=no 14510 hardcode_into_libs=yes 14511 if test ia64 = "$host_cpu"; then 14512 # AIX 5 supports IA64 14513 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 14514 shlibpath_var=LD_LIBRARY_PATH 14515 else 14516 # With GCC up to 2.95.x, collect2 would create an import file 14517 # for dependence libraries. The import file would start with 14518 # the line '#! .'. This would cause the generated library to 14519 # depend on '.', always an invalid library. This was fixed in 14520 # development snapshots of GCC prior to 3.0. 14521 case $host_os in 14522 aix4 | aix4.[01] | aix4.[01].*) 14523 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14524 echo ' yes ' 14525 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 14526 : 14527 else 14528 can_build_shared=no 14529 fi 14530 ;; 14531 esac 14532 # Using Import Files as archive members, it is possible to support 14533 # filename-based versioning of shared library archives on AIX. While 14534 # this would work for both with and without runtime linking, it will 14535 # prevent static linking of such archives. So we do filename-based 14536 # shared library versioning with .so extension only, which is used 14537 # when both runtime linking and shared linking is enabled. 14538 # Unfortunately, runtime linking may impact performance, so we do 14539 # not want this to be the default eventually. Also, we use the 14540 # versioned .so libs for executables only if there is the -brtl 14541 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 14542 # To allow for filename-based versioning support, we need to create 14543 # libNAME.so.V as an archive file, containing: 14544 # *) an Import File, referring to the versioned filename of the 14545 # archive as well as the shared archive member, telling the 14546 # bitwidth (32 or 64) of that shared object, and providing the 14547 # list of exported symbols of that shared object, eventually 14548 # decorated with the 'weak' keyword 14549 # *) the shared object with the F_LOADONLY flag set, to really avoid 14550 # it being seen by the linker. 14551 # At run time we better use the real file rather than another symlink, 14552 # but for link time we create the symlink libNAME.so -> libNAME.so.V 14553 14554 case $with_aix_soname,$aix_use_runtimelinking in 14555 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 14556 # soname into executable. Probably we can add versioning support to 14557 # collect2, so additional links can be useful in future. 14558 aix,yes) # traditional libtool 14559 dynamic_linker='AIX unversionable lib.so' 14560 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14561 # instead of lib<name>.a to let people know that these are not 14562 # typical AIX shared libraries. 14563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14564 ;; 14565 aix,no) # traditional AIX only 14566 dynamic_linker='AIX lib.a(lib.so.V)' 14567 # We preserve .a as extension for shared libraries through AIX4.2 14568 # and later when we are not doing run time linking. 14569 library_names_spec='$libname$release.a $libname.a' 14570 soname_spec='$libname$release$shared_ext$major' 14571 ;; 14572 svr4,*) # full svr4 only 14573 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 14574 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14575 # We do not specify a path in Import Files, so LIBPATH fires. 14576 shlibpath_overrides_runpath=yes 14577 ;; 14578 *,yes) # both, prefer svr4 14579 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 14580 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 14581 # unpreferred sharedlib libNAME.a needs extra handling 14582 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"' 14583 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"' 14584 # We do not specify a path in Import Files, so LIBPATH fires. 14585 shlibpath_overrides_runpath=yes 14586 ;; 14587 *,no) # both, prefer aix 14588 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 14589 library_names_spec='$libname$release.a $libname.a' 14590 soname_spec='$libname$release$shared_ext$major' 14591 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 14592 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)' 14593 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"' 14594 ;; 14595 esac 14596 shlibpath_var=LIBPATH 14597 fi 14598 ;; 14599 14600amigaos*) 14601 case $host_cpu in 14602 powerpc) 14603 # Since July 2007 AmigaOS4 officially supports .so libraries. 14604 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14606 ;; 14607 m68k) 14608 library_names_spec='$libname.ixlibrary $libname.a' 14609 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14610 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' 14611 ;; 14612 esac 14613 ;; 14614 14615beos*) 14616 library_names_spec='$libname$shared_ext' 14617 dynamic_linker="$host_os ld.so" 14618 shlibpath_var=LIBRARY_PATH 14619 ;; 14620 14621bsdi[45]*) 14622 version_type=linux # correct to gnu/linux during the next big refactor 14623 need_version=no 14624 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14625 soname_spec='$libname$release$shared_ext$major' 14626 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14627 shlibpath_var=LD_LIBRARY_PATH 14628 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14629 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14630 # the default ld.so.conf also contains /usr/contrib/lib and 14631 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14632 # libtool to hard-code these into programs 14633 ;; 14634 14635cygwin* | mingw* | pw32* | cegcc*) 14636 version_type=windows 14637 shrext_cmds=.dll 14638 need_version=no 14639 need_lib_prefix=no 14640 14641 case $GCC,$cc_basename in 14642 yes,*) 14643 # gcc 14644 library_names_spec='$libname.dll.a' 14645 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14646 postinstall_cmds='base_file=`basename \$file`~ 14647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14648 dldir=$destdir/`dirname \$dlpath`~ 14649 test -d \$dldir || mkdir -p \$dldir~ 14650 $install_prog $dir/$dlname \$dldir/$dlname~ 14651 chmod a+x \$dldir/$dlname~ 14652 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14653 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14654 fi' 14655 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14656 dlpath=$dir/\$dldll~ 14657 $RM \$dlpath' 14658 shlibpath_overrides_runpath=yes 14659 14660 case $host_os in 14661 cygwin*) 14662 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14663 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14664 14665 ;; 14666 mingw* | cegcc*) 14667 # MinGW DLLs use traditional 'lib' prefix 14668 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14669 ;; 14670 pw32*) 14671 # pw32 DLLs use 'pw' prefix rather than 'lib' 14672 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14673 ;; 14674 esac 14675 dynamic_linker='Win32 ld.exe' 14676 ;; 14677 14678 *,cl*) 14679 # Native MSVC 14680 libname_spec='$name' 14681 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 14682 library_names_spec='$libname.dll.lib' 14683 14684 case $build_os in 14685 mingw*) 14686 sys_lib_search_path_spec= 14687 lt_save_ifs=$IFS 14688 IFS=';' 14689 for lt_path in $LIB 14690 do 14691 IFS=$lt_save_ifs 14692 # Let DOS variable expansion print the short 8.3 style file name. 14693 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14694 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14695 done 14696 IFS=$lt_save_ifs 14697 # Convert to MSYS style. 14698 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14699 ;; 14700 cygwin*) 14701 # Convert to unix form, then to dos form, then back to unix form 14702 # but this time dos style (no spaces!) so that the unix form looks 14703 # like /cygdrive/c/PROGRA~1:/cygdr... 14704 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14705 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14706 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14707 ;; 14708 *) 14709 sys_lib_search_path_spec=$LIB 14710 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14711 # It is most probably a Windows format PATH. 14712 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14713 else 14714 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14715 fi 14716 # FIXME: find the short name or the path components, as spaces are 14717 # common. (e.g. "Program Files" -> "PROGRA~1") 14718 ;; 14719 esac 14720 14721 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14722 postinstall_cmds='base_file=`basename \$file`~ 14723 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 14724 dldir=$destdir/`dirname \$dlpath`~ 14725 test -d \$dldir || mkdir -p \$dldir~ 14726 $install_prog $dir/$dlname \$dldir/$dlname' 14727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14728 dlpath=$dir/\$dldll~ 14729 $RM \$dlpath' 14730 shlibpath_overrides_runpath=yes 14731 dynamic_linker='Win32 link.exe' 14732 ;; 14733 14734 *) 14735 # Assume MSVC wrapper 14736 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 14737 dynamic_linker='Win32 ld.exe' 14738 ;; 14739 esac 14740 # FIXME: first we should search . and the directory the executable is in 14741 shlibpath_var=PATH 14742 ;; 14743 14744darwin* | rhapsody*) 14745 dynamic_linker="$host_os dyld" 14746 version_type=darwin 14747 need_lib_prefix=no 14748 need_version=no 14749 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 14750 soname_spec='$libname$release$major$shared_ext' 14751 shlibpath_overrides_runpath=yes 14752 shlibpath_var=DYLD_LIBRARY_PATH 14753 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14754 14755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14756 ;; 14757 14758dgux*) 14759 version_type=linux # correct to gnu/linux during the next big refactor 14760 need_lib_prefix=no 14761 need_version=no 14762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14763 soname_spec='$libname$release$shared_ext$major' 14764 shlibpath_var=LD_LIBRARY_PATH 14765 ;; 14766 14767freebsd* | dragonfly*) 14768 # DragonFly does not have aout. When/if they implement a new 14769 # versioning mechanism, adjust this. 14770 if test -x /usr/bin/objformat; then 14771 objformat=`/usr/bin/objformat` 14772 else 14773 case $host_os in 14774 freebsd[23].*) objformat=aout ;; 14775 *) objformat=elf ;; 14776 esac 14777 fi 14778 version_type=freebsd-$objformat 14779 case $version_type in 14780 freebsd-elf*) 14781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14782 soname_spec='$libname$release$shared_ext$major' 14783 need_version=no 14784 need_lib_prefix=no 14785 ;; 14786 freebsd-*) 14787 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 14788 need_version=yes 14789 ;; 14790 esac 14791 shlibpath_var=LD_LIBRARY_PATH 14792 case $host_os in 14793 freebsd2.*) 14794 shlibpath_overrides_runpath=yes 14795 ;; 14796 freebsd3.[01]* | freebsdelf3.[01]*) 14797 shlibpath_overrides_runpath=yes 14798 hardcode_into_libs=yes 14799 ;; 14800 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14801 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14802 shlibpath_overrides_runpath=no 14803 hardcode_into_libs=yes 14804 ;; 14805 *) # from 4.6 on, and DragonFly 14806 shlibpath_overrides_runpath=yes 14807 hardcode_into_libs=yes 14808 ;; 14809 esac 14810 ;; 14811 14812haiku*) 14813 version_type=linux # correct to gnu/linux during the next big refactor 14814 need_lib_prefix=no 14815 need_version=no 14816 dynamic_linker="$host_os runtime_loader" 14817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14818 soname_spec='$libname$release$shared_ext$major' 14819 shlibpath_var=LIBRARY_PATH 14820 shlibpath_overrides_runpath=no 14821 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14822 hardcode_into_libs=yes 14823 ;; 14824 14825hpux9* | hpux10* | hpux11*) 14826 # Give a soname corresponding to the major version so that dld.sl refuses to 14827 # link against other versions. 14828 version_type=sunos 14829 need_lib_prefix=no 14830 need_version=no 14831 case $host_cpu in 14832 ia64*) 14833 shrext_cmds='.so' 14834 hardcode_into_libs=yes 14835 dynamic_linker="$host_os dld.so" 14836 shlibpath_var=LD_LIBRARY_PATH 14837 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14839 soname_spec='$libname$release$shared_ext$major' 14840 if test 32 = "$HPUX_IA64_MODE"; then 14841 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14842 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 14843 else 14844 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14845 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 14846 fi 14847 ;; 14848 hppa*64*) 14849 shrext_cmds='.sl' 14850 hardcode_into_libs=yes 14851 dynamic_linker="$host_os dld.sl" 14852 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14855 soname_spec='$libname$release$shared_ext$major' 14856 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14858 ;; 14859 *) 14860 shrext_cmds='.sl' 14861 dynamic_linker="$host_os dld.sl" 14862 shlibpath_var=SHLIB_PATH 14863 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 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 ;; 14867 esac 14868 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14869 postinstall_cmds='chmod 555 $lib' 14870 # or fails outright, so override atomically: 14871 install_override_mode=555 14872 ;; 14873 14874interix[3-9]*) 14875 version_type=linux # correct to gnu/linux during the next big refactor 14876 need_lib_prefix=no 14877 need_version=no 14878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14879 soname_spec='$libname$release$shared_ext$major' 14880 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14881 shlibpath_var=LD_LIBRARY_PATH 14882 shlibpath_overrides_runpath=no 14883 hardcode_into_libs=yes 14884 ;; 14885 14886irix5* | irix6* | nonstopux*) 14887 case $host_os in 14888 nonstopux*) version_type=nonstopux ;; 14889 *) 14890 if test yes = "$lt_cv_prog_gnu_ld"; then 14891 version_type=linux # correct to gnu/linux during the next big refactor 14892 else 14893 version_type=irix 14894 fi ;; 14895 esac 14896 need_lib_prefix=no 14897 need_version=no 14898 soname_spec='$libname$release$shared_ext$major' 14899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 14900 case $host_os in 14901 irix5* | nonstopux*) 14902 libsuff= shlibsuff= 14903 ;; 14904 *) 14905 case $LD in # libtool.m4 will add one of these switches to LD 14906 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14907 libsuff= shlibsuff= libmagic=32-bit;; 14908 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14909 libsuff=32 shlibsuff=N32 libmagic=N32;; 14910 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14911 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14912 *) libsuff= shlibsuff= libmagic=never-match;; 14913 esac 14914 ;; 14915 esac 14916 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14917 shlibpath_overrides_runpath=no 14918 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 14919 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 14920 hardcode_into_libs=yes 14921 ;; 14922 14923# No shared lib support for Linux oldld, aout, or coff. 14924linux*oldld* | linux*aout* | linux*coff*) 14925 dynamic_linker=no 14926 ;; 14927 14928linux*android*) 14929 version_type=none # Android doesn't support versioned libraries. 14930 need_lib_prefix=no 14931 need_version=no 14932 library_names_spec='$libname$release$shared_ext' 14933 soname_spec='$libname$release$shared_ext' 14934 finish_cmds= 14935 shlibpath_var=LD_LIBRARY_PATH 14936 shlibpath_overrides_runpath=yes 14937 14938 # This implies no fast_install, which is unacceptable. 14939 # Some rework will be needed to allow for fast_install 14940 # before this can be enabled. 14941 hardcode_into_libs=yes 14942 14943 dynamic_linker='Android linker' 14944 # Don't embed -rpath directories since the linker doesn't support them. 14945 hardcode_libdir_flag_spec_F77='-L$libdir' 14946 ;; 14947 14948# This must be glibc/ELF. 14949linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14950 version_type=linux # correct to gnu/linux during the next big refactor 14951 need_lib_prefix=no 14952 need_version=no 14953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 14954 soname_spec='$libname$release$shared_ext$major' 14955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14956 shlibpath_var=LD_LIBRARY_PATH 14957 shlibpath_overrides_runpath=no 14958 14959 # Some binutils ld are patched to set DT_RUNPATH 14960 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14961 $as_echo_n "(cached) " >&6 14962else 14963 lt_cv_shlibpath_overrides_runpath=no 14964 save_LDFLAGS=$LDFLAGS 14965 save_libdir=$libdir 14966 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ 14967 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" 14968 cat > conftest.$ac_ext <<_ACEOF 14969 program main 14970 14971 end 14972_ACEOF 14973if ac_fn_f77_try_link "$LINENO"; then : 14974 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14975 lt_cv_shlibpath_overrides_runpath=yes 14976fi 14977fi 14978rm -f core conftest.err conftest.$ac_objext \ 14979 conftest$ac_exeext conftest.$ac_ext 14980 LDFLAGS=$save_LDFLAGS 14981 libdir=$save_libdir 14982 14983fi 14984 14985 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14986 14987 # This implies no fast_install, which is unacceptable. 14988 # Some rework will be needed to allow for fast_install 14989 # before this can be enabled. 14990 hardcode_into_libs=yes 14991 14992 # Ideally, we could use ldconfig to report *all* directores which are 14993 # searched for libraries, however this is still not possible. Aside from not 14994 # being certain /sbin/ldconfig is available, command 14995 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 14996 # even though it is searched at run-time. Try to do the best guess by 14997 # appending ld.so.conf contents (and includes) to the search path. 14998 if test -f /etc/ld.so.conf; then 14999 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' ' '` 15000 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15001 fi 15002 15003 # We used to test for /lib/ld.so.1 and disable shared libraries on 15004 # powerpc, because MkLinux only supported shared libraries with the 15005 # GNU dynamic linker. Since this was broken with cross compilers, 15006 # most powerpc-linux boxes support dynamic linking these days and 15007 # people can always --disable-shared, the test was removed, and we 15008 # assume the GNU/Linux dynamic linker is in use. 15009 dynamic_linker='GNU/Linux ld.so' 15010 ;; 15011 15012netbsd*) 15013 version_type=sunos 15014 need_lib_prefix=no 15015 need_version=no 15016 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15017 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15019 dynamic_linker='NetBSD (a.out) ld.so' 15020 else 15021 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15022 soname_spec='$libname$release$shared_ext$major' 15023 dynamic_linker='NetBSD ld.elf_so' 15024 fi 15025 shlibpath_var=LD_LIBRARY_PATH 15026 shlibpath_overrides_runpath=yes 15027 hardcode_into_libs=yes 15028 ;; 15029 15030newsos6) 15031 version_type=linux # correct to gnu/linux during the next big refactor 15032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15033 shlibpath_var=LD_LIBRARY_PATH 15034 shlibpath_overrides_runpath=yes 15035 ;; 15036 15037*nto* | *qnx*) 15038 version_type=qnx 15039 need_lib_prefix=no 15040 need_version=no 15041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15042 soname_spec='$libname$release$shared_ext$major' 15043 shlibpath_var=LD_LIBRARY_PATH 15044 shlibpath_overrides_runpath=no 15045 hardcode_into_libs=yes 15046 dynamic_linker='ldqnx.so' 15047 ;; 15048 15049openbsd* | bitrig*) 15050 version_type=sunos 15051 sys_lib_dlsearch_path_spec=/usr/lib 15052 need_lib_prefix=no 15053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15054 need_version=no 15055 else 15056 need_version=yes 15057 fi 15058 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15060 shlibpath_var=LD_LIBRARY_PATH 15061 shlibpath_overrides_runpath=yes 15062 ;; 15063 15064os2*) 15065 libname_spec='$name' 15066 version_type=windows 15067 shrext_cmds=.dll 15068 need_version=no 15069 need_lib_prefix=no 15070 # OS/2 can only load a DLL with a base name of 8 characters or less. 15071 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15072 v=$($ECHO $release$versuffix | tr -d .-); 15073 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15074 $ECHO $n$v`$shared_ext' 15075 library_names_spec='${libname}_dll.$libext' 15076 dynamic_linker='OS/2 ld.exe' 15077 shlibpath_var=BEGINLIBPATH 15078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15080 postinstall_cmds='base_file=`basename \$file`~ 15081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15082 dldir=$destdir/`dirname \$dlpath`~ 15083 test -d \$dldir || mkdir -p \$dldir~ 15084 $install_prog $dir/$dlname \$dldir/$dlname~ 15085 chmod a+x \$dldir/$dlname~ 15086 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15087 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15088 fi' 15089 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15090 dlpath=$dir/\$dldll~ 15091 $RM \$dlpath' 15092 ;; 15093 15094osf3* | osf4* | osf5*) 15095 version_type=osf 15096 need_lib_prefix=no 15097 need_version=no 15098 soname_spec='$libname$release$shared_ext$major' 15099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15100 shlibpath_var=LD_LIBRARY_PATH 15101 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15103 ;; 15104 15105rdos*) 15106 dynamic_linker=no 15107 ;; 15108 15109solaris*) 15110 version_type=linux # correct to gnu/linux during the next big refactor 15111 need_lib_prefix=no 15112 need_version=no 15113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15114 soname_spec='$libname$release$shared_ext$major' 15115 shlibpath_var=LD_LIBRARY_PATH 15116 shlibpath_overrides_runpath=yes 15117 hardcode_into_libs=yes 15118 # ldd complains unless libraries are executable 15119 postinstall_cmds='chmod +x $lib' 15120 ;; 15121 15122sunos4*) 15123 version_type=sunos 15124 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15125 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15126 shlibpath_var=LD_LIBRARY_PATH 15127 shlibpath_overrides_runpath=yes 15128 if test yes = "$with_gnu_ld"; then 15129 need_lib_prefix=no 15130 fi 15131 need_version=yes 15132 ;; 15133 15134sysv4 | sysv4.3*) 15135 version_type=linux # correct to gnu/linux during the next big refactor 15136 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15137 soname_spec='$libname$release$shared_ext$major' 15138 shlibpath_var=LD_LIBRARY_PATH 15139 case $host_vendor in 15140 sni) 15141 shlibpath_overrides_runpath=no 15142 need_lib_prefix=no 15143 runpath_var=LD_RUN_PATH 15144 ;; 15145 siemens) 15146 need_lib_prefix=no 15147 ;; 15148 motorola) 15149 need_lib_prefix=no 15150 need_version=no 15151 shlibpath_overrides_runpath=no 15152 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15153 ;; 15154 esac 15155 ;; 15156 15157sysv4*MP*) 15158 if test -d /usr/nec; then 15159 version_type=linux # correct to gnu/linux during the next big refactor 15160 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15161 soname_spec='$libname$shared_ext.$major' 15162 shlibpath_var=LD_LIBRARY_PATH 15163 fi 15164 ;; 15165 15166sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15167 version_type=sco 15168 need_lib_prefix=no 15169 need_version=no 15170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15171 soname_spec='$libname$release$shared_ext$major' 15172 shlibpath_var=LD_LIBRARY_PATH 15173 shlibpath_overrides_runpath=yes 15174 hardcode_into_libs=yes 15175 if test yes = "$with_gnu_ld"; then 15176 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15177 else 15178 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15179 case $host_os in 15180 sco3.2v5*) 15181 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15182 ;; 15183 esac 15184 fi 15185 sys_lib_dlsearch_path_spec='/usr/lib' 15186 ;; 15187 15188tpf*) 15189 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15190 version_type=linux # correct to gnu/linux during the next big refactor 15191 need_lib_prefix=no 15192 need_version=no 15193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15194 shlibpath_var=LD_LIBRARY_PATH 15195 shlibpath_overrides_runpath=no 15196 hardcode_into_libs=yes 15197 ;; 15198 15199uts4*) 15200 version_type=linux # correct to gnu/linux during the next big refactor 15201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15202 soname_spec='$libname$release$shared_ext$major' 15203 shlibpath_var=LD_LIBRARY_PATH 15204 ;; 15205 15206*) 15207 dynamic_linker=no 15208 ;; 15209esac 15210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15211$as_echo "$dynamic_linker" >&6; } 15212test no = "$dynamic_linker" && can_build_shared=no 15213 15214variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15215if test yes = "$GCC"; then 15216 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15217fi 15218 15219if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15220 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15221fi 15222 15223if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15224 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15225fi 15226 15227# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15228configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15229 15230# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15231func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15232 15233# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15234configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15276$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15277hardcode_action_F77= 15278if test -n "$hardcode_libdir_flag_spec_F77" || 15279 test -n "$runpath_var_F77" || 15280 test yes = "$hardcode_automatic_F77"; then 15281 15282 # We can hardcode non-existent directories. 15283 if test no != "$hardcode_direct_F77" && 15284 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15285 # have to relink, otherwise we might link with an installed library 15286 # when we should be linking with a yet-to-be-installed one 15287 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" && 15288 test no != "$hardcode_minus_L_F77"; then 15289 # Linking always hardcodes the temporary library directory. 15290 hardcode_action_F77=relink 15291 else 15292 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15293 hardcode_action_F77=immediate 15294 fi 15295else 15296 # We cannot hardcode anything, or else we can only hardcode existing 15297 # directories. 15298 hardcode_action_F77=unsupported 15299fi 15300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 15301$as_echo "$hardcode_action_F77" >&6; } 15302 15303if test relink = "$hardcode_action_F77" || 15304 test yes = "$inherit_rpath_F77"; then 15305 # Fast installation is not supported 15306 enable_fast_install=no 15307elif test yes = "$shlibpath_overrides_runpath" || 15308 test no = "$enable_shared"; then 15309 # Fast installation is not necessary 15310 enable_fast_install=needless 15311fi 15312 15313 15314 15315 15316 15317 15318 15319 fi # test -n "$compiler" 15320 15321 GCC=$lt_save_GCC 15322 CC=$lt_save_CC 15323 CFLAGS=$lt_save_CFLAGS 15324fi # test yes != "$_lt_disable_F77" 15325 15326ac_ext=c 15327ac_cpp='$CPP $CPPFLAGS' 15328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15330ac_compiler_gnu=$ac_cv_c_compiler_gnu 15331 15332 15333# Extract the first word of "perl perl5", so it can be a program name with args. 15334set dummy perl perl5; ac_word=$2 15335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15336$as_echo_n "checking for $ac_word... " >&6; } 15337if ${ac_cv_path_PERL+:} false; then : 15338 $as_echo_n "(cached) " >&6 15339else 15340 case $PERL in 15341 [\\/]* | ?:[\\/]*) 15342 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 15343 ;; 15344 *) 15345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15346for as_dir in $PATH 15347do 15348 IFS=$as_save_IFS 15349 test -z "$as_dir" && as_dir=. 15350 for ac_exec_ext in '' $ac_executable_extensions; do 15351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15352 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 15353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15354 break 2 15355 fi 15356done 15357 done 15358IFS=$as_save_IFS 15359 15360 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$srcdir/missing" 15361 ;; 15362esac 15363fi 15364PERL=$ac_cv_path_PERL 15365if test -n "$PERL"; then 15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 15367$as_echo "$PERL" >&6; } 15368else 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15370$as_echo "no" >&6; } 15371fi 15372 15373 15374 15375# Get C compiler. 15376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vendor cc to be used instead of gcc" >&5 15377$as_echo_n "checking for vendor cc to be used instead of gcc... " >&6; } 15378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 15379$as_echo "" >&6; } 15380for ac_prog in cc xlc 15381do 15382 # Extract the first word of "$ac_prog", so it can be a program name with args. 15383set dummy $ac_prog; ac_word=$2 15384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15385$as_echo_n "checking for $ac_word... " >&6; } 15386if ${ac_cv_prog_CC+:} false; then : 15387 $as_echo_n "(cached) " >&6 15388else 15389 if test -n "$CC"; then 15390 ac_cv_prog_CC="$CC" # Let the user override the test. 15391else 15392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15393for as_dir in $PATH 15394do 15395 IFS=$as_save_IFS 15396 test -z "$as_dir" && as_dir=. 15397 for ac_exec_ext in '' $ac_executable_extensions; do 15398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15399 ac_cv_prog_CC="$ac_prog" 15400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15401 break 2 15402 fi 15403done 15404 done 15405IFS=$as_save_IFS 15406 15407fi 15408fi 15409CC=$ac_cv_prog_CC 15410if test -n "$CC"; then 15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15412$as_echo "$CC" >&6; } 15413else 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15415$as_echo "no" >&6; } 15416fi 15417 15418 15419 test -n "$CC" && break 15420done 15421 # prefer vendor cc, to stay in sync with Fortran 15422ac_ext=c 15423ac_cpp='$CPP $CPPFLAGS' 15424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15426ac_compiler_gnu=$ac_cv_c_compiler_gnu 15427if test -n "$ac_tool_prefix"; then 15428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 15429set dummy ${ac_tool_prefix}gcc; ac_word=$2 15430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15431$as_echo_n "checking for $ac_word... " >&6; } 15432if ${ac_cv_prog_CC+:} false; then : 15433 $as_echo_n "(cached) " >&6 15434else 15435 if test -n "$CC"; then 15436 ac_cv_prog_CC="$CC" # Let the user override the test. 15437else 15438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15439for as_dir in $PATH 15440do 15441 IFS=$as_save_IFS 15442 test -z "$as_dir" && as_dir=. 15443 for ac_exec_ext in '' $ac_executable_extensions; do 15444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15445 ac_cv_prog_CC="${ac_tool_prefix}gcc" 15446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15447 break 2 15448 fi 15449done 15450 done 15451IFS=$as_save_IFS 15452 15453fi 15454fi 15455CC=$ac_cv_prog_CC 15456if test -n "$CC"; then 15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15458$as_echo "$CC" >&6; } 15459else 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15461$as_echo "no" >&6; } 15462fi 15463 15464 15465fi 15466if test -z "$ac_cv_prog_CC"; then 15467 ac_ct_CC=$CC 15468 # Extract the first word of "gcc", so it can be a program name with args. 15469set dummy gcc; ac_word=$2 15470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15471$as_echo_n "checking for $ac_word... " >&6; } 15472if ${ac_cv_prog_ac_ct_CC+:} false; then : 15473 $as_echo_n "(cached) " >&6 15474else 15475 if test -n "$ac_ct_CC"; then 15476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 15477else 15478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15479for as_dir in $PATH 15480do 15481 IFS=$as_save_IFS 15482 test -z "$as_dir" && as_dir=. 15483 for ac_exec_ext in '' $ac_executable_extensions; do 15484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15485 ac_cv_prog_ac_ct_CC="gcc" 15486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15487 break 2 15488 fi 15489done 15490 done 15491IFS=$as_save_IFS 15492 15493fi 15494fi 15495ac_ct_CC=$ac_cv_prog_ac_ct_CC 15496if test -n "$ac_ct_CC"; then 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 15498$as_echo "$ac_ct_CC" >&6; } 15499else 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15501$as_echo "no" >&6; } 15502fi 15503 15504 if test "x$ac_ct_CC" = x; then 15505 CC="" 15506 else 15507 case $cross_compiling:$ac_tool_warned in 15508yes:) 15509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15511ac_tool_warned=yes ;; 15512esac 15513 CC=$ac_ct_CC 15514 fi 15515else 15516 CC="$ac_cv_prog_CC" 15517fi 15518 15519if test -z "$CC"; then 15520 if test -n "$ac_tool_prefix"; then 15521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 15522set dummy ${ac_tool_prefix}cc; ac_word=$2 15523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15524$as_echo_n "checking for $ac_word... " >&6; } 15525if ${ac_cv_prog_CC+:} false; then : 15526 $as_echo_n "(cached) " >&6 15527else 15528 if test -n "$CC"; then 15529 ac_cv_prog_CC="$CC" # Let the user override the test. 15530else 15531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15532for as_dir in $PATH 15533do 15534 IFS=$as_save_IFS 15535 test -z "$as_dir" && as_dir=. 15536 for ac_exec_ext in '' $ac_executable_extensions; do 15537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15538 ac_cv_prog_CC="${ac_tool_prefix}cc" 15539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15540 break 2 15541 fi 15542done 15543 done 15544IFS=$as_save_IFS 15545 15546fi 15547fi 15548CC=$ac_cv_prog_CC 15549if test -n "$CC"; then 15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15551$as_echo "$CC" >&6; } 15552else 15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15554$as_echo "no" >&6; } 15555fi 15556 15557 15558 fi 15559fi 15560if test -z "$CC"; then 15561 # Extract the first word of "cc", so it can be a program name with args. 15562set dummy cc; ac_word=$2 15563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15564$as_echo_n "checking for $ac_word... " >&6; } 15565if ${ac_cv_prog_CC+:} false; then : 15566 $as_echo_n "(cached) " >&6 15567else 15568 if test -n "$CC"; then 15569 ac_cv_prog_CC="$CC" # Let the user override the test. 15570else 15571 ac_prog_rejected=no 15572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15573for as_dir in $PATH 15574do 15575 IFS=$as_save_IFS 15576 test -z "$as_dir" && as_dir=. 15577 for ac_exec_ext in '' $ac_executable_extensions; do 15578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 15580 ac_prog_rejected=yes 15581 continue 15582 fi 15583 ac_cv_prog_CC="cc" 15584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15585 break 2 15586 fi 15587done 15588 done 15589IFS=$as_save_IFS 15590 15591if test $ac_prog_rejected = yes; then 15592 # We found a bogon in the path, so make sure we never use it. 15593 set dummy $ac_cv_prog_CC 15594 shift 15595 if test $# != 0; then 15596 # We chose a different compiler from the bogus one. 15597 # However, it has the same basename, so the bogon will be chosen 15598 # first if we set CC to just the basename; use the full file name. 15599 shift 15600 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 15601 fi 15602fi 15603fi 15604fi 15605CC=$ac_cv_prog_CC 15606if test -n "$CC"; then 15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15608$as_echo "$CC" >&6; } 15609else 15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15611$as_echo "no" >&6; } 15612fi 15613 15614 15615fi 15616if test -z "$CC"; then 15617 if test -n "$ac_tool_prefix"; then 15618 for ac_prog in cl.exe 15619 do 15620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15621set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15623$as_echo_n "checking for $ac_word... " >&6; } 15624if ${ac_cv_prog_CC+:} false; then : 15625 $as_echo_n "(cached) " >&6 15626else 15627 if test -n "$CC"; then 15628 ac_cv_prog_CC="$CC" # Let the user override the test. 15629else 15630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15631for as_dir in $PATH 15632do 15633 IFS=$as_save_IFS 15634 test -z "$as_dir" && as_dir=. 15635 for ac_exec_ext in '' $ac_executable_extensions; do 15636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 15638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15639 break 2 15640 fi 15641done 15642 done 15643IFS=$as_save_IFS 15644 15645fi 15646fi 15647CC=$ac_cv_prog_CC 15648if test -n "$CC"; then 15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15650$as_echo "$CC" >&6; } 15651else 15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15653$as_echo "no" >&6; } 15654fi 15655 15656 15657 test -n "$CC" && break 15658 done 15659fi 15660if test -z "$CC"; then 15661 ac_ct_CC=$CC 15662 for ac_prog in cl.exe 15663do 15664 # Extract the first word of "$ac_prog", so it can be a program name with args. 15665set dummy $ac_prog; ac_word=$2 15666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15667$as_echo_n "checking for $ac_word... " >&6; } 15668if ${ac_cv_prog_ac_ct_CC+:} false; then : 15669 $as_echo_n "(cached) " >&6 15670else 15671 if test -n "$ac_ct_CC"; then 15672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 15673else 15674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15675for as_dir in $PATH 15676do 15677 IFS=$as_save_IFS 15678 test -z "$as_dir" && as_dir=. 15679 for ac_exec_ext in '' $ac_executable_extensions; do 15680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15681 ac_cv_prog_ac_ct_CC="$ac_prog" 15682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15683 break 2 15684 fi 15685done 15686 done 15687IFS=$as_save_IFS 15688 15689fi 15690fi 15691ac_ct_CC=$ac_cv_prog_ac_ct_CC 15692if test -n "$ac_ct_CC"; then 15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 15694$as_echo "$ac_ct_CC" >&6; } 15695else 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15697$as_echo "no" >&6; } 15698fi 15699 15700 15701 test -n "$ac_ct_CC" && break 15702done 15703 15704 if test "x$ac_ct_CC" = x; then 15705 CC="" 15706 else 15707 case $cross_compiling:$ac_tool_warned in 15708yes:) 15709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15711ac_tool_warned=yes ;; 15712esac 15713 CC=$ac_ct_CC 15714 fi 15715fi 15716 15717fi 15718 15719 15720test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15722as_fn_error $? "no acceptable C compiler found in \$PATH 15723See \`config.log' for more details" "$LINENO" 5; } 15724 15725# Provide some information about the compiler. 15726$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 15727set X $ac_compile 15728ac_compiler=$2 15729for ac_option in --version -v -V -qversion; do 15730 { { ac_try="$ac_compiler $ac_option >&5" 15731case "(($ac_try" in 15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15733 *) ac_try_echo=$ac_try;; 15734esac 15735eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15736$as_echo "$ac_try_echo"; } >&5 15737 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 15738 ac_status=$? 15739 if test -s conftest.err; then 15740 sed '10a\ 15741... rest of stderr output deleted ... 15742 10q' conftest.err >conftest.er1 15743 cat conftest.er1 >&5 15744 fi 15745 rm -f conftest.er1 conftest.err 15746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15747 test $ac_status = 0; } 15748done 15749 15750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 15751$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 15752if ${ac_cv_c_compiler_gnu+:} false; then : 15753 $as_echo_n "(cached) " >&6 15754else 15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15756/* end confdefs.h. */ 15757 15758int 15759main () 15760{ 15761#ifndef __GNUC__ 15762 choke me 15763#endif 15764 15765 ; 15766 return 0; 15767} 15768_ACEOF 15769if ac_fn_c_try_compile "$LINENO"; then : 15770 ac_compiler_gnu=yes 15771else 15772 ac_compiler_gnu=no 15773fi 15774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15775ac_cv_c_compiler_gnu=$ac_compiler_gnu 15776 15777fi 15778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 15779$as_echo "$ac_cv_c_compiler_gnu" >&6; } 15780if test $ac_compiler_gnu = yes; then 15781 GCC=yes 15782else 15783 GCC= 15784fi 15785ac_test_CFLAGS=${CFLAGS+set} 15786ac_save_CFLAGS=$CFLAGS 15787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 15788$as_echo_n "checking whether $CC accepts -g... " >&6; } 15789if ${ac_cv_prog_cc_g+:} false; then : 15790 $as_echo_n "(cached) " >&6 15791else 15792 ac_save_c_werror_flag=$ac_c_werror_flag 15793 ac_c_werror_flag=yes 15794 ac_cv_prog_cc_g=no 15795 CFLAGS="-g" 15796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15797/* end confdefs.h. */ 15798 15799int 15800main () 15801{ 15802 15803 ; 15804 return 0; 15805} 15806_ACEOF 15807if ac_fn_c_try_compile "$LINENO"; then : 15808 ac_cv_prog_cc_g=yes 15809else 15810 CFLAGS="" 15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15812/* end confdefs.h. */ 15813 15814int 15815main () 15816{ 15817 15818 ; 15819 return 0; 15820} 15821_ACEOF 15822if ac_fn_c_try_compile "$LINENO"; then : 15823 15824else 15825 ac_c_werror_flag=$ac_save_c_werror_flag 15826 CFLAGS="-g" 15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15828/* end confdefs.h. */ 15829 15830int 15831main () 15832{ 15833 15834 ; 15835 return 0; 15836} 15837_ACEOF 15838if ac_fn_c_try_compile "$LINENO"; then : 15839 ac_cv_prog_cc_g=yes 15840fi 15841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15842fi 15843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15844fi 15845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15846 ac_c_werror_flag=$ac_save_c_werror_flag 15847fi 15848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 15849$as_echo "$ac_cv_prog_cc_g" >&6; } 15850if test "$ac_test_CFLAGS" = set; then 15851 CFLAGS=$ac_save_CFLAGS 15852elif test $ac_cv_prog_cc_g = yes; then 15853 if test "$GCC" = yes; then 15854 CFLAGS="-g -O2" 15855 else 15856 CFLAGS="-g" 15857 fi 15858else 15859 if test "$GCC" = yes; then 15860 CFLAGS="-O2" 15861 else 15862 CFLAGS= 15863 fi 15864fi 15865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 15866$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 15867if ${ac_cv_prog_cc_c89+:} false; then : 15868 $as_echo_n "(cached) " >&6 15869else 15870 ac_cv_prog_cc_c89=no 15871ac_save_CC=$CC 15872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15873/* end confdefs.h. */ 15874#include <stdarg.h> 15875#include <stdio.h> 15876struct stat; 15877/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 15878struct buf { int x; }; 15879FILE * (*rcsopen) (struct buf *, struct stat *, int); 15880static char *e (p, i) 15881 char **p; 15882 int i; 15883{ 15884 return p[i]; 15885} 15886static char *f (char * (*g) (char **, int), char **p, ...) 15887{ 15888 char *s; 15889 va_list v; 15890 va_start (v,p); 15891 s = g (p, va_arg (v,int)); 15892 va_end (v); 15893 return s; 15894} 15895 15896/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 15897 function prototypes and stuff, but not '\xHH' hex character constants. 15898 These don't provoke an error unfortunately, instead are silently treated 15899 as 'x'. The following induces an error, until -std is added to get 15900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 15901 array size at least. It's necessary to write '\x00'==0 to get something 15902 that's true only with -std. */ 15903int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 15904 15905/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 15906 inside strings and character constants. */ 15907#define FOO(x) 'x' 15908int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 15909 15910int test (int i, double x); 15911struct s1 {int (*f) (int a);}; 15912struct s2 {int (*f) (double a);}; 15913int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 15914int argc; 15915char **argv; 15916int 15917main () 15918{ 15919return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 15920 ; 15921 return 0; 15922} 15923_ACEOF 15924for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 15925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 15926do 15927 CC="$ac_save_CC $ac_arg" 15928 if ac_fn_c_try_compile "$LINENO"; then : 15929 ac_cv_prog_cc_c89=$ac_arg 15930fi 15931rm -f core conftest.err conftest.$ac_objext 15932 test "x$ac_cv_prog_cc_c89" != "xno" && break 15933done 15934rm -f conftest.$ac_ext 15935CC=$ac_save_CC 15936 15937fi 15938# AC_CACHE_VAL 15939case "x$ac_cv_prog_cc_c89" in 15940 x) 15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 15942$as_echo "none needed" >&6; } ;; 15943 xno) 15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 15945$as_echo "unsupported" >&6; } ;; 15946 *) 15947 CC="$CC $ac_cv_prog_cc_c89" 15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 15949$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 15950esac 15951if test "x$ac_cv_prog_cc_c89" != xno; then : 15952 15953fi 15954 15955ac_ext=c 15956ac_cpp='$CPP $CPPFLAGS' 15957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15959ac_compiler_gnu=$ac_cv_c_compiler_gnu 15960 15961ac_ext=c 15962ac_cpp='$CPP $CPPFLAGS' 15963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15965ac_compiler_gnu=$ac_cv_c_compiler_gnu 15966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 15967$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 15968if ${am_cv_prog_cc_c_o+:} false; then : 15969 $as_echo_n "(cached) " >&6 15970else 15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15972/* end confdefs.h. */ 15973 15974int 15975main () 15976{ 15977 15978 ; 15979 return 0; 15980} 15981_ACEOF 15982 # Make sure it works both with $CC and with simple cc. 15983 # Following AC_PROG_CC_C_O, we do the test twice because some 15984 # compilers refuse to overwrite an existing .o file with -o, 15985 # though they will create one. 15986 am_cv_prog_cc_c_o=yes 15987 for am_i in 1 2; do 15988 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 15989 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 15990 ac_status=$? 15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15992 (exit $ac_status); } \ 15993 && test -f conftest2.$ac_objext; then 15994 : OK 15995 else 15996 am_cv_prog_cc_c_o=no 15997 break 15998 fi 15999 done 16000 rm -f core conftest* 16001 unset am_i 16002fi 16003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 16004$as_echo "$am_cv_prog_cc_c_o" >&6; } 16005if test "$am_cv_prog_cc_c_o" != yes; then 16006 # Losing compiler, so override with the script. 16007 # FIXME: It is wrong to rewrite CC. 16008 # But if we don't then we get into trouble of one sort or another. 16009 # A longer-term fix would be to have automake use am__CC in this case, 16010 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 16011 CC="$am_aux_dir/compile $CC" 16012fi 16013ac_ext=c 16014ac_cpp='$CPP $CPPFLAGS' 16015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16017ac_compiler_gnu=$ac_cv_c_compiler_gnu 16018 16019 16020depcc="$CC" am_compiler_list= 16021 16022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 16023$as_echo_n "checking dependency style of $depcc... " >&6; } 16024if ${am_cv_CC_dependencies_compiler_type+:} false; then : 16025 $as_echo_n "(cached) " >&6 16026else 16027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 16028 # We make a subdir and do the tests there. Otherwise we can end up 16029 # making bogus files that we don't know about and never remove. For 16030 # instance it was reported that on HP-UX the gcc test will end up 16031 # making a dummy file named 'D' -- because '-MD' means "put the output 16032 # in D". 16033 rm -rf conftest.dir 16034 mkdir conftest.dir 16035 # Copy depcomp to subdir because otherwise we won't find it if we're 16036 # using a relative directory. 16037 cp "$am_depcomp" conftest.dir 16038 cd conftest.dir 16039 # We will build objects and dependencies in a subdirectory because 16040 # it helps to detect inapplicable dependency modes. For instance 16041 # both Tru64's cc and ICC support -MD to output dependencies as a 16042 # side effect of compilation, but ICC will put the dependencies in 16043 # the current directory while Tru64 will put them in the object 16044 # directory. 16045 mkdir sub 16046 16047 am_cv_CC_dependencies_compiler_type=none 16048 if test "$am_compiler_list" = ""; then 16049 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 16050 fi 16051 am__universal=false 16052 case " $depcc " in #( 16053 *\ -arch\ *\ -arch\ *) am__universal=true ;; 16054 esac 16055 16056 for depmode in $am_compiler_list; do 16057 # Setup a source with many dependencies, because some compilers 16058 # like to wrap large dependency lists on column 80 (with \), and 16059 # we should not choose a depcomp mode which is confused by this. 16060 # 16061 # We need to recreate these files for each test, as the compiler may 16062 # overwrite some of them when testing with obscure command lines. 16063 # This happens at least with the AIX C compiler. 16064 : > sub/conftest.c 16065 for i in 1 2 3 4 5 6; do 16066 echo '#include "conftst'$i'.h"' >> sub/conftest.c 16067 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 16068 # Solaris 10 /bin/sh. 16069 echo '/* dummy */' > sub/conftst$i.h 16070 done 16071 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 16072 16073 # We check with '-c' and '-o' for the sake of the "dashmstdout" 16074 # mode. It turns out that the SunPro C++ compiler does not properly 16075 # handle '-M -o', and we need to detect this. Also, some Intel 16076 # versions had trouble with output in subdirs. 16077 am__obj=sub/conftest.${OBJEXT-o} 16078 am__minus_obj="-o $am__obj" 16079 case $depmode in 16080 gcc) 16081 # This depmode causes a compiler race in universal mode. 16082 test "$am__universal" = false || continue 16083 ;; 16084 nosideeffect) 16085 # After this tag, mechanisms are not by side-effect, so they'll 16086 # only be used when explicitly requested. 16087 if test "x$enable_dependency_tracking" = xyes; then 16088 continue 16089 else 16090 break 16091 fi 16092 ;; 16093 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 16094 # This compiler won't grok '-c -o', but also, the minuso test has 16095 # not run yet. These depmodes are late enough in the game, and 16096 # so weak that their functioning should not be impacted. 16097 am__obj=conftest.${OBJEXT-o} 16098 am__minus_obj= 16099 ;; 16100 none) break ;; 16101 esac 16102 if depmode=$depmode \ 16103 source=sub/conftest.c object=$am__obj \ 16104 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 16105 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 16106 >/dev/null 2>conftest.err && 16107 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 16108 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 16109 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 16110 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 16111 # icc doesn't choke on unknown options, it will just issue warnings 16112 # or remarks (even with -Werror). So we grep stderr for any message 16113 # that says an option was ignored or not supported. 16114 # When given -MP, icc 7.0 and 7.1 complain thusly: 16115 # icc: Command line warning: ignoring option '-M'; no argument required 16116 # The diagnosis changed in icc 8.0: 16117 # icc: Command line remark: option '-MP' not supported 16118 if (grep 'ignoring option' conftest.err || 16119 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 16120 am_cv_CC_dependencies_compiler_type=$depmode 16121 break 16122 fi 16123 fi 16124 done 16125 16126 cd .. 16127 rm -rf conftest.dir 16128else 16129 am_cv_CC_dependencies_compiler_type=none 16130fi 16131 16132fi 16133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 16134$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 16135CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 16136 16137 if 16138 test "x$enable_dependency_tracking" != xno \ 16139 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 16140 am__fastdepCC_TRUE= 16141 am__fastdepCC_FALSE='#' 16142else 16143 am__fastdepCC_TRUE='#' 16144 am__fastdepCC_FALSE= 16145fi 16146 16147 16148 16149 16150# Check whether --enable-single was given. 16151if test "${enable_single+set}" = set; then : 16152 enableval=$enable_single; enable_single=$enableval 16153else 16154 enable_single=no 16155fi 16156 16157if test "$enable_single" = "yes"; then 16158 16159$as_echo "#define SCALAR_SINGLE_PREC 1" >>confdefs.h 16160 16161 echo "*********************** SINGLE PRECISION ***********************" 16162fi 16163 16164# Check whether --enable-long-double was given. 16165if test "${enable_long_double+set}" = set; then : 16166 enableval=$enable_long_double; enable_long_double=$enableval 16167else 16168 enable_long_double=no 16169fi 16170 16171if test "$enable_long_double" = "yes"; then 16172 16173$as_echo "#define SCALAR_LONG_DOUBLE_PREC 1" >>confdefs.h 16174 16175 echo "****************** LONG-DOUBLE PRECISION ***********************" 16176fi 16177 16178# Check whether --enable-debug was given. 16179if test "${enable_debug+set}" = set; then : 16180 enableval=$enable_debug; ok=$enableval 16181else 16182 ok=no 16183fi 16184 16185if test "$ok" = "yes"; then 16186 CFLAGS="-g" 16187 16188$as_echo "#define DEBUG 1" >>confdefs.h 16189 16190fi 16191 16192# Check whether --enable-debug-malloc was given. 16193if test "${enable_debug_malloc+set}" = set; then : 16194 enableval=$enable_debug_malloc; ok=$enableval 16195else 16196 ok=no 16197fi 16198 16199if test "$ok" = "yes"; then 16200 16201$as_echo "#define DEBUG_MALLOC 1" >>confdefs.h 16202 16203fi 16204 16205# Check whether --enable-prof was given. 16206if test "${enable_prof+set}" = set; then : 16207 enableval=$enable_prof; ok=$enableval 16208else 16209 ok=no 16210fi 16211 16212if test "$ok" = "yes"; then 16213 CFLAGS="$CFLAGS -pg" 16214 16215$as_echo "#define ENABLE_PROF 1" >>confdefs.h 16216 16217fi 16218 16219# Check whether --enable-checks was given. 16220if test "${enable_checks+set}" = set; then : 16221 enableval=$enable_checks; ok=$enableval 16222else 16223 ok=yes 16224fi 16225 16226if test "$ok" = "no"; then 16227 16228$as_echo "#define CHECK_DISABLE 1" >>confdefs.h 16229 16230fi 16231 16232 16233# Check whether --with-inv-symmetry was given. 16234if test "${with_inv_symmetry+set}" = set; then : 16235 withval=$with_inv_symmetry; inv_sym=$withval 16236else 16237 inv_sym=no 16238fi 16239 16240if test "$inv_sym" = "no"; then 16241 16242$as_echo "#define SCALAR_COMPLEX 1" >>confdefs.h 16243 16244 SCALAR_TYPE=complex 16245else 16246 SCALAR_TYPE=real 16247 # Make installed program mpbi instead of mpb, but don't change mpb-data 16248 MPB_SUFFIX="i" 16249 echo "*********************** INVERSION SYM. ***********************" 16250fi 16251 16252 16253 16254# Check whether --with-hermitian-eps was given. 16255if test "${with_hermitian_eps+set}" = set; then : 16256 withval=$with_hermitian_eps; hermitian_epsilon=$withval 16257else 16258 hermitian_epsilon=no 16259fi 16260 16261if test "$hermitian_epsilon" = "yes"; then 16262 16263$as_echo "#define WITH_HERMITIAN_EPSILON 1" >>confdefs.h 16264 16265 echo "*********************** HERMITIAN EPS. ***********************" 16266fi 16267 16268# Add lots of compiler warnings to check for if we are using gcc: 16269# (The variable $GCC is set to "yes" by AC_PROG_CC if we are using gcc.) 16270if test "$GCC" = "yes"; then 16271 CFLAGS="$CFLAGS -Wall -W -Wbad-function-cast -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" 16272fi 16273 16274############################################################################## 16275# Checks for libraries: 16276############################################################################## 16277 16278 16279# Check whether --with-efence was given. 16280if test "${with_efence+set}" = set; then : 16281 withval=$with_efence; ok=$withval 16282else 16283 ok=no 16284fi 16285 16286if test "$ok" = "yes"; then 16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5 16288$as_echo_n "checking for malloc in -lefence... " >&6; } 16289if ${ac_cv_lib_efence_malloc+:} false; then : 16290 $as_echo_n "(cached) " >&6 16291else 16292 ac_check_lib_save_LIBS=$LIBS 16293LIBS="-lefence $LIBS" 16294cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16295/* end confdefs.h. */ 16296 16297/* Override any GCC internal prototype to avoid an error. 16298 Use char because int might match the return type of a GCC 16299 builtin and then its argument prototype would still apply. */ 16300#ifdef __cplusplus 16301extern "C" 16302#endif 16303char malloc (); 16304int 16305main () 16306{ 16307return malloc (); 16308 ; 16309 return 0; 16310} 16311_ACEOF 16312if ac_fn_c_try_link "$LINENO"; then : 16313 ac_cv_lib_efence_malloc=yes 16314else 16315 ac_cv_lib_efence_malloc=no 16316fi 16317rm -f core conftest.err conftest.$ac_objext \ 16318 conftest$ac_exeext conftest.$ac_ext 16319LIBS=$ac_check_lib_save_LIBS 16320fi 16321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5 16322$as_echo "$ac_cv_lib_efence_malloc" >&6; } 16323if test "x$ac_cv_lib_efence_malloc" = xyes; then : 16324 cat >>confdefs.h <<_ACEOF 16325#define HAVE_LIBEFENCE 1 16326_ACEOF 16327 16328 LIBS="-lefence $LIBS" 16329 16330fi 16331 16332fi 16333 16334############################################################################## 16335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 16336$as_echo_n "checking for sqrt in -lm... " >&6; } 16337if ${ac_cv_lib_m_sqrt+:} false; then : 16338 $as_echo_n "(cached) " >&6 16339else 16340 ac_check_lib_save_LIBS=$LIBS 16341LIBS="-lm $LIBS" 16342cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16343/* end confdefs.h. */ 16344 16345/* Override any GCC internal prototype to avoid an error. 16346 Use char because int might match the return type of a GCC 16347 builtin and then its argument prototype would still apply. */ 16348#ifdef __cplusplus 16349extern "C" 16350#endif 16351char sqrt (); 16352int 16353main () 16354{ 16355return sqrt (); 16356 ; 16357 return 0; 16358} 16359_ACEOF 16360if ac_fn_c_try_link "$LINENO"; then : 16361 ac_cv_lib_m_sqrt=yes 16362else 16363 ac_cv_lib_m_sqrt=no 16364fi 16365rm -f core conftest.err conftest.$ac_objext \ 16366 conftest$ac_exeext conftest.$ac_ext 16367LIBS=$ac_check_lib_save_LIBS 16368fi 16369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 16370$as_echo "$ac_cv_lib_m_sqrt" >&6; } 16371if test "x$ac_cv_lib_m_sqrt" = xyes; then : 16372 cat >>confdefs.h <<_ACEOF 16373#define HAVE_LIBM 1 16374_ACEOF 16375 16376 LIBS="-lm $LIBS" 16377 16378fi 16379 16380 16381# If we have a Fortran compiler, link to its libraries, since these 16382# are probably needed to link with the BLAS/LAPACK libraries. 16383if test x != x"$F77"; then 16384 ac_ext=f 16385ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16386ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16387ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5 16389$as_echo_n "checking how to get verbose linking output from $F77... " >&6; } 16390if ${ac_cv_prog_f77_v+:} false; then : 16391 $as_echo_n "(cached) " >&6 16392else 16393 cat > conftest.$ac_ext <<_ACEOF 16394 program main 16395 16396 end 16397_ACEOF 16398if ac_fn_f77_try_compile "$LINENO"; then : 16399 ac_cv_prog_f77_v= 16400# Try some options frequently used verbose output 16401for ac_verb in -v -verbose --verbose -V -\#\#\#; do 16402 cat > conftest.$ac_ext <<_ACEOF 16403 program main 16404 16405 end 16406_ACEOF 16407 16408# Compile and link our simple test program by passing a flag (argument 16409# 1 to this macro) to the Fortran compiler in order to get 16410# "verbose" output that we can then parse for the Fortran linker 16411# flags. 16412ac_save_FFLAGS=$FFLAGS 16413FFLAGS="$FFLAGS $ac_verb" 16414eval "set x $ac_link" 16415shift 16416$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 16417# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 16418# LIBRARY_PATH; skip all such settings. 16419ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | 16420 sed '/^Driving:/d; /^Configured with:/d; 16421 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 16422$as_echo "$ac_f77_v_output" >&5 16423FFLAGS=$ac_save_FFLAGS 16424 16425rm -rf conftest* 16426 16427# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 16428# /foo, /bar, and /baz are search directories for the Fortran linker. 16429# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 16430ac_f77_v_output="`echo $ac_f77_v_output | 16431 grep 'LPATH is:' | 16432 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" 16433 16434# FIXME: we keep getting bitten by quoted arguments; a more general fix 16435# that detects unbalanced quotes in FLIBS should be implemented 16436# and (ugh) tested at some point. 16437case $ac_f77_v_output in 16438 # With xlf replace commas with spaces, 16439 # and remove "-link" and closing parenthesis. 16440 *xlfentry*) 16441 ac_f77_v_output=`echo $ac_f77_v_output | 16442 sed ' 16443 s/,/ /g 16444 s/ -link / /g 16445 s/) *$// 16446 ' 16447 ` ;; 16448 16449 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 16450 # $LIBS confuse us, and the libraries appear later in the output anyway). 16451 *mGLOB_options_string*) 16452 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 16453 16454 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 16455 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 16456 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 16457 *-cmdline\ * | *-ignore\ * | *-def\ *) 16458 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ 16459 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 16460 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 16461 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 16462 16463 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 16464 *fort77*f2c*gcc*) 16465 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' 16466 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 16467 /"-c"/d 16468 /[.]c"*/d 16469 s/^.*"gcc"/"gcc"/ 16470 s/"//gp 16471 }'` ;; 16472 16473 # If we are using Cray Fortran then delete quotes. 16474 *cft90*) 16475 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; 16476esac 16477 16478 16479 # look for -l* and *.a constructs in the output 16480 for ac_arg in $ac_f77_v_output; do 16481 case $ac_arg in 16482 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 16483 ac_cv_prog_f77_v=$ac_verb 16484 break 2 ;; 16485 esac 16486 done 16487done 16488if test -z "$ac_cv_prog_f77_v"; then 16489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5 16490$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} 16491fi 16492else 16493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5 16494$as_echo "$as_me: WARNING: compilation failed" >&2;} 16495fi 16496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16497 16498fi 16499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5 16500$as_echo "$ac_cv_prog_f77_v" >&6; } 16501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5 16502$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; } 16503if ${ac_cv_f77_libs+:} false; then : 16504 $as_echo_n "(cached) " >&6 16505else 16506 if test "x$FLIBS" != "x"; then 16507 ac_cv_f77_libs="$FLIBS" # Let the user override the test. 16508else 16509 16510cat > conftest.$ac_ext <<_ACEOF 16511 program main 16512 16513 end 16514_ACEOF 16515 16516# Compile and link our simple test program by passing a flag (argument 16517# 1 to this macro) to the Fortran compiler in order to get 16518# "verbose" output that we can then parse for the Fortran linker 16519# flags. 16520ac_save_FFLAGS=$FFLAGS 16521FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 16522eval "set x $ac_link" 16523shift 16524$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5 16525# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH, 16526# LIBRARY_PATH; skip all such settings. 16527ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | 16528 sed '/^Driving:/d; /^Configured with:/d; 16529 '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"` 16530$as_echo "$ac_f77_v_output" >&5 16531FFLAGS=$ac_save_FFLAGS 16532 16533rm -rf conftest* 16534 16535# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 16536# /foo, /bar, and /baz are search directories for the Fortran linker. 16537# Here, we change these into -L/foo -L/bar -L/baz (and put it first): 16538ac_f77_v_output="`echo $ac_f77_v_output | 16539 grep 'LPATH is:' | 16540 sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output" 16541 16542# FIXME: we keep getting bitten by quoted arguments; a more general fix 16543# that detects unbalanced quotes in FLIBS should be implemented 16544# and (ugh) tested at some point. 16545case $ac_f77_v_output in 16546 # With xlf replace commas with spaces, 16547 # and remove "-link" and closing parenthesis. 16548 *xlfentry*) 16549 ac_f77_v_output=`echo $ac_f77_v_output | 16550 sed ' 16551 s/,/ /g 16552 s/ -link / /g 16553 s/) *$// 16554 ' 16555 ` ;; 16556 16557 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 16558 # $LIBS confuse us, and the libraries appear later in the output anyway). 16559 *mGLOB_options_string*) 16560 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;; 16561 16562 # Portland Group compiler has singly- or doubly-quoted -cmdline argument 16563 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4. 16564 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2". 16565 *-cmdline\ * | *-ignore\ * | *-def\ *) 16566 ac_f77_v_output=`echo $ac_f77_v_output | sed "\ 16567 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g 16568 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g 16569 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;; 16570 16571 # If we are using fort77 (the f2c wrapper) then filter output and delete quotes. 16572 *fort77*f2c*gcc*) 16573 ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n ' 16574 /:[ ]\+Running[ ]\{1,\}"gcc"/{ 16575 /"-c"/d 16576 /[.]c"*/d 16577 s/^.*"gcc"/"gcc"/ 16578 s/"//gp 16579 }'` ;; 16580 16581 # If we are using Cray Fortran then delete quotes. 16582 *cft90*) 16583 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;; 16584esac 16585 16586 16587 16588ac_cv_f77_libs= 16589 16590# Save positional arguments (if any) 16591ac_save_positional="$@" 16592 16593set X $ac_f77_v_output 16594while test $# != 1; do 16595 shift 16596 ac_arg=$1 16597 case $ac_arg in 16598 [\\/]*.a | ?:[\\/]*.a) 16599 ac_exists=false 16600 for ac_i in $ac_cv_f77_libs; do 16601 if test x"$ac_arg" = x"$ac_i"; then 16602 ac_exists=true 16603 break 16604 fi 16605 done 16606 16607 if test x"$ac_exists" = xtrue; then : 16608 16609else 16610 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 16611fi 16612 ;; 16613 -bI:*) 16614 ac_exists=false 16615 for ac_i in $ac_cv_f77_libs; do 16616 if test x"$ac_arg" = x"$ac_i"; then 16617 ac_exists=true 16618 break 16619 fi 16620 done 16621 16622 if test x"$ac_exists" = xtrue; then : 16623 16624else 16625 if test "$ac_compiler_gnu" = yes; then 16626 for ac_link_opt in $ac_arg; do 16627 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 16628 done 16629else 16630 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 16631fi 16632fi 16633 ;; 16634 # Ignore these flags. 16635 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \ 16636 |-LANG:=* | -LIST:* | -LNO:* | -link) 16637 ;; 16638 -lkernel32) 16639 case $host_os in 16640 *cygwin*) ;; 16641 *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 16642 ;; 16643 esac 16644 ;; 16645 -[LRuYz]) 16646 # These flags, when seen by themselves, take an argument. 16647 # We remove the space between option and argument and re-iterate 16648 # unless we find an empty arg or a new option (starting with -) 16649 case $2 in 16650 "" | -*);; 16651 *) 16652 ac_arg="$ac_arg$2" 16653 shift; shift 16654 set X $ac_arg "$@" 16655 ;; 16656 esac 16657 ;; 16658 -YP,*) 16659 for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 16660 ac_exists=false 16661 for ac_i in $ac_cv_f77_libs; do 16662 if test x"$ac_j" = x"$ac_i"; then 16663 ac_exists=true 16664 break 16665 fi 16666 done 16667 16668 if test x"$ac_exists" = xtrue; then : 16669 16670else 16671 ac_arg="$ac_arg $ac_j" 16672 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" 16673fi 16674 done 16675 ;; 16676 -[lLR]*) 16677 ac_exists=false 16678 for ac_i in $ac_cv_f77_libs; do 16679 if test x"$ac_arg" = x"$ac_i"; then 16680 ac_exists=true 16681 break 16682 fi 16683 done 16684 16685 if test x"$ac_exists" = xtrue; then : 16686 16687else 16688 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 16689fi 16690 ;; 16691 -zallextract*| -zdefaultextract) 16692 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 16693 ;; 16694 # Ignore everything else. 16695 esac 16696done 16697# restore positional arguments 16698set X $ac_save_positional; shift 16699 16700# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 16701# then we insist that the "run path" must be an absolute path (i.e. it 16702# must begin with a "/"). 16703case `(uname -sr) 2>/dev/null` in 16704 "SunOS 5"*) 16705 ac_ld_run_path=`$as_echo "$ac_f77_v_output" | 16706 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 16707 test "x$ac_ld_run_path" != x && 16708 if test "$ac_compiler_gnu" = yes; then 16709 for ac_link_opt in $ac_ld_run_path; do 16710 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 16711 done 16712else 16713 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" 16714fi 16715 ;; 16716esac 16717fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 16718 16719fi 16720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5 16721$as_echo "$ac_cv_f77_libs" >&6; } 16722FLIBS="$ac_cv_f77_libs" 16723 16724 16725ac_ext=c 16726ac_cpp='$CPP $CPPFLAGS' 16727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16729ac_compiler_gnu=$ac_cv_c_compiler_gnu 16730 16731 ac_ext=f 16732ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16733ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16734ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16735 16736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5 16737$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; } 16738if ${ac_cv_f77_dummy_main+:} false; then : 16739 $as_echo_n "(cached) " >&6 16740else 16741 ac_f77_dm_save_LIBS=$LIBS 16742 LIBS="$LIBS $FLIBS" 16743 ac_fortran_dm_var=F77_DUMMY_MAIN 16744 ac_ext=c 16745ac_cpp='$CPP $CPPFLAGS' 16746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16748ac_compiler_gnu=$ac_cv_c_compiler_gnu 16749 16750 # First, try linking without a dummy main: 16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16752/* end confdefs.h. */ 16753 16754#ifdef F77_DUMMY_MAIN 16755 16756# ifdef __cplusplus 16757 extern "C" 16758# endif 16759 int F77_DUMMY_MAIN() { return 1; } 16760 16761#endif 16762int 16763main () 16764{ 16765 16766 ; 16767 return 0; 16768} 16769_ACEOF 16770if ac_fn_c_try_link "$LINENO"; then : 16771 ac_cv_fortran_dummy_main=none 16772else 16773 ac_cv_fortran_dummy_main=unknown 16774fi 16775rm -f core conftest.err conftest.$ac_objext \ 16776 conftest$ac_exeext conftest.$ac_ext 16777 16778 if test $ac_cv_fortran_dummy_main = unknown; then 16779 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16781/* end confdefs.h. */ 16782#define $ac_fortran_dm_var $ac_func 16783#ifdef F77_DUMMY_MAIN 16784 16785# ifdef __cplusplus 16786 extern "C" 16787# endif 16788 int F77_DUMMY_MAIN() { return 1; } 16789 16790#endif 16791int 16792main () 16793{ 16794 16795 ; 16796 return 0; 16797} 16798_ACEOF 16799if ac_fn_c_try_link "$LINENO"; then : 16800 ac_cv_fortran_dummy_main=$ac_func; break 16801fi 16802rm -f core conftest.err conftest.$ac_objext \ 16803 conftest$ac_exeext conftest.$ac_ext 16804 done 16805 fi 16806 ac_ext=f 16807ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16808ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16809ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16810 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main 16811 rm -rf conftest* 16812 LIBS=$ac_f77_dm_save_LIBS 16813 16814fi 16815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5 16816$as_echo "$ac_cv_f77_dummy_main" >&6; } 16817F77_DUMMY_MAIN=$ac_cv_f77_dummy_main 16818if test "$F77_DUMMY_MAIN" != unknown; then : 16819 if test $F77_DUMMY_MAIN != none; then 16820 16821cat >>confdefs.h <<_ACEOF 16822#define F77_DUMMY_MAIN $F77_DUMMY_MAIN 16823_ACEOF 16824 16825 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 16826 16827$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h 16828 16829 fi 16830fi 16831else 16832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16834as_fn_error $? "linking to Fortran libraries from C fails 16835See \`config.log' for more details" "$LINENO" 5; } 16836fi 16837 16838ac_ext=c 16839ac_cpp='$CPP $CPPFLAGS' 16840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16842ac_compiler_gnu=$ac_cv_c_compiler_gnu 16843 16844ac_ext=f 16845ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16846ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16847ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5 16849$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; } 16850if ${ac_cv_f77_mangling+:} false; then : 16851 $as_echo_n "(cached) " >&6 16852else 16853 cat > conftest.$ac_ext <<_ACEOF 16854 subroutine foobar() 16855 return 16856 end 16857 subroutine foo_bar() 16858 return 16859 end 16860_ACEOF 16861if ac_fn_f77_try_compile "$LINENO"; then : 16862 mv conftest.$ac_objext cfortran_test.$ac_objext 16863 16864 ac_save_LIBS=$LIBS 16865 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" 16866 16867 ac_ext=c 16868ac_cpp='$CPP $CPPFLAGS' 16869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16871ac_compiler_gnu=$ac_cv_c_compiler_gnu 16872 ac_success=no 16873 for ac_foobar in foobar FOOBAR; do 16874 for ac_underscore in "" "_"; do 16875 ac_func="$ac_foobar$ac_underscore" 16876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16877/* end confdefs.h. */ 16878 16879/* Override any GCC internal prototype to avoid an error. 16880 Use char because int might match the return type of a GCC 16881 builtin and then its argument prototype would still apply. */ 16882#ifdef __cplusplus 16883extern "C" 16884#endif 16885char $ac_func (); 16886#ifdef F77_DUMMY_MAIN 16887 16888# ifdef __cplusplus 16889 extern "C" 16890# endif 16891 int F77_DUMMY_MAIN() { return 1; } 16892 16893#endif 16894int 16895main () 16896{ 16897return $ac_func (); 16898 ; 16899 return 0; 16900} 16901_ACEOF 16902if ac_fn_c_try_link "$LINENO"; then : 16903 ac_success=yes; break 2 16904fi 16905rm -f core conftest.err conftest.$ac_objext \ 16906 conftest$ac_exeext conftest.$ac_ext 16907 done 16908 done 16909 ac_ext=f 16910ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16911ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16912ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16913 16914 if test "$ac_success" = "yes"; then 16915 case $ac_foobar in 16916 foobar) 16917 ac_case=lower 16918 ac_foo_bar=foo_bar 16919 ;; 16920 FOOBAR) 16921 ac_case=upper 16922 ac_foo_bar=FOO_BAR 16923 ;; 16924 esac 16925 16926 ac_ext=c 16927ac_cpp='$CPP $CPPFLAGS' 16928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16930ac_compiler_gnu=$ac_cv_c_compiler_gnu 16931 ac_success_extra=no 16932 for ac_extra in "" "_"; do 16933 ac_func="$ac_foo_bar$ac_underscore$ac_extra" 16934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16935/* end confdefs.h. */ 16936 16937/* Override any GCC internal prototype to avoid an error. 16938 Use char because int might match the return type of a GCC 16939 builtin and then its argument prototype would still apply. */ 16940#ifdef __cplusplus 16941extern "C" 16942#endif 16943char $ac_func (); 16944#ifdef F77_DUMMY_MAIN 16945 16946# ifdef __cplusplus 16947 extern "C" 16948# endif 16949 int F77_DUMMY_MAIN() { return 1; } 16950 16951#endif 16952int 16953main () 16954{ 16955return $ac_func (); 16956 ; 16957 return 0; 16958} 16959_ACEOF 16960if ac_fn_c_try_link "$LINENO"; then : 16961 ac_success_extra=yes; break 16962fi 16963rm -f core conftest.err conftest.$ac_objext \ 16964 conftest$ac_exeext conftest.$ac_ext 16965 done 16966 ac_ext=f 16967ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 16968ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16969ac_compiler_gnu=$ac_cv_f77_compiler_gnu 16970 16971 if test "$ac_success_extra" = "yes"; then 16972 ac_cv_f77_mangling="$ac_case case" 16973 if test -z "$ac_underscore"; then 16974 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" 16975 else 16976 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" 16977 fi 16978 if test -z "$ac_extra"; then 16979 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" 16980 else 16981 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" 16982 fi 16983 else 16984 ac_cv_f77_mangling="unknown" 16985 fi 16986 else 16987 ac_cv_f77_mangling="unknown" 16988 fi 16989 16990 LIBS=$ac_save_LIBS 16991 rm -rf conftest* 16992 rm -f cfortran_test* 16993else 16994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16995$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16996as_fn_error $? "cannot compile a simple Fortran program 16997See \`config.log' for more details" "$LINENO" 5; } 16998fi 16999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17000 17001fi 17002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5 17003$as_echo "$ac_cv_f77_mangling" >&6; } 17004 17005ac_ext=c 17006ac_cpp='$CPP $CPPFLAGS' 17007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17009ac_compiler_gnu=$ac_cv_c_compiler_gnu 17010 17011ac_ext=f 17012ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 17013ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17014ac_compiler_gnu=$ac_cv_f77_compiler_gnu 17015case $ac_cv_f77_mangling in 17016 "lower case, no underscore, no extra underscore") 17017 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h 17018 17019 $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h 17020 ;; 17021 "lower case, no underscore, extra underscore") 17022 $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h 17023 17024 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h 17025 ;; 17026 "lower case, underscore, no extra underscore") 17027 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h 17028 17029 $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h 17030 ;; 17031 "lower case, underscore, extra underscore") 17032 $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h 17033 17034 $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h 17035 ;; 17036 "upper case, no underscore, no extra underscore") 17037 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h 17038 17039 $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h 17040 ;; 17041 "upper case, no underscore, extra underscore") 17042 $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h 17043 17044 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h 17045 ;; 17046 "upper case, underscore, no extra underscore") 17047 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h 17048 17049 $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h 17050 ;; 17051 "upper case, underscore, extra underscore") 17052 $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h 17053 17054 $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h 17055 ;; 17056 *) 17057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5 17058$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;} 17059 ;; 17060esac 17061 17062ac_ext=c 17063ac_cpp='$CPP $CPPFLAGS' 17064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17066ac_compiler_gnu=$ac_cv_c_compiler_gnu 17067 17068fi 17069 17070############################################################################## 17071# In principle, we should abort if some of the following libraries are 17072# missing, or perhaps only compile some of the subdirectories. For now, 17073# though, we do nothing (and wait for the compilation errors). 17074 17075############################################################################## 17076 17077# Check whether --with-mpi was given. 17078if test "${with_mpi+set}" = set; then : 17079 withval=$with_mpi; with_mpi=$withval 17080else 17081 with_mpi=no 17082fi 17083 17084 17085# Check whether --with-fftw2 was given. 17086if test "${with_fftw2+set}" = set; then : 17087 withval=$with_fftw2; with_fftw2=$withval 17088else 17089 with_fftw2=no 17090fi 17091 17092 17093# Check for FFTW libraries 17094fftw3_func=execute 17095test "x$with_fftw2" = xyes && fftw3_func=notarealfunction # prefer FFTW2 17096if test "$enable_single" = "yes"; then 17097 as_ac_Lib=`$as_echo "ac_cv_lib_fftw3f_fftwf_$fftw3_func" | $as_tr_sh` 17098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwf_$fftw3_func in -lfftw3f" >&5 17099$as_echo_n "checking for fftwf_$fftw3_func in -lfftw3f... " >&6; } 17100if eval \${$as_ac_Lib+:} false; then : 17101 $as_echo_n "(cached) " >&6 17102else 17103 ac_check_lib_save_LIBS=$LIBS 17104LIBS="-lfftw3f $LIBS" 17105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17106/* end confdefs.h. */ 17107 17108/* Override any GCC internal prototype to avoid an error. 17109 Use char because int might match the return type of a GCC 17110 builtin and then its argument prototype would still apply. */ 17111#ifdef __cplusplus 17112extern "C" 17113#endif 17114char fftwf_$fftw3_func (); 17115#ifdef F77_DUMMY_MAIN 17116 17117# ifdef __cplusplus 17118 extern "C" 17119# endif 17120 int F77_DUMMY_MAIN() { return 1; } 17121 17122#endif 17123int 17124main () 17125{ 17126return fftwf_$fftw3_func (); 17127 ; 17128 return 0; 17129} 17130_ACEOF 17131if ac_fn_c_try_link "$LINENO"; then : 17132 eval "$as_ac_Lib=yes" 17133else 17134 eval "$as_ac_Lib=no" 17135fi 17136rm -f core conftest.err conftest.$ac_objext \ 17137 conftest$ac_exeext conftest.$ac_ext 17138LIBS=$ac_check_lib_save_LIBS 17139fi 17140eval ac_res=\$$as_ac_Lib 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17142$as_echo "$ac_res" >&6; } 17143if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17144 cat >>confdefs.h <<_ACEOF 17145#define HAVE_LIBFFTW3F 1 17146_ACEOF 17147 17148 LIBS="-lfftw3f $LIBS" 17149 17150else 17151 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw in -lsfftw" >&5 17153$as_echo_n "checking for fftw in -lsfftw... " >&6; } 17154if ${ac_cv_lib_sfftw_fftw+:} false; then : 17155 $as_echo_n "(cached) " >&6 17156else 17157 ac_check_lib_save_LIBS=$LIBS 17158LIBS="-lsfftw $LIBS" 17159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17160/* end confdefs.h. */ 17161 17162/* Override any GCC internal prototype to avoid an error. 17163 Use char because int might match the return type of a GCC 17164 builtin and then its argument prototype would still apply. */ 17165#ifdef __cplusplus 17166extern "C" 17167#endif 17168char fftw (); 17169#ifdef F77_DUMMY_MAIN 17170 17171# ifdef __cplusplus 17172 extern "C" 17173# endif 17174 int F77_DUMMY_MAIN() { return 1; } 17175 17176#endif 17177int 17178main () 17179{ 17180return fftw (); 17181 ; 17182 return 0; 17183} 17184_ACEOF 17185if ac_fn_c_try_link "$LINENO"; then : 17186 ac_cv_lib_sfftw_fftw=yes 17187else 17188 ac_cv_lib_sfftw_fftw=no 17189fi 17190rm -f core conftest.err conftest.$ac_objext \ 17191 conftest$ac_exeext conftest.$ac_ext 17192LIBS=$ac_check_lib_save_LIBS 17193fi 17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sfftw_fftw" >&5 17195$as_echo "$ac_cv_lib_sfftw_fftw" >&6; } 17196if test "x$ac_cv_lib_sfftw_fftw" = xyes; then : 17197 cat >>confdefs.h <<_ACEOF 17198#define HAVE_LIBSFFTW 1 17199_ACEOF 17200 17201 LIBS="-lsfftw $LIBS" 17202 17203fi 17204 17205 if test x"$inv_sym" = xyes; then 17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rfftw in -lsrfftw" >&5 17207$as_echo_n "checking for rfftw in -lsrfftw... " >&6; } 17208if ${ac_cv_lib_srfftw_rfftw+:} false; then : 17209 $as_echo_n "(cached) " >&6 17210else 17211 ac_check_lib_save_LIBS=$LIBS 17212LIBS="-lsrfftw $LIBS" 17213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17214/* end confdefs.h. */ 17215 17216/* Override any GCC internal prototype to avoid an error. 17217 Use char because int might match the return type of a GCC 17218 builtin and then its argument prototype would still apply. */ 17219#ifdef __cplusplus 17220extern "C" 17221#endif 17222char rfftw (); 17223#ifdef F77_DUMMY_MAIN 17224 17225# ifdef __cplusplus 17226 extern "C" 17227# endif 17228 int F77_DUMMY_MAIN() { return 1; } 17229 17230#endif 17231int 17232main () 17233{ 17234return rfftw (); 17235 ; 17236 return 0; 17237} 17238_ACEOF 17239if ac_fn_c_try_link "$LINENO"; then : 17240 ac_cv_lib_srfftw_rfftw=yes 17241else 17242 ac_cv_lib_srfftw_rfftw=no 17243fi 17244rm -f core conftest.err conftest.$ac_objext \ 17245 conftest$ac_exeext conftest.$ac_ext 17246LIBS=$ac_check_lib_save_LIBS 17247fi 17248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srfftw_rfftw" >&5 17249$as_echo "$ac_cv_lib_srfftw_rfftw" >&6; } 17250if test "x$ac_cv_lib_srfftw_rfftw" = xyes; then : 17251 cat >>confdefs.h <<_ACEOF 17252#define HAVE_LIBSRFFTW 1 17253_ACEOF 17254 17255 LIBS="-lsrfftw $LIBS" 17256 17257fi 17258 17259 fi 17260fi 17261 17262elif test "$enable_long_double" = "yes"; then 17263 as_ac_Lib=`$as_echo "ac_cv_lib_fftw3l_fftwl_$fftw3_func" | $as_tr_sh` 17264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwl_$fftw3_func in -lfftw3l" >&5 17265$as_echo_n "checking for fftwl_$fftw3_func in -lfftw3l... " >&6; } 17266if eval \${$as_ac_Lib+:} false; then : 17267 $as_echo_n "(cached) " >&6 17268else 17269 ac_check_lib_save_LIBS=$LIBS 17270LIBS="-lfftw3l $LIBS" 17271cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17272/* end confdefs.h. */ 17273 17274/* Override any GCC internal prototype to avoid an error. 17275 Use char because int might match the return type of a GCC 17276 builtin and then its argument prototype would still apply. */ 17277#ifdef __cplusplus 17278extern "C" 17279#endif 17280char fftwl_$fftw3_func (); 17281#ifdef F77_DUMMY_MAIN 17282 17283# ifdef __cplusplus 17284 extern "C" 17285# endif 17286 int F77_DUMMY_MAIN() { return 1; } 17287 17288#endif 17289int 17290main () 17291{ 17292return fftwl_$fftw3_func (); 17293 ; 17294 return 0; 17295} 17296_ACEOF 17297if ac_fn_c_try_link "$LINENO"; then : 17298 eval "$as_ac_Lib=yes" 17299else 17300 eval "$as_ac_Lib=no" 17301fi 17302rm -f core conftest.err conftest.$ac_objext \ 17303 conftest$ac_exeext conftest.$ac_ext 17304LIBS=$ac_check_lib_save_LIBS 17305fi 17306eval ac_res=\$$as_ac_Lib 17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17308$as_echo "$ac_res" >&6; } 17309if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17310 cat >>confdefs.h <<_ACEOF 17311#define HAVE_LIBFFTW3L 1 17312_ACEOF 17313 17314 LIBS="-lfftw3l $LIBS" 17315 17316else 17317 17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw in -lxfftw" >&5 17319$as_echo_n "checking for fftw in -lxfftw... " >&6; } 17320if ${ac_cv_lib_xfftw_fftw+:} false; then : 17321 $as_echo_n "(cached) " >&6 17322else 17323 ac_check_lib_save_LIBS=$LIBS 17324LIBS="-lxfftw $LIBS" 17325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17326/* end confdefs.h. */ 17327 17328/* Override any GCC internal prototype to avoid an error. 17329 Use char because int might match the return type of a GCC 17330 builtin and then its argument prototype would still apply. */ 17331#ifdef __cplusplus 17332extern "C" 17333#endif 17334char fftw (); 17335#ifdef F77_DUMMY_MAIN 17336 17337# ifdef __cplusplus 17338 extern "C" 17339# endif 17340 int F77_DUMMY_MAIN() { return 1; } 17341 17342#endif 17343int 17344main () 17345{ 17346return fftw (); 17347 ; 17348 return 0; 17349} 17350_ACEOF 17351if ac_fn_c_try_link "$LINENO"; then : 17352 ac_cv_lib_xfftw_fftw=yes 17353else 17354 ac_cv_lib_xfftw_fftw=no 17355fi 17356rm -f core conftest.err conftest.$ac_objext \ 17357 conftest$ac_exeext conftest.$ac_ext 17358LIBS=$ac_check_lib_save_LIBS 17359fi 17360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xfftw_fftw" >&5 17361$as_echo "$ac_cv_lib_xfftw_fftw" >&6; } 17362if test "x$ac_cv_lib_xfftw_fftw" = xyes; then : 17363 cat >>confdefs.h <<_ACEOF 17364#define HAVE_LIBXFFTW 1 17365_ACEOF 17366 17367 LIBS="-lxfftw $LIBS" 17368 17369fi 17370 17371 if test x"$inv_sym" = xyes; then 17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rfftw in -lxrfftw" >&5 17373$as_echo_n "checking for rfftw in -lxrfftw... " >&6; } 17374if ${ac_cv_lib_xrfftw_rfftw+:} false; then : 17375 $as_echo_n "(cached) " >&6 17376else 17377 ac_check_lib_save_LIBS=$LIBS 17378LIBS="-lxrfftw $LIBS" 17379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17380/* end confdefs.h. */ 17381 17382/* Override any GCC internal prototype to avoid an error. 17383 Use char because int might match the return type of a GCC 17384 builtin and then its argument prototype would still apply. */ 17385#ifdef __cplusplus 17386extern "C" 17387#endif 17388char rfftw (); 17389#ifdef F77_DUMMY_MAIN 17390 17391# ifdef __cplusplus 17392 extern "C" 17393# endif 17394 int F77_DUMMY_MAIN() { return 1; } 17395 17396#endif 17397int 17398main () 17399{ 17400return rfftw (); 17401 ; 17402 return 0; 17403} 17404_ACEOF 17405if ac_fn_c_try_link "$LINENO"; then : 17406 ac_cv_lib_xrfftw_rfftw=yes 17407else 17408 ac_cv_lib_xrfftw_rfftw=no 17409fi 17410rm -f core conftest.err conftest.$ac_objext \ 17411 conftest$ac_exeext conftest.$ac_ext 17412LIBS=$ac_check_lib_save_LIBS 17413fi 17414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xrfftw_rfftw" >&5 17415$as_echo "$ac_cv_lib_xrfftw_rfftw" >&6; } 17416if test "x$ac_cv_lib_xrfftw_rfftw" = xyes; then : 17417 cat >>confdefs.h <<_ACEOF 17418#define HAVE_LIBXRFFTW 1 17419_ACEOF 17420 17421 LIBS="-lxrfftw $LIBS" 17422 17423fi 17424 17425 fi 17426fi 17427 17428else 17429 as_ac_Lib=`$as_echo "ac_cv_lib_fftw3_fftw_$fftw3_func" | $as_tr_sh` 17430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_$fftw3_func in -lfftw3" >&5 17431$as_echo_n "checking for fftw_$fftw3_func in -lfftw3... " >&6; } 17432if eval \${$as_ac_Lib+:} false; then : 17433 $as_echo_n "(cached) " >&6 17434else 17435 ac_check_lib_save_LIBS=$LIBS 17436LIBS="-lfftw3 $LIBS" 17437cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17438/* end confdefs.h. */ 17439 17440/* Override any GCC internal prototype to avoid an error. 17441 Use char because int might match the return type of a GCC 17442 builtin and then its argument prototype would still apply. */ 17443#ifdef __cplusplus 17444extern "C" 17445#endif 17446char fftw_$fftw3_func (); 17447#ifdef F77_DUMMY_MAIN 17448 17449# ifdef __cplusplus 17450 extern "C" 17451# endif 17452 int F77_DUMMY_MAIN() { return 1; } 17453 17454#endif 17455int 17456main () 17457{ 17458return fftw_$fftw3_func (); 17459 ; 17460 return 0; 17461} 17462_ACEOF 17463if ac_fn_c_try_link "$LINENO"; then : 17464 eval "$as_ac_Lib=yes" 17465else 17466 eval "$as_ac_Lib=no" 17467fi 17468rm -f core conftest.err conftest.$ac_objext \ 17469 conftest$ac_exeext conftest.$ac_ext 17470LIBS=$ac_check_lib_save_LIBS 17471fi 17472eval ac_res=\$$as_ac_Lib 17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17474$as_echo "$ac_res" >&6; } 17475if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17476 cat >>confdefs.h <<_ACEOF 17477#define HAVE_LIBFFTW3 1 17478_ACEOF 17479 17480 LIBS="-lfftw3 $LIBS" 17481 17482else 17483 17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw in -ldfftw" >&5 17485$as_echo_n "checking for fftw in -ldfftw... " >&6; } 17486if ${ac_cv_lib_dfftw_fftw+:} false; then : 17487 $as_echo_n "(cached) " >&6 17488else 17489 ac_check_lib_save_LIBS=$LIBS 17490LIBS="-ldfftw $LIBS" 17491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17492/* end confdefs.h. */ 17493 17494/* Override any GCC internal prototype to avoid an error. 17495 Use char because int might match the return type of a GCC 17496 builtin and then its argument prototype would still apply. */ 17497#ifdef __cplusplus 17498extern "C" 17499#endif 17500char fftw (); 17501#ifdef F77_DUMMY_MAIN 17502 17503# ifdef __cplusplus 17504 extern "C" 17505# endif 17506 int F77_DUMMY_MAIN() { return 1; } 17507 17508#endif 17509int 17510main () 17511{ 17512return fftw (); 17513 ; 17514 return 0; 17515} 17516_ACEOF 17517if ac_fn_c_try_link "$LINENO"; then : 17518 ac_cv_lib_dfftw_fftw=yes 17519else 17520 ac_cv_lib_dfftw_fftw=no 17521fi 17522rm -f core conftest.err conftest.$ac_objext \ 17523 conftest$ac_exeext conftest.$ac_ext 17524LIBS=$ac_check_lib_save_LIBS 17525fi 17526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_fftw" >&5 17527$as_echo "$ac_cv_lib_dfftw_fftw" >&6; } 17528if test "x$ac_cv_lib_dfftw_fftw" = xyes; then : 17529 cat >>confdefs.h <<_ACEOF 17530#define HAVE_LIBDFFTW 1 17531_ACEOF 17532 17533 LIBS="-ldfftw $LIBS" 17534 17535fi 17536 17537 if test x"$inv_sym" = xyes; then 17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rfftw in -ldrfftw" >&5 17539$as_echo_n "checking for rfftw in -ldrfftw... " >&6; } 17540if ${ac_cv_lib_drfftw_rfftw+:} false; then : 17541 $as_echo_n "(cached) " >&6 17542else 17543 ac_check_lib_save_LIBS=$LIBS 17544LIBS="-ldrfftw $LIBS" 17545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17546/* end confdefs.h. */ 17547 17548/* Override any GCC internal prototype to avoid an error. 17549 Use char because int might match the return type of a GCC 17550 builtin and then its argument prototype would still apply. */ 17551#ifdef __cplusplus 17552extern "C" 17553#endif 17554char rfftw (); 17555#ifdef F77_DUMMY_MAIN 17556 17557# ifdef __cplusplus 17558 extern "C" 17559# endif 17560 int F77_DUMMY_MAIN() { return 1; } 17561 17562#endif 17563int 17564main () 17565{ 17566return rfftw (); 17567 ; 17568 return 0; 17569} 17570_ACEOF 17571if ac_fn_c_try_link "$LINENO"; then : 17572 ac_cv_lib_drfftw_rfftw=yes 17573else 17574 ac_cv_lib_drfftw_rfftw=no 17575fi 17576rm -f core conftest.err conftest.$ac_objext \ 17577 conftest$ac_exeext conftest.$ac_ext 17578LIBS=$ac_check_lib_save_LIBS 17579fi 17580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_drfftw_rfftw" >&5 17581$as_echo "$ac_cv_lib_drfftw_rfftw" >&6; } 17582if test "x$ac_cv_lib_drfftw_rfftw" = xyes; then : 17583 cat >>confdefs.h <<_ACEOF 17584#define HAVE_LIBDRFFTW 1 17585_ACEOF 17586 17587 LIBS="-ldrfftw $LIBS" 17588 17589fi 17590 17591 fi 17592fi 17593 17594fi 17595 17596if test x = x"`echo $LIBS | egrep 'l[dsx]fftw|fftw3'`"; then 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw in -lfftw" >&5 17598$as_echo_n "checking for fftw in -lfftw... " >&6; } 17599if ${ac_cv_lib_fftw_fftw+:} false; then : 17600 $as_echo_n "(cached) " >&6 17601else 17602 ac_check_lib_save_LIBS=$LIBS 17603LIBS="-lfftw $LIBS" 17604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17605/* end confdefs.h. */ 17606 17607/* Override any GCC internal prototype to avoid an error. 17608 Use char because int might match the return type of a GCC 17609 builtin and then its argument prototype would still apply. */ 17610#ifdef __cplusplus 17611extern "C" 17612#endif 17613char fftw (); 17614#ifdef F77_DUMMY_MAIN 17615 17616# ifdef __cplusplus 17617 extern "C" 17618# endif 17619 int F77_DUMMY_MAIN() { return 1; } 17620 17621#endif 17622int 17623main () 17624{ 17625return fftw (); 17626 ; 17627 return 0; 17628} 17629_ACEOF 17630if ac_fn_c_try_link "$LINENO"; then : 17631 ac_cv_lib_fftw_fftw=yes 17632else 17633 ac_cv_lib_fftw_fftw=no 17634fi 17635rm -f core conftest.err conftest.$ac_objext \ 17636 conftest$ac_exeext conftest.$ac_ext 17637LIBS=$ac_check_lib_save_LIBS 17638fi 17639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_fftw" >&5 17640$as_echo "$ac_cv_lib_fftw_fftw" >&6; } 17641if test "x$ac_cv_lib_fftw_fftw" = xyes; then : 17642 cat >>confdefs.h <<_ACEOF 17643#define HAVE_LIBFFTW 1 17644_ACEOF 17645 17646 LIBS="-lfftw $LIBS" 17647 17648fi 17649 17650 if test x"$inv_sym" = xyes; then 17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rfftw in -lrfftw" >&5 17652$as_echo_n "checking for rfftw in -lrfftw... " >&6; } 17653if ${ac_cv_lib_rfftw_rfftw+:} false; then : 17654 $as_echo_n "(cached) " >&6 17655else 17656 ac_check_lib_save_LIBS=$LIBS 17657LIBS="-lrfftw $LIBS" 17658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17659/* end confdefs.h. */ 17660 17661/* Override any GCC internal prototype to avoid an error. 17662 Use char because int might match the return type of a GCC 17663 builtin and then its argument prototype would still apply. */ 17664#ifdef __cplusplus 17665extern "C" 17666#endif 17667char rfftw (); 17668#ifdef F77_DUMMY_MAIN 17669 17670# ifdef __cplusplus 17671 extern "C" 17672# endif 17673 int F77_DUMMY_MAIN() { return 1; } 17674 17675#endif 17676int 17677main () 17678{ 17679return rfftw (); 17680 ; 17681 return 0; 17682} 17683_ACEOF 17684if ac_fn_c_try_link "$LINENO"; then : 17685 ac_cv_lib_rfftw_rfftw=yes 17686else 17687 ac_cv_lib_rfftw_rfftw=no 17688fi 17689rm -f core conftest.err conftest.$ac_objext \ 17690 conftest$ac_exeext conftest.$ac_ext 17691LIBS=$ac_check_lib_save_LIBS 17692fi 17693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rfftw_rfftw" >&5 17694$as_echo "$ac_cv_lib_rfftw_rfftw" >&6; } 17695if test "x$ac_cv_lib_rfftw_rfftw" = xyes; then : 17696 cat >>confdefs.h <<_ACEOF 17697#define HAVE_LIBRFFTW 1 17698_ACEOF 17699 17700 LIBS="-lrfftw $LIBS" 17701 17702fi 17703 17704 fi 17705fi 17706 17707if test x = x"`echo $LIBS | egrep 'l[dsx]*fftw'`"; then 17708 as_fn_error $? "The FFTW libraries could not be found. Make sure FFTW is installed, and that LDFLAGS and CPPFLAGS are set appropriately if necessary." "$LINENO" 5 17709fi 17710 17711if test x"$inv_sym" = xyes; then 17712 if test x = x"`echo $LIBS | egrep 'l[dsx]*rfftw|lfftw3'`"; then 17713 as_fn_error $? "The FFTW3 or RFFTW libraries, which are required to compile MPB with inversion symmetry, could not be found. These should have been installed as a part of FFTW." "$LINENO" 5 17714 fi 17715fi 17716 17717############################################################################## 17718# Check for OpenMP libraries 17719 17720 17721# Check whether --with-openmp was given. 17722if test "${with_openmp+set}" = set; then : 17723 withval=$with_openmp; with_omp=$withval 17724else 17725 with_omp=no 17726fi 17727 17728if test "x$with_omp" = xyes; then 17729 17730$as_echo "#define USE_OPENMP 1" >>confdefs.h 17731 17732 17733 17734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5 17735$as_echo_n "checking for OpenMP flag of C compiler... " >&6; } 17736if ${ax_cv_c_openmp+:} false; then : 17737 $as_echo_n "(cached) " >&6 17738else 17739 saveCFLAGS=$CFLAGS 17740ax_cv_c_openmp=unknown 17741# Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI), 17742# -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none 17743ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none" 17744if test "x$OPENMP_CFLAGS" != x; then 17745 ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags" 17746fi 17747for ax_openmp_flag in $ax_openmp_flags; do 17748 case $ax_openmp_flag in 17749 none) CFLAGS=$saveC ;; 17750 *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;; 17751 esac 17752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17753/* end confdefs.h. */ 17754 17755/* Override any GCC internal prototype to avoid an error. 17756 Use char because int might match the return type of a GCC 17757 builtin and then its argument prototype would still apply. */ 17758#ifdef __cplusplus 17759extern "C" 17760#endif 17761char omp_set_num_threads (); 17762#ifdef F77_DUMMY_MAIN 17763 17764# ifdef __cplusplus 17765 extern "C" 17766# endif 17767 int F77_DUMMY_MAIN() { return 1; } 17768 17769#endif 17770int 17771main () 17772{ 17773return omp_set_num_threads (); 17774 ; 17775 return 0; 17776} 17777_ACEOF 17778if ac_fn_c_try_link "$LINENO"; then : 17779 ax_cv_c_openmp=$ax_openmp_flag; break 17780fi 17781rm -f core conftest.err conftest.$ac_objext \ 17782 conftest$ac_exeext conftest.$ac_ext 17783done 17784CFLAGS=$saveCFLAGS 17785 17786fi 17787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5 17788$as_echo "$ax_cv_c_openmp" >&6; } 17789if test "x$ax_cv_c_openmp" = "xunknown"; then 17790 as_fn_error $? "Could not find OpenMP flag; configure with --without-openmp" "$LINENO" 5 17791else 17792 if test "x$ax_cv_c_openmp" != "xnone"; then 17793 OPENMP_CFLAGS=$ax_cv_c_openmp 17794 fi 17795 17796$as_echo "#define HAVE_OPENMP 1" >>confdefs.h 17797 17798fi 17799 17800 CFLAGS="$CFLAGS $OPENMP_CFLAGS" 17801 fftw_omp=yes 17802 if test "$enable_single" = "yes"; then 17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwf_init_threads in -lfftw3f_omp" >&5 17804$as_echo_n "checking for fftwf_init_threads in -lfftw3f_omp... " >&6; } 17805if ${ac_cv_lib_fftw3f_omp_fftwf_init_threads+:} false; then : 17806 $as_echo_n "(cached) " >&6 17807else 17808 ac_check_lib_save_LIBS=$LIBS 17809LIBS="-lfftw3f_omp $LIBS" 17810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17811/* end confdefs.h. */ 17812 17813/* Override any GCC internal prototype to avoid an error. 17814 Use char because int might match the return type of a GCC 17815 builtin and then its argument prototype would still apply. */ 17816#ifdef __cplusplus 17817extern "C" 17818#endif 17819char fftwf_init_threads (); 17820#ifdef F77_DUMMY_MAIN 17821 17822# ifdef __cplusplus 17823 extern "C" 17824# endif 17825 int F77_DUMMY_MAIN() { return 1; } 17826 17827#endif 17828int 17829main () 17830{ 17831return fftwf_init_threads (); 17832 ; 17833 return 0; 17834} 17835_ACEOF 17836if ac_fn_c_try_link "$LINENO"; then : 17837 ac_cv_lib_fftw3f_omp_fftwf_init_threads=yes 17838else 17839 ac_cv_lib_fftw3f_omp_fftwf_init_threads=no 17840fi 17841rm -f core conftest.err conftest.$ac_objext \ 17842 conftest$ac_exeext conftest.$ac_ext 17843LIBS=$ac_check_lib_save_LIBS 17844fi 17845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3f_omp_fftwf_init_threads" >&5 17846$as_echo "$ac_cv_lib_fftw3f_omp_fftwf_init_threads" >&6; } 17847if test "x$ac_cv_lib_fftw3f_omp_fftwf_init_threads" = xyes; then : 17848 cat >>confdefs.h <<_ACEOF 17849#define HAVE_LIBFFTW3F_OMP 1 17850_ACEOF 17851 17852 LIBS="-lfftw3f_omp $LIBS" 17853 17854else 17855 fftw_omp=no 17856fi 17857 17858 elif test "$enable_long_double" = "yes"; then 17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwl_init_threads in -lfftw3l_omp" >&5 17860$as_echo_n "checking for fftwl_init_threads in -lfftw3l_omp... " >&6; } 17861if ${ac_cv_lib_fftw3l_omp_fftwl_init_threads+:} false; then : 17862 $as_echo_n "(cached) " >&6 17863else 17864 ac_check_lib_save_LIBS=$LIBS 17865LIBS="-lfftw3l_omp $LIBS" 17866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17867/* end confdefs.h. */ 17868 17869/* Override any GCC internal prototype to avoid an error. 17870 Use char because int might match the return type of a GCC 17871 builtin and then its argument prototype would still apply. */ 17872#ifdef __cplusplus 17873extern "C" 17874#endif 17875char fftwl_init_threads (); 17876#ifdef F77_DUMMY_MAIN 17877 17878# ifdef __cplusplus 17879 extern "C" 17880# endif 17881 int F77_DUMMY_MAIN() { return 1; } 17882 17883#endif 17884int 17885main () 17886{ 17887return fftwl_init_threads (); 17888 ; 17889 return 0; 17890} 17891_ACEOF 17892if ac_fn_c_try_link "$LINENO"; then : 17893 ac_cv_lib_fftw3l_omp_fftwl_init_threads=yes 17894else 17895 ac_cv_lib_fftw3l_omp_fftwl_init_threads=no 17896fi 17897rm -f core conftest.err conftest.$ac_objext \ 17898 conftest$ac_exeext conftest.$ac_ext 17899LIBS=$ac_check_lib_save_LIBS 17900fi 17901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3l_omp_fftwl_init_threads" >&5 17902$as_echo "$ac_cv_lib_fftw3l_omp_fftwl_init_threads" >&6; } 17903if test "x$ac_cv_lib_fftw3l_omp_fftwl_init_threads" = xyes; then : 17904 cat >>confdefs.h <<_ACEOF 17905#define HAVE_LIBFFTW3L_OMP 1 17906_ACEOF 17907 17908 LIBS="-lfftw3l_omp $LIBS" 17909 17910else 17911 fftw_omp=no 17912fi 17913 17914 else 17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_init_threads in -lfftw3_omp" >&5 17916$as_echo_n "checking for fftw_init_threads in -lfftw3_omp... " >&6; } 17917if ${ac_cv_lib_fftw3_omp_fftw_init_threads+:} false; then : 17918 $as_echo_n "(cached) " >&6 17919else 17920 ac_check_lib_save_LIBS=$LIBS 17921LIBS="-lfftw3_omp $LIBS" 17922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17923/* end confdefs.h. */ 17924 17925/* Override any GCC internal prototype to avoid an error. 17926 Use char because int might match the return type of a GCC 17927 builtin and then its argument prototype would still apply. */ 17928#ifdef __cplusplus 17929extern "C" 17930#endif 17931char fftw_init_threads (); 17932#ifdef F77_DUMMY_MAIN 17933 17934# ifdef __cplusplus 17935 extern "C" 17936# endif 17937 int F77_DUMMY_MAIN() { return 1; } 17938 17939#endif 17940int 17941main () 17942{ 17943return fftw_init_threads (); 17944 ; 17945 return 0; 17946} 17947_ACEOF 17948if ac_fn_c_try_link "$LINENO"; then : 17949 ac_cv_lib_fftw3_omp_fftw_init_threads=yes 17950else 17951 ac_cv_lib_fftw3_omp_fftw_init_threads=no 17952fi 17953rm -f core conftest.err conftest.$ac_objext \ 17954 conftest$ac_exeext conftest.$ac_ext 17955LIBS=$ac_check_lib_save_LIBS 17956fi 17957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_omp_fftw_init_threads" >&5 17958$as_echo "$ac_cv_lib_fftw3_omp_fftw_init_threads" >&6; } 17959if test "x$ac_cv_lib_fftw3_omp_fftw_init_threads" = xyes; then : 17960 cat >>confdefs.h <<_ACEOF 17961#define HAVE_LIBFFTW3_OMP 1 17962_ACEOF 17963 17964 LIBS="-lfftw3_omp $LIBS" 17965 17966else 17967 fftw_omp=no 17968fi 17969 17970 fi 17971 if test $fftw_omp = no; then 17972 as_fn_error $? "Could not find OpenMP FFTW3 library; configure with --without-openmp" "$LINENO" 5 17973 fi 17974 echo "*********************** OpenMP ***********************" 17975fi 17976 17977############################################################################## 17978# Checks for BLAS and LAPACK libraries: 17979 17980 17981 17982 17983ax_blas_ok=no 17984 17985 17986# Check whether --with-blas was given. 17987if test "${with_blas+set}" = set; then : 17988 withval=$with_blas; 17989fi 17990 17991case $with_blas in 17992 yes | "") ;; 17993 no) ax_blas_ok=disable ;; 17994 -* | */* | *.a | *.so | *.so.* | *.o) BLAS_LIBS="$with_blas" ;; 17995 *) BLAS_LIBS="-l$with_blas" ;; 17996esac 17997 17998# Get fortran linker names of BLAS functions to check for. 17999ac_ext=f 18000ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 18001ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18002ac_compiler_gnu=$ac_cv_f77_compiler_gnu 18003case $ac_cv_f77_mangling in 18004 upper*) ac_val="SGEMM" ;; 18005 lower*) ac_val="sgemm" ;; 18006 *) ac_val="unknown" ;; 18007esac 18008case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 18009 18010sgemm="$ac_val" 18011 18012ac_ext=c 18013ac_cpp='$CPP $CPPFLAGS' 18014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18016ac_compiler_gnu=$ac_cv_c_compiler_gnu 18017 18018ac_ext=f 18019ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 18020ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18021ac_compiler_gnu=$ac_cv_f77_compiler_gnu 18022case $ac_cv_f77_mangling in 18023 upper*) ac_val="DGEMM" ;; 18024 lower*) ac_val="dgemm" ;; 18025 *) ac_val="unknown" ;; 18026esac 18027case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 18028 18029dgemm="$ac_val" 18030 18031ac_ext=c 18032ac_cpp='$CPP $CPPFLAGS' 18033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18035ac_compiler_gnu=$ac_cv_c_compiler_gnu 18036 18037 18038ax_blas_save_LIBS="$LIBS" 18039LIBS="$LIBS $FLIBS" 18040 18041# First, check BLAS_LIBS environment variable 18042if test $ax_blas_ok = no; then 18043if test "x$BLAS_LIBS" != x; then 18044 save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in $BLAS_LIBS" >&5 18046$as_echo_n "checking for $sgemm in $BLAS_LIBS... " >&6; } 18047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18048/* end confdefs.h. */ 18049 18050/* Override any GCC internal prototype to avoid an error. 18051 Use char because int might match the return type of a GCC 18052 builtin and then its argument prototype would still apply. */ 18053#ifdef __cplusplus 18054extern "C" 18055#endif 18056char $sgemm (); 18057#ifdef F77_DUMMY_MAIN 18058 18059# ifdef __cplusplus 18060 extern "C" 18061# endif 18062 int F77_DUMMY_MAIN() { return 1; } 18063 18064#endif 18065int 18066main () 18067{ 18068return $sgemm (); 18069 ; 18070 return 0; 18071} 18072_ACEOF 18073if ac_fn_c_try_link "$LINENO"; then : 18074 ax_blas_ok=yes 18075else 18076 BLAS_LIBS="" 18077fi 18078rm -f core conftest.err conftest.$ac_objext \ 18079 conftest$ac_exeext conftest.$ac_ext 18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_blas_ok" >&5 18081$as_echo "$ax_blas_ok" >&6; } 18082 LIBS="$save_LIBS" 18083fi 18084fi 18085 18086# BLAS linked to by default? (happens on some supercomputers) 18087if test $ax_blas_ok = no; then 18088 save_LIBS="$LIBS"; LIBS="$LIBS" 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $sgemm is being linked in already" >&5 18090$as_echo_n "checking if $sgemm is being linked in already... " >&6; } 18091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18092/* end confdefs.h. */ 18093 18094/* Override any GCC internal prototype to avoid an error. 18095 Use char because int might match the return type of a GCC 18096 builtin and then its argument prototype would still apply. */ 18097#ifdef __cplusplus 18098extern "C" 18099#endif 18100char $sgemm (); 18101#ifdef F77_DUMMY_MAIN 18102 18103# ifdef __cplusplus 18104 extern "C" 18105# endif 18106 int F77_DUMMY_MAIN() { return 1; } 18107 18108#endif 18109int 18110main () 18111{ 18112return $sgemm (); 18113 ; 18114 return 0; 18115} 18116_ACEOF 18117if ac_fn_c_try_link "$LINENO"; then : 18118 ax_blas_ok=yes 18119fi 18120rm -f core conftest.err conftest.$ac_objext \ 18121 conftest$ac_exeext conftest.$ac_ext 18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_blas_ok" >&5 18123$as_echo "$ax_blas_ok" >&6; } 18124 LIBS="$save_LIBS" 18125fi 18126 18127# BLAS in OpenBLAS library? (http://xianyi.github.com/OpenBLAS/) 18128if test $ax_blas_ok = no; then 18129 as_ac_Lib=`$as_echo "ac_cv_lib_openblas_$sgemm" | $as_tr_sh` 18130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lopenblas" >&5 18131$as_echo_n "checking for $sgemm in -lopenblas... " >&6; } 18132if eval \${$as_ac_Lib+:} false; then : 18133 $as_echo_n "(cached) " >&6 18134else 18135 ac_check_lib_save_LIBS=$LIBS 18136LIBS="-lopenblas $LIBS" 18137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18138/* end confdefs.h. */ 18139 18140/* Override any GCC internal prototype to avoid an error. 18141 Use char because int might match the return type of a GCC 18142 builtin and then its argument prototype would still apply. */ 18143#ifdef __cplusplus 18144extern "C" 18145#endif 18146char $sgemm (); 18147#ifdef F77_DUMMY_MAIN 18148 18149# ifdef __cplusplus 18150 extern "C" 18151# endif 18152 int F77_DUMMY_MAIN() { return 1; } 18153 18154#endif 18155int 18156main () 18157{ 18158return $sgemm (); 18159 ; 18160 return 0; 18161} 18162_ACEOF 18163if ac_fn_c_try_link "$LINENO"; then : 18164 eval "$as_ac_Lib=yes" 18165else 18166 eval "$as_ac_Lib=no" 18167fi 18168rm -f core conftest.err conftest.$ac_objext \ 18169 conftest$ac_exeext conftest.$ac_ext 18170LIBS=$ac_check_lib_save_LIBS 18171fi 18172eval ac_res=\$$as_ac_Lib 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18174$as_echo "$ac_res" >&6; } 18175if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18176 ax_blas_ok=yes 18177 BLAS_LIBS="-lopenblas" 18178fi 18179 18180fi 18181 18182# BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) 18183if test $ax_blas_ok = no; then 18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATL_xerbla in -latlas" >&5 18185$as_echo_n "checking for ATL_xerbla in -latlas... " >&6; } 18186if ${ac_cv_lib_atlas_ATL_xerbla+:} false; then : 18187 $as_echo_n "(cached) " >&6 18188else 18189 ac_check_lib_save_LIBS=$LIBS 18190LIBS="-latlas $LIBS" 18191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18192/* end confdefs.h. */ 18193 18194/* Override any GCC internal prototype to avoid an error. 18195 Use char because int might match the return type of a GCC 18196 builtin and then its argument prototype would still apply. */ 18197#ifdef __cplusplus 18198extern "C" 18199#endif 18200char ATL_xerbla (); 18201#ifdef F77_DUMMY_MAIN 18202 18203# ifdef __cplusplus 18204 extern "C" 18205# endif 18206 int F77_DUMMY_MAIN() { return 1; } 18207 18208#endif 18209int 18210main () 18211{ 18212return ATL_xerbla (); 18213 ; 18214 return 0; 18215} 18216_ACEOF 18217if ac_fn_c_try_link "$LINENO"; then : 18218 ac_cv_lib_atlas_ATL_xerbla=yes 18219else 18220 ac_cv_lib_atlas_ATL_xerbla=no 18221fi 18222rm -f core conftest.err conftest.$ac_objext \ 18223 conftest$ac_exeext conftest.$ac_ext 18224LIBS=$ac_check_lib_save_LIBS 18225fi 18226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atlas_ATL_xerbla" >&5 18227$as_echo "$ac_cv_lib_atlas_ATL_xerbla" >&6; } 18228if test "x$ac_cv_lib_atlas_ATL_xerbla" = xyes; then : 18229 as_ac_Lib=`$as_echo "ac_cv_lib_f77blas_$sgemm" | $as_tr_sh` 18230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lf77blas" >&5 18231$as_echo_n "checking for $sgemm in -lf77blas... " >&6; } 18232if eval \${$as_ac_Lib+:} false; then : 18233 $as_echo_n "(cached) " >&6 18234else 18235 ac_check_lib_save_LIBS=$LIBS 18236LIBS="-lf77blas -latlas $LIBS" 18237cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18238/* end confdefs.h. */ 18239 18240/* Override any GCC internal prototype to avoid an error. 18241 Use char because int might match the return type of a GCC 18242 builtin and then its argument prototype would still apply. */ 18243#ifdef __cplusplus 18244extern "C" 18245#endif 18246char $sgemm (); 18247#ifdef F77_DUMMY_MAIN 18248 18249# ifdef __cplusplus 18250 extern "C" 18251# endif 18252 int F77_DUMMY_MAIN() { return 1; } 18253 18254#endif 18255int 18256main () 18257{ 18258return $sgemm (); 18259 ; 18260 return 0; 18261} 18262_ACEOF 18263if ac_fn_c_try_link "$LINENO"; then : 18264 eval "$as_ac_Lib=yes" 18265else 18266 eval "$as_ac_Lib=no" 18267fi 18268rm -f core conftest.err conftest.$ac_objext \ 18269 conftest$ac_exeext conftest.$ac_ext 18270LIBS=$ac_check_lib_save_LIBS 18271fi 18272eval ac_res=\$$as_ac_Lib 18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18274$as_echo "$ac_res" >&6; } 18275if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas_dgemm in -lcblas" >&5 18277$as_echo_n "checking for cblas_dgemm in -lcblas... " >&6; } 18278if ${ac_cv_lib_cblas_cblas_dgemm+:} false; then : 18279 $as_echo_n "(cached) " >&6 18280else 18281 ac_check_lib_save_LIBS=$LIBS 18282LIBS="-lcblas -lf77blas -latlas $LIBS" 18283cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18284/* end confdefs.h. */ 18285 18286/* Override any GCC internal prototype to avoid an error. 18287 Use char because int might match the return type of a GCC 18288 builtin and then its argument prototype would still apply. */ 18289#ifdef __cplusplus 18290extern "C" 18291#endif 18292char cblas_dgemm (); 18293#ifdef F77_DUMMY_MAIN 18294 18295# ifdef __cplusplus 18296 extern "C" 18297# endif 18298 int F77_DUMMY_MAIN() { return 1; } 18299 18300#endif 18301int 18302main () 18303{ 18304return cblas_dgemm (); 18305 ; 18306 return 0; 18307} 18308_ACEOF 18309if ac_fn_c_try_link "$LINENO"; then : 18310 ac_cv_lib_cblas_cblas_dgemm=yes 18311else 18312 ac_cv_lib_cblas_cblas_dgemm=no 18313fi 18314rm -f core conftest.err conftest.$ac_objext \ 18315 conftest$ac_exeext conftest.$ac_ext 18316LIBS=$ac_check_lib_save_LIBS 18317fi 18318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cblas_cblas_dgemm" >&5 18319$as_echo "$ac_cv_lib_cblas_cblas_dgemm" >&6; } 18320if test "x$ac_cv_lib_cblas_cblas_dgemm" = xyes; then : 18321 ax_blas_ok=yes 18322 BLAS_LIBS="-lcblas -lf77blas -latlas" 18323fi 18324 18325fi 18326 18327fi 18328 18329fi 18330 18331# BLAS in PhiPACK libraries? (requires generic BLAS lib, too) 18332if test $ax_blas_ok = no; then 18333 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` 18334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5 18335$as_echo_n "checking for $sgemm in -lblas... " >&6; } 18336if eval \${$as_ac_Lib+:} false; then : 18337 $as_echo_n "(cached) " >&6 18338else 18339 ac_check_lib_save_LIBS=$LIBS 18340LIBS="-lblas $LIBS" 18341cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18342/* end confdefs.h. */ 18343 18344/* Override any GCC internal prototype to avoid an error. 18345 Use char because int might match the return type of a GCC 18346 builtin and then its argument prototype would still apply. */ 18347#ifdef __cplusplus 18348extern "C" 18349#endif 18350char $sgemm (); 18351#ifdef F77_DUMMY_MAIN 18352 18353# ifdef __cplusplus 18354 extern "C" 18355# endif 18356 int F77_DUMMY_MAIN() { return 1; } 18357 18358#endif 18359int 18360main () 18361{ 18362return $sgemm (); 18363 ; 18364 return 0; 18365} 18366_ACEOF 18367if ac_fn_c_try_link "$LINENO"; then : 18368 eval "$as_ac_Lib=yes" 18369else 18370 eval "$as_ac_Lib=no" 18371fi 18372rm -f core conftest.err conftest.$ac_objext \ 18373 conftest$ac_exeext conftest.$ac_ext 18374LIBS=$ac_check_lib_save_LIBS 18375fi 18376eval ac_res=\$$as_ac_Lib 18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18378$as_echo "$ac_res" >&6; } 18379if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18380 as_ac_Lib=`$as_echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh` 18381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -ldgemm" >&5 18382$as_echo_n "checking for $dgemm in -ldgemm... " >&6; } 18383if eval \${$as_ac_Lib+:} false; then : 18384 $as_echo_n "(cached) " >&6 18385else 18386 ac_check_lib_save_LIBS=$LIBS 18387LIBS="-ldgemm -lblas $LIBS" 18388cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18389/* end confdefs.h. */ 18390 18391/* Override any GCC internal prototype to avoid an error. 18392 Use char because int might match the return type of a GCC 18393 builtin and then its argument prototype would still apply. */ 18394#ifdef __cplusplus 18395extern "C" 18396#endif 18397char $dgemm (); 18398#ifdef F77_DUMMY_MAIN 18399 18400# ifdef __cplusplus 18401 extern "C" 18402# endif 18403 int F77_DUMMY_MAIN() { return 1; } 18404 18405#endif 18406int 18407main () 18408{ 18409return $dgemm (); 18410 ; 18411 return 0; 18412} 18413_ACEOF 18414if ac_fn_c_try_link "$LINENO"; then : 18415 eval "$as_ac_Lib=yes" 18416else 18417 eval "$as_ac_Lib=no" 18418fi 18419rm -f core conftest.err conftest.$ac_objext \ 18420 conftest$ac_exeext conftest.$ac_ext 18421LIBS=$ac_check_lib_save_LIBS 18422fi 18423eval ac_res=\$$as_ac_Lib 18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18425$as_echo "$ac_res" >&6; } 18426if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18427 as_ac_Lib=`$as_echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh` 18428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsgemm" >&5 18429$as_echo_n "checking for $sgemm in -lsgemm... " >&6; } 18430if eval \${$as_ac_Lib+:} false; then : 18431 $as_echo_n "(cached) " >&6 18432else 18433 ac_check_lib_save_LIBS=$LIBS 18434LIBS="-lsgemm -lblas $LIBS" 18435cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18436/* end confdefs.h. */ 18437 18438/* Override any GCC internal prototype to avoid an error. 18439 Use char because int might match the return type of a GCC 18440 builtin and then its argument prototype would still apply. */ 18441#ifdef __cplusplus 18442extern "C" 18443#endif 18444char $sgemm (); 18445#ifdef F77_DUMMY_MAIN 18446 18447# ifdef __cplusplus 18448 extern "C" 18449# endif 18450 int F77_DUMMY_MAIN() { return 1; } 18451 18452#endif 18453int 18454main () 18455{ 18456return $sgemm (); 18457 ; 18458 return 0; 18459} 18460_ACEOF 18461if ac_fn_c_try_link "$LINENO"; then : 18462 eval "$as_ac_Lib=yes" 18463else 18464 eval "$as_ac_Lib=no" 18465fi 18466rm -f core conftest.err conftest.$ac_objext \ 18467 conftest$ac_exeext conftest.$ac_ext 18468LIBS=$ac_check_lib_save_LIBS 18469fi 18470eval ac_res=\$$as_ac_Lib 18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18472$as_echo "$ac_res" >&6; } 18473if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18474 ax_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas" 18475fi 18476 18477fi 18478 18479fi 18480 18481fi 18482 18483# BLAS in Intel MKL library? 18484if test $ax_blas_ok = no; then 18485 as_ac_Lib=`$as_echo "ac_cv_lib_mkl_$sgemm" | $as_tr_sh` 18486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lmkl" >&5 18487$as_echo_n "checking for $sgemm in -lmkl... " >&6; } 18488if eval \${$as_ac_Lib+:} false; then : 18489 $as_echo_n "(cached) " >&6 18490else 18491 ac_check_lib_save_LIBS=$LIBS 18492LIBS="-lmkl -lguide -lpthread $LIBS" 18493cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18494/* end confdefs.h. */ 18495 18496/* Override any GCC internal prototype to avoid an error. 18497 Use char because int might match the return type of a GCC 18498 builtin and then its argument prototype would still apply. */ 18499#ifdef __cplusplus 18500extern "C" 18501#endif 18502char $sgemm (); 18503#ifdef F77_DUMMY_MAIN 18504 18505# ifdef __cplusplus 18506 extern "C" 18507# endif 18508 int F77_DUMMY_MAIN() { return 1; } 18509 18510#endif 18511int 18512main () 18513{ 18514return $sgemm (); 18515 ; 18516 return 0; 18517} 18518_ACEOF 18519if ac_fn_c_try_link "$LINENO"; then : 18520 eval "$as_ac_Lib=yes" 18521else 18522 eval "$as_ac_Lib=no" 18523fi 18524rm -f core conftest.err conftest.$ac_objext \ 18525 conftest$ac_exeext conftest.$ac_ext 18526LIBS=$ac_check_lib_save_LIBS 18527fi 18528eval ac_res=\$$as_ac_Lib 18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18530$as_echo "$ac_res" >&6; } 18531if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18532 ax_blas_ok=yes;BLAS_LIBS="-lmkl -lguide -lpthread" 18533fi 18534 18535fi 18536 18537# BLAS in Apple vecLib library? 18538if test $ax_blas_ok = no; then 18539 save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS" 18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -framework vecLib" >&5 18541$as_echo_n "checking for $sgemm in -framework vecLib... " >&6; } 18542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18543/* end confdefs.h. */ 18544 18545/* Override any GCC internal prototype to avoid an error. 18546 Use char because int might match the return type of a GCC 18547 builtin and then its argument prototype would still apply. */ 18548#ifdef __cplusplus 18549extern "C" 18550#endif 18551char $sgemm (); 18552#ifdef F77_DUMMY_MAIN 18553 18554# ifdef __cplusplus 18555 extern "C" 18556# endif 18557 int F77_DUMMY_MAIN() { return 1; } 18558 18559#endif 18560int 18561main () 18562{ 18563return $sgemm (); 18564 ; 18565 return 0; 18566} 18567_ACEOF 18568if ac_fn_c_try_link "$LINENO"; then : 18569 ax_blas_ok=yes;BLAS_LIBS="-framework vecLib" 18570fi 18571rm -f core conftest.err conftest.$ac_objext \ 18572 conftest$ac_exeext conftest.$ac_ext 18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_blas_ok" >&5 18574$as_echo "$ax_blas_ok" >&6; } 18575 LIBS="$save_LIBS" 18576fi 18577 18578# BLAS in Alpha CXML library? 18579if test $ax_blas_ok = no; then 18580 as_ac_Lib=`$as_echo "ac_cv_lib_cxml_$sgemm" | $as_tr_sh` 18581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcxml" >&5 18582$as_echo_n "checking for $sgemm in -lcxml... " >&6; } 18583if eval \${$as_ac_Lib+:} false; then : 18584 $as_echo_n "(cached) " >&6 18585else 18586 ac_check_lib_save_LIBS=$LIBS 18587LIBS="-lcxml $LIBS" 18588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18589/* end confdefs.h. */ 18590 18591/* Override any GCC internal prototype to avoid an error. 18592 Use char because int might match the return type of a GCC 18593 builtin and then its argument prototype would still apply. */ 18594#ifdef __cplusplus 18595extern "C" 18596#endif 18597char $sgemm (); 18598#ifdef F77_DUMMY_MAIN 18599 18600# ifdef __cplusplus 18601 extern "C" 18602# endif 18603 int F77_DUMMY_MAIN() { return 1; } 18604 18605#endif 18606int 18607main () 18608{ 18609return $sgemm (); 18610 ; 18611 return 0; 18612} 18613_ACEOF 18614if ac_fn_c_try_link "$LINENO"; then : 18615 eval "$as_ac_Lib=yes" 18616else 18617 eval "$as_ac_Lib=no" 18618fi 18619rm -f core conftest.err conftest.$ac_objext \ 18620 conftest$ac_exeext conftest.$ac_ext 18621LIBS=$ac_check_lib_save_LIBS 18622fi 18623eval ac_res=\$$as_ac_Lib 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18625$as_echo "$ac_res" >&6; } 18626if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18627 ax_blas_ok=yes;BLAS_LIBS="-lcxml" 18628fi 18629 18630fi 18631 18632# BLAS in Alpha DXML library? (now called CXML, see above) 18633if test $ax_blas_ok = no; then 18634 as_ac_Lib=`$as_echo "ac_cv_lib_dxml_$sgemm" | $as_tr_sh` 18635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -ldxml" >&5 18636$as_echo_n "checking for $sgemm in -ldxml... " >&6; } 18637if eval \${$as_ac_Lib+:} false; then : 18638 $as_echo_n "(cached) " >&6 18639else 18640 ac_check_lib_save_LIBS=$LIBS 18641LIBS="-ldxml $LIBS" 18642cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18643/* end confdefs.h. */ 18644 18645/* Override any GCC internal prototype to avoid an error. 18646 Use char because int might match the return type of a GCC 18647 builtin and then its argument prototype would still apply. */ 18648#ifdef __cplusplus 18649extern "C" 18650#endif 18651char $sgemm (); 18652#ifdef F77_DUMMY_MAIN 18653 18654# ifdef __cplusplus 18655 extern "C" 18656# endif 18657 int F77_DUMMY_MAIN() { return 1; } 18658 18659#endif 18660int 18661main () 18662{ 18663return $sgemm (); 18664 ; 18665 return 0; 18666} 18667_ACEOF 18668if ac_fn_c_try_link "$LINENO"; then : 18669 eval "$as_ac_Lib=yes" 18670else 18671 eval "$as_ac_Lib=no" 18672fi 18673rm -f core conftest.err conftest.$ac_objext \ 18674 conftest$ac_exeext conftest.$ac_ext 18675LIBS=$ac_check_lib_save_LIBS 18676fi 18677eval ac_res=\$$as_ac_Lib 18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18679$as_echo "$ac_res" >&6; } 18680if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18681 ax_blas_ok=yes;BLAS_LIBS="-ldxml" 18682fi 18683 18684fi 18685 18686# BLAS in Sun Performance library? 18687if test $ax_blas_ok = no; then 18688 if test "x$GCC" != xyes; then # only works with Sun CC 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5 18690$as_echo_n "checking for acosp in -lsunmath... " >&6; } 18691if ${ac_cv_lib_sunmath_acosp+:} false; then : 18692 $as_echo_n "(cached) " >&6 18693else 18694 ac_check_lib_save_LIBS=$LIBS 18695LIBS="-lsunmath $LIBS" 18696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18697/* end confdefs.h. */ 18698 18699/* Override any GCC internal prototype to avoid an error. 18700 Use char because int might match the return type of a GCC 18701 builtin and then its argument prototype would still apply. */ 18702#ifdef __cplusplus 18703extern "C" 18704#endif 18705char acosp (); 18706#ifdef F77_DUMMY_MAIN 18707 18708# ifdef __cplusplus 18709 extern "C" 18710# endif 18711 int F77_DUMMY_MAIN() { return 1; } 18712 18713#endif 18714int 18715main () 18716{ 18717return acosp (); 18718 ; 18719 return 0; 18720} 18721_ACEOF 18722if ac_fn_c_try_link "$LINENO"; then : 18723 ac_cv_lib_sunmath_acosp=yes 18724else 18725 ac_cv_lib_sunmath_acosp=no 18726fi 18727rm -f core conftest.err conftest.$ac_objext \ 18728 conftest$ac_exeext conftest.$ac_ext 18729LIBS=$ac_check_lib_save_LIBS 18730fi 18731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5 18732$as_echo "$ac_cv_lib_sunmath_acosp" >&6; } 18733if test "x$ac_cv_lib_sunmath_acosp" = xyes; then : 18734 as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh` 18735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsunperf" >&5 18736$as_echo_n "checking for $sgemm in -lsunperf... " >&6; } 18737if eval \${$as_ac_Lib+:} false; then : 18738 $as_echo_n "(cached) " >&6 18739else 18740 ac_check_lib_save_LIBS=$LIBS 18741LIBS="-lsunperf -lsunmath $LIBS" 18742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18743/* end confdefs.h. */ 18744 18745/* Override any GCC internal prototype to avoid an error. 18746 Use char because int might match the return type of a GCC 18747 builtin and then its argument prototype would still apply. */ 18748#ifdef __cplusplus 18749extern "C" 18750#endif 18751char $sgemm (); 18752#ifdef F77_DUMMY_MAIN 18753 18754# ifdef __cplusplus 18755 extern "C" 18756# endif 18757 int F77_DUMMY_MAIN() { return 1; } 18758 18759#endif 18760int 18761main () 18762{ 18763return $sgemm (); 18764 ; 18765 return 0; 18766} 18767_ACEOF 18768if ac_fn_c_try_link "$LINENO"; then : 18769 eval "$as_ac_Lib=yes" 18770else 18771 eval "$as_ac_Lib=no" 18772fi 18773rm -f core conftest.err conftest.$ac_objext \ 18774 conftest$ac_exeext conftest.$ac_ext 18775LIBS=$ac_check_lib_save_LIBS 18776fi 18777eval ac_res=\$$as_ac_Lib 18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18779$as_echo "$ac_res" >&6; } 18780if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18781 BLAS_LIBS="-xlic_lib=sunperf -lsunmath" 18782 ax_blas_ok=yes 18783fi 18784 18785fi 18786 18787 fi 18788fi 18789 18790# BLAS in SCSL library? (SGI/Cray Scientific Library) 18791if test $ax_blas_ok = no; then 18792 as_ac_Lib=`$as_echo "ac_cv_lib_scs_$sgemm" | $as_tr_sh` 18793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lscs" >&5 18794$as_echo_n "checking for $sgemm in -lscs... " >&6; } 18795if eval \${$as_ac_Lib+:} false; then : 18796 $as_echo_n "(cached) " >&6 18797else 18798 ac_check_lib_save_LIBS=$LIBS 18799LIBS="-lscs $LIBS" 18800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18801/* end confdefs.h. */ 18802 18803/* Override any GCC internal prototype to avoid an error. 18804 Use char because int might match the return type of a GCC 18805 builtin and then its argument prototype would still apply. */ 18806#ifdef __cplusplus 18807extern "C" 18808#endif 18809char $sgemm (); 18810#ifdef F77_DUMMY_MAIN 18811 18812# ifdef __cplusplus 18813 extern "C" 18814# endif 18815 int F77_DUMMY_MAIN() { return 1; } 18816 18817#endif 18818int 18819main () 18820{ 18821return $sgemm (); 18822 ; 18823 return 0; 18824} 18825_ACEOF 18826if ac_fn_c_try_link "$LINENO"; then : 18827 eval "$as_ac_Lib=yes" 18828else 18829 eval "$as_ac_Lib=no" 18830fi 18831rm -f core conftest.err conftest.$ac_objext \ 18832 conftest$ac_exeext conftest.$ac_ext 18833LIBS=$ac_check_lib_save_LIBS 18834fi 18835eval ac_res=\$$as_ac_Lib 18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18837$as_echo "$ac_res" >&6; } 18838if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18839 ax_blas_ok=yes; BLAS_LIBS="-lscs" 18840fi 18841 18842fi 18843 18844# BLAS in SGIMATH library? 18845if test $ax_blas_ok = no; then 18846 as_ac_Lib=`$as_echo "ac_cv_lib_complib.sgimath_$sgemm" | $as_tr_sh` 18847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcomplib.sgimath" >&5 18848$as_echo_n "checking for $sgemm in -lcomplib.sgimath... " >&6; } 18849if eval \${$as_ac_Lib+:} false; then : 18850 $as_echo_n "(cached) " >&6 18851else 18852 ac_check_lib_save_LIBS=$LIBS 18853LIBS="-lcomplib.sgimath $LIBS" 18854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18855/* end confdefs.h. */ 18856 18857/* Override any GCC internal prototype to avoid an error. 18858 Use char because int might match the return type of a GCC 18859 builtin and then its argument prototype would still apply. */ 18860#ifdef __cplusplus 18861extern "C" 18862#endif 18863char $sgemm (); 18864#ifdef F77_DUMMY_MAIN 18865 18866# ifdef __cplusplus 18867 extern "C" 18868# endif 18869 int F77_DUMMY_MAIN() { return 1; } 18870 18871#endif 18872int 18873main () 18874{ 18875return $sgemm (); 18876 ; 18877 return 0; 18878} 18879_ACEOF 18880if ac_fn_c_try_link "$LINENO"; then : 18881 eval "$as_ac_Lib=yes" 18882else 18883 eval "$as_ac_Lib=no" 18884fi 18885rm -f core conftest.err conftest.$ac_objext \ 18886 conftest$ac_exeext conftest.$ac_ext 18887LIBS=$ac_check_lib_save_LIBS 18888fi 18889eval ac_res=\$$as_ac_Lib 18890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18891$as_echo "$ac_res" >&6; } 18892if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18893 ax_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath" 18894fi 18895 18896fi 18897 18898# BLAS in IBM ESSL library? (requires generic BLAS lib, too) 18899if test $ax_blas_ok = no; then 18900 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` 18901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5 18902$as_echo_n "checking for $sgemm in -lblas... " >&6; } 18903if eval \${$as_ac_Lib+:} false; then : 18904 $as_echo_n "(cached) " >&6 18905else 18906 ac_check_lib_save_LIBS=$LIBS 18907LIBS="-lblas $LIBS" 18908cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18909/* end confdefs.h. */ 18910 18911/* Override any GCC internal prototype to avoid an error. 18912 Use char because int might match the return type of a GCC 18913 builtin and then its argument prototype would still apply. */ 18914#ifdef __cplusplus 18915extern "C" 18916#endif 18917char $sgemm (); 18918#ifdef F77_DUMMY_MAIN 18919 18920# ifdef __cplusplus 18921 extern "C" 18922# endif 18923 int F77_DUMMY_MAIN() { return 1; } 18924 18925#endif 18926int 18927main () 18928{ 18929return $sgemm (); 18930 ; 18931 return 0; 18932} 18933_ACEOF 18934if ac_fn_c_try_link "$LINENO"; then : 18935 eval "$as_ac_Lib=yes" 18936else 18937 eval "$as_ac_Lib=no" 18938fi 18939rm -f core conftest.err conftest.$ac_objext \ 18940 conftest$ac_exeext conftest.$ac_ext 18941LIBS=$ac_check_lib_save_LIBS 18942fi 18943eval ac_res=\$$as_ac_Lib 18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18945$as_echo "$ac_res" >&6; } 18946if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18947 as_ac_Lib=`$as_echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh` 18948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lessl" >&5 18949$as_echo_n "checking for $sgemm in -lessl... " >&6; } 18950if eval \${$as_ac_Lib+:} false; then : 18951 $as_echo_n "(cached) " >&6 18952else 18953 ac_check_lib_save_LIBS=$LIBS 18954LIBS="-lessl -lblas $FLIBS $LIBS" 18955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18956/* end confdefs.h. */ 18957 18958/* Override any GCC internal prototype to avoid an error. 18959 Use char because int might match the return type of a GCC 18960 builtin and then its argument prototype would still apply. */ 18961#ifdef __cplusplus 18962extern "C" 18963#endif 18964char $sgemm (); 18965#ifdef F77_DUMMY_MAIN 18966 18967# ifdef __cplusplus 18968 extern "C" 18969# endif 18970 int F77_DUMMY_MAIN() { return 1; } 18971 18972#endif 18973int 18974main () 18975{ 18976return $sgemm (); 18977 ; 18978 return 0; 18979} 18980_ACEOF 18981if ac_fn_c_try_link "$LINENO"; then : 18982 eval "$as_ac_Lib=yes" 18983else 18984 eval "$as_ac_Lib=no" 18985fi 18986rm -f core conftest.err conftest.$ac_objext \ 18987 conftest$ac_exeext conftest.$ac_ext 18988LIBS=$ac_check_lib_save_LIBS 18989fi 18990eval ac_res=\$$as_ac_Lib 18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18992$as_echo "$ac_res" >&6; } 18993if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18994 ax_blas_ok=yes; BLAS_LIBS="-lessl -lblas" 18995fi 18996 18997fi 18998 18999fi 19000 19001# Generic BLAS library? 19002if test $ax_blas_ok = no; then 19003 as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh` 19004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5 19005$as_echo_n "checking for $sgemm in -lblas... " >&6; } 19006if eval \${$as_ac_Lib+:} false; then : 19007 $as_echo_n "(cached) " >&6 19008else 19009 ac_check_lib_save_LIBS=$LIBS 19010LIBS="-lblas $LIBS" 19011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19012/* end confdefs.h. */ 19013 19014/* Override any GCC internal prototype to avoid an error. 19015 Use char because int might match the return type of a GCC 19016 builtin and then its argument prototype would still apply. */ 19017#ifdef __cplusplus 19018extern "C" 19019#endif 19020char $sgemm (); 19021#ifdef F77_DUMMY_MAIN 19022 19023# ifdef __cplusplus 19024 extern "C" 19025# endif 19026 int F77_DUMMY_MAIN() { return 1; } 19027 19028#endif 19029int 19030main () 19031{ 19032return $sgemm (); 19033 ; 19034 return 0; 19035} 19036_ACEOF 19037if ac_fn_c_try_link "$LINENO"; then : 19038 eval "$as_ac_Lib=yes" 19039else 19040 eval "$as_ac_Lib=no" 19041fi 19042rm -f core conftest.err conftest.$ac_objext \ 19043 conftest$ac_exeext conftest.$ac_ext 19044LIBS=$ac_check_lib_save_LIBS 19045fi 19046eval ac_res=\$$as_ac_Lib 19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19048$as_echo "$ac_res" >&6; } 19049if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19050 ax_blas_ok=yes; BLAS_LIBS="-lblas" 19051fi 19052 19053fi 19054 19055 19056 19057LIBS="$ax_blas_save_LIBS" 19058 19059# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 19060if test x"$ax_blas_ok" = xyes; then 19061 19062$as_echo "#define HAVE_BLAS 1" >>confdefs.h 19063 19064 : 19065else 19066 ax_blas_ok=no 19067 as_fn_error $? "BLAS was not found!" "$LINENO" 5 19068fi 19069 19070 19071 19072ax_lapack_ok=no 19073 19074 19075# Check whether --with-lapack was given. 19076if test "${with_lapack+set}" = set; then : 19077 withval=$with_lapack; 19078fi 19079 19080case $with_lapack in 19081 yes | "") ;; 19082 no) ax_lapack_ok=disable ;; 19083 -* | */* | *.a | *.so | *.so.* | *.o) LAPACK_LIBS="$with_lapack" ;; 19084 *) LAPACK_LIBS="-l$with_lapack" ;; 19085esac 19086 19087# Get fortran linker name of LAPACK function to check for. 19088ac_ext=f 19089ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 19090ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19091ac_compiler_gnu=$ac_cv_f77_compiler_gnu 19092case $ac_cv_f77_mangling in 19093 upper*) ac_val="CHEEV" ;; 19094 lower*) ac_val="cheev" ;; 19095 *) ac_val="unknown" ;; 19096esac 19097case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 19098 19099cheev="$ac_val" 19100 19101ac_ext=c 19102ac_cpp='$CPP $CPPFLAGS' 19103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19105ac_compiler_gnu=$ac_cv_c_compiler_gnu 19106 19107 19108# We cannot use LAPACK if BLAS is not found 19109if test "x$ax_blas_ok" != xyes; then 19110 ax_lapack_ok=noblas 19111 LAPACK_LIBS="" 19112fi 19113 19114# First, check LAPACK_LIBS environment variable 19115if test "x$LAPACK_LIBS" != x; then 19116 save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" 19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5 19118$as_echo_n "checking for $cheev in $LAPACK_LIBS... " >&6; } 19119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19120/* end confdefs.h. */ 19121 19122/* Override any GCC internal prototype to avoid an error. 19123 Use char because int might match the return type of a GCC 19124 builtin and then its argument prototype would still apply. */ 19125#ifdef __cplusplus 19126extern "C" 19127#endif 19128char $cheev (); 19129#ifdef F77_DUMMY_MAIN 19130 19131# ifdef __cplusplus 19132 extern "C" 19133# endif 19134 int F77_DUMMY_MAIN() { return 1; } 19135 19136#endif 19137int 19138main () 19139{ 19140return $cheev (); 19141 ; 19142 return 0; 19143} 19144_ACEOF 19145if ac_fn_c_try_link "$LINENO"; then : 19146 ax_lapack_ok=yes 19147else 19148 LAPACK_LIBS="" 19149fi 19150rm -f core conftest.err conftest.$ac_objext \ 19151 conftest$ac_exeext conftest.$ac_ext 19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_lapack_ok" >&5 19153$as_echo "$ax_lapack_ok" >&6; } 19154 LIBS="$save_LIBS" 19155 if test $ax_lapack_ok = no; then 19156 LAPACK_LIBS="" 19157 fi 19158fi 19159 19160# LAPACK linked to by default? (is sometimes included in BLAS lib) 19161if test $ax_lapack_ok = no; then 19162 save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS" 19163 as_ac_var=`$as_echo "ac_cv_func_$cheev" | $as_tr_sh` 19164ac_fn_c_check_func "$LINENO" "$cheev" "$as_ac_var" 19165if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19166 ax_lapack_ok=yes 19167fi 19168 19169 LIBS="$save_LIBS" 19170fi 19171 19172# Generic LAPACK library? 19173for lapack in lapack lapack_rs6k; do 19174 if test $ax_lapack_ok = no; then 19175 save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" 19176 as_ac_Lib=`$as_echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh` 19177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5 19178$as_echo_n "checking for $cheev in -l$lapack... " >&6; } 19179if eval \${$as_ac_Lib+:} false; then : 19180 $as_echo_n "(cached) " >&6 19181else 19182 ac_check_lib_save_LIBS=$LIBS 19183LIBS="-l$lapack $FLIBS $LIBS" 19184cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19185/* end confdefs.h. */ 19186 19187/* Override any GCC internal prototype to avoid an error. 19188 Use char because int might match the return type of a GCC 19189 builtin and then its argument prototype would still apply. */ 19190#ifdef __cplusplus 19191extern "C" 19192#endif 19193char $cheev (); 19194#ifdef F77_DUMMY_MAIN 19195 19196# ifdef __cplusplus 19197 extern "C" 19198# endif 19199 int F77_DUMMY_MAIN() { return 1; } 19200 19201#endif 19202int 19203main () 19204{ 19205return $cheev (); 19206 ; 19207 return 0; 19208} 19209_ACEOF 19210if ac_fn_c_try_link "$LINENO"; then : 19211 eval "$as_ac_Lib=yes" 19212else 19213 eval "$as_ac_Lib=no" 19214fi 19215rm -f core conftest.err conftest.$ac_objext \ 19216 conftest$ac_exeext conftest.$ac_ext 19217LIBS=$ac_check_lib_save_LIBS 19218fi 19219eval ac_res=\$$as_ac_Lib 19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19221$as_echo "$ac_res" >&6; } 19222if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19223 ax_lapack_ok=yes; LAPACK_LIBS="-l$lapack" 19224fi 19225 19226 LIBS="$save_LIBS" 19227 fi 19228done 19229 19230 19231 19232# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 19233if test x"$ax_lapack_ok" = xyes; then 19234 19235$as_echo "#define HAVE_LAPACK 1" >>confdefs.h 19236 19237 : 19238else 19239 ax_lapack_ok=no 19240 as_fn_error $? "LAPACK was not found!" "$LINENO" 5 19241fi 19242 19243 19244LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" 19245 19246############################################################################## 19247# Check for MPI library 19248 19249if test "x$with_mpi" = "xyes"; then 19250 19251 19252 19253 19254 19255 for ac_prog in mpicc hcc mpxlc_r mpxlc mpcc cmpicc 19256do 19257 # Extract the first word of "$ac_prog", so it can be a program name with args. 19258set dummy $ac_prog; ac_word=$2 19259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19260$as_echo_n "checking for $ac_word... " >&6; } 19261if ${ac_cv_prog_MPICC+:} false; then : 19262 $as_echo_n "(cached) " >&6 19263else 19264 if test -n "$MPICC"; then 19265 ac_cv_prog_MPICC="$MPICC" # Let the user override the test. 19266else 19267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19268for as_dir in $PATH 19269do 19270 IFS=$as_save_IFS 19271 test -z "$as_dir" && as_dir=. 19272 for ac_exec_ext in '' $ac_executable_extensions; do 19273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19274 ac_cv_prog_MPICC="$ac_prog" 19275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19276 break 2 19277 fi 19278done 19279 done 19280IFS=$as_save_IFS 19281 19282fi 19283fi 19284MPICC=$ac_cv_prog_MPICC 19285if test -n "$MPICC"; then 19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5 19287$as_echo "$MPICC" >&6; } 19288else 19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19290$as_echo "no" >&6; } 19291fi 19292 19293 19294 test -n "$MPICC" && break 19295done 19296test -n "$MPICC" || MPICC="$CC" 19297 19298 ax_mpi_save_CC="$CC" 19299 CC="$MPICC" 19300 19301 19302 19303if test x = x"$MPILIBS"; then 19304 ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init" 19305if test "x$ac_cv_func_MPI_Init" = xyes; then : 19306 MPILIBS=" " 19307fi 19308 19309fi 19310 19311if test x = x"$MPILIBS"; then 19312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5 19313$as_echo_n "checking for MPI_Init in -lmpi... " >&6; } 19314if ${ac_cv_lib_mpi_MPI_Init+:} false; then : 19315 $as_echo_n "(cached) " >&6 19316else 19317 ac_check_lib_save_LIBS=$LIBS 19318LIBS="-lmpi $LIBS" 19319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19320/* end confdefs.h. */ 19321 19322/* Override any GCC internal prototype to avoid an error. 19323 Use char because int might match the return type of a GCC 19324 builtin and then its argument prototype would still apply. */ 19325#ifdef __cplusplus 19326extern "C" 19327#endif 19328char MPI_Init (); 19329#ifdef F77_DUMMY_MAIN 19330 19331# ifdef __cplusplus 19332 extern "C" 19333# endif 19334 int F77_DUMMY_MAIN() { return 1; } 19335 19336#endif 19337int 19338main () 19339{ 19340return MPI_Init (); 19341 ; 19342 return 0; 19343} 19344_ACEOF 19345if ac_fn_c_try_link "$LINENO"; then : 19346 ac_cv_lib_mpi_MPI_Init=yes 19347else 19348 ac_cv_lib_mpi_MPI_Init=no 19349fi 19350rm -f core conftest.err conftest.$ac_objext \ 19351 conftest$ac_exeext conftest.$ac_ext 19352LIBS=$ac_check_lib_save_LIBS 19353fi 19354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5 19355$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; } 19356if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then : 19357 MPILIBS="-lmpi" 19358fi 19359 19360fi 19361if test x = x"$MPILIBS"; then 19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5 19363$as_echo_n "checking for MPI_Init in -lmpich... " >&6; } 19364if ${ac_cv_lib_mpich_MPI_Init+:} false; then : 19365 $as_echo_n "(cached) " >&6 19366else 19367 ac_check_lib_save_LIBS=$LIBS 19368LIBS="-lmpich $LIBS" 19369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19370/* end confdefs.h. */ 19371 19372/* Override any GCC internal prototype to avoid an error. 19373 Use char because int might match the return type of a GCC 19374 builtin and then its argument prototype would still apply. */ 19375#ifdef __cplusplus 19376extern "C" 19377#endif 19378char MPI_Init (); 19379#ifdef F77_DUMMY_MAIN 19380 19381# ifdef __cplusplus 19382 extern "C" 19383# endif 19384 int F77_DUMMY_MAIN() { return 1; } 19385 19386#endif 19387int 19388main () 19389{ 19390return MPI_Init (); 19391 ; 19392 return 0; 19393} 19394_ACEOF 19395if ac_fn_c_try_link "$LINENO"; then : 19396 ac_cv_lib_mpich_MPI_Init=yes 19397else 19398 ac_cv_lib_mpich_MPI_Init=no 19399fi 19400rm -f core conftest.err conftest.$ac_objext \ 19401 conftest$ac_exeext conftest.$ac_ext 19402LIBS=$ac_check_lib_save_LIBS 19403fi 19404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5 19405$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; } 19406if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then : 19407 MPILIBS="-lmpich" 19408fi 19409 19410fi 19411 19412if test x != x"$MPILIBS"; then 19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5 19414$as_echo_n "checking for mpi.h... " >&6; } 19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19416/* end confdefs.h. */ 19417#include <mpi.h> 19418#ifdef F77_DUMMY_MAIN 19419 19420# ifdef __cplusplus 19421 extern "C" 19422# endif 19423 int F77_DUMMY_MAIN() { return 1; } 19424 19425#endif 19426int 19427main () 19428{ 19429 19430 ; 19431 return 0; 19432} 19433_ACEOF 19434if ac_fn_c_try_compile "$LINENO"; then : 19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19436$as_echo "yes" >&6; } 19437else 19438 MPILIBS="" 19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19440$as_echo "no" >&6; } 19441fi 19442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19443fi 19444 19445CC="$ax_mpi_save_CC" 19446 19447 19448 19449# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 19450if test x = x"$MPILIBS"; then 19451 as_fn_error $? "could not find mpi library for --with-mpi" "$LINENO" 5 19452 : 19453else 19454 19455$as_echo "#define HAVE_MPI 1" >>confdefs.h 19456 19457 : 19458fi 19459 19460 CC="$MPICC" 19461 LIBS="$MPILIBS $LIBS" 19462 19463 # Make installed program mpb-mpi instead of mpb 19464 MPB_SUFFIX="${MPB_SUFFIX}_mpi" 19465 19466 # Check for fftw_mpi library. 19467 if test "$enable_single" = "yes"; then 19468 as_ac_Lib=`$as_echo "ac_cv_lib_fftw3f_mpi_fftwf_mpi_${fftw3_func}_dft" | $as_tr_sh` 19469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwf_mpi_${fftw3_func}_dft in -lfftw3f_mpi" >&5 19470$as_echo_n "checking for fftwf_mpi_${fftw3_func}_dft in -lfftw3f_mpi... " >&6; } 19471if eval \${$as_ac_Lib+:} false; then : 19472 $as_echo_n "(cached) " >&6 19473else 19474 ac_check_lib_save_LIBS=$LIBS 19475LIBS="-lfftw3f_mpi $LIBS" 19476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19477/* end confdefs.h. */ 19478 19479/* Override any GCC internal prototype to avoid an error. 19480 Use char because int might match the return type of a GCC 19481 builtin and then its argument prototype would still apply. */ 19482#ifdef __cplusplus 19483extern "C" 19484#endif 19485char fftwf_mpi_${fftw3_func}_dft (); 19486#ifdef F77_DUMMY_MAIN 19487 19488# ifdef __cplusplus 19489 extern "C" 19490# endif 19491 int F77_DUMMY_MAIN() { return 1; } 19492 19493#endif 19494int 19495main () 19496{ 19497return fftwf_mpi_${fftw3_func}_dft (); 19498 ; 19499 return 0; 19500} 19501_ACEOF 19502if ac_fn_c_try_link "$LINENO"; then : 19503 eval "$as_ac_Lib=yes" 19504else 19505 eval "$as_ac_Lib=no" 19506fi 19507rm -f core conftest.err conftest.$ac_objext \ 19508 conftest$ac_exeext conftest.$ac_ext 19509LIBS=$ac_check_lib_save_LIBS 19510fi 19511eval ac_res=\$$as_ac_Lib 19512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19513$as_echo "$ac_res" >&6; } 19514if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19515 cat >>confdefs.h <<_ACEOF 19516#define HAVE_LIBFFTW3F_MPI 1 19517_ACEOF 19518 19519 LIBS="-lfftw3f_mpi $LIBS" 19520 19521else 19522 19523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_mpi in -lsfftw_mpi" >&5 19524$as_echo_n "checking for fftwnd_mpi in -lsfftw_mpi... " >&6; } 19525if ${ac_cv_lib_sfftw_mpi_fftwnd_mpi+:} false; then : 19526 $as_echo_n "(cached) " >&6 19527else 19528 ac_check_lib_save_LIBS=$LIBS 19529LIBS="-lsfftw_mpi $LIBS" 19530cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19531/* end confdefs.h. */ 19532 19533/* Override any GCC internal prototype to avoid an error. 19534 Use char because int might match the return type of a GCC 19535 builtin and then its argument prototype would still apply. */ 19536#ifdef __cplusplus 19537extern "C" 19538#endif 19539char fftwnd_mpi (); 19540#ifdef F77_DUMMY_MAIN 19541 19542# ifdef __cplusplus 19543 extern "C" 19544# endif 19545 int F77_DUMMY_MAIN() { return 1; } 19546 19547#endif 19548int 19549main () 19550{ 19551return fftwnd_mpi (); 19552 ; 19553 return 0; 19554} 19555_ACEOF 19556if ac_fn_c_try_link "$LINENO"; then : 19557 ac_cv_lib_sfftw_mpi_fftwnd_mpi=yes 19558else 19559 ac_cv_lib_sfftw_mpi_fftwnd_mpi=no 19560fi 19561rm -f core conftest.err conftest.$ac_objext \ 19562 conftest$ac_exeext conftest.$ac_ext 19563LIBS=$ac_check_lib_save_LIBS 19564fi 19565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sfftw_mpi_fftwnd_mpi" >&5 19566$as_echo "$ac_cv_lib_sfftw_mpi_fftwnd_mpi" >&6; } 19567if test "x$ac_cv_lib_sfftw_mpi_fftwnd_mpi" = xyes; then : 19568 cat >>confdefs.h <<_ACEOF 19569#define HAVE_LIBSFFTW_MPI 1 19570_ACEOF 19571 19572 LIBS="-lsfftw_mpi $LIBS" 19573 19574fi 19575 19576 if test x"$inv_sym" = xyes; then 19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rfftwnd_mpi in -lsrfftw_mpi" >&5 19578$as_echo_n "checking for rfftwnd_mpi in -lsrfftw_mpi... " >&6; } 19579if ${ac_cv_lib_srfftw_mpi_rfftwnd_mpi+:} false; then : 19580 $as_echo_n "(cached) " >&6 19581else 19582 ac_check_lib_save_LIBS=$LIBS 19583LIBS="-lsrfftw_mpi $LIBS" 19584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19585/* end confdefs.h. */ 19586 19587/* Override any GCC internal prototype to avoid an error. 19588 Use char because int might match the return type of a GCC 19589 builtin and then its argument prototype would still apply. */ 19590#ifdef __cplusplus 19591extern "C" 19592#endif 19593char rfftwnd_mpi (); 19594#ifdef F77_DUMMY_MAIN 19595 19596# ifdef __cplusplus 19597 extern "C" 19598# endif 19599 int F77_DUMMY_MAIN() { return 1; } 19600 19601#endif 19602int 19603main () 19604{ 19605return rfftwnd_mpi (); 19606 ; 19607 return 0; 19608} 19609_ACEOF 19610if ac_fn_c_try_link "$LINENO"; then : 19611 ac_cv_lib_srfftw_mpi_rfftwnd_mpi=yes 19612else 19613 ac_cv_lib_srfftw_mpi_rfftwnd_mpi=no 19614fi 19615rm -f core conftest.err conftest.$ac_objext \ 19616 conftest$ac_exeext conftest.$ac_ext 19617LIBS=$ac_check_lib_save_LIBS 19618fi 19619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srfftw_mpi_rfftwnd_mpi" >&5 19620$as_echo "$ac_cv_lib_srfftw_mpi_rfftwnd_mpi" >&6; } 19621if test "x$ac_cv_lib_srfftw_mpi_rfftwnd_mpi" = xyes; then : 19622 cat >>confdefs.h <<_ACEOF 19623#define HAVE_LIBSRFFTW_MPI 1 19624_ACEOF 19625 19626 LIBS="-lsrfftw_mpi $LIBS" 19627 19628fi 19629 19630 fi 19631fi 19632 19633 elif test "$enable_long_double" = "yes"; then 19634 as_ac_Lib=`$as_echo "ac_cv_lib_fftw3l_mpi_fftwl_mpi_${fftw3_func}_dft" | $as_tr_sh` 19635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwl_mpi_${fftw3_func}_dft in -lfftw3l_mpi" >&5 19636$as_echo_n "checking for fftwl_mpi_${fftw3_func}_dft in -lfftw3l_mpi... " >&6; } 19637if eval \${$as_ac_Lib+:} false; then : 19638 $as_echo_n "(cached) " >&6 19639else 19640 ac_check_lib_save_LIBS=$LIBS 19641LIBS="-lfftw3l_mpi $LIBS" 19642cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19643/* end confdefs.h. */ 19644 19645/* Override any GCC internal prototype to avoid an error. 19646 Use char because int might match the return type of a GCC 19647 builtin and then its argument prototype would still apply. */ 19648#ifdef __cplusplus 19649extern "C" 19650#endif 19651char fftwl_mpi_${fftw3_func}_dft (); 19652#ifdef F77_DUMMY_MAIN 19653 19654# ifdef __cplusplus 19655 extern "C" 19656# endif 19657 int F77_DUMMY_MAIN() { return 1; } 19658 19659#endif 19660int 19661main () 19662{ 19663return fftwl_mpi_${fftw3_func}_dft (); 19664 ; 19665 return 0; 19666} 19667_ACEOF 19668if ac_fn_c_try_link "$LINENO"; then : 19669 eval "$as_ac_Lib=yes" 19670else 19671 eval "$as_ac_Lib=no" 19672fi 19673rm -f core conftest.err conftest.$ac_objext \ 19674 conftest$ac_exeext conftest.$ac_ext 19675LIBS=$ac_check_lib_save_LIBS 19676fi 19677eval ac_res=\$$as_ac_Lib 19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19679$as_echo "$ac_res" >&6; } 19680if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19681 cat >>confdefs.h <<_ACEOF 19682#define HAVE_LIBFFTW3L_MPI 1 19683_ACEOF 19684 19685 LIBS="-lfftw3l_mpi $LIBS" 19686 19687else 19688 19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_mpi in -lxfftw_mpi" >&5 19690$as_echo_n "checking for fftwnd_mpi in -lxfftw_mpi... " >&6; } 19691if ${ac_cv_lib_xfftw_mpi_fftwnd_mpi+:} false; then : 19692 $as_echo_n "(cached) " >&6 19693else 19694 ac_check_lib_save_LIBS=$LIBS 19695LIBS="-lxfftw_mpi $LIBS" 19696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19697/* end confdefs.h. */ 19698 19699/* Override any GCC internal prototype to avoid an error. 19700 Use char because int might match the return type of a GCC 19701 builtin and then its argument prototype would still apply. */ 19702#ifdef __cplusplus 19703extern "C" 19704#endif 19705char fftwnd_mpi (); 19706#ifdef F77_DUMMY_MAIN 19707 19708# ifdef __cplusplus 19709 extern "C" 19710# endif 19711 int F77_DUMMY_MAIN() { return 1; } 19712 19713#endif 19714int 19715main () 19716{ 19717return fftwnd_mpi (); 19718 ; 19719 return 0; 19720} 19721_ACEOF 19722if ac_fn_c_try_link "$LINENO"; then : 19723 ac_cv_lib_xfftw_mpi_fftwnd_mpi=yes 19724else 19725 ac_cv_lib_xfftw_mpi_fftwnd_mpi=no 19726fi 19727rm -f core conftest.err conftest.$ac_objext \ 19728 conftest$ac_exeext conftest.$ac_ext 19729LIBS=$ac_check_lib_save_LIBS 19730fi 19731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xfftw_mpi_fftwnd_mpi" >&5 19732$as_echo "$ac_cv_lib_xfftw_mpi_fftwnd_mpi" >&6; } 19733if test "x$ac_cv_lib_xfftw_mpi_fftwnd_mpi" = xyes; then : 19734 cat >>confdefs.h <<_ACEOF 19735#define HAVE_LIBXFFTW_MPI 1 19736_ACEOF 19737 19738 LIBS="-lxfftw_mpi $LIBS" 19739 19740fi 19741 19742 if test x"$inv_sym" = xyes; then 19743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rfftwnd_mpi in -lxrfftw_mpi" >&5 19744$as_echo_n "checking for rfftwnd_mpi in -lxrfftw_mpi... " >&6; } 19745if ${ac_cv_lib_xrfftw_mpi_rfftwnd_mpi+:} false; then : 19746 $as_echo_n "(cached) " >&6 19747else 19748 ac_check_lib_save_LIBS=$LIBS 19749LIBS="-lxrfftw_mpi $LIBS" 19750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19751/* end confdefs.h. */ 19752 19753/* Override any GCC internal prototype to avoid an error. 19754 Use char because int might match the return type of a GCC 19755 builtin and then its argument prototype would still apply. */ 19756#ifdef __cplusplus 19757extern "C" 19758#endif 19759char rfftwnd_mpi (); 19760#ifdef F77_DUMMY_MAIN 19761 19762# ifdef __cplusplus 19763 extern "C" 19764# endif 19765 int F77_DUMMY_MAIN() { return 1; } 19766 19767#endif 19768int 19769main () 19770{ 19771return rfftwnd_mpi (); 19772 ; 19773 return 0; 19774} 19775_ACEOF 19776if ac_fn_c_try_link "$LINENO"; then : 19777 ac_cv_lib_xrfftw_mpi_rfftwnd_mpi=yes 19778else 19779 ac_cv_lib_xrfftw_mpi_rfftwnd_mpi=no 19780fi 19781rm -f core conftest.err conftest.$ac_objext \ 19782 conftest$ac_exeext conftest.$ac_ext 19783LIBS=$ac_check_lib_save_LIBS 19784fi 19785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xrfftw_mpi_rfftwnd_mpi" >&5 19786$as_echo "$ac_cv_lib_xrfftw_mpi_rfftwnd_mpi" >&6; } 19787if test "x$ac_cv_lib_xrfftw_mpi_rfftwnd_mpi" = xyes; then : 19788 cat >>confdefs.h <<_ACEOF 19789#define HAVE_LIBXRFFTW_MPI 1 19790_ACEOF 19791 19792 LIBS="-lxrfftw_mpi $LIBS" 19793 19794fi 19795 19796 fi 19797fi 19798 19799 else 19800 as_ac_Lib=`$as_echo "ac_cv_lib_fftw3_mpi_fftw_mpi_${fftw3_func}_dft" | $as_tr_sh` 19801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_mpi_${fftw3_func}_dft in -lfftw3_mpi" >&5 19802$as_echo_n "checking for fftw_mpi_${fftw3_func}_dft in -lfftw3_mpi... " >&6; } 19803if eval \${$as_ac_Lib+:} false; then : 19804 $as_echo_n "(cached) " >&6 19805else 19806 ac_check_lib_save_LIBS=$LIBS 19807LIBS="-lfftw3_mpi $LIBS" 19808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19809/* end confdefs.h. */ 19810 19811/* Override any GCC internal prototype to avoid an error. 19812 Use char because int might match the return type of a GCC 19813 builtin and then its argument prototype would still apply. */ 19814#ifdef __cplusplus 19815extern "C" 19816#endif 19817char fftw_mpi_${fftw3_func}_dft (); 19818#ifdef F77_DUMMY_MAIN 19819 19820# ifdef __cplusplus 19821 extern "C" 19822# endif 19823 int F77_DUMMY_MAIN() { return 1; } 19824 19825#endif 19826int 19827main () 19828{ 19829return fftw_mpi_${fftw3_func}_dft (); 19830 ; 19831 return 0; 19832} 19833_ACEOF 19834if ac_fn_c_try_link "$LINENO"; then : 19835 eval "$as_ac_Lib=yes" 19836else 19837 eval "$as_ac_Lib=no" 19838fi 19839rm -f core conftest.err conftest.$ac_objext \ 19840 conftest$ac_exeext conftest.$ac_ext 19841LIBS=$ac_check_lib_save_LIBS 19842fi 19843eval ac_res=\$$as_ac_Lib 19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19845$as_echo "$ac_res" >&6; } 19846if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 19847 cat >>confdefs.h <<_ACEOF 19848#define HAVE_LIBFFTW3_MPI 1 19849_ACEOF 19850 19851 LIBS="-lfftw3_mpi $LIBS" 19852 19853else 19854 19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_mpi in -ldfftw_mpi" >&5 19856$as_echo_n "checking for fftwnd_mpi in -ldfftw_mpi... " >&6; } 19857if ${ac_cv_lib_dfftw_mpi_fftwnd_mpi+:} false; then : 19858 $as_echo_n "(cached) " >&6 19859else 19860 ac_check_lib_save_LIBS=$LIBS 19861LIBS="-ldfftw_mpi $LIBS" 19862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19863/* end confdefs.h. */ 19864 19865/* Override any GCC internal prototype to avoid an error. 19866 Use char because int might match the return type of a GCC 19867 builtin and then its argument prototype would still apply. */ 19868#ifdef __cplusplus 19869extern "C" 19870#endif 19871char fftwnd_mpi (); 19872#ifdef F77_DUMMY_MAIN 19873 19874# ifdef __cplusplus 19875 extern "C" 19876# endif 19877 int F77_DUMMY_MAIN() { return 1; } 19878 19879#endif 19880int 19881main () 19882{ 19883return fftwnd_mpi (); 19884 ; 19885 return 0; 19886} 19887_ACEOF 19888if ac_fn_c_try_link "$LINENO"; then : 19889 ac_cv_lib_dfftw_mpi_fftwnd_mpi=yes 19890else 19891 ac_cv_lib_dfftw_mpi_fftwnd_mpi=no 19892fi 19893rm -f core conftest.err conftest.$ac_objext \ 19894 conftest$ac_exeext conftest.$ac_ext 19895LIBS=$ac_check_lib_save_LIBS 19896fi 19897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dfftw_mpi_fftwnd_mpi" >&5 19898$as_echo "$ac_cv_lib_dfftw_mpi_fftwnd_mpi" >&6; } 19899if test "x$ac_cv_lib_dfftw_mpi_fftwnd_mpi" = xyes; then : 19900 cat >>confdefs.h <<_ACEOF 19901#define HAVE_LIBDFFTW_MPI 1 19902_ACEOF 19903 19904 LIBS="-ldfftw_mpi $LIBS" 19905 19906fi 19907 19908 if test x"$inv_sym" = xyes; then 19909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rfftwnd_mpi in -ldrfftw_mpi" >&5 19910$as_echo_n "checking for rfftwnd_mpi in -ldrfftw_mpi... " >&6; } 19911if ${ac_cv_lib_drfftw_mpi_rfftwnd_mpi+:} false; then : 19912 $as_echo_n "(cached) " >&6 19913else 19914 ac_check_lib_save_LIBS=$LIBS 19915LIBS="-ldrfftw_mpi $LIBS" 19916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19917/* end confdefs.h. */ 19918 19919/* Override any GCC internal prototype to avoid an error. 19920 Use char because int might match the return type of a GCC 19921 builtin and then its argument prototype would still apply. */ 19922#ifdef __cplusplus 19923extern "C" 19924#endif 19925char rfftwnd_mpi (); 19926#ifdef F77_DUMMY_MAIN 19927 19928# ifdef __cplusplus 19929 extern "C" 19930# endif 19931 int F77_DUMMY_MAIN() { return 1; } 19932 19933#endif 19934int 19935main () 19936{ 19937return rfftwnd_mpi (); 19938 ; 19939 return 0; 19940} 19941_ACEOF 19942if ac_fn_c_try_link "$LINENO"; then : 19943 ac_cv_lib_drfftw_mpi_rfftwnd_mpi=yes 19944else 19945 ac_cv_lib_drfftw_mpi_rfftwnd_mpi=no 19946fi 19947rm -f core conftest.err conftest.$ac_objext \ 19948 conftest$ac_exeext conftest.$ac_ext 19949LIBS=$ac_check_lib_save_LIBS 19950fi 19951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_drfftw_mpi_rfftwnd_mpi" >&5 19952$as_echo "$ac_cv_lib_drfftw_mpi_rfftwnd_mpi" >&6; } 19953if test "x$ac_cv_lib_drfftw_mpi_rfftwnd_mpi" = xyes; then : 19954 cat >>confdefs.h <<_ACEOF 19955#define HAVE_LIBDRFFTW_MPI 1 19956_ACEOF 19957 19958 LIBS="-ldrfftw_mpi $LIBS" 19959 19960fi 19961 19962 fi 19963fi 19964 19965 fi 19966 if test x = x"`echo $LIBS | egrep 'l[ds]fftw_mpi|lfftw3f_mpi|lfftw3l_mpi|lfftw3_mpi'`"; then 19967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftwnd_mpi in -lfftw_mpi" >&5 19968$as_echo_n "checking for fftwnd_mpi in -lfftw_mpi... " >&6; } 19969if ${ac_cv_lib_fftw_mpi_fftwnd_mpi+:} false; then : 19970 $as_echo_n "(cached) " >&6 19971else 19972 ac_check_lib_save_LIBS=$LIBS 19973LIBS="-lfftw_mpi $LIBS" 19974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19975/* end confdefs.h. */ 19976 19977/* Override any GCC internal prototype to avoid an error. 19978 Use char because int might match the return type of a GCC 19979 builtin and then its argument prototype would still apply. */ 19980#ifdef __cplusplus 19981extern "C" 19982#endif 19983char fftwnd_mpi (); 19984#ifdef F77_DUMMY_MAIN 19985 19986# ifdef __cplusplus 19987 extern "C" 19988# endif 19989 int F77_DUMMY_MAIN() { return 1; } 19990 19991#endif 19992int 19993main () 19994{ 19995return fftwnd_mpi (); 19996 ; 19997 return 0; 19998} 19999_ACEOF 20000if ac_fn_c_try_link "$LINENO"; then : 20001 ac_cv_lib_fftw_mpi_fftwnd_mpi=yes 20002else 20003 ac_cv_lib_fftw_mpi_fftwnd_mpi=no 20004fi 20005rm -f core conftest.err conftest.$ac_objext \ 20006 conftest$ac_exeext conftest.$ac_ext 20007LIBS=$ac_check_lib_save_LIBS 20008fi 20009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw_mpi_fftwnd_mpi" >&5 20010$as_echo "$ac_cv_lib_fftw_mpi_fftwnd_mpi" >&6; } 20011if test "x$ac_cv_lib_fftw_mpi_fftwnd_mpi" = xyes; then : 20012 cat >>confdefs.h <<_ACEOF 20013#define HAVE_LIBFFTW_MPI 1 20014_ACEOF 20015 20016 LIBS="-lfftw_mpi $LIBS" 20017 20018fi 20019 20020 if test x"$inv_sym" = xyes; then 20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rfftwnd_mpi in -lrfftw_mpi" >&5 20022$as_echo_n "checking for rfftwnd_mpi in -lrfftw_mpi... " >&6; } 20023if ${ac_cv_lib_rfftw_mpi_rfftwnd_mpi+:} false; then : 20024 $as_echo_n "(cached) " >&6 20025else 20026 ac_check_lib_save_LIBS=$LIBS 20027LIBS="-lrfftw_mpi $LIBS" 20028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20029/* end confdefs.h. */ 20030 20031/* Override any GCC internal prototype to avoid an error. 20032 Use char because int might match the return type of a GCC 20033 builtin and then its argument prototype would still apply. */ 20034#ifdef __cplusplus 20035extern "C" 20036#endif 20037char rfftwnd_mpi (); 20038#ifdef F77_DUMMY_MAIN 20039 20040# ifdef __cplusplus 20041 extern "C" 20042# endif 20043 int F77_DUMMY_MAIN() { return 1; } 20044 20045#endif 20046int 20047main () 20048{ 20049return rfftwnd_mpi (); 20050 ; 20051 return 0; 20052} 20053_ACEOF 20054if ac_fn_c_try_link "$LINENO"; then : 20055 ac_cv_lib_rfftw_mpi_rfftwnd_mpi=yes 20056else 20057 ac_cv_lib_rfftw_mpi_rfftwnd_mpi=no 20058fi 20059rm -f core conftest.err conftest.$ac_objext \ 20060 conftest$ac_exeext conftest.$ac_ext 20061LIBS=$ac_check_lib_save_LIBS 20062fi 20063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rfftw_mpi_rfftwnd_mpi" >&5 20064$as_echo "$ac_cv_lib_rfftw_mpi_rfftwnd_mpi" >&6; } 20065if test "x$ac_cv_lib_rfftw_mpi_rfftwnd_mpi" = xyes; then : 20066 cat >>confdefs.h <<_ACEOF 20067#define HAVE_LIBRFFTW_MPI 1 20068_ACEOF 20069 20070 LIBS="-lrfftw_mpi $LIBS" 20071 20072fi 20073 20074 fi 20075 fi 20076 if test x = x"`echo $LIBS | egrep 'l[ds]*fftw_mpi|lfftw3f_mpi|lfftw3l_mpi|lfftw3_mpi'`"; then 20077 as_fn_error $? "couldn't find fftw MPI library for --with-mpi" "$LINENO" 5 20078 fi 20079 if test x"$inv_sym" = xyes; then 20080 if test x = x"`echo $LIBS | egrep 'l[ds]*rfftw_mpi|lfftw3l_mpi|lfftw3f_mpi|lfftw3_mpi'`"; then 20081 as_fn_error $? "couldn't find rfftw_mpi library for --with-mpi --with-inv-symmetry" "$LINENO" 5 20082 fi 20083 fi 20084 20085 20086$as_echo "#define HAVE_MPI 1" >>confdefs.h 20087 20088fi 20089 20090 if test "x$with_mpi" = "xyes"; then 20091 MPI_TRUE= 20092 MPI_FALSE='#' 20093else 20094 MPI_TRUE='#' 20095 MPI_FALSE= 20096fi 20097 20098 20099RUNCODE="" 20100if test "x$with_mpi" = "xyes"; then 20101 # Extract the first word of "mpirun", so it can be a program name with args. 20102set dummy mpirun; ac_word=$2 20103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20104$as_echo_n "checking for $ac_word... " >&6; } 20105if ${ac_cv_prog_MPIRUN+:} false; then : 20106 $as_echo_n "(cached) " >&6 20107else 20108 if test -n "$MPIRUN"; then 20109 ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test. 20110else 20111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20112for as_dir in $PATH 20113do 20114 IFS=$as_save_IFS 20115 test -z "$as_dir" && as_dir=. 20116 for ac_exec_ext in '' $ac_executable_extensions; do 20117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20118 ac_cv_prog_MPIRUN="mpirun" 20119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20120 break 2 20121 fi 20122done 20123 done 20124IFS=$as_save_IFS 20125 20126fi 20127fi 20128MPIRUN=$ac_cv_prog_MPIRUN 20129if test -n "$MPIRUN"; then 20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5 20131$as_echo "$MPIRUN" >&6; } 20132else 20133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20134$as_echo "no" >&6; } 20135fi 20136 20137 20138 # always use 2 processes for 'make check' 20139 RUNCODE="$MPIRUN -np 2" 20140fi 20141 20142 20143############################################################################## 20144# Check for HDF5 library 20145 20146# Check whether --with-hdf5 was given. 20147if test "${with_hdf5+set}" = set; then : 20148 withval=$with_hdf5; ok=$withval 20149else 20150 ok=yes 20151fi 20152 20153if test "$ok" = "yes"; then 20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 20155$as_echo_n "checking for deflate in -lz... " >&6; } 20156if ${ac_cv_lib_z_deflate+:} false; then : 20157 $as_echo_n "(cached) " >&6 20158else 20159 ac_check_lib_save_LIBS=$LIBS 20160LIBS="-lz $LIBS" 20161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20162/* end confdefs.h. */ 20163 20164/* Override any GCC internal prototype to avoid an error. 20165 Use char because int might match the return type of a GCC 20166 builtin and then its argument prototype would still apply. */ 20167#ifdef __cplusplus 20168extern "C" 20169#endif 20170char deflate (); 20171#ifdef F77_DUMMY_MAIN 20172 20173# ifdef __cplusplus 20174 extern "C" 20175# endif 20176 int F77_DUMMY_MAIN() { return 1; } 20177 20178#endif 20179int 20180main () 20181{ 20182return deflate (); 20183 ; 20184 return 0; 20185} 20186_ACEOF 20187if ac_fn_c_try_link "$LINENO"; then : 20188 ac_cv_lib_z_deflate=yes 20189else 20190 ac_cv_lib_z_deflate=no 20191fi 20192rm -f core conftest.err conftest.$ac_objext \ 20193 conftest$ac_exeext conftest.$ac_ext 20194LIBS=$ac_check_lib_save_LIBS 20195fi 20196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 20197$as_echo "$ac_cv_lib_z_deflate" >&6; } 20198if test "x$ac_cv_lib_z_deflate" = xyes; then : 20199 cat >>confdefs.h <<_ACEOF 20200#define HAVE_LIBZ 1 20201_ACEOF 20202 20203 LIBS="-lz $LIBS" 20204 20205else 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib is required for HDF5!" >&5 20207$as_echo "$as_me: WARNING: zlib is required for HDF5!" >&2;} 20208fi 20209 20210 20211 save_LIBS_0="$LIBS" # save, to check later if we found any library 20212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Pcreate in -lhdf5" >&5 20213$as_echo_n "checking for H5Pcreate in -lhdf5... " >&6; } 20214if ${ac_cv_lib_hdf5_H5Pcreate+:} false; then : 20215 $as_echo_n "(cached) " >&6 20216else 20217 ac_check_lib_save_LIBS=$LIBS 20218LIBS="-lhdf5 $LIBS" 20219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20220/* end confdefs.h. */ 20221 20222/* Override any GCC internal prototype to avoid an error. 20223 Use char because int might match the return type of a GCC 20224 builtin and then its argument prototype would still apply. */ 20225#ifdef __cplusplus 20226extern "C" 20227#endif 20228char H5Pcreate (); 20229#ifdef F77_DUMMY_MAIN 20230 20231# ifdef __cplusplus 20232 extern "C" 20233# endif 20234 int F77_DUMMY_MAIN() { return 1; } 20235 20236#endif 20237int 20238main () 20239{ 20240return H5Pcreate (); 20241 ; 20242 return 0; 20243} 20244_ACEOF 20245if ac_fn_c_try_link "$LINENO"; then : 20246 ac_cv_lib_hdf5_H5Pcreate=yes 20247else 20248 ac_cv_lib_hdf5_H5Pcreate=no 20249fi 20250rm -f core conftest.err conftest.$ac_objext \ 20251 conftest$ac_exeext conftest.$ac_ext 20252LIBS=$ac_check_lib_save_LIBS 20253fi 20254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Pcreate" >&5 20255$as_echo "$ac_cv_lib_hdf5_H5Pcreate" >&6; } 20256if test "x$ac_cv_lib_hdf5_H5Pcreate" = xyes; then : 20257 20258 for ac_header in hdf5.h 20259do : 20260 ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default" 20261if test "x$ac_cv_header_hdf5_h" = xyes; then : 20262 cat >>confdefs.h <<_ACEOF 20263#define HAVE_HDF5_H 1 20264_ACEOF 20265 LIBS="-lhdf5 $LIBS" 20266 20267$as_echo "#define HAVE_HDF5 1" >>confdefs.h 20268 20269fi 20270 20271done 20272 20273fi 20274 20275 if test x"$save_LIBS_0" = x"$LIBS"; then 20276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find the HDF5 library!! Switching to --without-hdf5." >&5 20277$as_echo "$as_me: WARNING: Couldn't find the HDF5 library!! Switching to --without-hdf5." >&2;} 20278 fi 20279 20280 if test x != x"$MPILIBS"; then 20281 for ac_func in H5Pset_mpi H5Pset_fapl_mpio 20282do : 20283 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20284ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20285if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20286 cat >>confdefs.h <<_ACEOF 20287#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20288_ACEOF 20289 20290fi 20291done 20292 20293 fi 20294fi 20295 20296############################################################################## 20297 20298 20299# Check whether --with-libctl was given. 20300if test "${with_libctl+set}" = set; then : 20301 withval=$with_libctl; with_libctl=$withval 20302else 20303 with_libctl=yes 20304fi 20305 20306if test "x$with_libctl" != "xyes" -a "x$with_libctl" != "xno"; then 20307 LIBCTL_DIR="$with_libctl" 20308 with_libctl=yes 20309fi 20310 20311 if test "x$with_libctl" != xno; then 20312 WITH_LIBCTL_TRUE= 20313 WITH_LIBCTL_FALSE='#' 20314else 20315 WITH_LIBCTL_TRUE='#' 20316 WITH_LIBCTL_FALSE= 20317fi 20318 20319 20320############################################################################## 20321# Check for Guile library and flags: 20322 20323if test "x$with_libctl" != xno; then 20324 20325save_LIBS=$LIBS 20326save_CPPFLAGS=$CPPFLAGS 20327 20328# Extract the first word of "guile", so it can be a program name with args. 20329set dummy guile; ac_word=$2 20330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20331$as_echo_n "checking for $ac_word... " >&6; } 20332if ${ac_cv_prog_guile_ok+:} false; then : 20333 $as_echo_n "(cached) " >&6 20334else 20335 if test -n "$guile_ok"; then 20336 ac_cv_prog_guile_ok="$guile_ok" # Let the user override the test. 20337else 20338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20339for as_dir in $PATH 20340do 20341 IFS=$as_save_IFS 20342 test -z "$as_dir" && as_dir=. 20343 for ac_exec_ext in '' $ac_executable_extensions; do 20344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20345 ac_cv_prog_guile_ok="yes" 20346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20347 break 2 20348 fi 20349done 20350 done 20351IFS=$as_save_IFS 20352 20353 test -z "$ac_cv_prog_guile_ok" && ac_cv_prog_guile_ok="no" 20354fi 20355fi 20356guile_ok=$ac_cv_prog_guile_ok 20357if test -n "$guile_ok"; then 20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guile_ok" >&5 20359$as_echo "$guile_ok" >&6; } 20360else 20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20362$as_echo "no" >&6; } 20363fi 20364 20365 20366if test x"$guile_ok" = xno; then 20367 as_fn_error $? "could not find guile program; check your PATH" "$LINENO" 5 20368fi 20369 20370# Extract the first word of "guile-config", so it can be a program name with args. 20371set dummy guile-config; ac_word=$2 20372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20373$as_echo_n "checking for $ac_word... " >&6; } 20374if ${ac_cv_prog_GUILE_CONFIG+:} false; then : 20375 $as_echo_n "(cached) " >&6 20376else 20377 if test -n "$GUILE_CONFIG"; then 20378 ac_cv_prog_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test. 20379else 20380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20381for as_dir in $PATH 20382do 20383 IFS=$as_save_IFS 20384 test -z "$as_dir" && as_dir=. 20385 for ac_exec_ext in '' $ac_executable_extensions; do 20386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20387 ac_cv_prog_GUILE_CONFIG="guile-config" 20388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20389 break 2 20390 fi 20391done 20392 done 20393IFS=$as_save_IFS 20394 20395 test -z "$ac_cv_prog_GUILE_CONFIG" && ac_cv_prog_GUILE_CONFIG="unknown" 20396fi 20397fi 20398GUILE_CONFIG=$ac_cv_prog_GUILE_CONFIG 20399if test -n "$GUILE_CONFIG"; then 20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5 20401$as_echo "$GUILE_CONFIG" >&6; } 20402else 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20404$as_echo "no" >&6; } 20405fi 20406 20407 20408if test "x$GUILE_CONFIG" = "xunknown"; then 20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 20410$as_echo_n "checking for readline in -lreadline... " >&6; } 20411if ${ac_cv_lib_readline_readline+:} false; then : 20412 $as_echo_n "(cached) " >&6 20413else 20414 ac_check_lib_save_LIBS=$LIBS 20415LIBS="-lreadline $LIBS" 20416cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20417/* end confdefs.h. */ 20418 20419/* Override any GCC internal prototype to avoid an error. 20420 Use char because int might match the return type of a GCC 20421 builtin and then its argument prototype would still apply. */ 20422#ifdef __cplusplus 20423extern "C" 20424#endif 20425char readline (); 20426#ifdef F77_DUMMY_MAIN 20427 20428# ifdef __cplusplus 20429 extern "C" 20430# endif 20431 int F77_DUMMY_MAIN() { return 1; } 20432 20433#endif 20434int 20435main () 20436{ 20437return readline (); 20438 ; 20439 return 0; 20440} 20441_ACEOF 20442if ac_fn_c_try_link "$LINENO"; then : 20443 ac_cv_lib_readline_readline=yes 20444else 20445 ac_cv_lib_readline_readline=no 20446fi 20447rm -f core conftest.err conftest.$ac_objext \ 20448 conftest$ac_exeext conftest.$ac_ext 20449LIBS=$ac_check_lib_save_LIBS 20450fi 20451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 20452$as_echo "$ac_cv_lib_readline_readline" >&6; } 20453if test "x$ac_cv_lib_readline_readline" = xyes; then : 20454 cat >>confdefs.h <<_ACEOF 20455#define HAVE_LIBREADLINE 1 20456_ACEOF 20457 20458 LIBS="-lreadline $LIBS" 20459 20460fi 20461 20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 20463$as_echo_n "checking for dlopen in -ldl... " >&6; } 20464if ${ac_cv_lib_dl_dlopen+:} false; then : 20465 $as_echo_n "(cached) " >&6 20466else 20467 ac_check_lib_save_LIBS=$LIBS 20468LIBS="-ldl $LIBS" 20469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20470/* end confdefs.h. */ 20471 20472/* Override any GCC internal prototype to avoid an error. 20473 Use char because int might match the return type of a GCC 20474 builtin and then its argument prototype would still apply. */ 20475#ifdef __cplusplus 20476extern "C" 20477#endif 20478char dlopen (); 20479#ifdef F77_DUMMY_MAIN 20480 20481# ifdef __cplusplus 20482 extern "C" 20483# endif 20484 int F77_DUMMY_MAIN() { return 1; } 20485 20486#endif 20487int 20488main () 20489{ 20490return dlopen (); 20491 ; 20492 return 0; 20493} 20494_ACEOF 20495if ac_fn_c_try_link "$LINENO"; then : 20496 ac_cv_lib_dl_dlopen=yes 20497else 20498 ac_cv_lib_dl_dlopen=no 20499fi 20500rm -f core conftest.err conftest.$ac_objext \ 20501 conftest$ac_exeext conftest.$ac_ext 20502LIBS=$ac_check_lib_save_LIBS 20503fi 20504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 20505$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 20506if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 20507 cat >>confdefs.h <<_ACEOF 20508#define HAVE_LIBDL 1 20509_ACEOF 20510 20511 LIBS="-ldl $LIBS" 20512 20513fi 20514 20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scm_lt_dlinit in -lguile-ltdl" >&5 20516$as_echo_n "checking for scm_lt_dlinit in -lguile-ltdl... " >&6; } 20517if ${ac_cv_lib_guile_ltdl_scm_lt_dlinit+:} false; then : 20518 $as_echo_n "(cached) " >&6 20519else 20520 ac_check_lib_save_LIBS=$LIBS 20521LIBS="-lguile-ltdl $LIBS" 20522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20523/* end confdefs.h. */ 20524 20525/* Override any GCC internal prototype to avoid an error. 20526 Use char because int might match the return type of a GCC 20527 builtin and then its argument prototype would still apply. */ 20528#ifdef __cplusplus 20529extern "C" 20530#endif 20531char scm_lt_dlinit (); 20532#ifdef F77_DUMMY_MAIN 20533 20534# ifdef __cplusplus 20535 extern "C" 20536# endif 20537 int F77_DUMMY_MAIN() { return 1; } 20538 20539#endif 20540int 20541main () 20542{ 20543return scm_lt_dlinit (); 20544 ; 20545 return 0; 20546} 20547_ACEOF 20548if ac_fn_c_try_link "$LINENO"; then : 20549 ac_cv_lib_guile_ltdl_scm_lt_dlinit=yes 20550else 20551 ac_cv_lib_guile_ltdl_scm_lt_dlinit=no 20552fi 20553rm -f core conftest.err conftest.$ac_objext \ 20554 conftest$ac_exeext conftest.$ac_ext 20555LIBS=$ac_check_lib_save_LIBS 20556fi 20557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_guile_ltdl_scm_lt_dlinit" >&5 20558$as_echo "$ac_cv_lib_guile_ltdl_scm_lt_dlinit" >&6; } 20559if test "x$ac_cv_lib_guile_ltdl_scm_lt_dlinit" = xyes; then : 20560 cat >>confdefs.h <<_ACEOF 20561#define HAVE_LIBGUILE_LTDL 1 20562_ACEOF 20563 20564 LIBS="-lguile-ltdl $LIBS" 20565 20566else 20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lltdl" >&5 20568$as_echo_n "checking for dlopen in -lltdl... " >&6; } 20569if ${ac_cv_lib_ltdl_dlopen+:} false; then : 20570 $as_echo_n "(cached) " >&6 20571else 20572 ac_check_lib_save_LIBS=$LIBS 20573LIBS="-lltdl $LIBS" 20574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20575/* end confdefs.h. */ 20576 20577/* Override any GCC internal prototype to avoid an error. 20578 Use char because int might match the return type of a GCC 20579 builtin and then its argument prototype would still apply. */ 20580#ifdef __cplusplus 20581extern "C" 20582#endif 20583char dlopen (); 20584#ifdef F77_DUMMY_MAIN 20585 20586# ifdef __cplusplus 20587 extern "C" 20588# endif 20589 int F77_DUMMY_MAIN() { return 1; } 20590 20591#endif 20592int 20593main () 20594{ 20595return dlopen (); 20596 ; 20597 return 0; 20598} 20599_ACEOF 20600if ac_fn_c_try_link "$LINENO"; then : 20601 ac_cv_lib_ltdl_dlopen=yes 20602else 20603 ac_cv_lib_ltdl_dlopen=no 20604fi 20605rm -f core conftest.err conftest.$ac_objext \ 20606 conftest$ac_exeext conftest.$ac_ext 20607LIBS=$ac_check_lib_save_LIBS 20608fi 20609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_dlopen" >&5 20610$as_echo "$ac_cv_lib_ltdl_dlopen" >&6; } 20611if test "x$ac_cv_lib_ltdl_dlopen" = xyes; then : 20612 cat >>confdefs.h <<_ACEOF 20613#define HAVE_LIBLTDL 1 20614_ACEOF 20615 20616 LIBS="-lltdl $LIBS" 20617 20618fi 20619 20620fi 20621 20622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gh_eval_str in -lguile" >&5 20623$as_echo_n "checking for gh_eval_str in -lguile... " >&6; } 20624if ${ac_cv_lib_guile_gh_eval_str+:} false; then : 20625 $as_echo_n "(cached) " >&6 20626else 20627 ac_check_lib_save_LIBS=$LIBS 20628LIBS="-lguile $LIBS" 20629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20630/* end confdefs.h. */ 20631 20632/* Override any GCC internal prototype to avoid an error. 20633 Use char because int might match the return type of a GCC 20634 builtin and then its argument prototype would still apply. */ 20635#ifdef __cplusplus 20636extern "C" 20637#endif 20638char gh_eval_str (); 20639#ifdef F77_DUMMY_MAIN 20640 20641# ifdef __cplusplus 20642 extern "C" 20643# endif 20644 int F77_DUMMY_MAIN() { return 1; } 20645 20646#endif 20647int 20648main () 20649{ 20650return gh_eval_str (); 20651 ; 20652 return 0; 20653} 20654_ACEOF 20655if ac_fn_c_try_link "$LINENO"; then : 20656 ac_cv_lib_guile_gh_eval_str=yes 20657else 20658 ac_cv_lib_guile_gh_eval_str=no 20659fi 20660rm -f core conftest.err conftest.$ac_objext \ 20661 conftest$ac_exeext conftest.$ac_ext 20662LIBS=$ac_check_lib_save_LIBS 20663fi 20664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_guile_gh_eval_str" >&5 20665$as_echo "$ac_cv_lib_guile_gh_eval_str" >&6; } 20666if test "x$ac_cv_lib_guile_gh_eval_str" = xyes; then : 20667 cat >>confdefs.h <<_ACEOF 20668#define HAVE_LIBGUILE 1 20669_ACEOF 20670 20671 LIBS="-lguile $LIBS" 20672 20673else 20674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scm_eval_string in -lguile" >&5 20675$as_echo_n "checking for scm_eval_string in -lguile... " >&6; } 20676if ${ac_cv_lib_guile_scm_eval_string+:} false; then : 20677 $as_echo_n "(cached) " >&6 20678else 20679 ac_check_lib_save_LIBS=$LIBS 20680LIBS="-lguile $LIBS" 20681cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20682/* end confdefs.h. */ 20683 20684/* Override any GCC internal prototype to avoid an error. 20685 Use char because int might match the return type of a GCC 20686 builtin and then its argument prototype would still apply. */ 20687#ifdef __cplusplus 20688extern "C" 20689#endif 20690char scm_eval_string (); 20691#ifdef F77_DUMMY_MAIN 20692 20693# ifdef __cplusplus 20694 extern "C" 20695# endif 20696 int F77_DUMMY_MAIN() { return 1; } 20697 20698#endif 20699int 20700main () 20701{ 20702return scm_eval_string (); 20703 ; 20704 return 0; 20705} 20706_ACEOF 20707if ac_fn_c_try_link "$LINENO"; then : 20708 ac_cv_lib_guile_scm_eval_string=yes 20709else 20710 ac_cv_lib_guile_scm_eval_string=no 20711fi 20712rm -f core conftest.err conftest.$ac_objext \ 20713 conftest$ac_exeext conftest.$ac_ext 20714LIBS=$ac_check_lib_save_LIBS 20715fi 20716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_guile_scm_eval_string" >&5 20717$as_echo "$ac_cv_lib_guile_scm_eval_string" >&6; } 20718if test "x$ac_cv_lib_guile_scm_eval_string" = xyes; then : 20719 cat >>confdefs.h <<_ACEOF 20720#define HAVE_LIBGUILE 1 20721_ACEOF 20722 20723 LIBS="-lguile $LIBS" 20724 20725else 20726 as_fn_error $? "linking to guile failed" "$LINENO" 5 20727fi 20728 20729fi 20730 20731 GUILE_LIBS="-lguile -lguile-ltdl -ldl -lreadline" 20732else 20733 GUILE_LIBS=`$GUILE_CONFIG link` 20734 GUILE_CPPFLAGS=`$GUILE_CONFIG compile` 20735 CPPFLAGS="$CPPFLAGS $GUILE_CPPFLAGS" 20736 LIBS="$GUILE_LIBS $LIBS" 20737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linking to guile works" >&5 20738$as_echo_n "checking if linking to guile works... " >&6; } 20739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20740/* end confdefs.h. */ 20741 20742/* Override any GCC internal prototype to avoid an error. 20743 Use char because int might match the return type of a GCC 20744 builtin and then its argument prototype would still apply. */ 20745#ifdef __cplusplus 20746extern "C" 20747#endif 20748char gh_enter (); 20749#ifdef F77_DUMMY_MAIN 20750 20751# ifdef __cplusplus 20752 extern "C" 20753# endif 20754 int F77_DUMMY_MAIN() { return 1; } 20755 20756#endif 20757int 20758main () 20759{ 20760return gh_enter (); 20761 ; 20762 return 0; 20763} 20764_ACEOF 20765if ac_fn_c_try_link "$LINENO"; then : 20766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20767$as_echo "yes" >&6; } 20768else 20769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20770/* end confdefs.h. */ 20771 20772/* Override any GCC internal prototype to avoid an error. 20773 Use char because int might match the return type of a GCC 20774 builtin and then its argument prototype would still apply. */ 20775#ifdef __cplusplus 20776extern "C" 20777#endif 20778char scm_boot_guile (); 20779#ifdef F77_DUMMY_MAIN 20780 20781# ifdef __cplusplus 20782 extern "C" 20783# endif 20784 int F77_DUMMY_MAIN() { return 1; } 20785 20786#endif 20787int 20788main () 20789{ 20790return scm_boot_guile (); 20791 ; 20792 return 0; 20793} 20794_ACEOF 20795if ac_fn_c_try_link "$LINENO"; then : 20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20797$as_echo "yes" >&6; } 20798else 20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20800$as_echo "no" >&6; } 20801 as_fn_error $? "guile-config is broken" "$LINENO" 5 20802fi 20803rm -f core conftest.err conftest.$ac_objext \ 20804 conftest$ac_exeext conftest.$ac_ext 20805fi 20806rm -f core conftest.err conftest.$ac_objext \ 20807 conftest$ac_exeext conftest.$ac_ext 20808fi 20809for ac_header in libguile.h guile/gh.h 20810do : 20811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 20812ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 20813if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 20814 cat >>confdefs.h <<_ACEOF 20815#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 20816_ACEOF 20817 20818fi 20819 20820done 20821 20822 20823# Check how smob types work in this Guile version: 20824 20825for ac_func in scm_make_smob_type scm_array_get_handle scm_is_array 20826do : 20827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20828ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20829if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20830 cat >>confdefs.h <<_ACEOF 20831#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20832_ACEOF 20833 20834fi 20835done 20836 20837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCM_SMOB_PREDICATE" >&5 20838$as_echo_n "checking for SCM_SMOB_PREDICATE... " >&6; } 20839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20840/* end confdefs.h. */ 20841#if defined(HAVE_LIBGUILE_H) 20842# include <libguile.h> 20843#else 20844# include <guile/gh.h> 20845# include <libguile/smob.h> 20846#endif 20847#ifdef F77_DUMMY_MAIN 20848 20849# ifdef __cplusplus 20850 extern "C" 20851# endif 20852 int F77_DUMMY_MAIN() { return 1; } 20853 20854#endif 20855int 20856main () 20857{ 20858int x; SCM_SMOB_PREDICATE(1,x); 20859 ; 20860 return 0; 20861} 20862_ACEOF 20863if ac_fn_c_try_link "$LINENO"; then : 20864 ok=yes 20865else 20866 ok=no 20867fi 20868rm -f core conftest.err conftest.$ac_objext \ 20869 conftest$ac_exeext conftest.$ac_ext 20870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 20871$as_echo "$ok" >&6; } 20872if test $ok = yes; then 20873 20874$as_echo "#define HAVE_SCM_SMOB_PREDICATE 1" >>confdefs.h 20875 20876fi 20877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCM_SMOB_DATA" >&5 20878$as_echo_n "checking for SCM_SMOB_DATA... " >&6; } 20879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20880/* end confdefs.h. */ 20881#if defined(HAVE_LIBGUILE_H) 20882# include <libguile.h> 20883#else 20884# include <guile/gh.h> 20885# include <libguile/smob.h> 20886#endif 20887#ifdef F77_DUMMY_MAIN 20888 20889# ifdef __cplusplus 20890 extern "C" 20891# endif 20892 int F77_DUMMY_MAIN() { return 1; } 20893 20894#endif 20895int 20896main () 20897{ 20898int x; SCM_SMOB_DATA(x); 20899 ; 20900 return 0; 20901} 20902_ACEOF 20903if ac_fn_c_try_link "$LINENO"; then : 20904 ok=yes 20905else 20906 ok=no 20907fi 20908rm -f core conftest.err conftest.$ac_objext \ 20909 conftest$ac_exeext conftest.$ac_ext 20910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 20911$as_echo "$ok" >&6; } 20912if test $ok = yes; then 20913 20914$as_echo "#define HAVE_SCM_SMOB_DATA 1" >>confdefs.h 20915 20916fi 20917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCM_NEWSMOB" >&5 20918$as_echo_n "checking for SCM_NEWSMOB... " >&6; } 20919cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20920/* end confdefs.h. */ 20921#if defined(HAVE_LIBGUILE_H) 20922# include <libguile.h> 20923#else 20924# include <guile/gh.h> 20925# include <libguile/smob.h> 20926#endif 20927#ifdef F77_DUMMY_MAIN 20928 20929# ifdef __cplusplus 20930 extern "C" 20931# endif 20932 int F77_DUMMY_MAIN() { return 1; } 20933 20934#endif 20935int 20936main () 20937{ 20938int x; SCM_NEWSMOB(x,1,0); 20939 ; 20940 return 0; 20941} 20942_ACEOF 20943if ac_fn_c_try_link "$LINENO"; then : 20944 ok=yes 20945else 20946 ok=no 20947fi 20948rm -f core conftest.err conftest.$ac_objext \ 20949 conftest$ac_exeext conftest.$ac_ext 20950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 20951$as_echo "$ok" >&6; } 20952if test $ok = yes; then 20953 20954$as_echo "#define HAVE_SCM_NEWSMOB 1" >>confdefs.h 20955 20956fi 20957 20958# Check how to activate Guile readline support: 20959 20960ACTIVATE_READLINE="" 20961if test "x$cross_compiling" = xno; then 20962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to activate readline in Guile" >&5 20963$as_echo_n "checking how to activate readline in Guile... " >&6; } 20964ractivate="(use-modules (readline-activator)) (activate-readline)" 20965if guile -c "$ractivate" > /dev/null 2>&1; then 20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: readline-activator" >&5 20967$as_echo "readline-activator" >&6; } 20968 ACTIVATE_READLINE="$ractivate" 20969else 20970 ractivate="(use-modules (ice-9 readline)) (activate-readline)" 20971 if guile -c "$ractivate" > /dev/null 2>&1; then 20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ice-9 readline" >&5 20973$as_echo "ice-9 readline" >&6; } 20974 ACTIVATE_READLINE="$ractivate" 20975 else 20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot" >&5 20977$as_echo "cannot" >&6; } 20978 ACTIVATE_READLINE="" 20979 fi 20980fi 20981fi 20982 20983 20984 20985 20986LIBS=$save_LIBS 20987CPPFLAGS=$save_CPPFLAGS 20988 20989fi # with_libctl 20990 20991############################################################################## 20992# Check for libctl library and files 20993 20994if test "x$with_libctl" != xno; then 20995 20996save_LIBS=$LIBS 20997save_CPPFLAGS=$CPPFLAGS 20998LIBS="$GUILE_LIBS $LIBS" 20999CPPFLAGS="$CPPFLAGS $GUILE_CPPFLAGS" 21000 21001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libctl dir" >&5 21002$as_echo_n "checking for libctl dir... " >&6; } 21003if test x != x"$LIBCTL_DIR" -a -r "$LIBCTL_DIR/share/libctl/base/ctl.scm"; then 21004 LIBCTL_DIR="$LIBCTL_DIR/share/libctl" 21005fi 21006if test x != x"$LIBCTL_DIR" -a ! -r "$LIBCTL_DIR/base/ctl.scm"; then 21007 LIBCTL_DIR="" 21008fi 21009if test x = x"$LIBCTL_DIR" -a -r /usr/local/share/libctl/base/ctl.scm; then 21010 LIBCTL_DIR="/usr/local/share/libctl" 21011fi 21012if test x = x"$LIBCTL_DIR" -a -r /usr/share/libctl3/base/ctl.scm; then 21013 LIBCTL_DIR="/usr/share/libctl3" 21014fi 21015if test x = x"$LIBCTL_DIR" -a -r /usr/share/libctl/base/ctl.scm; then 21016 LIBCTL_DIR="/usr/share/libctl" 21017fi 21018if test x = x"$LIBCTL_DIR"; then 21019 as_fn_error $? "could not find libctl files; use --with-libctl=<dir>" "$LINENO" 5 21020fi 21021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBCTL_DIR" >&5 21022$as_echo "$LIBCTL_DIR" >&6; } 21023 21024 21025for ac_prog in gen-ctl-io 21026do 21027 # Extract the first word of "$ac_prog", so it can be a program name with args. 21028set dummy $ac_prog; ac_word=$2 21029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21030$as_echo_n "checking for $ac_word... " >&6; } 21031if ${ac_cv_prog_GEN_CTL_IO+:} false; then : 21032 $as_echo_n "(cached) " >&6 21033else 21034 if test -n "$GEN_CTL_IO"; then 21035 ac_cv_prog_GEN_CTL_IO="$GEN_CTL_IO" # Let the user override the test. 21036else 21037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21038for as_dir in $PATH 21039do 21040 IFS=$as_save_IFS 21041 test -z "$as_dir" && as_dir=. 21042 for ac_exec_ext in '' $ac_executable_extensions; do 21043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21044 ac_cv_prog_GEN_CTL_IO="$ac_prog" 21045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21046 break 2 21047 fi 21048done 21049 done 21050IFS=$as_save_IFS 21051 21052fi 21053fi 21054GEN_CTL_IO=$ac_cv_prog_GEN_CTL_IO 21055if test -n "$GEN_CTL_IO"; then 21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GEN_CTL_IO" >&5 21057$as_echo "$GEN_CTL_IO" >&6; } 21058else 21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21060$as_echo "no" >&6; } 21061fi 21062 21063 21064 test -n "$GEN_CTL_IO" && break 21065done 21066test -n "$GEN_CTL_IO" || GEN_CTL_IO="echo" 21067 21068if test x"$GEN_CTL_IO" = xecho; then 21069 as_fn_error $? "could not find gen-ctl-io program; check your PATH" "$LINENO" 5 21070fi 21071 21072# check for -lctl: 21073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctl_get_vector3 in -lctl" >&5 21074$as_echo_n "checking for ctl_get_vector3 in -lctl... " >&6; } 21075if ${ac_cv_lib_ctl_ctl_get_vector3+:} false; then : 21076 $as_echo_n "(cached) " >&6 21077else 21078 ac_check_lib_save_LIBS=$LIBS 21079LIBS="-lctl $LIBS" 21080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21081/* end confdefs.h. */ 21082 21083/* Override any GCC internal prototype to avoid an error. 21084 Use char because int might match the return type of a GCC 21085 builtin and then its argument prototype would still apply. */ 21086#ifdef __cplusplus 21087extern "C" 21088#endif 21089char ctl_get_vector3 (); 21090#ifdef F77_DUMMY_MAIN 21091 21092# ifdef __cplusplus 21093 extern "C" 21094# endif 21095 int F77_DUMMY_MAIN() { return 1; } 21096 21097#endif 21098int 21099main () 21100{ 21101return ctl_get_vector3 (); 21102 ; 21103 return 0; 21104} 21105_ACEOF 21106if ac_fn_c_try_link "$LINENO"; then : 21107 ac_cv_lib_ctl_ctl_get_vector3=yes 21108else 21109 ac_cv_lib_ctl_ctl_get_vector3=no 21110fi 21111rm -f core conftest.err conftest.$ac_objext \ 21112 conftest$ac_exeext conftest.$ac_ext 21113LIBS=$ac_check_lib_save_LIBS 21114fi 21115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ctl_ctl_get_vector3" >&5 21116$as_echo "$ac_cv_lib_ctl_ctl_get_vector3" >&6; } 21117if test "x$ac_cv_lib_ctl_ctl_get_vector3" = xyes; then : 21118 cat >>confdefs.h <<_ACEOF 21119#define HAVE_LIBCTL 1 21120_ACEOF 21121 21122 LIBS="-lctl $LIBS" 21123 21124else 21125 as_fn_error $? "Couldn't find the required libctl library." "$LINENO" 5 21126fi 21127 21128 21129# check for ctl.h (Fedora puts it in /usr/include/ctl, grrr) 21130CTL_H_CPPFLAG="" 21131ac_fn_c_check_header_mongrel "$LINENO" "ctl.h" "ac_cv_header_ctl_h" "$ac_includes_default" 21132if test "x$ac_cv_header_ctl_h" = xyes; then : 21133 CTL_H_CPPFLAG=" " 21134else 21135 21136 save_CPPFLAGS=$CPPFLAGS 21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alternate ctl.h location" >&5 21138$as_echo_n "checking for alternate ctl.h location... " >&6; } 21139 for ctl_h_path in /usr/include/ctl /usr/local/include/ctl; do 21140 CPPFLAGS="$save_CPPFLAGS -I$ctl_h_path" 21141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21142/* end confdefs.h. */ 21143#include <ctl.h> 21144#ifdef F77_DUMMY_MAIN 21145 21146# ifdef __cplusplus 21147 extern "C" 21148# endif 21149 int F77_DUMMY_MAIN() { return 1; } 21150 21151#endif 21152int 21153main () 21154{ 21155 21156 ; 21157 return 0; 21158} 21159_ACEOF 21160if ac_fn_c_try_compile "$LINENO"; then : 21161 CTL_H_CPPFLAG=-I$ctl_h_path; break 21162fi 21163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21164 done 21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTL_H_CPPFLAG" >&5 21166$as_echo "$CTL_H_CPPFLAG" >&6; } 21167 CPPFLAGS="$save_CPPFLAGS $CTL_H_CPPFLAG" 21168fi 21169 21170 21171if test "x$CTL_H_CPPFLAG" = "x"; then 21172 as_fn_error $? "Couldn't find the ctl.h header file for libctl." "$LINENO" 5 21173fi 21174 21175 21176# Check libctl version >= LIBCTL_MAJOR.LIBCTL_MINOR.LIBCTL_BUGFIX 21177LIBCTL_MAJOR=4; LIBCTL_MINOR=0; LIBCTL_BUGFIX=0 21178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libctl version is at least ${LIBCTL_MAJOR}.${LIBCTL_MINOR}.${LIBCTL_BUGFIX}" >&5 21179$as_echo_n "checking whether libctl version is at least ${LIBCTL_MAJOR}.${LIBCTL_MINOR}.${LIBCTL_BUGFIX}... " >&6; } 21180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21181/* end confdefs.h. */ 21182[ 21183#include <ctl.h> 21184#if LIBCTL_MAJOR_VERSION > $LIBCTL_MAJOR || (LIBCTL_MAJOR_VERSION == $LIBCTL_MAJOR && (LIBCTL_MINOR_VERSION > $LIBCTL_MINOR || (LIBCTL_MINOR_VERSION == $LIBCTL_MINOR && LIBCTL_BUGFIX_VERSION >= $LIBCTL_BUGFIX))) 21185 yes 21186#endif 21187] 21188_ACEOF 21189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21190 $EGREP "yes" >/dev/null 2>&1; then : 21191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 21192$as_echo "ok" >&6; } 21193else 21194 as_fn_error $? "libctl version ${LIBCTL_MAJOR}.${LIBCTL_MINOR}.${LIBCTL_BUGFIX} or later is required" "$LINENO" 5 21195fi 21196rm -f conftest* 21197 21198 21199# Check for libctl_quiet feature (in libctl 3.1.1 or later): 21200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libctl_quiet feature" >&5 21201$as_echo_n "checking for libctl_quiet feature... " >&6; } 21202if grep libctl_quiet "$LIBCTL_DIR/base/main.c" 2>&1 > /dev/null; then 21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21204$as_echo "yes" >&6; } 21205 21206$as_echo "#define HAVE_LIBCTL_QUIET 1" >>confdefs.h 21207 21208else 21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21210$as_echo "no" >&6; } 21211fi 21212 21213LIBS=$save_LIBS 21214CPPFLAGS=$save_CPPFLAGS 21215 21216fi # with_libctl 21217 21218 21219############################################################################## 21220# check for libctlgeom, used to build mpb-data ... doesn't require guile 21221 21222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vector3_dot in -lctlgeom" >&5 21223$as_echo_n "checking for vector3_dot in -lctlgeom... " >&6; } 21224if ${ac_cv_lib_ctlgeom_vector3_dot+:} false; then : 21225 $as_echo_n "(cached) " >&6 21226else 21227 ac_check_lib_save_LIBS=$LIBS 21228LIBS="-lctlgeom $LIBS" 21229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21230/* end confdefs.h. */ 21231 21232/* Override any GCC internal prototype to avoid an error. 21233 Use char because int might match the return type of a GCC 21234 builtin and then its argument prototype would still apply. */ 21235#ifdef __cplusplus 21236extern "C" 21237#endif 21238char vector3_dot (); 21239#ifdef F77_DUMMY_MAIN 21240 21241# ifdef __cplusplus 21242 extern "C" 21243# endif 21244 int F77_DUMMY_MAIN() { return 1; } 21245 21246#endif 21247int 21248main () 21249{ 21250return vector3_dot (); 21251 ; 21252 return 0; 21253} 21254_ACEOF 21255if ac_fn_c_try_link "$LINENO"; then : 21256 ac_cv_lib_ctlgeom_vector3_dot=yes 21257else 21258 ac_cv_lib_ctlgeom_vector3_dot=no 21259fi 21260rm -f core conftest.err conftest.$ac_objext \ 21261 conftest$ac_exeext conftest.$ac_ext 21262LIBS=$ac_check_lib_save_LIBS 21263fi 21264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ctlgeom_vector3_dot" >&5 21265$as_echo "$ac_cv_lib_ctlgeom_vector3_dot" >&6; } 21266if test "x$ac_cv_lib_ctlgeom_vector3_dot" = xyes; then : 21267 with_libctlgeom=yes 21268else 21269 with_libctlgeom=no 21270fi 21271 21272 21273if test "x$with_libctlgeom" = xyes; then 21274 # check for ctlgeom.h (Fedora may put it in /usr/include/ctl) 21275 CTLGEOM_H_CPPFLAG="" 21276 ac_fn_c_check_header_mongrel "$LINENO" "ctlgeom.h" "ac_cv_header_ctlgeom_h" "$ac_includes_default" 21277if test "x$ac_cv_header_ctlgeom_h" = xyes; then : 21278 CTLGEOM_H_CPPFLAG=" " 21279else 21280 21281 save_CPPFLAGS=$CPPFLAGS 21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alternate ctlgeom.h location" >&5 21283$as_echo_n "checking for alternate ctlgeom.h location... " >&6; } 21284 for ctl_h_path in /usr/include/ctl /usr/local/include/ctl; do 21285 CPPFLAGS="$save_CPPFLAGS -I$ctl_h_path" 21286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21287/* end confdefs.h. */ 21288#include <ctlgeom.h> 21289#ifdef F77_DUMMY_MAIN 21290 21291# ifdef __cplusplus 21292 extern "C" 21293# endif 21294 int F77_DUMMY_MAIN() { return 1; } 21295 21296#endif 21297int 21298main () 21299{ 21300 21301 ; 21302 return 0; 21303} 21304_ACEOF 21305if ac_fn_c_try_compile "$LINENO"; then : 21306 CTLGEOM_H_CPPFLAG=-I$ctl_h_path; break 21307fi 21308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21309 done 21310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CTLGEOM_H_CPPFLAG" >&5 21311$as_echo "$CTLGEOM_H_CPPFLAG" >&6; } 21312 CPPFLAGS="$save_CPPFLAGS" 21313fi 21314 21315 21316 if test "x$CTLGEOM_H_CPPFLAG" = "x"; then 21317 with_libctlgeom=no 21318 fi 21319 21320fi 21321 21322if test "x$with_libctlgeom" = xno; then 21323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find libctlgeom, won't build mpb-data" >&5 21324$as_echo "$as_me: WARNING: Couldn't find libctlgeom, won't build mpb-data" >&2;} 21325fi 21326 if test x"$with_libctlgeom" = "xyes"; then 21327 WITH_LIBCTLGEOM_TRUE= 21328 WITH_LIBCTLGEOM_FALSE='#' 21329else 21330 WITH_LIBCTLGEOM_TRUE='#' 21331 WITH_LIBCTLGEOM_FALSE= 21332fi 21333 21334 21335############################################################################## 21336# check for nlopt library 21337 21338for ac_header in nlopt.h 21339do : 21340 ac_fn_c_check_header_mongrel "$LINENO" "nlopt.h" "ac_cv_header_nlopt_h" "$ac_includes_default" 21341if test "x$ac_cv_header_nlopt_h" = xyes; then : 21342 cat >>confdefs.h <<_ACEOF 21343#define HAVE_NLOPT_H 1 21344_ACEOF 21345 21346fi 21347 21348done 21349 21350NLOPT_LIB="" 21351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlopt_minimize in -lnlopt" >&5 21352$as_echo_n "checking for nlopt_minimize in -lnlopt... " >&6; } 21353if ${ac_cv_lib_nlopt_nlopt_minimize+:} false; then : 21354 $as_echo_n "(cached) " >&6 21355else 21356 ac_check_lib_save_LIBS=$LIBS 21357LIBS="-lnlopt $LIBS" 21358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21359/* end confdefs.h. */ 21360 21361/* Override any GCC internal prototype to avoid an error. 21362 Use char because int might match the return type of a GCC 21363 builtin and then its argument prototype would still apply. */ 21364#ifdef __cplusplus 21365extern "C" 21366#endif 21367char nlopt_minimize (); 21368#ifdef F77_DUMMY_MAIN 21369 21370# ifdef __cplusplus 21371 extern "C" 21372# endif 21373 int F77_DUMMY_MAIN() { return 1; } 21374 21375#endif 21376int 21377main () 21378{ 21379return nlopt_minimize (); 21380 ; 21381 return 0; 21382} 21383_ACEOF 21384if ac_fn_c_try_link "$LINENO"; then : 21385 ac_cv_lib_nlopt_nlopt_minimize=yes 21386else 21387 ac_cv_lib_nlopt_nlopt_minimize=no 21388fi 21389rm -f core conftest.err conftest.$ac_objext \ 21390 conftest$ac_exeext conftest.$ac_ext 21391LIBS=$ac_check_lib_save_LIBS 21392fi 21393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nlopt_nlopt_minimize" >&5 21394$as_echo "$ac_cv_lib_nlopt_nlopt_minimize" >&6; } 21395if test "x$ac_cv_lib_nlopt_nlopt_minimize" = xyes; then : 21396 21397$as_echo "#define HAVE_NLOPT 1" >>confdefs.h 21398 21399 NLOPT_LIB="-lnlopt" 21400fi 21401 21402 21403 21404############################################################################## 21405# Checks for header files. 21406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 21407$as_echo_n "checking for ANSI C header files... " >&6; } 21408if ${ac_cv_header_stdc+:} false; then : 21409 $as_echo_n "(cached) " >&6 21410else 21411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21412/* end confdefs.h. */ 21413#include <stdlib.h> 21414#include <stdarg.h> 21415#include <string.h> 21416#include <float.h> 21417 21418#ifdef F77_DUMMY_MAIN 21419 21420# ifdef __cplusplus 21421 extern "C" 21422# endif 21423 int F77_DUMMY_MAIN() { return 1; } 21424 21425#endif 21426int 21427main () 21428{ 21429 21430 ; 21431 return 0; 21432} 21433_ACEOF 21434if ac_fn_c_try_compile "$LINENO"; then : 21435 ac_cv_header_stdc=yes 21436else 21437 ac_cv_header_stdc=no 21438fi 21439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21440 21441if test $ac_cv_header_stdc = yes; then 21442 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 21443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21444/* end confdefs.h. */ 21445#include <string.h> 21446 21447_ACEOF 21448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21449 $EGREP "memchr" >/dev/null 2>&1; then : 21450 21451else 21452 ac_cv_header_stdc=no 21453fi 21454rm -f conftest* 21455 21456fi 21457 21458if test $ac_cv_header_stdc = yes; then 21459 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 21460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21461/* end confdefs.h. */ 21462#include <stdlib.h> 21463 21464_ACEOF 21465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 21466 $EGREP "free" >/dev/null 2>&1; then : 21467 21468else 21469 ac_cv_header_stdc=no 21470fi 21471rm -f conftest* 21472 21473fi 21474 21475if test $ac_cv_header_stdc = yes; then 21476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 21477 if test "$cross_compiling" = yes; then : 21478 : 21479else 21480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21481/* end confdefs.h. */ 21482#include <ctype.h> 21483#include <stdlib.h> 21484#if ((' ' & 0x0FF) == 0x020) 21485# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 21486# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 21487#else 21488# define ISLOWER(c) \ 21489 (('a' <= (c) && (c) <= 'i') \ 21490 || ('j' <= (c) && (c) <= 'r') \ 21491 || ('s' <= (c) && (c) <= 'z')) 21492# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 21493#endif 21494 21495#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 21496int 21497main () 21498{ 21499 int i; 21500 for (i = 0; i < 256; i++) 21501 if (XOR (islower (i), ISLOWER (i)) 21502 || toupper (i) != TOUPPER (i)) 21503 return 2; 21504 return 0; 21505} 21506_ACEOF 21507if ac_fn_c_try_run "$LINENO"; then : 21508 21509else 21510 ac_cv_header_stdc=no 21511fi 21512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21513 conftest.$ac_objext conftest.beam conftest.$ac_ext 21514fi 21515 21516fi 21517fi 21518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 21519$as_echo "$ac_cv_header_stdc" >&6; } 21520if test $ac_cv_header_stdc = yes; then 21521 21522$as_echo "#define STDC_HEADERS 1" >>confdefs.h 21523 21524fi 21525 21526for ac_header in unistd.h getopt.h nlopt.h 21527do : 21528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 21529ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 21530if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 21531 cat >>confdefs.h <<_ACEOF 21532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 21533_ACEOF 21534 21535fi 21536 21537done 21538 21539 21540# Checks for typedefs, structures, and compiler characteristics. 21541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 21542$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 21543if ${ac_cv_c_const+:} false; then : 21544 $as_echo_n "(cached) " >&6 21545else 21546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21547/* end confdefs.h. */ 21548 21549#ifdef F77_DUMMY_MAIN 21550 21551# ifdef __cplusplus 21552 extern "C" 21553# endif 21554 int F77_DUMMY_MAIN() { return 1; } 21555 21556#endif 21557int 21558main () 21559{ 21560 21561#ifndef __cplusplus 21562 /* Ultrix mips cc rejects this sort of thing. */ 21563 typedef int charset[2]; 21564 const charset cs = { 0, 0 }; 21565 /* SunOS 4.1.1 cc rejects this. */ 21566 char const *const *pcpcc; 21567 char **ppc; 21568 /* NEC SVR4.0.2 mips cc rejects this. */ 21569 struct point {int x, y;}; 21570 static struct point const zero = {0,0}; 21571 /* AIX XL C 1.02.0.0 rejects this. 21572 It does not let you subtract one const X* pointer from another in 21573 an arm of an if-expression whose if-part is not a constant 21574 expression */ 21575 const char *g = "string"; 21576 pcpcc = &g + (g ? g-g : 0); 21577 /* HPUX 7.0 cc rejects these. */ 21578 ++pcpcc; 21579 ppc = (char**) pcpcc; 21580 pcpcc = (char const *const *) ppc; 21581 { /* SCO 3.2v4 cc rejects this sort of thing. */ 21582 char tx; 21583 char *t = &tx; 21584 char const *s = 0 ? (char *) 0 : (char const *) 0; 21585 21586 *t++ = 0; 21587 if (s) return 0; 21588 } 21589 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 21590 int x[] = {25, 17}; 21591 const int *foo = &x[0]; 21592 ++foo; 21593 } 21594 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 21595 typedef const int *iptr; 21596 iptr p = 0; 21597 ++p; 21598 } 21599 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 21600 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 21601 struct s { int j; const int *ap[3]; } bx; 21602 struct s *b = &bx; b->j = 5; 21603 } 21604 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 21605 const int foo = 10; 21606 if (!foo) return 0; 21607 } 21608 return !cs[0] && !zero.x; 21609#endif 21610 21611 ; 21612 return 0; 21613} 21614_ACEOF 21615if ac_fn_c_try_compile "$LINENO"; then : 21616 ac_cv_c_const=yes 21617else 21618 ac_cv_c_const=no 21619fi 21620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21621fi 21622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 21623$as_echo "$ac_cv_c_const" >&6; } 21624if test $ac_cv_c_const = no; then 21625 21626$as_echo "#define const /**/" >>confdefs.h 21627 21628fi 21629 21630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 21631$as_echo_n "checking for inline... " >&6; } 21632if ${ac_cv_c_inline+:} false; then : 21633 $as_echo_n "(cached) " >&6 21634else 21635 ac_cv_c_inline=no 21636for ac_kw in inline __inline__ __inline; do 21637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21638/* end confdefs.h. */ 21639#ifndef __cplusplus 21640typedef int foo_t; 21641static $ac_kw foo_t static_foo () {return 0; } 21642$ac_kw foo_t foo () {return 0; } 21643#endif 21644 21645_ACEOF 21646if ac_fn_c_try_compile "$LINENO"; then : 21647 ac_cv_c_inline=$ac_kw 21648fi 21649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21650 test "$ac_cv_c_inline" != no && break 21651done 21652 21653fi 21654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 21655$as_echo "$ac_cv_c_inline" >&6; } 21656 21657case $ac_cv_c_inline in 21658 inline | yes) ;; 21659 *) 21660 case $ac_cv_c_inline in 21661 no) ac_val=;; 21662 *) ac_val=$ac_cv_c_inline;; 21663 esac 21664 cat >>confdefs.h <<_ACEOF 21665#ifndef __cplusplus 21666#define inline $ac_val 21667#endif 21668_ACEOF 21669 ;; 21670esac 21671 21672 21673# Checks for library functions. 21674for ac_func in getopt strncmp 21675do : 21676 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 21677ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 21678if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 21679 cat >>confdefs.h <<_ACEOF 21680#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 21681_ACEOF 21682 21683fi 21684done 21685 21686 21687############################################################################## 21688# Check to see if calling Fortran functions (in particular, the BLAS 21689# complex dot product functions) works from C: 21690 21691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether calling BLAS zdotc works" >&5 21692$as_echo_n "checking whether calling BLAS zdotc works... " >&6; } 21693ac_ext=f 21694ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21695ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21696ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21697case $ac_cv_f77_mangling in 21698 upper*) ac_val="ZDOTC" ;; 21699 lower*) ac_val="zdotc" ;; 21700 *) ac_val="unknown" ;; 21701esac 21702case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21703 21704zdotc="$ac_val" 21705 21706ac_ext=c 21707ac_cpp='$CPP $CPPFLAGS' 21708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21710ac_compiler_gnu=$ac_cv_c_compiler_gnu 21711 21712if test "$cross_compiling" = yes; then : 21713 ok="no" 21714else 21715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21716/* end confdefs.h. */ 21717 21718#include <stdio.h> 21719#include <stdlib.h> 21720typedef struct { double re, im; } cmplx; 21721#ifdef __cplusplus 21722extern "C" 21723#endif 21724extern cmplx $zdotc(int *, cmplx *, int *, cmplx *, int *); 21725int main(void) { 21726 cmplx x[2] = { {1,0}, {0,1} }, y[2] = { {1,0}, {1,0} }; 21727 int n = 2, inc1 = 1, inc2 = 1; 21728 cmplx result = { 0, 0 }; 21729 result = $zdotc(&n, x, &inc1, y, &inc2); 21730 if (result.re != 1 || result.im != -1) return EXIT_FAILURE; 21731 else return EXIT_SUCCESS; 21732} 21733 21734_ACEOF 21735if ac_fn_c_try_run "$LINENO"; then : 21736 ok="yes" 21737else 21738 ok="no" 21739fi 21740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 21741 conftest.$ac_objext conftest.beam conftest.$ac_ext 21742fi 21743 21744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5 21745$as_echo "$ok" >&6; } 21746if test "$ok" = "no"; then 21747 21748$as_echo "#define NO_FORTRAN_FUNCTIONS 1" >>confdefs.h 21749 21750fi 21751 21752############################################################################## 21753 21754# grab the various EIGS_ flags from eigensolver.h and substitute them 21755# into mpb.scm.in (are not regular expressions fun?): 21756# (note that autoconf gets unhappy if we have newlines; we must delete them) 21757EIGS_FLAGS_SCM=`grep '#define EIGS_' $srcdir/src/matrices/eigensolver.h |sed 's/#define \([A-Za-z0-9_]*\) (1<<\([0-9]*\))/(define \1 (pow2 \2))/' |sed 's/#define \([A-Za-z0-9_]*\) (\(.*\))/(define \1 (+ \2))/' |sed 's/ *| */ /g' | tr -d '\n'` 21758 21759 21760############################################################################## 21761 21762if test "x$with_libctl" != xno; then 21763 21764# Find a shell that supports job control, for mpb-split: 21765# Extract the first word of "bash ksh ash", so it can be a program name with args. 21766set dummy bash ksh ash; ac_word=$2 21767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21768$as_echo_n "checking for $ac_word... " >&6; } 21769if ${ac_cv_path_SH_JOB+:} false; then : 21770 $as_echo_n "(cached) " >&6 21771else 21772 case $SH_JOB in 21773 [\\/]* | ?:[\\/]*) 21774 ac_cv_path_SH_JOB="$SH_JOB" # Let the user override the test with a path. 21775 ;; 21776 *) 21777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21778for as_dir in $PATH 21779do 21780 IFS=$as_save_IFS 21781 test -z "$as_dir" && as_dir=. 21782 for ac_exec_ext in '' $ac_executable_extensions; do 21783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21784 ac_cv_path_SH_JOB="$as_dir/$ac_word$ac_exec_ext" 21785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21786 break 2 21787 fi 21788done 21789 done 21790IFS=$as_save_IFS 21791 21792 test -z "$ac_cv_path_SH_JOB" && ac_cv_path_SH_JOB="sh" 21793 ;; 21794esac 21795fi 21796SH_JOB=$ac_cv_path_SH_JOB 21797if test -n "$SH_JOB"; then 21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH_JOB" >&5 21799$as_echo "$SH_JOB" >&6; } 21800else 21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21802$as_echo "no" >&6; } 21803fi 21804 21805 21806 21807if test x"$SH_JOB" = xsh; then 21808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find bash or ksh shell on your system. The mpb-split command may not work if your sh doesn't support job control." >&5 21809$as_echo "$as_me: WARNING: Couldn't find bash or ksh shell on your system. The mpb-split command may not work if your sh doesn't support job control." >&2;} 21810fi 21811 21812fi # with_libctl 21813 21814############################################################################## 21815# The following function is used only for debugging. Note that 21816# we must test for it *after* setting the compiler flags (which 21817# affect whether it is declared, as it is a GNU extension). 21818# We need to #include <stdio.h> because that somehow affects whether 21819# the function is declared with older gcc versions. We need 21820# to use AC_TRY_COMPILE because the test in AC_HAVE_DECL seems 21821# to be optimized out. 21822 21823for ac_func in feenableexcept 21824do : 21825 ac_fn_c_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept" 21826if test "x$ac_cv_func_feenableexcept" = xyes; then : 21827 cat >>confdefs.h <<_ACEOF 21828#define HAVE_FEENABLEEXCEPT 1 21829_ACEOF 21830 21831fi 21832done 21833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feenableexcept declaration is usable" >&5 21834$as_echo_n "checking whether feenableexcept declaration is usable... " >&6; } 21835feenableexcept_decl_ok=yes 21836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21837/* end confdefs.h. */ 21838#include <stdio.h> 21839#define _GNU_SOURCE 1 21840#include <fenv.h> 21841#ifdef F77_DUMMY_MAIN 21842 21843# ifdef __cplusplus 21844 extern "C" 21845# endif 21846 int F77_DUMMY_MAIN() { return 1; } 21847 21848#endif 21849int 21850main () 21851{ 21852feenableexcept(0); 21853 ; 21854 return 0; 21855} 21856_ACEOF 21857if ac_fn_c_try_compile "$LINENO"; then : 21858 21859$as_echo "#define HAVE_DECL_FEENABLEEXCEPT 1" >>confdefs.h 21860 21861else 21862 feenableexcept_decl_ok=no 21863fi 21864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $feenableexcept_decl_ok" >&5 21866$as_echo "$feenableexcept_decl_ok" >&6; } 21867 21868############################################################################## 21869 21870program_transform_name="s,_,-,g;$program_transform_name" 21871############################################################################## 21872 21873ac_config_files="$ac_config_files Makefile examples/Makefile tests/Makefile src/Makefile src/util/Makefile src/matrices/Makefile src/matrixio/Makefile src/maxwell/Makefile mpb/Makefile mpb/mpb.scm mpb/mpb-split-preinstall utils/Makefile" 21874 21875# meb/Makefile 21876# meb/meb.scm 21877# meb/meb-split-preinstall 21878cat >confcache <<\_ACEOF 21879# This file is a shell script that caches the results of configure 21880# tests run on this system so they can be shared between configure 21881# scripts and configure runs, see configure's option --config-cache. 21882# It is not useful on other systems. If it contains results you don't 21883# want to keep, you may remove or edit it. 21884# 21885# config.status only pays attention to the cache file if you give it 21886# the --recheck option to rerun configure. 21887# 21888# `ac_cv_env_foo' variables (set or unset) will be overridden when 21889# loading this file, other *unset* `ac_cv_foo' will be assigned the 21890# following values. 21891 21892_ACEOF 21893 21894# The following way of writing the cache mishandles newlines in values, 21895# but we know of no workaround that is simple, portable, and efficient. 21896# So, we kill variables containing newlines. 21897# Ultrix sh set writes to stderr and can't be redirected directly, 21898# and sets the high bit in the cache file unless we assign to the vars. 21899( 21900 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21901 eval ac_val=\$$ac_var 21902 case $ac_val in #( 21903 *${as_nl}*) 21904 case $ac_var in #( 21905 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21906$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21907 esac 21908 case $ac_var in #( 21909 _ | IFS | as_nl) ;; #( 21910 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21911 *) { eval $ac_var=; unset $ac_var;} ;; 21912 esac ;; 21913 esac 21914 done 21915 21916 (set) 2>&1 | 21917 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21918 *${as_nl}ac_space=\ *) 21919 # `set' does not quote correctly, so add quotes: double-quote 21920 # substitution turns \\\\ into \\, and sed turns \\ into \. 21921 sed -n \ 21922 "s/'/'\\\\''/g; 21923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21924 ;; #( 21925 *) 21926 # `set' quotes correctly as required by POSIX, so do not add quotes. 21927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21928 ;; 21929 esac | 21930 sort 21931) | 21932 sed ' 21933 /^ac_cv_env_/b end 21934 t clear 21935 :clear 21936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21937 t end 21938 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21939 :end' >>confcache 21940if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21941 if test -w "$cache_file"; then 21942 if test "x$cache_file" != "x/dev/null"; then 21943 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21944$as_echo "$as_me: updating cache $cache_file" >&6;} 21945 if test ! -f "$cache_file" || test -h "$cache_file"; then 21946 cat confcache >"$cache_file" 21947 else 21948 case $cache_file in #( 21949 */* | ?:*) 21950 mv -f confcache "$cache_file"$$ && 21951 mv -f "$cache_file"$$ "$cache_file" ;; #( 21952 *) 21953 mv -f confcache "$cache_file" ;; 21954 esac 21955 fi 21956 fi 21957 else 21958 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21959$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21960 fi 21961fi 21962rm -f confcache 21963 21964test "x$prefix" = xNONE && prefix=$ac_default_prefix 21965# Let make expand exec_prefix. 21966test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21967 21968DEFS=-DHAVE_CONFIG_H 21969 21970ac_libobjs= 21971ac_ltlibobjs= 21972U= 21973for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21974 # 1. Remove the extension, and $U if already installed. 21975 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21976 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21978 # will be set to the directory where LIBOBJS objects are built. 21979 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21980 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21981done 21982LIBOBJS=$ac_libobjs 21983 21984LTLIBOBJS=$ac_ltlibobjs 21985 21986 21987if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21988 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 21989Usually this means the macro was only invoked conditionally." "$LINENO" 5 21990fi 21991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21992$as_echo_n "checking that generated files are newer than configure... " >&6; } 21993 if test -n "$am_sleep_pid"; then 21994 # Hide warnings about reused PIDs. 21995 wait $am_sleep_pid 2>/dev/null 21996 fi 21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21998$as_echo "done" >&6; } 21999 if test -n "$EXEEXT"; then 22000 am__EXEEXT_TRUE= 22001 am__EXEEXT_FALSE='#' 22002else 22003 am__EXEEXT_TRUE='#' 22004 am__EXEEXT_FALSE= 22005fi 22006 22007if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22008 as_fn_error $? "conditional \"AMDEP\" was never defined. 22009Usually this means the macro was only invoked conditionally." "$LINENO" 5 22010fi 22011if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22012 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22013Usually this means the macro was only invoked conditionally." "$LINENO" 5 22014fi 22015if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22016 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22017Usually this means the macro was only invoked conditionally." "$LINENO" 5 22018fi 22019if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then 22020 as_fn_error $? "conditional \"MPI\" was never defined. 22021Usually this means the macro was only invoked conditionally." "$LINENO" 5 22022fi 22023if test -z "${WITH_LIBCTL_TRUE}" && test -z "${WITH_LIBCTL_FALSE}"; then 22024 as_fn_error $? "conditional \"WITH_LIBCTL\" was never defined. 22025Usually this means the macro was only invoked conditionally." "$LINENO" 5 22026fi 22027if test -z "${WITH_LIBCTLGEOM_TRUE}" && test -z "${WITH_LIBCTLGEOM_FALSE}"; then 22028 as_fn_error $? "conditional \"WITH_LIBCTLGEOM\" was never defined. 22029Usually this means the macro was only invoked conditionally." "$LINENO" 5 22030fi 22031 22032: "${CONFIG_STATUS=./config.status}" 22033ac_write_fail=0 22034ac_clean_files_save=$ac_clean_files 22035ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22036{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22037$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22038as_write_fail=0 22039cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22040#! $SHELL 22041# Generated by $as_me. 22042# Run this file to recreate the current configuration. 22043# Compiler output produced by configure, useful for debugging 22044# configure, is in config.log if it exists. 22045 22046debug=false 22047ac_cs_recheck=false 22048ac_cs_silent=false 22049 22050SHELL=\${CONFIG_SHELL-$SHELL} 22051export SHELL 22052_ASEOF 22053cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22054## -------------------- ## 22055## M4sh Initialization. ## 22056## -------------------- ## 22057 22058# Be more Bourne compatible 22059DUALCASE=1; export DUALCASE # for MKS sh 22060if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22061 emulate sh 22062 NULLCMD=: 22063 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22064 # is contrary to our usage. Disable this feature. 22065 alias -g '${1+"$@"}'='"$@"' 22066 setopt NO_GLOB_SUBST 22067else 22068 case `(set -o) 2>/dev/null` in #( 22069 *posix*) : 22070 set -o posix ;; #( 22071 *) : 22072 ;; 22073esac 22074fi 22075 22076 22077as_nl=' 22078' 22079export as_nl 22080# Printing a long string crashes Solaris 7 /usr/bin/printf. 22081as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22082as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22083as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22084# Prefer a ksh shell builtin over an external printf program on Solaris, 22085# but without wasting forks for bash or zsh. 22086if test -z "$BASH_VERSION$ZSH_VERSION" \ 22087 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22088 as_echo='print -r --' 22089 as_echo_n='print -rn --' 22090elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22091 as_echo='printf %s\n' 22092 as_echo_n='printf %s' 22093else 22094 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22095 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22096 as_echo_n='/usr/ucb/echo -n' 22097 else 22098 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22099 as_echo_n_body='eval 22100 arg=$1; 22101 case $arg in #( 22102 *"$as_nl"*) 22103 expr "X$arg" : "X\\(.*\\)$as_nl"; 22104 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22105 esac; 22106 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22107 ' 22108 export as_echo_n_body 22109 as_echo_n='sh -c $as_echo_n_body as_echo' 22110 fi 22111 export as_echo_body 22112 as_echo='sh -c $as_echo_body as_echo' 22113fi 22114 22115# The user is always right. 22116if test "${PATH_SEPARATOR+set}" != set; then 22117 PATH_SEPARATOR=: 22118 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22119 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22120 PATH_SEPARATOR=';' 22121 } 22122fi 22123 22124 22125# IFS 22126# We need space, tab and new line, in precisely that order. Quoting is 22127# there to prevent editors from complaining about space-tab. 22128# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22129# splitting by setting IFS to empty value.) 22130IFS=" "" $as_nl" 22131 22132# Find who we are. Look in the path if we contain no directory separator. 22133as_myself= 22134case $0 in #(( 22135 *[\\/]* ) as_myself=$0 ;; 22136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22137for as_dir in $PATH 22138do 22139 IFS=$as_save_IFS 22140 test -z "$as_dir" && as_dir=. 22141 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22142 done 22143IFS=$as_save_IFS 22144 22145 ;; 22146esac 22147# We did not find ourselves, most probably we were run as `sh COMMAND' 22148# in which case we are not to be found in the path. 22149if test "x$as_myself" = x; then 22150 as_myself=$0 22151fi 22152if test ! -f "$as_myself"; then 22153 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22154 exit 1 22155fi 22156 22157# Unset variables that we do not need and which cause bugs (e.g. in 22158# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22159# suppresses any "Segmentation fault" message there. '((' could 22160# trigger a bug in pdksh 5.2.14. 22161for as_var in BASH_ENV ENV MAIL MAILPATH 22162do eval test x\${$as_var+set} = xset \ 22163 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22164done 22165PS1='$ ' 22166PS2='> ' 22167PS4='+ ' 22168 22169# NLS nuisances. 22170LC_ALL=C 22171export LC_ALL 22172LANGUAGE=C 22173export LANGUAGE 22174 22175# CDPATH. 22176(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22177 22178 22179# as_fn_error STATUS ERROR [LINENO LOG_FD] 22180# ---------------------------------------- 22181# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22182# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22183# script with STATUS, using 1 if that was 0. 22184as_fn_error () 22185{ 22186 as_status=$1; test $as_status -eq 0 && as_status=1 22187 if test "$4"; then 22188 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22189 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22190 fi 22191 $as_echo "$as_me: error: $2" >&2 22192 as_fn_exit $as_status 22193} # as_fn_error 22194 22195 22196# as_fn_set_status STATUS 22197# ----------------------- 22198# Set $? to STATUS, without forking. 22199as_fn_set_status () 22200{ 22201 return $1 22202} # as_fn_set_status 22203 22204# as_fn_exit STATUS 22205# ----------------- 22206# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22207as_fn_exit () 22208{ 22209 set +e 22210 as_fn_set_status $1 22211 exit $1 22212} # as_fn_exit 22213 22214# as_fn_unset VAR 22215# --------------- 22216# Portably unset VAR. 22217as_fn_unset () 22218{ 22219 { eval $1=; unset $1;} 22220} 22221as_unset=as_fn_unset 22222# as_fn_append VAR VALUE 22223# ---------------------- 22224# Append the text in VALUE to the end of the definition contained in VAR. Take 22225# advantage of any shell optimizations that allow amortized linear growth over 22226# repeated appends, instead of the typical quadratic growth present in naive 22227# implementations. 22228if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22229 eval 'as_fn_append () 22230 { 22231 eval $1+=\$2 22232 }' 22233else 22234 as_fn_append () 22235 { 22236 eval $1=\$$1\$2 22237 } 22238fi # as_fn_append 22239 22240# as_fn_arith ARG... 22241# ------------------ 22242# Perform arithmetic evaluation on the ARGs, and store the result in the 22243# global $as_val. Take advantage of shells that can avoid forks. The arguments 22244# must be portable across $(()) and expr. 22245if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22246 eval 'as_fn_arith () 22247 { 22248 as_val=$(( $* )) 22249 }' 22250else 22251 as_fn_arith () 22252 { 22253 as_val=`expr "$@" || test $? -eq 1` 22254 } 22255fi # as_fn_arith 22256 22257 22258if expr a : '\(a\)' >/dev/null 2>&1 && 22259 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22260 as_expr=expr 22261else 22262 as_expr=false 22263fi 22264 22265if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22266 as_basename=basename 22267else 22268 as_basename=false 22269fi 22270 22271if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22272 as_dirname=dirname 22273else 22274 as_dirname=false 22275fi 22276 22277as_me=`$as_basename -- "$0" || 22278$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22279 X"$0" : 'X\(//\)$' \| \ 22280 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22281$as_echo X/"$0" | 22282 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22283 s//\1/ 22284 q 22285 } 22286 /^X\/\(\/\/\)$/{ 22287 s//\1/ 22288 q 22289 } 22290 /^X\/\(\/\).*/{ 22291 s//\1/ 22292 q 22293 } 22294 s/.*/./; q'` 22295 22296# Avoid depending upon Character Ranges. 22297as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22298as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22299as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22300as_cr_digits='0123456789' 22301as_cr_alnum=$as_cr_Letters$as_cr_digits 22302 22303ECHO_C= ECHO_N= ECHO_T= 22304case `echo -n x` in #((((( 22305-n*) 22306 case `echo 'xy\c'` in 22307 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22308 xy) ECHO_C='\c';; 22309 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22310 ECHO_T=' ';; 22311 esac;; 22312*) 22313 ECHO_N='-n';; 22314esac 22315 22316rm -f conf$$ conf$$.exe conf$$.file 22317if test -d conf$$.dir; then 22318 rm -f conf$$.dir/conf$$.file 22319else 22320 rm -f conf$$.dir 22321 mkdir conf$$.dir 2>/dev/null 22322fi 22323if (echo >conf$$.file) 2>/dev/null; then 22324 if ln -s conf$$.file conf$$ 2>/dev/null; then 22325 as_ln_s='ln -s' 22326 # ... but there are two gotchas: 22327 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22328 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22329 # In both cases, we have to default to `cp -pR'. 22330 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22331 as_ln_s='cp -pR' 22332 elif ln conf$$.file conf$$ 2>/dev/null; then 22333 as_ln_s=ln 22334 else 22335 as_ln_s='cp -pR' 22336 fi 22337else 22338 as_ln_s='cp -pR' 22339fi 22340rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22341rmdir conf$$.dir 2>/dev/null 22342 22343 22344# as_fn_mkdir_p 22345# ------------- 22346# Create "$as_dir" as a directory, including parents if necessary. 22347as_fn_mkdir_p () 22348{ 22349 22350 case $as_dir in #( 22351 -*) as_dir=./$as_dir;; 22352 esac 22353 test -d "$as_dir" || eval $as_mkdir_p || { 22354 as_dirs= 22355 while :; do 22356 case $as_dir in #( 22357 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22358 *) as_qdir=$as_dir;; 22359 esac 22360 as_dirs="'$as_qdir' $as_dirs" 22361 as_dir=`$as_dirname -- "$as_dir" || 22362$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22363 X"$as_dir" : 'X\(//\)[^/]' \| \ 22364 X"$as_dir" : 'X\(//\)$' \| \ 22365 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22366$as_echo X"$as_dir" | 22367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22368 s//\1/ 22369 q 22370 } 22371 /^X\(\/\/\)[^/].*/{ 22372 s//\1/ 22373 q 22374 } 22375 /^X\(\/\/\)$/{ 22376 s//\1/ 22377 q 22378 } 22379 /^X\(\/\).*/{ 22380 s//\1/ 22381 q 22382 } 22383 s/.*/./; q'` 22384 test -d "$as_dir" && break 22385 done 22386 test -z "$as_dirs" || eval "mkdir $as_dirs" 22387 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22388 22389 22390} # as_fn_mkdir_p 22391if mkdir -p . 2>/dev/null; then 22392 as_mkdir_p='mkdir -p "$as_dir"' 22393else 22394 test -d ./-p && rmdir ./-p 22395 as_mkdir_p=false 22396fi 22397 22398 22399# as_fn_executable_p FILE 22400# ----------------------- 22401# Test if FILE is an executable regular file. 22402as_fn_executable_p () 22403{ 22404 test -f "$1" && test -x "$1" 22405} # as_fn_executable_p 22406as_test_x='test -x' 22407as_executable_p=as_fn_executable_p 22408 22409# Sed expression to map a string onto a valid CPP name. 22410as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22411 22412# Sed expression to map a string onto a valid variable name. 22413as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22414 22415 22416exec 6>&1 22417## ----------------------------------- ## 22418## Main body of $CONFIG_STATUS script. ## 22419## ----------------------------------- ## 22420_ASEOF 22421test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22422 22423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22424# Save the log message, to keep $0 and so on meaningful, and to 22425# report actual input values of CONFIG_FILES etc. instead of their 22426# values after options handling. 22427ac_log=" 22428This file was extended by mpb $as_me 1.11.1, which was 22429generated by GNU Autoconf 2.69. Invocation command line was 22430 22431 CONFIG_FILES = $CONFIG_FILES 22432 CONFIG_HEADERS = $CONFIG_HEADERS 22433 CONFIG_LINKS = $CONFIG_LINKS 22434 CONFIG_COMMANDS = $CONFIG_COMMANDS 22435 $ $0 $@ 22436 22437on `(hostname || uname -n) 2>/dev/null | sed 1q` 22438" 22439 22440_ACEOF 22441 22442case $ac_config_files in *" 22443"*) set x $ac_config_files; shift; ac_config_files=$*;; 22444esac 22445 22446case $ac_config_headers in *" 22447"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22448esac 22449 22450 22451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22452# Files that config.status was made for. 22453config_files="$ac_config_files" 22454config_headers="$ac_config_headers" 22455config_commands="$ac_config_commands" 22456 22457_ACEOF 22458 22459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22460ac_cs_usage="\ 22461\`$as_me' instantiates files and other configuration actions 22462from templates according to the current configuration. Unless the files 22463and actions are specified as TAGs, all are instantiated by default. 22464 22465Usage: $0 [OPTION]... [TAG]... 22466 22467 -h, --help print this help, then exit 22468 -V, --version print version number and configuration settings, then exit 22469 --config print configuration, then exit 22470 -q, --quiet, --silent 22471 do not print progress messages 22472 -d, --debug don't remove temporary files 22473 --recheck update $as_me by reconfiguring in the same conditions 22474 --file=FILE[:TEMPLATE] 22475 instantiate the configuration file FILE 22476 --header=FILE[:TEMPLATE] 22477 instantiate the configuration header FILE 22478 22479Configuration files: 22480$config_files 22481 22482Configuration headers: 22483$config_headers 22484 22485Configuration commands: 22486$config_commands 22487 22488Report bugs to the package provider." 22489 22490_ACEOF 22491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22492ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22493ac_cs_version="\\ 22494mpb config.status 1.11.1 22495configured by $0, generated by GNU Autoconf 2.69, 22496 with options \\"\$ac_cs_config\\" 22497 22498Copyright (C) 2012 Free Software Foundation, Inc. 22499This config.status script is free software; the Free Software Foundation 22500gives unlimited permission to copy, distribute and modify it." 22501 22502ac_pwd='$ac_pwd' 22503srcdir='$srcdir' 22504INSTALL='$INSTALL' 22505MKDIR_P='$MKDIR_P' 22506AWK='$AWK' 22507test -n "\$AWK" || AWK=awk 22508_ACEOF 22509 22510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22511# The default lists apply if the user does not specify any file. 22512ac_need_defaults=: 22513while test $# != 0 22514do 22515 case $1 in 22516 --*=?*) 22517 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22518 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22519 ac_shift=: 22520 ;; 22521 --*=) 22522 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22523 ac_optarg= 22524 ac_shift=: 22525 ;; 22526 *) 22527 ac_option=$1 22528 ac_optarg=$2 22529 ac_shift=shift 22530 ;; 22531 esac 22532 22533 case $ac_option in 22534 # Handling of the options. 22535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22536 ac_cs_recheck=: ;; 22537 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22538 $as_echo "$ac_cs_version"; exit ;; 22539 --config | --confi | --conf | --con | --co | --c ) 22540 $as_echo "$ac_cs_config"; exit ;; 22541 --debug | --debu | --deb | --de | --d | -d ) 22542 debug=: ;; 22543 --file | --fil | --fi | --f ) 22544 $ac_shift 22545 case $ac_optarg in 22546 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22547 '') as_fn_error $? "missing file argument" ;; 22548 esac 22549 as_fn_append CONFIG_FILES " '$ac_optarg'" 22550 ac_need_defaults=false;; 22551 --header | --heade | --head | --hea ) 22552 $ac_shift 22553 case $ac_optarg in 22554 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22555 esac 22556 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22557 ac_need_defaults=false;; 22558 --he | --h) 22559 # Conflict between --help and --header 22560 as_fn_error $? "ambiguous option: \`$1' 22561Try \`$0 --help' for more information.";; 22562 --help | --hel | -h ) 22563 $as_echo "$ac_cs_usage"; exit ;; 22564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22565 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22566 ac_cs_silent=: ;; 22567 22568 # This is an error. 22569 -*) as_fn_error $? "unrecognized option: \`$1' 22570Try \`$0 --help' for more information." ;; 22571 22572 *) as_fn_append ac_config_targets " $1" 22573 ac_need_defaults=false ;; 22574 22575 esac 22576 shift 22577done 22578 22579ac_configure_extra_args= 22580 22581if $ac_cs_silent; then 22582 exec 6>/dev/null 22583 ac_configure_extra_args="$ac_configure_extra_args --silent" 22584fi 22585 22586_ACEOF 22587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22588if \$ac_cs_recheck; then 22589 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22590 shift 22591 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22592 CONFIG_SHELL='$SHELL' 22593 export CONFIG_SHELL 22594 exec "\$@" 22595fi 22596 22597_ACEOF 22598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22599exec 5>>config.log 22600{ 22601 echo 22602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22603## Running $as_me. ## 22604_ASBOX 22605 $as_echo "$ac_log" 22606} >&5 22607 22608_ACEOF 22609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22610# 22611# INIT-COMMANDS 22612# 22613AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22614 22615 22616# The HP-UX ksh and POSIX shell print the target directory to stdout 22617# if CDPATH is set. 22618(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22619 22620sed_quote_subst='$sed_quote_subst' 22621double_quote_subst='$double_quote_subst' 22622delay_variable_subst='$delay_variable_subst' 22623enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22624macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22625macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22626enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22627pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22628enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22629shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22630SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22631ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22632PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22633host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22634host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22635host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22636build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22637build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22638build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22639SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22640Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22641GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22642EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22643FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22644LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22645NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22646LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22647max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22648ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22649exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22650lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22651lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22652lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22653lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22654lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22655reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22656reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22657OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22658deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22659file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22660file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22661want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22662DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22663sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22664AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22665AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22666archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22667STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22668RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22669old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22670old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22671old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22672lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22673CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22674CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22675compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22676GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22677lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22678lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22679lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22680lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22681lt_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"`' 22682lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22683nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22684lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22685lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22686objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22687MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22688lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22689lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22690lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22691lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22692lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22693need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22694MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22695DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22696NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22697LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22698OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22699OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22700libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22701shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22702extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22703archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22704enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22705export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22706whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22707compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22708old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22709old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22710archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22711archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22712module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22713module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22714with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22715allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22716no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22717hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22718hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22719hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22720hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22721hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22722hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22723hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22724inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22725link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22726always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22727export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22728exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22729include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22730prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22731postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22732file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22733variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22734need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22735need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22736version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22737runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22738shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22739shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22740libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22741library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22742soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22743install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22744postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22745postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22746finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22747finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22748hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22749sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22750configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22751configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22752hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22753enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22754enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22755enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22756old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22757striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22758LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' 22759reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' 22760reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' 22761old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 22762compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' 22763GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' 22764lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' 22765lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' 22766lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' 22767lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' 22768lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' 22769archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' 22770enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' 22771export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 22772whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 22773compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' 22774old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' 22775old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' 22776archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 22777archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 22778module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' 22779module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 22780with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' 22781allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 22782no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 22783hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 22784hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' 22785hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' 22786hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' 22787hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' 22788hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' 22789hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' 22790inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' 22791link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' 22792always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' 22793export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' 22794exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' 22795include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' 22796prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' 22797postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' 22798file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' 22799hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' 22800 22801LTCC='$LTCC' 22802LTCFLAGS='$LTCFLAGS' 22803compiler='$compiler_DEFAULT' 22804 22805# A function that is used when there is no print builtin or printf. 22806func_fallback_echo () 22807{ 22808 eval 'cat <<_LTECHO_EOF 22809\$1 22810_LTECHO_EOF' 22811} 22812 22813# Quote evaled strings. 22814for var in SHELL \ 22815ECHO \ 22816PATH_SEPARATOR \ 22817SED \ 22818GREP \ 22819EGREP \ 22820FGREP \ 22821LD \ 22822NM \ 22823LN_S \ 22824lt_SP2NL \ 22825lt_NL2SP \ 22826reload_flag \ 22827OBJDUMP \ 22828deplibs_check_method \ 22829file_magic_cmd \ 22830file_magic_glob \ 22831want_nocaseglob \ 22832DLLTOOL \ 22833sharedlib_from_linklib_cmd \ 22834AR \ 22835AR_FLAGS \ 22836archiver_list_spec \ 22837STRIP \ 22838RANLIB \ 22839CC \ 22840CFLAGS \ 22841compiler \ 22842lt_cv_sys_global_symbol_pipe \ 22843lt_cv_sys_global_symbol_to_cdecl \ 22844lt_cv_sys_global_symbol_to_import \ 22845lt_cv_sys_global_symbol_to_c_name_address \ 22846lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22847lt_cv_nm_interface \ 22848nm_file_list_spec \ 22849lt_cv_truncate_bin \ 22850lt_prog_compiler_no_builtin_flag \ 22851lt_prog_compiler_pic \ 22852lt_prog_compiler_wl \ 22853lt_prog_compiler_static \ 22854lt_cv_prog_compiler_c_o \ 22855need_locks \ 22856MANIFEST_TOOL \ 22857DSYMUTIL \ 22858NMEDIT \ 22859LIPO \ 22860OTOOL \ 22861OTOOL64 \ 22862shrext_cmds \ 22863export_dynamic_flag_spec \ 22864whole_archive_flag_spec \ 22865compiler_needs_object \ 22866with_gnu_ld \ 22867allow_undefined_flag \ 22868no_undefined_flag \ 22869hardcode_libdir_flag_spec \ 22870hardcode_libdir_separator \ 22871exclude_expsyms \ 22872include_expsyms \ 22873file_list_spec \ 22874variables_saved_for_relink \ 22875libname_spec \ 22876library_names_spec \ 22877soname_spec \ 22878install_override_mode \ 22879finish_eval \ 22880old_striplib \ 22881striplib \ 22882LD_F77 \ 22883reload_flag_F77 \ 22884compiler_F77 \ 22885lt_prog_compiler_no_builtin_flag_F77 \ 22886lt_prog_compiler_pic_F77 \ 22887lt_prog_compiler_wl_F77 \ 22888lt_prog_compiler_static_F77 \ 22889lt_cv_prog_compiler_c_o_F77 \ 22890export_dynamic_flag_spec_F77 \ 22891whole_archive_flag_spec_F77 \ 22892compiler_needs_object_F77 \ 22893with_gnu_ld_F77 \ 22894allow_undefined_flag_F77 \ 22895no_undefined_flag_F77 \ 22896hardcode_libdir_flag_spec_F77 \ 22897hardcode_libdir_separator_F77 \ 22898exclude_expsyms_F77 \ 22899include_expsyms_F77 \ 22900file_list_spec_F77; do 22901 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22902 *[\\\\\\\`\\"\\\$]*) 22903 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22904 ;; 22905 *) 22906 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22907 ;; 22908 esac 22909done 22910 22911# Double-quote double-evaled strings. 22912for var in reload_cmds \ 22913old_postinstall_cmds \ 22914old_postuninstall_cmds \ 22915old_archive_cmds \ 22916extract_expsyms_cmds \ 22917old_archive_from_new_cmds \ 22918old_archive_from_expsyms_cmds \ 22919archive_cmds \ 22920archive_expsym_cmds \ 22921module_cmds \ 22922module_expsym_cmds \ 22923export_symbols_cmds \ 22924prelink_cmds \ 22925postlink_cmds \ 22926postinstall_cmds \ 22927postuninstall_cmds \ 22928finish_cmds \ 22929sys_lib_search_path_spec \ 22930configure_time_dlsearch_path \ 22931configure_time_lt_sys_library_path \ 22932reload_cmds_F77 \ 22933old_archive_cmds_F77 \ 22934old_archive_from_new_cmds_F77 \ 22935old_archive_from_expsyms_cmds_F77 \ 22936archive_cmds_F77 \ 22937archive_expsym_cmds_F77 \ 22938module_cmds_F77 \ 22939module_expsym_cmds_F77 \ 22940export_symbols_cmds_F77 \ 22941prelink_cmds_F77 \ 22942postlink_cmds_F77; do 22943 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22944 *[\\\\\\\`\\"\\\$]*) 22945 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22946 ;; 22947 *) 22948 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22949 ;; 22950 esac 22951done 22952 22953ac_aux_dir='$ac_aux_dir' 22954 22955# See if we are running on zsh, and set the options that allow our 22956# commands through without removal of \ escapes INIT. 22957if test -n "\${ZSH_VERSION+set}"; then 22958 setopt NO_GLOB_SUBST 22959fi 22960 22961 22962 PACKAGE='$PACKAGE' 22963 VERSION='$VERSION' 22964 RM='$RM' 22965 ofile='$ofile' 22966 22967 22968 22969 22970 22971 22972_ACEOF 22973 22974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22975 22976# Handling of arguments. 22977for ac_config_target in $ac_config_targets 22978do 22979 case $ac_config_target in 22980 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22981 "src/mpbconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/mpbconf.h" ;; 22982 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22983 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22984 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22985 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 22986 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 22987 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22988 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 22989 "src/matrices/Makefile") CONFIG_FILES="$CONFIG_FILES src/matrices/Makefile" ;; 22990 "src/matrixio/Makefile") CONFIG_FILES="$CONFIG_FILES src/matrixio/Makefile" ;; 22991 "src/maxwell/Makefile") CONFIG_FILES="$CONFIG_FILES src/maxwell/Makefile" ;; 22992 "mpb/Makefile") CONFIG_FILES="$CONFIG_FILES mpb/Makefile" ;; 22993 "mpb/mpb.scm") CONFIG_FILES="$CONFIG_FILES mpb/mpb.scm" ;; 22994 "mpb/mpb-split-preinstall") CONFIG_FILES="$CONFIG_FILES mpb/mpb-split-preinstall" ;; 22995 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 22996 22997 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22998 esac 22999done 23000 23001 23002# If the user did not use the arguments to specify the items to instantiate, 23003# then the envvar interface is used. Set only those that are not. 23004# We use the long form for the default assignment because of an extremely 23005# bizarre bug on SunOS 4.1.3. 23006if $ac_need_defaults; then 23007 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23008 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23009 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23010fi 23011 23012# Have a temporary directory for convenience. Make it in the build tree 23013# simply because there is no reason against having it here, and in addition, 23014# creating and moving files from /tmp can sometimes cause problems. 23015# Hook for its removal unless debugging. 23016# Note that there is a small window in which the directory will not be cleaned: 23017# after its creation but before its name has been assigned to `$tmp'. 23018$debug || 23019{ 23020 tmp= ac_tmp= 23021 trap 'exit_status=$? 23022 : "${ac_tmp:=$tmp}" 23023 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23024' 0 23025 trap 'as_fn_exit 1' 1 2 13 15 23026} 23027# Create a (secure) tmp directory for tmp files. 23028 23029{ 23030 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23031 test -d "$tmp" 23032} || 23033{ 23034 tmp=./conf$$-$RANDOM 23035 (umask 077 && mkdir "$tmp") 23036} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23037ac_tmp=$tmp 23038 23039# Set up the scripts for CONFIG_FILES section. 23040# No need to generate them if there are no CONFIG_FILES. 23041# This happens for instance with `./config.status config.h'. 23042if test -n "$CONFIG_FILES"; then 23043 23044 23045ac_cr=`echo X | tr X '\015'` 23046# On cygwin, bash can eat \r inside `` if the user requested igncr. 23047# But we know of no other shell where ac_cr would be empty at this 23048# point, so we can use a bashism as a fallback. 23049if test "x$ac_cr" = x; then 23050 eval ac_cr=\$\'\\r\' 23051fi 23052ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23053if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23054 ac_cs_awk_cr='\\r' 23055else 23056 ac_cs_awk_cr=$ac_cr 23057fi 23058 23059echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23060_ACEOF 23061 23062 23063{ 23064 echo "cat >conf$$subs.awk <<_ACEOF" && 23065 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23066 echo "_ACEOF" 23067} >conf$$subs.sh || 23068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23069ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23070ac_delim='%!_!# ' 23071for ac_last_try in false false false false false :; do 23072 . ./conf$$subs.sh || 23073 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23074 23075 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23076 if test $ac_delim_n = $ac_delim_num; then 23077 break 23078 elif $ac_last_try; then 23079 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23080 else 23081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23082 fi 23083done 23084rm -f conf$$subs.sh 23085 23086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23087cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23088_ACEOF 23089sed -n ' 23090h 23091s/^/S["/; s/!.*/"]=/ 23092p 23093g 23094s/^[^!]*!// 23095:repl 23096t repl 23097s/'"$ac_delim"'$// 23098t delim 23099:nl 23100h 23101s/\(.\{148\}\)..*/\1/ 23102t more1 23103s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23104p 23105n 23106b repl 23107:more1 23108s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23109p 23110g 23111s/.\{148\}// 23112t nl 23113:delim 23114h 23115s/\(.\{148\}\)..*/\1/ 23116t more2 23117s/["\\]/\\&/g; s/^/"/; s/$/"/ 23118p 23119b 23120:more2 23121s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23122p 23123g 23124s/.\{148\}// 23125t delim 23126' <conf$$subs.awk | sed ' 23127/^[^""]/{ 23128 N 23129 s/\n// 23130} 23131' >>$CONFIG_STATUS || ac_write_fail=1 23132rm -f conf$$subs.awk 23133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23134_ACAWK 23135cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23136 for (key in S) S_is_set[key] = 1 23137 FS = "" 23138 23139} 23140{ 23141 line = $ 0 23142 nfields = split(line, field, "@") 23143 substed = 0 23144 len = length(field[1]) 23145 for (i = 2; i < nfields; i++) { 23146 key = field[i] 23147 keylen = length(key) 23148 if (S_is_set[key]) { 23149 value = S[key] 23150 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23151 len += length(value) + length(field[++i]) 23152 substed = 1 23153 } else 23154 len += 1 + keylen 23155 } 23156 23157 print line 23158} 23159 23160_ACAWK 23161_ACEOF 23162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23163if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23164 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23165else 23166 cat 23167fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23168 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23169_ACEOF 23170 23171# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23172# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23173# trailing colons and then remove the whole line if VPATH becomes empty 23174# (actually we leave an empty line to preserve line numbers). 23175if test "x$srcdir" = x.; then 23176 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23177h 23178s/// 23179s/^/:/ 23180s/[ ]*$/:/ 23181s/:\$(srcdir):/:/g 23182s/:\${srcdir}:/:/g 23183s/:@srcdir@:/:/g 23184s/^:*// 23185s/:*$// 23186x 23187s/\(=[ ]*\).*/\1/ 23188G 23189s/\n// 23190s/^[^=]*=[ ]*$// 23191}' 23192fi 23193 23194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23195fi # test -n "$CONFIG_FILES" 23196 23197# Set up the scripts for CONFIG_HEADERS section. 23198# No need to generate them if there are no CONFIG_HEADERS. 23199# This happens for instance with `./config.status Makefile'. 23200if test -n "$CONFIG_HEADERS"; then 23201cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23202BEGIN { 23203_ACEOF 23204 23205# Transform confdefs.h into an awk script `defines.awk', embedded as 23206# here-document in config.status, that substitutes the proper values into 23207# config.h.in to produce config.h. 23208 23209# Create a delimiter string that does not exist in confdefs.h, to ease 23210# handling of long lines. 23211ac_delim='%!_!# ' 23212for ac_last_try in false false :; do 23213 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23214 if test -z "$ac_tt"; then 23215 break 23216 elif $ac_last_try; then 23217 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23218 else 23219 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23220 fi 23221done 23222 23223# For the awk script, D is an array of macro values keyed by name, 23224# likewise P contains macro parameters if any. Preserve backslash 23225# newline sequences. 23226 23227ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23228sed -n ' 23229s/.\{148\}/&'"$ac_delim"'/g 23230t rset 23231:rset 23232s/^[ ]*#[ ]*define[ ][ ]*/ / 23233t def 23234d 23235:def 23236s/\\$// 23237t bsnl 23238s/["\\]/\\&/g 23239s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23240D["\1"]=" \3"/p 23241s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23242d 23243:bsnl 23244s/["\\]/\\&/g 23245s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23246D["\1"]=" \3\\\\\\n"\\/p 23247t cont 23248s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23249t cont 23250d 23251:cont 23252n 23253s/.\{148\}/&'"$ac_delim"'/g 23254t clear 23255:clear 23256s/\\$// 23257t bsnlc 23258s/["\\]/\\&/g; s/^/"/; s/$/"/p 23259d 23260:bsnlc 23261s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23262b cont 23263' <confdefs.h | sed ' 23264s/'"$ac_delim"'/"\\\ 23265"/g' >>$CONFIG_STATUS || ac_write_fail=1 23266 23267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23268 for (key in D) D_is_set[key] = 1 23269 FS = "" 23270} 23271/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23272 line = \$ 0 23273 split(line, arg, " ") 23274 if (arg[1] == "#") { 23275 defundef = arg[2] 23276 mac1 = arg[3] 23277 } else { 23278 defundef = substr(arg[1], 2) 23279 mac1 = arg[2] 23280 } 23281 split(mac1, mac2, "(") #) 23282 macro = mac2[1] 23283 prefix = substr(line, 1, index(line, defundef) - 1) 23284 if (D_is_set[macro]) { 23285 # Preserve the white space surrounding the "#". 23286 print prefix "define", macro P[macro] D[macro] 23287 next 23288 } else { 23289 # Replace #undef with comments. This is necessary, for example, 23290 # in the case of _POSIX_SOURCE, which is predefined and required 23291 # on some systems where configure will not decide to define it. 23292 if (defundef == "undef") { 23293 print "/*", prefix defundef, macro, "*/" 23294 next 23295 } 23296 } 23297} 23298{ print } 23299_ACAWK 23300_ACEOF 23301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23302 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23303fi # test -n "$CONFIG_HEADERS" 23304 23305 23306eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23307shift 23308for ac_tag 23309do 23310 case $ac_tag in 23311 :[FHLC]) ac_mode=$ac_tag; continue;; 23312 esac 23313 case $ac_mode$ac_tag in 23314 :[FHL]*:*);; 23315 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23316 :[FH]-) ac_tag=-:-;; 23317 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23318 esac 23319 ac_save_IFS=$IFS 23320 IFS=: 23321 set x $ac_tag 23322 IFS=$ac_save_IFS 23323 shift 23324 ac_file=$1 23325 shift 23326 23327 case $ac_mode in 23328 :L) ac_source=$1;; 23329 :[FH]) 23330 ac_file_inputs= 23331 for ac_f 23332 do 23333 case $ac_f in 23334 -) ac_f="$ac_tmp/stdin";; 23335 *) # Look for the file first in the build tree, then in the source tree 23336 # (if the path is not absolute). The absolute path cannot be DOS-style, 23337 # because $ac_f cannot contain `:'. 23338 test -f "$ac_f" || 23339 case $ac_f in 23340 [\\/$]*) false;; 23341 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23342 esac || 23343 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23344 esac 23345 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23346 as_fn_append ac_file_inputs " '$ac_f'" 23347 done 23348 23349 # Let's still pretend it is `configure' which instantiates (i.e., don't 23350 # use $as_me), people would be surprised to read: 23351 # /* config.h. Generated by config.status. */ 23352 configure_input='Generated from '` 23353 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23354 `' by configure.' 23355 if test x"$ac_file" != x-; then 23356 configure_input="$ac_file. $configure_input" 23357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23358$as_echo "$as_me: creating $ac_file" >&6;} 23359 fi 23360 # Neutralize special characters interpreted by sed in replacement strings. 23361 case $configure_input in #( 23362 *\&* | *\|* | *\\* ) 23363 ac_sed_conf_input=`$as_echo "$configure_input" | 23364 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23365 *) ac_sed_conf_input=$configure_input;; 23366 esac 23367 23368 case $ac_tag in 23369 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23371 esac 23372 ;; 23373 esac 23374 23375 ac_dir=`$as_dirname -- "$ac_file" || 23376$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23377 X"$ac_file" : 'X\(//\)[^/]' \| \ 23378 X"$ac_file" : 'X\(//\)$' \| \ 23379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23380$as_echo X"$ac_file" | 23381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23382 s//\1/ 23383 q 23384 } 23385 /^X\(\/\/\)[^/].*/{ 23386 s//\1/ 23387 q 23388 } 23389 /^X\(\/\/\)$/{ 23390 s//\1/ 23391 q 23392 } 23393 /^X\(\/\).*/{ 23394 s//\1/ 23395 q 23396 } 23397 s/.*/./; q'` 23398 as_dir="$ac_dir"; as_fn_mkdir_p 23399 ac_builddir=. 23400 23401case "$ac_dir" in 23402.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23403*) 23404 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23405 # A ".." for each directory in $ac_dir_suffix. 23406 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23407 case $ac_top_builddir_sub in 23408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23410 esac ;; 23411esac 23412ac_abs_top_builddir=$ac_pwd 23413ac_abs_builddir=$ac_pwd$ac_dir_suffix 23414# for backward compatibility: 23415ac_top_builddir=$ac_top_build_prefix 23416 23417case $srcdir in 23418 .) # We are building in place. 23419 ac_srcdir=. 23420 ac_top_srcdir=$ac_top_builddir_sub 23421 ac_abs_top_srcdir=$ac_pwd ;; 23422 [\\/]* | ?:[\\/]* ) # Absolute name. 23423 ac_srcdir=$srcdir$ac_dir_suffix; 23424 ac_top_srcdir=$srcdir 23425 ac_abs_top_srcdir=$srcdir ;; 23426 *) # Relative name. 23427 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23428 ac_top_srcdir=$ac_top_build_prefix$srcdir 23429 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23430esac 23431ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23432 23433 23434 case $ac_mode in 23435 :F) 23436 # 23437 # CONFIG_FILE 23438 # 23439 23440 case $INSTALL in 23441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23442 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23443 esac 23444 ac_MKDIR_P=$MKDIR_P 23445 case $MKDIR_P in 23446 [\\/$]* | ?:[\\/]* ) ;; 23447 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23448 esac 23449_ACEOF 23450 23451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23452# If the template does not know about datarootdir, expand it. 23453# FIXME: This hack should be removed a few years after 2.60. 23454ac_datarootdir_hack=; ac_datarootdir_seen= 23455ac_sed_dataroot=' 23456/datarootdir/ { 23457 p 23458 q 23459} 23460/@datadir@/p 23461/@docdir@/p 23462/@infodir@/p 23463/@localedir@/p 23464/@mandir@/p' 23465case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23466*datarootdir*) ac_datarootdir_seen=yes;; 23467*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23469$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23470_ACEOF 23471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23472 ac_datarootdir_hack=' 23473 s&@datadir@&$datadir&g 23474 s&@docdir@&$docdir&g 23475 s&@infodir@&$infodir&g 23476 s&@localedir@&$localedir&g 23477 s&@mandir@&$mandir&g 23478 s&\\\${datarootdir}&$datarootdir&g' ;; 23479esac 23480_ACEOF 23481 23482# Neutralize VPATH when `$srcdir' = `.'. 23483# Shell code in configure.ac might set extrasub. 23484# FIXME: do we really want to maintain this feature? 23485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23486ac_sed_extra="$ac_vpsub 23487$extrasub 23488_ACEOF 23489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23490:t 23491/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23492s|@configure_input@|$ac_sed_conf_input|;t t 23493s&@top_builddir@&$ac_top_builddir_sub&;t t 23494s&@top_build_prefix@&$ac_top_build_prefix&;t t 23495s&@srcdir@&$ac_srcdir&;t t 23496s&@abs_srcdir@&$ac_abs_srcdir&;t t 23497s&@top_srcdir@&$ac_top_srcdir&;t t 23498s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23499s&@builddir@&$ac_builddir&;t t 23500s&@abs_builddir@&$ac_abs_builddir&;t t 23501s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23502s&@INSTALL@&$ac_INSTALL&;t t 23503s&@MKDIR_P@&$ac_MKDIR_P&;t t 23504$ac_datarootdir_hack 23505" 23506eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23507 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23508 23509test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23510 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23511 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23512 "$ac_tmp/out"`; test -z "$ac_out"; } && 23513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23514which seems to be undefined. Please make sure it is defined" >&5 23515$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23516which seems to be undefined. Please make sure it is defined" >&2;} 23517 23518 rm -f "$ac_tmp/stdin" 23519 case $ac_file in 23520 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23521 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23522 esac \ 23523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23524 ;; 23525 :H) 23526 # 23527 # CONFIG_HEADER 23528 # 23529 if test x"$ac_file" != x-; then 23530 { 23531 $as_echo "/* $configure_input */" \ 23532 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23533 } >"$ac_tmp/config.h" \ 23534 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23535 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23536 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23537$as_echo "$as_me: $ac_file is unchanged" >&6;} 23538 else 23539 rm -f "$ac_file" 23540 mv "$ac_tmp/config.h" "$ac_file" \ 23541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23542 fi 23543 else 23544 $as_echo "/* $configure_input */" \ 23545 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23546 || as_fn_error $? "could not create -" "$LINENO" 5 23547 fi 23548# Compute "$ac_file"'s index in $config_headers. 23549_am_arg="$ac_file" 23550_am_stamp_count=1 23551for _am_header in $config_headers :; do 23552 case $_am_header in 23553 $_am_arg | $_am_arg:* ) 23554 break ;; 23555 * ) 23556 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23557 esac 23558done 23559echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23560$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23561 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23562 X"$_am_arg" : 'X\(//\)$' \| \ 23563 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23564$as_echo X"$_am_arg" | 23565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23566 s//\1/ 23567 q 23568 } 23569 /^X\(\/\/\)[^/].*/{ 23570 s//\1/ 23571 q 23572 } 23573 /^X\(\/\/\)$/{ 23574 s//\1/ 23575 q 23576 } 23577 /^X\(\/\).*/{ 23578 s//\1/ 23579 q 23580 } 23581 s/.*/./; q'`/stamp-h$_am_stamp_count 23582 ;; 23583 23584 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23585$as_echo "$as_me: executing $ac_file commands" >&6;} 23586 ;; 23587 esac 23588 23589 23590 case $ac_file$ac_mode in 23591 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23592 # Older Autoconf quotes --file arguments for eval, but not when files 23593 # are listed without --file. Let's play safe and only enable the eval 23594 # if we detect the quoting. 23595 # TODO: see whether this extra hack can be removed once we start 23596 # requiring Autoconf 2.70 or later. 23597 case $CONFIG_FILES in #( 23598 *\'*) : 23599 eval set x "$CONFIG_FILES" ;; #( 23600 *) : 23601 set x $CONFIG_FILES ;; #( 23602 *) : 23603 ;; 23604esac 23605 shift 23606 # Used to flag and report bootstrapping failures. 23607 am_rc=0 23608 for am_mf 23609 do 23610 # Strip MF so we end up with the name of the file. 23611 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 23612 # Check whether this is an Automake generated Makefile which includes 23613 # dependency-tracking related rules and includes. 23614 # Grep'ing the whole file directly is not great: AIX grep has a line 23615 # limit of 2048, but all sed's we know have understand at least 4000. 23616 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23617 || continue 23618 am_dirpart=`$as_dirname -- "$am_mf" || 23619$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23620 X"$am_mf" : 'X\(//\)[^/]' \| \ 23621 X"$am_mf" : 'X\(//\)$' \| \ 23622 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23623$as_echo X"$am_mf" | 23624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23625 s//\1/ 23626 q 23627 } 23628 /^X\(\/\/\)[^/].*/{ 23629 s//\1/ 23630 q 23631 } 23632 /^X\(\/\/\)$/{ 23633 s//\1/ 23634 q 23635 } 23636 /^X\(\/\).*/{ 23637 s//\1/ 23638 q 23639 } 23640 s/.*/./; q'` 23641 am_filepart=`$as_basename -- "$am_mf" || 23642$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23643 X"$am_mf" : 'X\(//\)$' \| \ 23644 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23645$as_echo X/"$am_mf" | 23646 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23647 s//\1/ 23648 q 23649 } 23650 /^X\/\(\/\/\)$/{ 23651 s//\1/ 23652 q 23653 } 23654 /^X\/\(\/\).*/{ 23655 s//\1/ 23656 q 23657 } 23658 s/.*/./; q'` 23659 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23660 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23661 | $MAKE -f - am--depfiles" >&5 23662 (cd "$am_dirpart" \ 23663 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23664 | $MAKE -f - am--depfiles) >&5 2>&5 23665 ac_status=$? 23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23667 (exit $ac_status); } || am_rc=$? 23668 done 23669 if test $am_rc -ne 0; then 23670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23672as_fn_error $? "Something went wrong bootstrapping makefile fragments 23673 for automatic dependency tracking. If GNU make was not used, consider 23674 re-running the configure script with MAKE=\"gmake\" (or whatever is 23675 necessary). You can also try re-running configure with the 23676 '--disable-dependency-tracking' option to at least be able to build 23677 the package (albeit without support for automatic dependency tracking). 23678See \`config.log' for more details" "$LINENO" 5; } 23679 fi 23680 { am_dirpart=; unset am_dirpart;} 23681 { am_filepart=; unset am_filepart;} 23682 { am_mf=; unset am_mf;} 23683 { am_rc=; unset am_rc;} 23684 rm -f conftest-deps.mk 23685} 23686 ;; 23687 "libtool":C) 23688 23689 # See if we are running on zsh, and set the options that allow our 23690 # commands through without removal of \ escapes. 23691 if test -n "${ZSH_VERSION+set}"; then 23692 setopt NO_GLOB_SUBST 23693 fi 23694 23695 cfgfile=${ofile}T 23696 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23697 $RM "$cfgfile" 23698 23699 cat <<_LT_EOF >> "$cfgfile" 23700#! $SHELL 23701# Generated automatically by $as_me ($PACKAGE) $VERSION 23702# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23703# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23704 23705# Provide generalized library-building support services. 23706# Written by Gordon Matzigkeit, 1996 23707 23708# Copyright (C) 2014 Free Software Foundation, Inc. 23709# This is free software; see the source for copying conditions. There is NO 23710# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23711 23712# GNU Libtool is free software; you can redistribute it and/or modify 23713# it under the terms of the GNU General Public License as published by 23714# the Free Software Foundation; either version 2 of of the License, or 23715# (at your option) any later version. 23716# 23717# As a special exception to the GNU General Public License, if you 23718# distribute this file as part of a program or library that is built 23719# using GNU Libtool, you may include this file under the same 23720# distribution terms that you use for the rest of that program. 23721# 23722# GNU Libtool is distributed in the hope that it will be useful, but 23723# WITHOUT ANY WARRANTY; without even the implied warranty of 23724# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23725# GNU General Public License for more details. 23726# 23727# You should have received a copy of the GNU General Public License 23728# along with this program. If not, see <http://www.gnu.org/licenses/>. 23729 23730 23731# The names of the tagged configurations supported by this script. 23732available_tags='F77 ' 23733 23734# Configured defaults for sys_lib_dlsearch_path munging. 23735: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23736 23737# ### BEGIN LIBTOOL CONFIG 23738 23739# Whether or not to build shared libraries. 23740build_libtool_libs=$enable_shared 23741 23742# Which release of libtool.m4 was used? 23743macro_version=$macro_version 23744macro_revision=$macro_revision 23745 23746# Whether or not to build static libraries. 23747build_old_libs=$enable_static 23748 23749# What type of objects to build. 23750pic_mode=$pic_mode 23751 23752# Whether or not to optimize for fast installation. 23753fast_install=$enable_fast_install 23754 23755# Shared archive member basename,for filename based shared library versioning on AIX. 23756shared_archive_member_spec=$shared_archive_member_spec 23757 23758# Shell to use when invoking shell scripts. 23759SHELL=$lt_SHELL 23760 23761# An echo program that protects backslashes. 23762ECHO=$lt_ECHO 23763 23764# The PATH separator for the build system. 23765PATH_SEPARATOR=$lt_PATH_SEPARATOR 23766 23767# The host system. 23768host_alias=$host_alias 23769host=$host 23770host_os=$host_os 23771 23772# The build system. 23773build_alias=$build_alias 23774build=$build 23775build_os=$build_os 23776 23777# A sed program that does not truncate output. 23778SED=$lt_SED 23779 23780# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23781Xsed="\$SED -e 1s/^X//" 23782 23783# A grep program that handles long lines. 23784GREP=$lt_GREP 23785 23786# An ERE matcher. 23787EGREP=$lt_EGREP 23788 23789# A literal string matcher. 23790FGREP=$lt_FGREP 23791 23792# A BSD- or MS-compatible name lister. 23793NM=$lt_NM 23794 23795# Whether we need soft or hard links. 23796LN_S=$lt_LN_S 23797 23798# What is the maximum length of a command? 23799max_cmd_len=$max_cmd_len 23800 23801# Object file suffix (normally "o"). 23802objext=$ac_objext 23803 23804# Executable file suffix (normally ""). 23805exeext=$exeext 23806 23807# whether the shell understands "unset". 23808lt_unset=$lt_unset 23809 23810# turn spaces into newlines. 23811SP2NL=$lt_lt_SP2NL 23812 23813# turn newlines into spaces. 23814NL2SP=$lt_lt_NL2SP 23815 23816# convert \$build file names to \$host format. 23817to_host_file_cmd=$lt_cv_to_host_file_cmd 23818 23819# convert \$build files to toolchain format. 23820to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23821 23822# An object symbol dumper. 23823OBJDUMP=$lt_OBJDUMP 23824 23825# Method to check whether dependent libraries are shared objects. 23826deplibs_check_method=$lt_deplibs_check_method 23827 23828# Command to use when deplibs_check_method = "file_magic". 23829file_magic_cmd=$lt_file_magic_cmd 23830 23831# How to find potential files when deplibs_check_method = "file_magic". 23832file_magic_glob=$lt_file_magic_glob 23833 23834# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23835want_nocaseglob=$lt_want_nocaseglob 23836 23837# DLL creation program. 23838DLLTOOL=$lt_DLLTOOL 23839 23840# Command to associate shared and link libraries. 23841sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23842 23843# The archiver. 23844AR=$lt_AR 23845 23846# Flags to create an archive. 23847AR_FLAGS=$lt_AR_FLAGS 23848 23849# How to feed a file listing to the archiver. 23850archiver_list_spec=$lt_archiver_list_spec 23851 23852# A symbol stripping program. 23853STRIP=$lt_STRIP 23854 23855# Commands used to install an old-style archive. 23856RANLIB=$lt_RANLIB 23857old_postinstall_cmds=$lt_old_postinstall_cmds 23858old_postuninstall_cmds=$lt_old_postuninstall_cmds 23859 23860# Whether to use a lock for old archive extraction. 23861lock_old_archive_extraction=$lock_old_archive_extraction 23862 23863# A C compiler. 23864LTCC=$lt_CC 23865 23866# LTCC compiler flags. 23867LTCFLAGS=$lt_CFLAGS 23868 23869# Take the output of nm and produce a listing of raw symbols and C names. 23870global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23871 23872# Transform the output of nm in a proper C declaration. 23873global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23874 23875# Transform the output of nm into a list of symbols to manually relocate. 23876global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23877 23878# Transform the output of nm in a C name address pair. 23879global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23880 23881# Transform the output of nm in a C name address pair when lib prefix is needed. 23882global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23883 23884# The name lister interface. 23885nm_interface=$lt_lt_cv_nm_interface 23886 23887# Specify filename containing input files for \$NM. 23888nm_file_list_spec=$lt_nm_file_list_spec 23889 23890# The root where to search for dependent libraries,and where our libraries should be installed. 23891lt_sysroot=$lt_sysroot 23892 23893# Command to truncate a binary pipe. 23894lt_truncate_bin=$lt_lt_cv_truncate_bin 23895 23896# The name of the directory that contains temporary libtool files. 23897objdir=$objdir 23898 23899# Used to examine libraries when file_magic_cmd begins with "file". 23900MAGIC_CMD=$MAGIC_CMD 23901 23902# Must we lock files when doing compilation? 23903need_locks=$lt_need_locks 23904 23905# Manifest tool. 23906MANIFEST_TOOL=$lt_MANIFEST_TOOL 23907 23908# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23909DSYMUTIL=$lt_DSYMUTIL 23910 23911# Tool to change global to local symbols on Mac OS X. 23912NMEDIT=$lt_NMEDIT 23913 23914# Tool to manipulate fat objects and archives on Mac OS X. 23915LIPO=$lt_LIPO 23916 23917# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23918OTOOL=$lt_OTOOL 23919 23920# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23921OTOOL64=$lt_OTOOL64 23922 23923# Old archive suffix (normally "a"). 23924libext=$libext 23925 23926# Shared library suffix (normally ".so"). 23927shrext_cmds=$lt_shrext_cmds 23928 23929# The commands to extract the exported symbol list from a shared archive. 23930extract_expsyms_cmds=$lt_extract_expsyms_cmds 23931 23932# Variables whose values should be saved in libtool wrapper scripts and 23933# restored at link time. 23934variables_saved_for_relink=$lt_variables_saved_for_relink 23935 23936# Do we need the "lib" prefix for modules? 23937need_lib_prefix=$need_lib_prefix 23938 23939# Do we need a version for libraries? 23940need_version=$need_version 23941 23942# Library versioning type. 23943version_type=$version_type 23944 23945# Shared library runtime path variable. 23946runpath_var=$runpath_var 23947 23948# Shared library path variable. 23949shlibpath_var=$shlibpath_var 23950 23951# Is shlibpath searched before the hard-coded library search path? 23952shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23953 23954# Format of library name prefix. 23955libname_spec=$lt_libname_spec 23956 23957# List of archive names. First name is the real one, the rest are links. 23958# The last name is the one that the linker finds with -lNAME 23959library_names_spec=$lt_library_names_spec 23960 23961# The coded name of the library, if different from the real name. 23962soname_spec=$lt_soname_spec 23963 23964# Permission mode override for installation of shared libraries. 23965install_override_mode=$lt_install_override_mode 23966 23967# Command to use after installation of a shared archive. 23968postinstall_cmds=$lt_postinstall_cmds 23969 23970# Command to use after uninstallation of a shared archive. 23971postuninstall_cmds=$lt_postuninstall_cmds 23972 23973# Commands used to finish a libtool library installation in a directory. 23974finish_cmds=$lt_finish_cmds 23975 23976# As "finish_cmds", except a single script fragment to be evaled but 23977# not shown. 23978finish_eval=$lt_finish_eval 23979 23980# Whether we should hardcode library paths into libraries. 23981hardcode_into_libs=$hardcode_into_libs 23982 23983# Compile-time system search path for libraries. 23984sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23985 23986# Detected run-time system search path for libraries. 23987sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23988 23989# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23990configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23991 23992# Whether dlopen is supported. 23993dlopen_support=$enable_dlopen 23994 23995# Whether dlopen of programs is supported. 23996dlopen_self=$enable_dlopen_self 23997 23998# Whether dlopen of statically linked programs is supported. 23999dlopen_self_static=$enable_dlopen_self_static 24000 24001# Commands to strip libraries. 24002old_striplib=$lt_old_striplib 24003striplib=$lt_striplib 24004 24005 24006# The linker used to build libraries. 24007LD=$lt_LD 24008 24009# How to create reloadable object files. 24010reload_flag=$lt_reload_flag 24011reload_cmds=$lt_reload_cmds 24012 24013# Commands used to build an old-style archive. 24014old_archive_cmds=$lt_old_archive_cmds 24015 24016# A language specific compiler. 24017CC=$lt_compiler 24018 24019# Is the compiler the GNU compiler? 24020with_gcc=$GCC 24021 24022# Compiler flag to turn off builtin functions. 24023no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24024 24025# Additional compiler flags for building library objects. 24026pic_flag=$lt_lt_prog_compiler_pic 24027 24028# How to pass a linker flag through the compiler. 24029wl=$lt_lt_prog_compiler_wl 24030 24031# Compiler flag to prevent dynamic linking. 24032link_static_flag=$lt_lt_prog_compiler_static 24033 24034# Does compiler simultaneously support -c and -o options? 24035compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24036 24037# Whether or not to add -lc for building shared libraries. 24038build_libtool_need_lc=$archive_cmds_need_lc 24039 24040# Whether or not to disallow shared libs when runtime libs are static. 24041allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24042 24043# Compiler flag to allow reflexive dlopens. 24044export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24045 24046# Compiler flag to generate shared objects directly from archives. 24047whole_archive_flag_spec=$lt_whole_archive_flag_spec 24048 24049# Whether the compiler copes with passing no objects directly. 24050compiler_needs_object=$lt_compiler_needs_object 24051 24052# Create an old-style archive from a shared archive. 24053old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24054 24055# Create a temporary old-style archive to link instead of a shared archive. 24056old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24057 24058# Commands used to build a shared archive. 24059archive_cmds=$lt_archive_cmds 24060archive_expsym_cmds=$lt_archive_expsym_cmds 24061 24062# Commands used to build a loadable module if different from building 24063# a shared archive. 24064module_cmds=$lt_module_cmds 24065module_expsym_cmds=$lt_module_expsym_cmds 24066 24067# Whether we are building with GNU ld or not. 24068with_gnu_ld=$lt_with_gnu_ld 24069 24070# Flag that allows shared libraries with undefined symbols to be built. 24071allow_undefined_flag=$lt_allow_undefined_flag 24072 24073# Flag that enforces no undefined symbols. 24074no_undefined_flag=$lt_no_undefined_flag 24075 24076# Flag to hardcode \$libdir into a binary during linking. 24077# This must work even if \$libdir does not exist 24078hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24079 24080# Whether we need a single "-rpath" flag with a separated argument. 24081hardcode_libdir_separator=$lt_hardcode_libdir_separator 24082 24083# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24084# DIR into the resulting binary. 24085hardcode_direct=$hardcode_direct 24086 24087# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24088# DIR into the resulting binary and the resulting library dependency is 24089# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24090# library is relocated. 24091hardcode_direct_absolute=$hardcode_direct_absolute 24092 24093# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24094# into the resulting binary. 24095hardcode_minus_L=$hardcode_minus_L 24096 24097# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24098# into the resulting binary. 24099hardcode_shlibpath_var=$hardcode_shlibpath_var 24100 24101# Set to "yes" if building a shared library automatically hardcodes DIR 24102# into the library and all subsequent libraries and executables linked 24103# against it. 24104hardcode_automatic=$hardcode_automatic 24105 24106# Set to yes if linker adds runtime paths of dependent libraries 24107# to runtime path list. 24108inherit_rpath=$inherit_rpath 24109 24110# Whether libtool must link a program against all its dependency libraries. 24111link_all_deplibs=$link_all_deplibs 24112 24113# Set to "yes" if exported symbols are required. 24114always_export_symbols=$always_export_symbols 24115 24116# The commands to list exported symbols. 24117export_symbols_cmds=$lt_export_symbols_cmds 24118 24119# Symbols that should not be listed in the preloaded symbols. 24120exclude_expsyms=$lt_exclude_expsyms 24121 24122# Symbols that must always be exported. 24123include_expsyms=$lt_include_expsyms 24124 24125# Commands necessary for linking programs (against libraries) with templates. 24126prelink_cmds=$lt_prelink_cmds 24127 24128# Commands necessary for finishing linking programs. 24129postlink_cmds=$lt_postlink_cmds 24130 24131# Specify filename containing input files. 24132file_list_spec=$lt_file_list_spec 24133 24134# How to hardcode a shared library path into an executable. 24135hardcode_action=$hardcode_action 24136 24137# ### END LIBTOOL CONFIG 24138 24139_LT_EOF 24140 24141 cat <<'_LT_EOF' >> "$cfgfile" 24142 24143# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24144 24145# func_munge_path_list VARIABLE PATH 24146# ----------------------------------- 24147# VARIABLE is name of variable containing _space_ separated list of 24148# directories to be munged by the contents of PATH, which is string 24149# having a format: 24150# "DIR[:DIR]:" 24151# string "DIR[ DIR]" will be prepended to VARIABLE 24152# ":DIR[:DIR]" 24153# string "DIR[ DIR]" will be appended to VARIABLE 24154# "DIRP[:DIRP]::[DIRA:]DIRA" 24155# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24156# "DIRA[ DIRA]" will be appended to VARIABLE 24157# "DIR[:DIR]" 24158# VARIABLE will be replaced by "DIR[ DIR]" 24159func_munge_path_list () 24160{ 24161 case x$2 in 24162 x) 24163 ;; 24164 *:) 24165 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24166 ;; 24167 x:*) 24168 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24169 ;; 24170 *::*) 24171 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24172 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24173 ;; 24174 *) 24175 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24176 ;; 24177 esac 24178} 24179 24180 24181# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24182func_cc_basename () 24183{ 24184 for cc_temp in $*""; do 24185 case $cc_temp in 24186 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24187 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24188 \-*) ;; 24189 *) break;; 24190 esac 24191 done 24192 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24193} 24194 24195 24196# ### END FUNCTIONS SHARED WITH CONFIGURE 24197 24198_LT_EOF 24199 24200 case $host_os in 24201 aix3*) 24202 cat <<\_LT_EOF >> "$cfgfile" 24203# AIX sometimes has problems with the GCC collect2 program. For some 24204# reason, if we set the COLLECT_NAMES environment variable, the problems 24205# vanish in a puff of smoke. 24206if test set != "${COLLECT_NAMES+set}"; then 24207 COLLECT_NAMES= 24208 export COLLECT_NAMES 24209fi 24210_LT_EOF 24211 ;; 24212 esac 24213 24214 24215ltmain=$ac_aux_dir/ltmain.sh 24216 24217 24218 # We use sed instead of cat because bash on DJGPP gets confused if 24219 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24220 # text mode, it properly converts lines to CR/LF. This bash problem 24221 # is reportedly fixed, but why not run on old versions too? 24222 sed '$q' "$ltmain" >> "$cfgfile" \ 24223 || (rm -f "$cfgfile"; exit 1) 24224 24225 mv -f "$cfgfile" "$ofile" || 24226 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24227 chmod +x "$ofile" 24228 24229 24230 cat <<_LT_EOF >> "$ofile" 24231 24232# ### BEGIN LIBTOOL TAG CONFIG: F77 24233 24234# The linker used to build libraries. 24235LD=$lt_LD_F77 24236 24237# How to create reloadable object files. 24238reload_flag=$lt_reload_flag_F77 24239reload_cmds=$lt_reload_cmds_F77 24240 24241# Commands used to build an old-style archive. 24242old_archive_cmds=$lt_old_archive_cmds_F77 24243 24244# A language specific compiler. 24245CC=$lt_compiler_F77 24246 24247# Is the compiler the GNU compiler? 24248with_gcc=$GCC_F77 24249 24250# Compiler flag to turn off builtin functions. 24251no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 24252 24253# Additional compiler flags for building library objects. 24254pic_flag=$lt_lt_prog_compiler_pic_F77 24255 24256# How to pass a linker flag through the compiler. 24257wl=$lt_lt_prog_compiler_wl_F77 24258 24259# Compiler flag to prevent dynamic linking. 24260link_static_flag=$lt_lt_prog_compiler_static_F77 24261 24262# Does compiler simultaneously support -c and -o options? 24263compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 24264 24265# Whether or not to add -lc for building shared libraries. 24266build_libtool_need_lc=$archive_cmds_need_lc_F77 24267 24268# Whether or not to disallow shared libs when runtime libs are static. 24269allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 24270 24271# Compiler flag to allow reflexive dlopens. 24272export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 24273 24274# Compiler flag to generate shared objects directly from archives. 24275whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 24276 24277# Whether the compiler copes with passing no objects directly. 24278compiler_needs_object=$lt_compiler_needs_object_F77 24279 24280# Create an old-style archive from a shared archive. 24281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 24282 24283# Create a temporary old-style archive to link instead of a shared archive. 24284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 24285 24286# Commands used to build a shared archive. 24287archive_cmds=$lt_archive_cmds_F77 24288archive_expsym_cmds=$lt_archive_expsym_cmds_F77 24289 24290# Commands used to build a loadable module if different from building 24291# a shared archive. 24292module_cmds=$lt_module_cmds_F77 24293module_expsym_cmds=$lt_module_expsym_cmds_F77 24294 24295# Whether we are building with GNU ld or not. 24296with_gnu_ld=$lt_with_gnu_ld_F77 24297 24298# Flag that allows shared libraries with undefined symbols to be built. 24299allow_undefined_flag=$lt_allow_undefined_flag_F77 24300 24301# Flag that enforces no undefined symbols. 24302no_undefined_flag=$lt_no_undefined_flag_F77 24303 24304# Flag to hardcode \$libdir into a binary during linking. 24305# This must work even if \$libdir does not exist 24306hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 24307 24308# Whether we need a single "-rpath" flag with a separated argument. 24309hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 24310 24311# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24312# DIR into the resulting binary. 24313hardcode_direct=$hardcode_direct_F77 24314 24315# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24316# DIR into the resulting binary and the resulting library dependency is 24317# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24318# library is relocated. 24319hardcode_direct_absolute=$hardcode_direct_absolute_F77 24320 24321# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24322# into the resulting binary. 24323hardcode_minus_L=$hardcode_minus_L_F77 24324 24325# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24326# into the resulting binary. 24327hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 24328 24329# Set to "yes" if building a shared library automatically hardcodes DIR 24330# into the library and all subsequent libraries and executables linked 24331# against it. 24332hardcode_automatic=$hardcode_automatic_F77 24333 24334# Set to yes if linker adds runtime paths of dependent libraries 24335# to runtime path list. 24336inherit_rpath=$inherit_rpath_F77 24337 24338# Whether libtool must link a program against all its dependency libraries. 24339link_all_deplibs=$link_all_deplibs_F77 24340 24341# Set to "yes" if exported symbols are required. 24342always_export_symbols=$always_export_symbols_F77 24343 24344# The commands to list exported symbols. 24345export_symbols_cmds=$lt_export_symbols_cmds_F77 24346 24347# Symbols that should not be listed in the preloaded symbols. 24348exclude_expsyms=$lt_exclude_expsyms_F77 24349 24350# Symbols that must always be exported. 24351include_expsyms=$lt_include_expsyms_F77 24352 24353# Commands necessary for linking programs (against libraries) with templates. 24354prelink_cmds=$lt_prelink_cmds_F77 24355 24356# Commands necessary for finishing linking programs. 24357postlink_cmds=$lt_postlink_cmds_F77 24358 24359# Specify filename containing input files. 24360file_list_spec=$lt_file_list_spec_F77 24361 24362# How to hardcode a shared library path into an executable. 24363hardcode_action=$hardcode_action_F77 24364 24365# ### END LIBTOOL TAG CONFIG: F77 24366_LT_EOF 24367 24368 ;; 24369 24370 esac 24371done # for ac_tag 24372 24373 24374as_fn_exit 0 24375_ACEOF 24376ac_clean_files=$ac_clean_files_save 24377 24378test $ac_write_fail = 0 || 24379 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24380 24381 24382# configure is writing to config.log, and then calls config.status. 24383# config.status does its own redirection, appending to config.log. 24384# Unfortunately, on DOS this fails, as config.log is still kept open 24385# by configure, so config.status won't be able to write to it; its 24386# output is simply discarded. So we exec the FD to /dev/null, 24387# effectively closing config.log, so it can be properly (re)opened and 24388# appended to by config.status. When coming back to configure, we 24389# need to make the FD available again. 24390if test "$no_create" != yes; then 24391 ac_cs_success=: 24392 ac_config_status_args= 24393 test "$silent" = yes && 24394 ac_config_status_args="$ac_config_status_args --quiet" 24395 exec 5>/dev/null 24396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24397 exec 5>>config.log 24398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24399 # would make configure fail if this is the last instruction. 24400 $ac_cs_success || as_fn_exit 1 24401fi 24402if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24404$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24405fi 24406 24407