1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585# Factoring default headers for most tests. 586ac_includes_default="\ 587#include <stdio.h> 588#ifdef HAVE_SYS_TYPES_H 589# include <sys/types.h> 590#endif 591#ifdef HAVE_SYS_STAT_H 592# include <sys/stat.h> 593#endif 594#ifdef STDC_HEADERS 595# include <stdlib.h> 596# include <stddef.h> 597#else 598# ifdef HAVE_STDLIB_H 599# include <stdlib.h> 600# endif 601#endif 602#ifdef HAVE_STRING_H 603# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 604# include <memory.h> 605# endif 606# include <string.h> 607#endif 608#ifdef HAVE_STRINGS_H 609# include <strings.h> 610#endif 611#ifdef HAVE_INTTYPES_H 612# include <inttypes.h> 613#endif 614#ifdef HAVE_STDINT_H 615# include <stdint.h> 616#endif 617#ifdef HAVE_UNISTD_H 618# include <unistd.h> 619#endif" 620 621ac_subst_vars='LTLIBOBJS 622LIBOBJS 623F2CMPI_LIBS 624COLLCHK_LIBS 625COLLCHK_LIBNAME 626MPI_LIBS 627MPI_FFLAGS 628MPI_CFLAGS 629FLIB_PATH_LEADER 630FINC_PATH_LEADER 631MPE_FLINKER 632MPI_F77 633FFLAGS 634FLINKER 635F77 636MPE_CLINKER 637MPI_CC 638CLINKER 639MPE_BUILD_FORTRAN2C 640MPI_IMPL 641COLLCHK_BUILD_COMMS 642COLLCHK_BUILD_RMA 643COLLCHK_BUILD_IO 644COLLCHK_BUILD_REDSCATBLK 645COLLCHK_BUILD_ALLW 646COLLCHK_BUILD_EXSCAN 647ALLOCA 648EGREP 649GREP 650DEBUG_LIBS 651CPP 652RANLIB 653AR 654OBJEXT 655EXEEXT 656ac_ct_CC 657CPPFLAGS 658LDFLAGS 659CFLAGS 660CC 661etcbuild_dir 662sbinbuild_dir 663binbuild_dir 664libbuild_dir 665includebuild_dir 666host_os 667host_vendor 668host_cpu 669host 670build_os 671build_vendor 672build_cpu 673build 674MV 675RM 676CPRP 677MKDIR 678MAKE 679VPATH 680top_srcdir_abs 681target_alias 682host_alias 683build_alias 684LIBS 685ECHO_T 686ECHO_N 687ECHO_C 688DEFS 689mandir 690localedir 691libdir 692psdir 693pdfdir 694dvidir 695htmldir 696infodir 697docdir 698oldincludedir 699includedir 700localstatedir 701sharedstatedir 702sysconfdir 703datadir 704datarootdir 705libexecdir 706sbindir 707bindir 708program_transform_name 709prefix 710exec_prefix 711PACKAGE_URL 712PACKAGE_BUGREPORT 713PACKAGE_STRING 714PACKAGE_VERSION 715PACKAGE_TARNAME 716PACKAGE_NAME 717PATH_SEPARATOR 718SHELL' 719ac_subst_files='' 720ac_user_opts=' 721enable_option_checking 722enable_echo 723enable_softerror 724with_mpiio 725enable_romio 726enable_checkMPI 727with_checkMPIO 728with_f2cmpilibs 729' 730 ac_precious_vars='build_alias 731host_alias 732target_alias 733CC 734CFLAGS 735LDFLAGS 736LIBS 737CPPFLAGS 738CPP' 739 740 741# Initialize some variables set by options. 742ac_init_help= 743ac_init_version=false 744ac_unrecognized_opts= 745ac_unrecognized_sep= 746# The variables have the same names as the options, with 747# dashes changed to underlines. 748cache_file=/dev/null 749exec_prefix=NONE 750no_create= 751no_recursion= 752prefix=NONE 753program_prefix=NONE 754program_suffix=NONE 755program_transform_name=s,x,x, 756silent= 757site= 758srcdir= 759verbose= 760x_includes=NONE 761x_libraries=NONE 762 763# Installation directory options. 764# These are left unexpanded so users can "make install exec_prefix=/foo" 765# and all the variables that are supposed to be based on exec_prefix 766# by default will actually change. 767# Use braces instead of parens because sh, perl, etc. also accept them. 768# (The list follows the same order as the GNU Coding Standards.) 769bindir='${exec_prefix}/bin' 770sbindir='${exec_prefix}/sbin' 771libexecdir='${exec_prefix}/libexec' 772datarootdir='${prefix}/share' 773datadir='${datarootdir}' 774sysconfdir='${prefix}/etc' 775sharedstatedir='${prefix}/com' 776localstatedir='${prefix}/var' 777includedir='${prefix}/include' 778oldincludedir='/usr/include' 779docdir='${datarootdir}/doc/${PACKAGE}' 780infodir='${datarootdir}/info' 781htmldir='${docdir}' 782dvidir='${docdir}' 783pdfdir='${docdir}' 784psdir='${docdir}' 785libdir='${exec_prefix}/lib' 786localedir='${datarootdir}/locale' 787mandir='${datarootdir}/man' 788 789ac_prev= 790ac_dashdash= 791for ac_option 792do 793 # If the previous option needs an argument, assign it. 794 if test -n "$ac_prev"; then 795 eval $ac_prev=\$ac_option 796 ac_prev= 797 continue 798 fi 799 800 case $ac_option in 801 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 802 *=) ac_optarg= ;; 803 *) ac_optarg=yes ;; 804 esac 805 806 # Accept the important Cygnus configure options, so we can diagnose typos. 807 808 case $ac_dashdash$ac_option in 809 --) 810 ac_dashdash=yes ;; 811 812 -bindir | --bindir | --bindi | --bind | --bin | --bi) 813 ac_prev=bindir ;; 814 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 815 bindir=$ac_optarg ;; 816 817 -build | --build | --buil | --bui | --bu) 818 ac_prev=build_alias ;; 819 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 820 build_alias=$ac_optarg ;; 821 822 -cache-file | --cache-file | --cache-fil | --cache-fi \ 823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 824 ac_prev=cache_file ;; 825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 827 cache_file=$ac_optarg ;; 828 829 --config-cache | -C) 830 cache_file=config.cache ;; 831 832 -datadir | --datadir | --datadi | --datad) 833 ac_prev=datadir ;; 834 -datadir=* | --datadir=* | --datadi=* | --datad=*) 835 datadir=$ac_optarg ;; 836 837 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 838 | --dataroo | --dataro | --datar) 839 ac_prev=datarootdir ;; 840 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 841 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 842 datarootdir=$ac_optarg ;; 843 844 -disable-* | --disable-*) 845 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 846 # Reject names that are not valid shell variable names. 847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 848 as_fn_error $? "invalid feature name: $ac_useropt" 849 ac_useropt_orig=$ac_useropt 850 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 851 case $ac_user_opts in 852 *" 853"enable_$ac_useropt" 854"*) ;; 855 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 856 ac_unrecognized_sep=', ';; 857 esac 858 eval enable_$ac_useropt=no ;; 859 860 -docdir | --docdir | --docdi | --doc | --do) 861 ac_prev=docdir ;; 862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 863 docdir=$ac_optarg ;; 864 865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 866 ac_prev=dvidir ;; 867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 868 dvidir=$ac_optarg ;; 869 870 -enable-* | --enable-*) 871 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 872 # Reject names that are not valid shell variable names. 873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 874 as_fn_error $? "invalid feature name: $ac_useropt" 875 ac_useropt_orig=$ac_useropt 876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 877 case $ac_user_opts in 878 *" 879"enable_$ac_useropt" 880"*) ;; 881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 882 ac_unrecognized_sep=', ';; 883 esac 884 eval enable_$ac_useropt=\$ac_optarg ;; 885 886 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 887 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 888 | --exec | --exe | --ex) 889 ac_prev=exec_prefix ;; 890 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 891 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 892 | --exec=* | --exe=* | --ex=*) 893 exec_prefix=$ac_optarg ;; 894 895 -gas | --gas | --ga | --g) 896 # Obsolete; use --with-gas. 897 with_gas=yes ;; 898 899 -help | --help | --hel | --he | -h) 900 ac_init_help=long ;; 901 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 902 ac_init_help=recursive ;; 903 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 904 ac_init_help=short ;; 905 906 -host | --host | --hos | --ho) 907 ac_prev=host_alias ;; 908 -host=* | --host=* | --hos=* | --ho=*) 909 host_alias=$ac_optarg ;; 910 911 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 912 ac_prev=htmldir ;; 913 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 914 | --ht=*) 915 htmldir=$ac_optarg ;; 916 917 -includedir | --includedir | --includedi | --included | --include \ 918 | --includ | --inclu | --incl | --inc) 919 ac_prev=includedir ;; 920 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 921 | --includ=* | --inclu=* | --incl=* | --inc=*) 922 includedir=$ac_optarg ;; 923 924 -infodir | --infodir | --infodi | --infod | --info | --inf) 925 ac_prev=infodir ;; 926 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 927 infodir=$ac_optarg ;; 928 929 -libdir | --libdir | --libdi | --libd) 930 ac_prev=libdir ;; 931 -libdir=* | --libdir=* | --libdi=* | --libd=*) 932 libdir=$ac_optarg ;; 933 934 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 935 | --libexe | --libex | --libe) 936 ac_prev=libexecdir ;; 937 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 938 | --libexe=* | --libex=* | --libe=*) 939 libexecdir=$ac_optarg ;; 940 941 -localedir | --localedir | --localedi | --localed | --locale) 942 ac_prev=localedir ;; 943 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 944 localedir=$ac_optarg ;; 945 946 -localstatedir | --localstatedir | --localstatedi | --localstated \ 947 | --localstate | --localstat | --localsta | --localst | --locals) 948 ac_prev=localstatedir ;; 949 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 950 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 951 localstatedir=$ac_optarg ;; 952 953 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 954 ac_prev=mandir ;; 955 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 956 mandir=$ac_optarg ;; 957 958 -nfp | --nfp | --nf) 959 # Obsolete; use --without-fp. 960 with_fp=no ;; 961 962 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 963 | --no-cr | --no-c | -n) 964 no_create=yes ;; 965 966 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 967 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 968 no_recursion=yes ;; 969 970 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 971 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 972 | --oldin | --oldi | --old | --ol | --o) 973 ac_prev=oldincludedir ;; 974 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 975 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 976 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 977 oldincludedir=$ac_optarg ;; 978 979 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 980 ac_prev=prefix ;; 981 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 982 prefix=$ac_optarg ;; 983 984 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 985 | --program-pre | --program-pr | --program-p) 986 ac_prev=program_prefix ;; 987 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 988 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 989 program_prefix=$ac_optarg ;; 990 991 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 992 | --program-suf | --program-su | --program-s) 993 ac_prev=program_suffix ;; 994 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 995 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 996 program_suffix=$ac_optarg ;; 997 998 -program-transform-name | --program-transform-name \ 999 | --program-transform-nam | --program-transform-na \ 1000 | --program-transform-n | --program-transform- \ 1001 | --program-transform | --program-transfor \ 1002 | --program-transfo | --program-transf \ 1003 | --program-trans | --program-tran \ 1004 | --progr-tra | --program-tr | --program-t) 1005 ac_prev=program_transform_name ;; 1006 -program-transform-name=* | --program-transform-name=* \ 1007 | --program-transform-nam=* | --program-transform-na=* \ 1008 | --program-transform-n=* | --program-transform-=* \ 1009 | --program-transform=* | --program-transfor=* \ 1010 | --program-transfo=* | --program-transf=* \ 1011 | --program-trans=* | --program-tran=* \ 1012 | --progr-tra=* | --program-tr=* | --program-t=*) 1013 program_transform_name=$ac_optarg ;; 1014 1015 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1016 ac_prev=pdfdir ;; 1017 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1018 pdfdir=$ac_optarg ;; 1019 1020 -psdir | --psdir | --psdi | --psd | --ps) 1021 ac_prev=psdir ;; 1022 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1023 psdir=$ac_optarg ;; 1024 1025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1026 | -silent | --silent | --silen | --sile | --sil) 1027 silent=yes ;; 1028 1029 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1030 ac_prev=sbindir ;; 1031 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1032 | --sbi=* | --sb=*) 1033 sbindir=$ac_optarg ;; 1034 1035 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1036 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1037 | --sharedst | --shareds | --shared | --share | --shar \ 1038 | --sha | --sh) 1039 ac_prev=sharedstatedir ;; 1040 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1041 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1042 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1043 | --sha=* | --sh=*) 1044 sharedstatedir=$ac_optarg ;; 1045 1046 -site | --site | --sit) 1047 ac_prev=site ;; 1048 -site=* | --site=* | --sit=*) 1049 site=$ac_optarg ;; 1050 1051 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1052 ac_prev=srcdir ;; 1053 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1054 srcdir=$ac_optarg ;; 1055 1056 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1057 | --syscon | --sysco | --sysc | --sys | --sy) 1058 ac_prev=sysconfdir ;; 1059 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1060 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1061 sysconfdir=$ac_optarg ;; 1062 1063 -target | --target | --targe | --targ | --tar | --ta | --t) 1064 ac_prev=target_alias ;; 1065 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1066 target_alias=$ac_optarg ;; 1067 1068 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1069 verbose=yes ;; 1070 1071 -version | --version | --versio | --versi | --vers | -V) 1072 ac_init_version=: ;; 1073 1074 -with-* | --with-*) 1075 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1076 # Reject names that are not valid shell variable names. 1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1078 as_fn_error $? "invalid package name: $ac_useropt" 1079 ac_useropt_orig=$ac_useropt 1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1081 case $ac_user_opts in 1082 *" 1083"with_$ac_useropt" 1084"*) ;; 1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1086 ac_unrecognized_sep=', ';; 1087 esac 1088 eval with_$ac_useropt=\$ac_optarg ;; 1089 1090 -without-* | --without-*) 1091 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1092 # Reject names that are not valid shell variable names. 1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1094 as_fn_error $? "invalid package name: $ac_useropt" 1095 ac_useropt_orig=$ac_useropt 1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1097 case $ac_user_opts in 1098 *" 1099"with_$ac_useropt" 1100"*) ;; 1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1102 ac_unrecognized_sep=', ';; 1103 esac 1104 eval with_$ac_useropt=no ;; 1105 1106 --x) 1107 # Obsolete; use --with-x. 1108 with_x=yes ;; 1109 1110 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1111 | --x-incl | --x-inc | --x-in | --x-i) 1112 ac_prev=x_includes ;; 1113 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1114 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1115 x_includes=$ac_optarg ;; 1116 1117 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1118 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1119 ac_prev=x_libraries ;; 1120 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1121 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1122 x_libraries=$ac_optarg ;; 1123 1124 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1125Try \`$0 --help' for more information" 1126 ;; 1127 1128 *=*) 1129 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1130 # Reject names that are not valid shell variable names. 1131 case $ac_envvar in #( 1132 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1133 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1134 esac 1135 eval $ac_envvar=\$ac_optarg 1136 export $ac_envvar ;; 1137 1138 *) 1139 # FIXME: should be removed in autoconf 3.0. 1140 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1141 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1142 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1143 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1144 ;; 1145 1146 esac 1147done 1148 1149if test -n "$ac_prev"; then 1150 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1151 as_fn_error $? "missing argument to $ac_option" 1152fi 1153 1154if test -n "$ac_unrecognized_opts"; then 1155 case $enable_option_checking in 1156 no) ;; 1157 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1158 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1159 esac 1160fi 1161 1162# Check all directory arguments for consistency. 1163for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1164 datadir sysconfdir sharedstatedir localstatedir includedir \ 1165 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1166 libdir localedir mandir 1167do 1168 eval ac_val=\$$ac_var 1169 # Remove trailing slashes. 1170 case $ac_val in 1171 */ ) 1172 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1173 eval $ac_var=\$ac_val;; 1174 esac 1175 # Be sure to have absolute directory names. 1176 case $ac_val in 1177 [\\/$]* | ?:[\\/]* ) continue;; 1178 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1179 esac 1180 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1181done 1182 1183# There might be people who depend on the old broken behavior: `$host' 1184# used to hold the argument of --host etc. 1185# FIXME: To remove some day. 1186build=$build_alias 1187host=$host_alias 1188target=$target_alias 1189 1190# FIXME: To remove some day. 1191if test "x$host_alias" != x; then 1192 if test "x$build_alias" = x; then 1193 cross_compiling=maybe 1194 elif test "x$build_alias" != "x$host_alias"; then 1195 cross_compiling=yes 1196 fi 1197fi 1198 1199ac_tool_prefix= 1200test -n "$host_alias" && ac_tool_prefix=$host_alias- 1201 1202test "$silent" = yes && exec 6>/dev/null 1203 1204 1205ac_pwd=`pwd` && test -n "$ac_pwd" && 1206ac_ls_di=`ls -di .` && 1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1208 as_fn_error $? "working directory cannot be determined" 1209test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1210 as_fn_error $? "pwd does not report name of working directory" 1211 1212 1213# Find the source files, if location was not specified. 1214if test -z "$srcdir"; then 1215 ac_srcdir_defaulted=yes 1216 # Try the directory containing this script, then the parent directory. 1217 ac_confdir=`$as_dirname -- "$as_myself" || 1218$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1219 X"$as_myself" : 'X\(//\)[^/]' \| \ 1220 X"$as_myself" : 'X\(//\)$' \| \ 1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1222$as_echo X"$as_myself" | 1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1224 s//\1/ 1225 q 1226 } 1227 /^X\(\/\/\)[^/].*/{ 1228 s//\1/ 1229 q 1230 } 1231 /^X\(\/\/\)$/{ 1232 s//\1/ 1233 q 1234 } 1235 /^X\(\/\).*/{ 1236 s//\1/ 1237 q 1238 } 1239 s/.*/./; q'` 1240 srcdir=$ac_confdir 1241 if test ! -r "$srcdir/$ac_unique_file"; then 1242 srcdir=.. 1243 fi 1244else 1245 ac_srcdir_defaulted=no 1246fi 1247if test ! -r "$srcdir/$ac_unique_file"; then 1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1249 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1250fi 1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1252ac_abs_confdir=`( 1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1254 pwd)` 1255# When building in place, set srcdir=. 1256if test "$ac_abs_confdir" = "$ac_pwd"; then 1257 srcdir=. 1258fi 1259# Remove unnecessary trailing slashes from srcdir. 1260# Double slashes in file names in object file debugging info 1261# mess up M-x gdb in Emacs. 1262case $srcdir in 1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1264esac 1265for ac_var in $ac_precious_vars; do 1266 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1267 eval ac_env_${ac_var}_value=\$${ac_var} 1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1269 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1270done 1271 1272# 1273# Report the --help message. 1274# 1275if test "$ac_init_help" = "long"; then 1276 # Omit some internal or obsolete options to make the list less imposing. 1277 # This message is too long to be a string in the A/UX 3.1 sh. 1278 cat <<_ACEOF 1279\`configure' configures this package to adapt to many kinds of systems. 1280 1281Usage: $0 [OPTION]... [VAR=VALUE]... 1282 1283To assign environment variables (e.g., CC, CFLAGS...), specify them as 1284VAR=VALUE. See below for descriptions of some of the useful variables. 1285 1286Defaults for the options are specified in brackets. 1287 1288Configuration: 1289 -h, --help display this help and exit 1290 --help=short display options specific to this package 1291 --help=recursive display the short help of all the included packages 1292 -V, --version display version information and exit 1293 -q, --quiet, --silent do not print \`checking ...' messages 1294 --cache-file=FILE cache test results in FILE [disabled] 1295 -C, --config-cache alias for \`--cache-file=config.cache' 1296 -n, --no-create do not create output files 1297 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1298 1299Installation directories: 1300 --prefix=PREFIX install architecture-independent files in PREFIX 1301 [$ac_default_prefix] 1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1303 [PREFIX] 1304 1305By default, \`make install' will install all the files in 1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1307an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1308for instance \`--prefix=\$HOME'. 1309 1310For better control, use the options below. 1311 1312Fine tuning of the installation directories: 1313 --bindir=DIR user executables [EPREFIX/bin] 1314 --sbindir=DIR system admin executables [EPREFIX/sbin] 1315 --libexecdir=DIR program executables [EPREFIX/libexec] 1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1319 --libdir=DIR object code libraries [EPREFIX/lib] 1320 --includedir=DIR C header files [PREFIX/include] 1321 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1324 --infodir=DIR info documentation [DATAROOTDIR/info] 1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1326 --mandir=DIR man documentation [DATAROOTDIR/man] 1327 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1328 --htmldir=DIR html documentation [DOCDIR] 1329 --dvidir=DIR dvi documentation [DOCDIR] 1330 --pdfdir=DIR pdf documentation [DOCDIR] 1331 --psdir=DIR ps documentation [DOCDIR] 1332_ACEOF 1333 1334 cat <<\_ACEOF 1335 1336System types: 1337 --build=BUILD configure for building on BUILD [guessed] 1338 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1339_ACEOF 1340fi 1341 1342if test -n "$ac_init_help"; then 1343 1344 cat <<\_ACEOF 1345 1346Optional Features: 1347 --disable-option-checking ignore unrecognized --enable/--with options 1348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1350--enable-echo - Turn on strong echoing. 1351 The default is enable=no. 1352--enable-softerror - Turn on soft error, i.e. instead of 1353 issuing MSG_ERROR, MSG_WARN + exit 0 1354 are used. The default is enable=no. 1355--enable-romio - Enable/Disable ROMIO MPI-IO checking 1356 in MPICHx build. The default is yes. 1357--enable-checkMPI - Turn on/off the linking test for the MPI 1358 include files, MPI libraries and MPI_CC 1359 compiler. The default is enable=yes. 1360 1361Optional Packages: 1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1364--with-mpiio - Enable/Disable MPI-IO checking. 1365 in MPICHx buiid. The default is yes. 1366--enable-checkMPIO - Turn on/off the linking test for MPI-IO 1367 routines in MPI implementation. 1368 The default is enable=yes. 1369--with-f2cmpilibs=F2CMPI_LIBS - compiler's library flags for 1370 Fortran to C MPI wrapper library. 1371 Using this option disables building of 1372 MPE's internal Fortran to C MPI library, 1373 --disable-f2cmpilib. The library is 1374 needed for profiling MPI Fortran program. 1375 e.g. "-lfmpich" when MPE is building with 1376 MPICH. 1377 1378Some influential environment variables: 1379 CC C compiler command 1380 CFLAGS C compiler flags 1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1382 nonstandard directory <lib dir> 1383 LIBS libraries to pass to the linker, e.g. -l<library> 1384 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1385 you have headers in a nonstandard directory <include dir> 1386 CPP C preprocessor 1387 1388Use these variables to override the choices made by `configure' or to help 1389it to find libraries and programs with nonstandard names/locations. 1390 1391Report bugs to the package provider. 1392_ACEOF 1393ac_status=$? 1394fi 1395 1396if test "$ac_init_help" = "recursive"; then 1397 # If there are subdirs, report their specific --help. 1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1399 test -d "$ac_dir" || 1400 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1401 continue 1402 ac_builddir=. 1403 1404case "$ac_dir" in 1405.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1406*) 1407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1408 # A ".." for each directory in $ac_dir_suffix. 1409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1410 case $ac_top_builddir_sub in 1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1413 esac ;; 1414esac 1415ac_abs_top_builddir=$ac_pwd 1416ac_abs_builddir=$ac_pwd$ac_dir_suffix 1417# for backward compatibility: 1418ac_top_builddir=$ac_top_build_prefix 1419 1420case $srcdir in 1421 .) # We are building in place. 1422 ac_srcdir=. 1423 ac_top_srcdir=$ac_top_builddir_sub 1424 ac_abs_top_srcdir=$ac_pwd ;; 1425 [\\/]* | ?:[\\/]* ) # Absolute name. 1426 ac_srcdir=$srcdir$ac_dir_suffix; 1427 ac_top_srcdir=$srcdir 1428 ac_abs_top_srcdir=$srcdir ;; 1429 *) # Relative name. 1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1431 ac_top_srcdir=$ac_top_build_prefix$srcdir 1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1433esac 1434ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1435 1436 cd "$ac_dir" || { ac_status=$?; continue; } 1437 # Check for guested configure. 1438 if test -f "$ac_srcdir/configure.gnu"; then 1439 echo && 1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1441 elif test -f "$ac_srcdir/configure"; then 1442 echo && 1443 $SHELL "$ac_srcdir/configure" --help=recursive 1444 else 1445 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1446 fi || ac_status=$? 1447 cd "$ac_pwd" || { ac_status=$?; break; } 1448 done 1449fi 1450 1451test -n "$ac_init_help" && exit $ac_status 1452if $ac_init_version; then 1453 cat <<\_ACEOF 1454configure 1455generated by GNU Autoconf 2.69 1456 1457Copyright (C) 2012 Free Software Foundation, Inc. 1458This configure script is free software; the Free Software Foundation 1459gives unlimited permission to copy, distribute and modify it. 1460_ACEOF 1461 exit 1462fi 1463 1464## ------------------------ ## 1465## Autoconf initialization. ## 1466## ------------------------ ## 1467 1468# ac_fn_c_try_compile LINENO 1469# -------------------------- 1470# Try to compile conftest.$ac_ext, and return whether this succeeded. 1471ac_fn_c_try_compile () 1472{ 1473 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1474 rm -f conftest.$ac_objext 1475 if { { ac_try="$ac_compile" 1476case "(($ac_try" in 1477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1478 *) ac_try_echo=$ac_try;; 1479esac 1480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1481$as_echo "$ac_try_echo"; } >&5 1482 (eval "$ac_compile") 2>conftest.err 1483 ac_status=$? 1484 if test -s conftest.err; then 1485 grep -v '^ *+' conftest.err >conftest.er1 1486 cat conftest.er1 >&5 1487 mv -f conftest.er1 conftest.err 1488 fi 1489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1490 test $ac_status = 0; } && { 1491 test -z "$ac_c_werror_flag" || 1492 test ! -s conftest.err 1493 } && test -s conftest.$ac_objext; then : 1494 ac_retval=0 1495else 1496 $as_echo "$as_me: failed program was:" >&5 1497sed 's/^/| /' conftest.$ac_ext >&5 1498 1499 ac_retval=1 1500fi 1501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1502 as_fn_set_status $ac_retval 1503 1504} # ac_fn_c_try_compile 1505 1506# ac_fn_c_try_cpp LINENO 1507# ---------------------- 1508# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1509ac_fn_c_try_cpp () 1510{ 1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1512 if { { ac_try="$ac_cpp conftest.$ac_ext" 1513case "(($ac_try" in 1514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1515 *) ac_try_echo=$ac_try;; 1516esac 1517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1518$as_echo "$ac_try_echo"; } >&5 1519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1520 ac_status=$? 1521 if test -s conftest.err; then 1522 grep -v '^ *+' conftest.err >conftest.er1 1523 cat conftest.er1 >&5 1524 mv -f conftest.er1 conftest.err 1525 fi 1526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1527 test $ac_status = 0; } > conftest.i && { 1528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1529 test ! -s conftest.err 1530 }; then : 1531 ac_retval=0 1532else 1533 $as_echo "$as_me: failed program was:" >&5 1534sed 's/^/| /' conftest.$ac_ext >&5 1535 1536 ac_retval=1 1537fi 1538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1539 as_fn_set_status $ac_retval 1540 1541} # ac_fn_c_try_cpp 1542 1543# ac_fn_c_try_link LINENO 1544# ----------------------- 1545# Try to link conftest.$ac_ext, and return whether this succeeded. 1546ac_fn_c_try_link () 1547{ 1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1549 rm -f conftest.$ac_objext conftest$ac_exeext 1550 if { { ac_try="$ac_link" 1551case "(($ac_try" in 1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1553 *) ac_try_echo=$ac_try;; 1554esac 1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1556$as_echo "$ac_try_echo"; } >&5 1557 (eval "$ac_link") 2>conftest.err 1558 ac_status=$? 1559 if test -s conftest.err; then 1560 grep -v '^ *+' conftest.err >conftest.er1 1561 cat conftest.er1 >&5 1562 mv -f conftest.er1 conftest.err 1563 fi 1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1565 test $ac_status = 0; } && { 1566 test -z "$ac_c_werror_flag" || 1567 test ! -s conftest.err 1568 } && test -s conftest$ac_exeext && { 1569 test "$cross_compiling" = yes || 1570 test -x conftest$ac_exeext 1571 }; then : 1572 ac_retval=0 1573else 1574 $as_echo "$as_me: failed program was:" >&5 1575sed 's/^/| /' conftest.$ac_ext >&5 1576 1577 ac_retval=1 1578fi 1579 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1580 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1581 # interfere with the next link command; also delete a directory that is 1582 # left behind by Apple's compiler. We do this before executing the actions. 1583 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1585 as_fn_set_status $ac_retval 1586 1587} # ac_fn_c_try_link 1588 1589# ac_fn_c_try_run LINENO 1590# ---------------------- 1591# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1592# that executables *can* be run. 1593ac_fn_c_try_run () 1594{ 1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1596 if { { ac_try="$ac_link" 1597case "(($ac_try" in 1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1599 *) ac_try_echo=$ac_try;; 1600esac 1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1602$as_echo "$ac_try_echo"; } >&5 1603 (eval "$ac_link") 2>&5 1604 ac_status=$? 1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1606 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1607 { { case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610esac 1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612$as_echo "$ac_try_echo"; } >&5 1613 (eval "$ac_try") 2>&5 1614 ac_status=$? 1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; }; }; then : 1617 ac_retval=0 1618else 1619 $as_echo "$as_me: program exited with status $ac_status" >&5 1620 $as_echo "$as_me: failed program was:" >&5 1621sed 's/^/| /' conftest.$ac_ext >&5 1622 1623 ac_retval=$ac_status 1624fi 1625 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1627 as_fn_set_status $ac_retval 1628 1629} # ac_fn_c_try_run 1630 1631# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1632# ------------------------------------------------------- 1633# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1634# the include files in INCLUDES and setting the cache variable VAR 1635# accordingly. 1636ac_fn_c_check_header_mongrel () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 if eval \${$3+:} false; then : 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1641$as_echo_n "checking for $2... " >&6; } 1642if eval \${$3+:} false; then : 1643 $as_echo_n "(cached) " >&6 1644fi 1645eval ac_res=\$$3 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1647$as_echo "$ac_res" >&6; } 1648else 1649 # Is the header compilable? 1650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1651$as_echo_n "checking $2 usability... " >&6; } 1652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1653/* end confdefs.h. */ 1654$4 1655#include <$2> 1656_ACEOF 1657if ac_fn_c_try_compile "$LINENO"; then : 1658 ac_header_compiler=yes 1659else 1660 ac_header_compiler=no 1661fi 1662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1664$as_echo "$ac_header_compiler" >&6; } 1665 1666# Is the header present? 1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1668$as_echo_n "checking $2 presence... " >&6; } 1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1670/* end confdefs.h. */ 1671#include <$2> 1672_ACEOF 1673if ac_fn_c_try_cpp "$LINENO"; then : 1674 ac_header_preproc=yes 1675else 1676 ac_header_preproc=no 1677fi 1678rm -f conftest.err conftest.i conftest.$ac_ext 1679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1680$as_echo "$ac_header_preproc" >&6; } 1681 1682# So? What about this header? 1683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1684 yes:no: ) 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1686$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1688$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1689 ;; 1690 no:yes:* ) 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1692$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1694$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1696$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1698$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1700$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1701 ;; 1702esac 1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1704$as_echo_n "checking for $2... " >&6; } 1705if eval \${$3+:} false; then : 1706 $as_echo_n "(cached) " >&6 1707else 1708 eval "$3=\$ac_header_compiler" 1709fi 1710eval ac_res=\$$3 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1712$as_echo "$ac_res" >&6; } 1713fi 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 1716} # ac_fn_c_check_header_mongrel 1717 1718# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1719# ------------------------------------------------------- 1720# Tests whether HEADER exists and can be compiled using the include files in 1721# INCLUDES, setting the cache variable VAR accordingly. 1722ac_fn_c_check_header_compile () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1726$as_echo_n "checking for $2... " >&6; } 1727if eval \${$3+:} false; then : 1728 $as_echo_n "(cached) " >&6 1729else 1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1731/* end confdefs.h. */ 1732$4 1733#include <$2> 1734_ACEOF 1735if ac_fn_c_try_compile "$LINENO"; then : 1736 eval "$3=yes" 1737else 1738 eval "$3=no" 1739fi 1740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1741fi 1742eval ac_res=\$$3 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1744$as_echo "$ac_res" >&6; } 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 1747} # ac_fn_c_check_header_compile 1748 1749# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1750# ------------------------------------------- 1751# Tests whether TYPE exists after having included INCLUDES, setting cache 1752# variable VAR accordingly. 1753ac_fn_c_check_type () 1754{ 1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1757$as_echo_n "checking for $2... " >&6; } 1758if eval \${$3+:} false; then : 1759 $as_echo_n "(cached) " >&6 1760else 1761 eval "$3=no" 1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1763/* end confdefs.h. */ 1764$4 1765int 1766main () 1767{ 1768if (sizeof ($2)) 1769 return 0; 1770 ; 1771 return 0; 1772} 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO"; then : 1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777$4 1778int 1779main () 1780{ 1781if (sizeof (($2))) 1782 return 0; 1783 ; 1784 return 0; 1785} 1786_ACEOF 1787if ac_fn_c_try_compile "$LINENO"; then : 1788 1789else 1790 eval "$3=yes" 1791fi 1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1793fi 1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1795fi 1796eval ac_res=\$$3 1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1798$as_echo "$ac_res" >&6; } 1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1800 1801} # ac_fn_c_check_type 1802 1803# ac_fn_c_check_func LINENO FUNC VAR 1804# ---------------------------------- 1805# Tests whether FUNC exists, setting the cache variable VAR accordingly 1806ac_fn_c_check_func () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810$as_echo_n "checking for $2... " >&6; } 1811if eval \${$3+:} false; then : 1812 $as_echo_n "(cached) " >&6 1813else 1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815/* end confdefs.h. */ 1816/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1818#define $2 innocuous_$2 1819 1820/* System header to define __stub macros and hopefully few prototypes, 1821 which can conflict with char $2 (); below. 1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1823 <limits.h> exists even on freestanding compilers. */ 1824 1825#ifdef __STDC__ 1826# include <limits.h> 1827#else 1828# include <assert.h> 1829#endif 1830 1831#undef $2 1832 1833/* Override any GCC internal prototype to avoid an error. 1834 Use char because int might match the return type of a GCC 1835 builtin and then its argument prototype would still apply. */ 1836#ifdef __cplusplus 1837extern "C" 1838#endif 1839char $2 (); 1840/* The GNU C library defines this for functions which it implements 1841 to always fail with ENOSYS. Some functions are actually named 1842 something starting with __ and the normal name is an alias. */ 1843#if defined __stub_$2 || defined __stub___$2 1844choke me 1845#endif 1846 1847int 1848main () 1849{ 1850return $2 (); 1851 ; 1852 return 0; 1853} 1854_ACEOF 1855if ac_fn_c_try_link "$LINENO"; then : 1856 eval "$3=yes" 1857else 1858 eval "$3=no" 1859fi 1860rm -f core conftest.err conftest.$ac_objext \ 1861 conftest$ac_exeext conftest.$ac_ext 1862fi 1863eval ac_res=\$$3 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1865$as_echo "$ac_res" >&6; } 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 1868} # ac_fn_c_check_func 1869cat >config.log <<_ACEOF 1870This file contains any messages produced by compilers while 1871running configure, to aid debugging if configure makes a mistake. 1872 1873It was created by $as_me, which was 1874generated by GNU Autoconf 2.69. Invocation command line was 1875 1876 $ $0 $@ 1877 1878_ACEOF 1879exec 5>>config.log 1880{ 1881cat <<_ASUNAME 1882## --------- ## 1883## Platform. ## 1884## --------- ## 1885 1886hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1887uname -m = `(uname -m) 2>/dev/null || echo unknown` 1888uname -r = `(uname -r) 2>/dev/null || echo unknown` 1889uname -s = `(uname -s) 2>/dev/null || echo unknown` 1890uname -v = `(uname -v) 2>/dev/null || echo unknown` 1891 1892/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1893/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1894 1895/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1896/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1897/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1898/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1899/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1900/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1901/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1902 1903_ASUNAME 1904 1905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1906for as_dir in $PATH 1907do 1908 IFS=$as_save_IFS 1909 test -z "$as_dir" && as_dir=. 1910 $as_echo "PATH: $as_dir" 1911 done 1912IFS=$as_save_IFS 1913 1914} >&5 1915 1916cat >&5 <<_ACEOF 1917 1918 1919## ----------- ## 1920## Core tests. ## 1921## ----------- ## 1922 1923_ACEOF 1924 1925 1926# Keep a trace of the command line. 1927# Strip out --no-create and --no-recursion so they do not pile up. 1928# Strip out --silent because we don't want to record it for future runs. 1929# Also quote any args containing shell meta-characters. 1930# Make two passes to allow for proper duplicate-argument suppression. 1931ac_configure_args= 1932ac_configure_args0= 1933ac_configure_args1= 1934ac_must_keep_next=false 1935for ac_pass in 1 2 1936do 1937 for ac_arg 1938 do 1939 case $ac_arg in 1940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1942 | -silent | --silent | --silen | --sile | --sil) 1943 continue ;; 1944 *\'*) 1945 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1946 esac 1947 case $ac_pass in 1948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1949 2) 1950 as_fn_append ac_configure_args1 " '$ac_arg'" 1951 if test $ac_must_keep_next = true; then 1952 ac_must_keep_next=false # Got value, back to normal. 1953 else 1954 case $ac_arg in 1955 *=* | --config-cache | -C | -disable-* | --disable-* \ 1956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1958 | -with-* | --with-* | -without-* | --without-* | --x) 1959 case "$ac_configure_args0 " in 1960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1961 esac 1962 ;; 1963 -* ) ac_must_keep_next=true ;; 1964 esac 1965 fi 1966 as_fn_append ac_configure_args " '$ac_arg'" 1967 ;; 1968 esac 1969 done 1970done 1971{ ac_configure_args0=; unset ac_configure_args0;} 1972{ ac_configure_args1=; unset ac_configure_args1;} 1973 1974# When interrupted or exit'd, cleanup temporary files, and complete 1975# config.log. We remove comments because anyway the quotes in there 1976# would cause problems or look ugly. 1977# WARNING: Use '\'' to represent an apostrophe within the trap. 1978# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1979trap 'exit_status=$? 1980 # Save into config.log some information that might help in debugging. 1981 { 1982 echo 1983 1984 $as_echo "## ---------------- ## 1985## Cache variables. ## 1986## ---------------- ##" 1987 echo 1988 # The following way of writing the cache mishandles newlines in values, 1989( 1990 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1991 eval ac_val=\$$ac_var 1992 case $ac_val in #( 1993 *${as_nl}*) 1994 case $ac_var in #( 1995 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1996$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1997 esac 1998 case $ac_var in #( 1999 _ | IFS | as_nl) ;; #( 2000 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2001 *) { eval $ac_var=; unset $ac_var;} ;; 2002 esac ;; 2003 esac 2004 done 2005 (set) 2>&1 | 2006 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2007 *${as_nl}ac_space=\ *) 2008 sed -n \ 2009 "s/'\''/'\''\\\\'\'''\''/g; 2010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2011 ;; #( 2012 *) 2013 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2014 ;; 2015 esac | 2016 sort 2017) 2018 echo 2019 2020 $as_echo "## ----------------- ## 2021## Output variables. ## 2022## ----------------- ##" 2023 echo 2024 for ac_var in $ac_subst_vars 2025 do 2026 eval ac_val=\$$ac_var 2027 case $ac_val in 2028 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2029 esac 2030 $as_echo "$ac_var='\''$ac_val'\''" 2031 done | sort 2032 echo 2033 2034 if test -n "$ac_subst_files"; then 2035 $as_echo "## ------------------- ## 2036## File substitutions. ## 2037## ------------------- ##" 2038 echo 2039 for ac_var in $ac_subst_files 2040 do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in 2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2044 esac 2045 $as_echo "$ac_var='\''$ac_val'\''" 2046 done | sort 2047 echo 2048 fi 2049 2050 if test -s confdefs.h; then 2051 $as_echo "## ----------- ## 2052## confdefs.h. ## 2053## ----------- ##" 2054 echo 2055 cat confdefs.h 2056 echo 2057 fi 2058 test "$ac_signal" != 0 && 2059 $as_echo "$as_me: caught signal $ac_signal" 2060 $as_echo "$as_me: exit $exit_status" 2061 } >&5 2062 rm -f core *.core core.conftest.* && 2063 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2064 exit $exit_status 2065' 0 2066for ac_signal in 1 2 13 15; do 2067 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2068done 2069ac_signal=0 2070 2071# confdefs.h avoids OS command line length limits that DEFS can exceed. 2072rm -f -r conftest* confdefs.h 2073 2074$as_echo "/* confdefs.h */" > confdefs.h 2075 2076# Predefined preprocessor variables. 2077 2078cat >>confdefs.h <<_ACEOF 2079#define PACKAGE_NAME "$PACKAGE_NAME" 2080_ACEOF 2081 2082cat >>confdefs.h <<_ACEOF 2083#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2084_ACEOF 2085 2086cat >>confdefs.h <<_ACEOF 2087#define PACKAGE_VERSION "$PACKAGE_VERSION" 2088_ACEOF 2089 2090cat >>confdefs.h <<_ACEOF 2091#define PACKAGE_STRING "$PACKAGE_STRING" 2092_ACEOF 2093 2094cat >>confdefs.h <<_ACEOF 2095#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2096_ACEOF 2097 2098cat >>confdefs.h <<_ACEOF 2099#define PACKAGE_URL "$PACKAGE_URL" 2100_ACEOF 2101 2102 2103# Let the site file select an alternate cache file if it wants to. 2104# Prefer an explicitly selected file to automatically selected ones. 2105ac_site_file1=NONE 2106ac_site_file2=NONE 2107if test -n "$CONFIG_SITE"; then 2108 # We do not want a PATH search for config.site. 2109 case $CONFIG_SITE in #(( 2110 -*) ac_site_file1=./$CONFIG_SITE;; 2111 */*) ac_site_file1=$CONFIG_SITE;; 2112 *) ac_site_file1=./$CONFIG_SITE;; 2113 esac 2114elif test "x$prefix" != xNONE; then 2115 ac_site_file1=$prefix/share/config.site 2116 ac_site_file2=$prefix/etc/config.site 2117else 2118 ac_site_file1=$ac_default_prefix/share/config.site 2119 ac_site_file2=$ac_default_prefix/etc/config.site 2120fi 2121for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2122do 2123 test "x$ac_site_file" = xNONE && continue 2124 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2126$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2127 sed 's/^/| /' "$ac_site_file" >&5 2128 . "$ac_site_file" \ 2129 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2131as_fn_error $? "failed to load site script $ac_site_file 2132See \`config.log' for more details" "$LINENO" 5; } 2133 fi 2134done 2135 2136 2137# Check that the precious variables saved in the cache have kept the same 2138# value. 2139ac_cache_corrupted=false 2140for ac_var in $ac_precious_vars; do 2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2142 eval ac_new_set=\$ac_env_${ac_var}_set 2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2144 eval ac_new_val=\$ac_env_${ac_var}_value 2145 case $ac_old_set,$ac_new_set in 2146 set,) 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2148$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2149 ac_cache_corrupted=: ;; 2150 ,set) 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2152$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2153 ac_cache_corrupted=: ;; 2154 ,);; 2155 *) 2156 if test "x$ac_old_val" != "x$ac_new_val"; then 2157 # differences in whitespace do not lead to failure. 2158 ac_old_val_w=`echo x $ac_old_val` 2159 ac_new_val_w=`echo x $ac_new_val` 2160 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2162$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2163 ac_cache_corrupted=: 2164 else 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2166$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2167 eval $ac_var=\$ac_old_val 2168 fi 2169 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2170$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2171 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2172$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2173 fi;; 2174 esac 2175 # Pass precious variables to config.status. 2176 if test "$ac_new_set" = set; then 2177 case $ac_new_val in 2178 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2179 *) ac_arg=$ac_var=$ac_new_val ;; 2180 esac 2181 case " $ac_configure_args " in 2182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2183 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2184 esac 2185 fi 2186done 2187if $ac_cache_corrupted; then 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2191$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2192 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2193fi 2194## -------------------- ## 2195## Main body of script. ## 2196## -------------------- ## 2197 2198ac_ext=c 2199ac_cpp='$CPP $CPPFLAGS' 2200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2202ac_compiler_gnu=$ac_cv_c_compiler_gnu 2203 2204 2205 2206ac_config_headers="$ac_config_headers mpe_collchk_conf.h" 2207 2208echo "Configuring MPE Collective and Datatype Checking Library with $ac_configure_args" 2209if test "X$srcdir" != "X." -a -s $srcdir/include/collchk.h ; then 2210 top_srcdir_abs=$srcdir 2211else 2212 2213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for current directory name" >&5 2214$as_echo_n "checking for current directory name... " >&6; } 2215top_srcdir_abs=$PWD 2216if test "${top_srcdir_abs}" != "" -a -d "${top_srcdir_abs}" ; then 2217 if test -r ${top_srcdir_abs}/.foo$$ ; then 2218 rm -f ${top_srcdir_abs}/.foo$$ 2219 rm -f .foo$$ 2220 fi 2221 if test -r ${top_srcdir_abs}/.foo$$ -o -r .foo$$ ; then 2222 top_srcdir_abs= 2223 else 2224 echo "test" > ${top_srcdir_abs}/.foo$$ 2225 if test ! -r .foo$$ ; then 2226 rm -f ${top_srcdir_abs}/.foo$$ 2227 top_srcdir_abs= 2228 else 2229 rm -f ${top_srcdir_abs}/.foo$$ 2230 fi 2231 fi 2232fi 2233if test "${top_srcdir_abs}" = "" ; then 2234 top_srcdir_abs=`pwd | sed -e 's%/tmp_mnt/%/%g'` 2235fi 2236if test ! -r ${top_srcdir_abs}/include/collchk.h ; then 2237 top_srcdir_abs=`pwd` 2238 if test ! -r ${top_srcdir_abs}/include/collchk.h ; then 2239 as_fn_error $? "Cannot determine the root directory!" "$LINENO" 5 2240 fi 2241 top_srcdir_abs=`pwd | sed -e 's%/tmp_mnt/%/%g'` 2242 if test ! -d ${top_srcdir_abs} ; then 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: your default path uses the automounter; this may 2244cause some problems if you use other NFS-connected systems." >&5 2245$as_echo "$as_me: WARNING: Warning: your default path uses the automounter; this may 2246cause some problems if you use other NFS-connected systems." >&2;} 2247 top_srcdir_abs=`pwd` 2248 fi 2249fi 2250if test -z "${top_srcdir_abs}" ; then 2251 top_srcdir_abs=`pwd | sed -e 's%/tmp_mnt/%/%g'` 2252 if test ! -d ${top_srcdir_abs} ; then 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: your default path uses the automounter; this may 2254cause some problems if you use other NFS-connected systems." >&5 2255$as_echo "$as_me: WARNING: Warning: your default path uses the automounter; this may 2256cause some problems if you use other NFS-connected systems." >&2;} 2257 top_srcdir_abs=`pwd` 2258 fi 2259fi 2260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_srcdir_abs}" >&5 2261$as_echo "${top_srcdir_abs}" >&6; } 2262 2263fi 2264 2265 2266# Check whether --enable-echo was given. 2267if test "${enable_echo+set}" = set; then : 2268 enableval=$enable_echo; set -x 2269fi 2270 2271 2272# Check whether --enable-softerror was given. 2273if test "${enable_softerror+set}" = set; then : 2274 enableval=$enable_softerror; 2275else 2276 enable_softerror=${mpe_enable_softerror:-no} 2277fi 2278 2279 2280MAKE=${MAKE:-make} 2281MPI_IMPL=${MPI_IMPL:-UserSupplied} 2282MPE_BUILD_FORTRAN2C=${MPE_BUILD_FORTRAN2C:-no} 2283CC=${CC:-cc} 2284CLINKER=${CLINKER:-$CC} 2285CFLAGS=${MPE_CFLAGS} 2286MPI_CC=${MPI_CC:-${CC}} 2287MPE_CLINKER=${MPE_CLINKER} 2288F77=${F77:-f77} 2289FLINKER=${FLINKER:-$F77} 2290FFLAGS=${MPE_FFLAGS} 2291MPI_F77=${MPI_F77:-${F77}} 2292MPE_FLINKER=${MPE_FLINKER} 2293FINC_PATH_LEADER=${FINC_PATH_LEADER:-"-I"} 2294FLIB_PATH_LEADER=${FLIB_PATH_LEADER:-"-L"} 2295MPI_CFLAGS=${MPI_CFLAGS} 2296MPI_FFLAGS=${MPI_FFLAGS} 2297MPI_LIBS=${MPI_LIBS} 2298 2299MPE_LIBNAME=${MPE_LIBNAME:-mpe} 2300PROF_LIBNAME="$MPE_LIBNAME" 2301COLLCHK_LIBNAME="${MPE_LIBNAME}_collchk" 2302F2CMPI_LIBNAME="${MPE_LIBNAME}_f2cmpi" 2303 2304PROF_LIBS="-l$PROF_LIBNAME" 2305COLLCHK_LIBS="-l$COLLCHK_LIBNAME $PROF_LIBS" 2306F2CMPI_LIBS="-l$F2CMPI_LIBNAME" 2307 2308 2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking gnumake" >&5 2310$as_echo_n "checking gnumake... " >&6; } 2311rm -f conftest 2312cat > conftest <<. 2313SHELL=/bin/sh 2314ALL: 2315 @(dir=`pwd` ; cd .. ; \$(MAKE) -f \$\$dir/conftest SUB) 2316SUB: 2317 @echo "success" 2318. 2319str=`$MAKE -f conftest 2>&1` 2320if test "$str" != "success" ; then 2321 str=`$MAKE --no-print-directory -f conftest 2>&1` 2322 if test "$str" = "success" ; then 2323 MAKE="$MAKE --no-print-directory" 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes using --no-print-directory" >&5 2325$as_echo "yes using --no-print-directory" >&6; } 2326 else 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2328$as_echo "no" >&6; } 2329 fi 2330else 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2332$as_echo "no" >&6; } 2333fi 2334rm -f conftest 2335str="" 2336 2337 2338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking BSD 4.4 make" >&5 2339$as_echo_n "checking BSD 4.4 make... " >&6; } 2340rm -f conftest 2341cat > conftest <<. 2342ALL: 2343 @echo "success" 2344. 2345cat > conftest1 <<. 2346include conftest 2347. 2348str=`$MAKE -f conftest1 2>&1` 2349rm -f conftest conftest1 2350if test "$str" != "success" ; then 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found BSD 4.4 so-called make" >&5 2352$as_echo "Found BSD 4.4 so-called make" >&6; } 2353 echo "The BSD 4.4 make is INCOMPATIBLE with all other makes." 2354 echo "Using this so-called make may cause problems when building programs." 2355 echo "You should consider using gnumake instead." 2356 2357else 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - whew" >&5 2359$as_echo "no - whew" >&6; } 2360fi 2361str="" 2362 2363 2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OSF V3 make" >&5 2365$as_echo_n "checking OSF V3 make... " >&6; } 2366rm -f conftest 2367cat > conftest <<. 2368SHELL=/bin/sh 2369ALL: 2370 @# This is a valid comment! 2371 @echo "success" 2372. 2373str=`$MAKE -f conftest 2>&1` 2374rm -f conftest 2375if test "$str" != "success" ; then 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found OSF V3 make" >&5 2377$as_echo "Found OSF V3 make" >&6; } 2378 echo "The OSF V3 make does not allow comments in target code." 2379 echo "Using this make may cause problems when building programs." 2380 echo "You should consider using gnumake instead." 2381 2382else 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2384$as_echo "no" >&6; } 2385fi 2386str="" 2387 2388 2389 2390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for virtual path format" >&5 2391$as_echo_n "checking for virtual path format... " >&6; } 2392rm -rf conftest* 2393mkdir conftestdir 2394cat >conftestdir/a.c <<EOF 2395A sample file 2396EOF 2397cat > conftest <<EOF 2398all: a.o 2399VPATH=.:conftestdir 2400.c.o: 2401 @echo \$< 2402EOF 2403ac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'` 2404if test -n "$ac_out" ; then 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: VPATH" >&5 2406$as_echo "VPATH" >&6; } 2407 VPATH='VPATH=.:$(srcdir)' 2408else 2409 rm -f conftest 2410 cat > conftest <<EOF 2411all: a.o 2412.PATH: . conftestdir 2413.c.o: 2414 @echo \$< 2415EOF 2416 ac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'` 2417 if test -n "$ac_out" ; then 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .PATH" >&5 2419$as_echo ".PATH" >&6; } 2420 VPATH='.PATH: . $(srcdir)' 2421 else 2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither VPATH nor .PATH works" >&5 2423$as_echo "neither VPATH nor .PATH works" >&6; } 2424 fi 2425fi 2426rm -rf conftest* 2427 2428 2429 2430if test ! -s include/collchk.h -a -z "$VPATH" ; then 2431 as_fn_error $? "No virtual MAKE path command found. 2432 You may need to set your make command 2433 The GNU make (sometimes available as gnumake) can be used. " "$LINENO" 5 2434fi 2435 2436MKDIR=mkdir 2437CPRP=cp 2438RM=rm 2439MV=mv 2440 2441 2442 2443 2444 2445 2446# Check whether --with-mpiio was given. 2447if test "${with_mpiio+set}" = set; then : 2448 withval=$with_mpiio; 2449else 2450 with_mpiio=yes 2451fi 2452 2453 2454# Check whether --enable-romio was given. 2455if test "${enable_romio+set}" = set; then : 2456 enableval=$enable_romio; with_mpiio=$enableval 2457else 2458 with_mpiio=yes 2459fi 2460 2461 2462# Check whether --enable-checkMPI was given. 2463if test "${enable_checkMPI+set}" = set; then : 2464 enableval=$enable_checkMPI; 2465else 2466 enable_checkMPI=yes 2467fi 2468 2469 2470 2471# Check whether --with-checkMPIO was given. 2472if test "${with_checkMPIO+set}" = set; then : 2473 withval=$with_checkMPIO; 2474else 2475 enable_checkMPIO=yes 2476fi 2477 2478 2479 2480# Check whether --with-f2cmpilibs was given. 2481if test "${with_f2cmpilibs+set}" = set; then : 2482 withval=$with_f2cmpilibs; F2CMPI_LIBS="$withval" 2483fi 2484 2485 2486if test -z "$nonopt" ; then nonopt=NONE ; fi 2487if test -f $CONFIG_AUX_DIR/install-sh ; then ac_aux_dir=$CONFIG_AUX_DIR 2488else 2489ac_aux_dir= 2490# We force the test to use the absolute path to ensure that the install 2491# program can be used if we cd to a different directory before using 2492# install. 2493for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2494 if test -f $ac_dir/install-sh; then 2495 ac_aux_dir=$ac_dir 2496 abs_ac_aux_dir=`(cd $ac_aux_dir && pwd)` 2497 ac_install_sh="$abs_ac_aux_dir/install-sh -c" 2498 break 2499 elif test -f $ac_dir/install.sh; then 2500 ac_aux_dir=$ac_dir 2501 abs_ac_aux_dir=`(cd $ac_aux_dir && pwd)` 2502 ac_install_sh="$abs_ac_aux_dir/install.sh -c" 2503 break 2504 fi 2505done 2506fi 2507if test -z "$ac_aux_dir"; then 2508 as_fn_error $? "can not find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2509fi 2510ac_config_guess=$ac_aux_dir/config.guess 2511ac_config_sub=$ac_aux_dir/config.sub 2512ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 2513 2514# Make sure we can run config.sub. 2515$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2516 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2517 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2519$as_echo_n "checking build system type... " >&6; } 2520if ${ac_cv_build+:} false; then : 2521 $as_echo_n "(cached) " >&6 2522else 2523 ac_build_alias=$build_alias 2524test "x$ac_build_alias" = x && 2525 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2526test "x$ac_build_alias" = x && 2527 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2528ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2529 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2530 2531fi 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2533$as_echo "$ac_cv_build" >&6; } 2534case $ac_cv_build in 2535*-*-*) ;; 2536*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2537esac 2538build=$ac_cv_build 2539ac_save_IFS=$IFS; IFS='-' 2540set x $ac_cv_build 2541shift 2542build_cpu=$1 2543build_vendor=$2 2544shift; shift 2545# Remember, the first character of IFS is used to create $*, 2546# except with old shells: 2547build_os=$* 2548IFS=$ac_save_IFS 2549case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2550 2551 2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2553$as_echo_n "checking host system type... " >&6; } 2554if ${ac_cv_host+:} false; then : 2555 $as_echo_n "(cached) " >&6 2556else 2557 if test "x$host_alias" = x; then 2558 ac_cv_host=$ac_cv_build 2559else 2560 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2561 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2562fi 2563 2564fi 2565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2566$as_echo "$ac_cv_host" >&6; } 2567case $ac_cv_host in 2568*-*-*) ;; 2569*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2570esac 2571host=$ac_cv_host 2572ac_save_IFS=$IFS; IFS='-' 2573set x $ac_cv_host 2574shift 2575host_cpu=$1 2576host_vendor=$2 2577shift; shift 2578# Remember, the first character of IFS is used to create $*, 2579# except with old shells: 2580host_os=$* 2581IFS=$ac_save_IFS 2582case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2583 2584 2585 2586rootbuild_dir=`pwd` 2587for dir in include lib bin sbin etc ; do 2588 dirname=${dir}build_dir 2589 mpe_dirname=mpe_${dirname} 2590 eval dirvalue=\$"$dirname" 2591 eval $dirname=\$\{${mpe_dirname}\} 2592done 2593 2594for dir in include lib bin sbin etc ; do 2595 dirname=${dir}build_dir 2596 eval dirvalue=\$"$dirname" 2597 if test -n "$dirvalue" ; then 2598 if test ! -d $dirvalue ; then 2599 if mkdir -p $dirvalue ; then 2600 : 2601 else 2602 2603if test "$enable_softerror" = "yes" ; then 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not create directory $dirvalue " >&5 2605$as_echo "$as_me: WARNING: Could not create directory $dirvalue " >&2;} 2606 exit 0 2607else 2608 as_fn_error $? " Could not create directory $dirvalue " "$LINENO" 5 2609fi 2610 2611 fi 2612 fi 2613 fi 2614done 2615 2616 2617 2618 2619 2620 2621 2622ac_ext=c 2623ac_cpp='$CPP $CPPFLAGS' 2624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2626ac_compiler_gnu=$ac_cv_c_compiler_gnu 2627if test -n "$ac_tool_prefix"; then 2628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2629set dummy ${ac_tool_prefix}gcc; ac_word=$2 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2631$as_echo_n "checking for $ac_word... " >&6; } 2632if ${ac_cv_prog_CC+:} false; then : 2633 $as_echo_n "(cached) " >&6 2634else 2635 if test -n "$CC"; then 2636 ac_cv_prog_CC="$CC" # Let the user override the test. 2637else 2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2639for as_dir in $PATH 2640do 2641 IFS=$as_save_IFS 2642 test -z "$as_dir" && as_dir=. 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2645 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2647 break 2 2648 fi 2649done 2650 done 2651IFS=$as_save_IFS 2652 2653fi 2654fi 2655CC=$ac_cv_prog_CC 2656if test -n "$CC"; then 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2658$as_echo "$CC" >&6; } 2659else 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2661$as_echo "no" >&6; } 2662fi 2663 2664 2665fi 2666if test -z "$ac_cv_prog_CC"; then 2667 ac_ct_CC=$CC 2668 # Extract the first word of "gcc", so it can be a program name with args. 2669set dummy gcc; ac_word=$2 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2671$as_echo_n "checking for $ac_word... " >&6; } 2672if ${ac_cv_prog_ac_ct_CC+:} false; then : 2673 $as_echo_n "(cached) " >&6 2674else 2675 if test -n "$ac_ct_CC"; then 2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2677else 2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679for as_dir in $PATH 2680do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 for ac_exec_ext in '' $ac_executable_extensions; do 2684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2685 ac_cv_prog_ac_ct_CC="gcc" 2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2687 break 2 2688 fi 2689done 2690 done 2691IFS=$as_save_IFS 2692 2693fi 2694fi 2695ac_ct_CC=$ac_cv_prog_ac_ct_CC 2696if test -n "$ac_ct_CC"; then 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2698$as_echo "$ac_ct_CC" >&6; } 2699else 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2701$as_echo "no" >&6; } 2702fi 2703 2704 if test "x$ac_ct_CC" = x; then 2705 CC="" 2706 else 2707 case $cross_compiling:$ac_tool_warned in 2708yes:) 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2711ac_tool_warned=yes ;; 2712esac 2713 CC=$ac_ct_CC 2714 fi 2715else 2716 CC="$ac_cv_prog_CC" 2717fi 2718 2719if test -z "$CC"; then 2720 if test -n "$ac_tool_prefix"; then 2721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2722set dummy ${ac_tool_prefix}cc; ac_word=$2 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724$as_echo_n "checking for $ac_word... " >&6; } 2725if ${ac_cv_prog_CC+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 if test -n "$CC"; then 2729 ac_cv_prog_CC="$CC" # Let the user override the test. 2730else 2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH 2733do 2734 IFS=$as_save_IFS 2735 test -z "$as_dir" && as_dir=. 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2738 ac_cv_prog_CC="${ac_tool_prefix}cc" 2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742done 2743 done 2744IFS=$as_save_IFS 2745 2746fi 2747fi 2748CC=$ac_cv_prog_CC 2749if test -n "$CC"; then 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2751$as_echo "$CC" >&6; } 2752else 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2754$as_echo "no" >&6; } 2755fi 2756 2757 2758 fi 2759fi 2760if test -z "$CC"; then 2761 # Extract the first word of "cc", so it can be a program name with args. 2762set dummy cc; ac_word=$2 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2764$as_echo_n "checking for $ac_word... " >&6; } 2765if ${ac_cv_prog_CC+:} false; then : 2766 $as_echo_n "(cached) " >&6 2767else 2768 if test -n "$CC"; then 2769 ac_cv_prog_CC="$CC" # Let the user override the test. 2770else 2771 ac_prog_rejected=no 2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2773for as_dir in $PATH 2774do 2775 IFS=$as_save_IFS 2776 test -z "$as_dir" && as_dir=. 2777 for ac_exec_ext in '' $ac_executable_extensions; do 2778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2780 ac_prog_rejected=yes 2781 continue 2782 fi 2783 ac_cv_prog_CC="cc" 2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2785 break 2 2786 fi 2787done 2788 done 2789IFS=$as_save_IFS 2790 2791if test $ac_prog_rejected = yes; then 2792 # We found a bogon in the path, so make sure we never use it. 2793 set dummy $ac_cv_prog_CC 2794 shift 2795 if test $# != 0; then 2796 # We chose a different compiler from the bogus one. 2797 # However, it has the same basename, so the bogon will be chosen 2798 # first if we set CC to just the basename; use the full file name. 2799 shift 2800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2801 fi 2802fi 2803fi 2804fi 2805CC=$ac_cv_prog_CC 2806if test -n "$CC"; then 2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2808$as_echo "$CC" >&6; } 2809else 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2811$as_echo "no" >&6; } 2812fi 2813 2814 2815fi 2816if test -z "$CC"; then 2817 if test -n "$ac_tool_prefix"; then 2818 for ac_prog in cl.exe 2819 do 2820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2821set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2823$as_echo_n "checking for $ac_word... " >&6; } 2824if ${ac_cv_prog_CC+:} false; then : 2825 $as_echo_n "(cached) " >&6 2826else 2827 if test -n "$CC"; then 2828 ac_cv_prog_CC="$CC" # Let the user override the test. 2829else 2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2831for as_dir in $PATH 2832do 2833 IFS=$as_save_IFS 2834 test -z "$as_dir" && as_dir=. 2835 for ac_exec_ext in '' $ac_executable_extensions; do 2836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2839 break 2 2840 fi 2841done 2842 done 2843IFS=$as_save_IFS 2844 2845fi 2846fi 2847CC=$ac_cv_prog_CC 2848if test -n "$CC"; then 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2850$as_echo "$CC" >&6; } 2851else 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2853$as_echo "no" >&6; } 2854fi 2855 2856 2857 test -n "$CC" && break 2858 done 2859fi 2860if test -z "$CC"; then 2861 ac_ct_CC=$CC 2862 for ac_prog in cl.exe 2863do 2864 # Extract the first word of "$ac_prog", so it can be a program name with args. 2865set dummy $ac_prog; ac_word=$2 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2867$as_echo_n "checking for $ac_word... " >&6; } 2868if ${ac_cv_prog_ac_ct_CC+:} false; then : 2869 $as_echo_n "(cached) " >&6 2870else 2871 if test -n "$ac_ct_CC"; then 2872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2873else 2874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2875for as_dir in $PATH 2876do 2877 IFS=$as_save_IFS 2878 test -z "$as_dir" && as_dir=. 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2881 ac_cv_prog_ac_ct_CC="$ac_prog" 2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886 done 2887IFS=$as_save_IFS 2888 2889fi 2890fi 2891ac_ct_CC=$ac_cv_prog_ac_ct_CC 2892if test -n "$ac_ct_CC"; then 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2894$as_echo "$ac_ct_CC" >&6; } 2895else 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2897$as_echo "no" >&6; } 2898fi 2899 2900 2901 test -n "$ac_ct_CC" && break 2902done 2903 2904 if test "x$ac_ct_CC" = x; then 2905 CC="" 2906 else 2907 case $cross_compiling:$ac_tool_warned in 2908yes:) 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2911ac_tool_warned=yes ;; 2912esac 2913 CC=$ac_ct_CC 2914 fi 2915fi 2916 2917fi 2918 2919 2920test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2921$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2922as_fn_error $? "no acceptable C compiler found in \$PATH 2923See \`config.log' for more details" "$LINENO" 5; } 2924 2925# Provide some information about the compiler. 2926$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2927set X $ac_compile 2928ac_compiler=$2 2929for ac_option in --version -v -V -qversion; do 2930 { { ac_try="$ac_compiler $ac_option >&5" 2931case "(($ac_try" in 2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2933 *) ac_try_echo=$ac_try;; 2934esac 2935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2936$as_echo "$ac_try_echo"; } >&5 2937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2938 ac_status=$? 2939 if test -s conftest.err; then 2940 sed '10a\ 2941... rest of stderr output deleted ... 2942 10q' conftest.err >conftest.er1 2943 cat conftest.er1 >&5 2944 fi 2945 rm -f conftest.er1 conftest.err 2946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2947 test $ac_status = 0; } 2948done 2949 2950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2951/* end confdefs.h. */ 2952 2953int 2954main () 2955{ 2956 2957 ; 2958 return 0; 2959} 2960_ACEOF 2961ac_clean_files_save=$ac_clean_files 2962ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2963# Try to create an executable without -o first, disregard a.out. 2964# It will help us diagnose broken compilers, and finding out an intuition 2965# of exeext. 2966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2967$as_echo_n "checking whether the C compiler works... " >&6; } 2968ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2969 2970# The possible output files: 2971ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2972 2973ac_rmfiles= 2974for ac_file in $ac_files 2975do 2976 case $ac_file in 2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2978 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2979 esac 2980done 2981rm -f $ac_rmfiles 2982 2983if { { ac_try="$ac_link_default" 2984case "(($ac_try" in 2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2986 *) ac_try_echo=$ac_try;; 2987esac 2988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2989$as_echo "$ac_try_echo"; } >&5 2990 (eval "$ac_link_default") 2>&5 2991 ac_status=$? 2992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2993 test $ac_status = 0; }; then : 2994 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2995# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2996# in a Makefile. We should not override ac_cv_exeext if it was cached, 2997# so that the user can short-circuit this test for compilers unknown to 2998# Autoconf. 2999for ac_file in $ac_files '' 3000do 3001 test -f "$ac_file" || continue 3002 case $ac_file in 3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3004 ;; 3005 [ab].out ) 3006 # We found the default executable, but exeext='' is most 3007 # certainly right. 3008 break;; 3009 *.* ) 3010 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3011 then :; else 3012 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3013 fi 3014 # We set ac_cv_exeext here because the later test for it is not 3015 # safe: cross compilers may not add the suffix if given an `-o' 3016 # argument, so we may need to know it at that point already. 3017 # Even if this section looks crufty: it has the advantage of 3018 # actually working. 3019 break;; 3020 * ) 3021 break;; 3022 esac 3023done 3024test "$ac_cv_exeext" = no && ac_cv_exeext= 3025 3026else 3027 ac_file='' 3028fi 3029if test -z "$ac_file"; then : 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3031$as_echo "no" >&6; } 3032$as_echo "$as_me: failed program was:" >&5 3033sed 's/^/| /' conftest.$ac_ext >&5 3034 3035{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3036$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3037as_fn_error 77 "C compiler cannot create executables 3038See \`config.log' for more details" "$LINENO" 5; } 3039else 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3041$as_echo "yes" >&6; } 3042fi 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3044$as_echo_n "checking for C compiler default output file name... " >&6; } 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3046$as_echo "$ac_file" >&6; } 3047ac_exeext=$ac_cv_exeext 3048 3049rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3050ac_clean_files=$ac_clean_files_save 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3052$as_echo_n "checking for suffix of executables... " >&6; } 3053if { { ac_try="$ac_link" 3054case "(($ac_try" in 3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3056 *) ac_try_echo=$ac_try;; 3057esac 3058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3059$as_echo "$ac_try_echo"; } >&5 3060 (eval "$ac_link") 2>&5 3061 ac_status=$? 3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3063 test $ac_status = 0; }; then : 3064 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3065# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3066# work properly (i.e., refer to `conftest.exe'), while it won't with 3067# `rm'. 3068for ac_file in conftest.exe conftest conftest.*; do 3069 test -f "$ac_file" || continue 3070 case $ac_file in 3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3072 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3073 break;; 3074 * ) break;; 3075 esac 3076done 3077else 3078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3080as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3081See \`config.log' for more details" "$LINENO" 5; } 3082fi 3083rm -f conftest conftest$ac_cv_exeext 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3085$as_echo "$ac_cv_exeext" >&6; } 3086 3087rm -f conftest.$ac_ext 3088EXEEXT=$ac_cv_exeext 3089ac_exeext=$EXEEXT 3090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3091/* end confdefs.h. */ 3092#include <stdio.h> 3093int 3094main () 3095{ 3096FILE *f = fopen ("conftest.out", "w"); 3097 return ferror (f) || fclose (f) != 0; 3098 3099 ; 3100 return 0; 3101} 3102_ACEOF 3103ac_clean_files="$ac_clean_files conftest.out" 3104# Check that the compiler produces executables we can run. If not, either 3105# the compiler is broken, or we cross compile. 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3107$as_echo_n "checking whether we are cross compiling... " >&6; } 3108if test "$cross_compiling" != yes; then 3109 { { ac_try="$ac_link" 3110case "(($ac_try" in 3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3112 *) ac_try_echo=$ac_try;; 3113esac 3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3115$as_echo "$ac_try_echo"; } >&5 3116 (eval "$ac_link") 2>&5 3117 ac_status=$? 3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3119 test $ac_status = 0; } 3120 if { ac_try='./conftest$ac_cv_exeext' 3121 { { case "(($ac_try" in 3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3123 *) ac_try_echo=$ac_try;; 3124esac 3125eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3126$as_echo "$ac_try_echo"; } >&5 3127 (eval "$ac_try") 2>&5 3128 ac_status=$? 3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3130 test $ac_status = 0; }; }; then 3131 cross_compiling=no 3132 else 3133 if test "$cross_compiling" = maybe; then 3134 cross_compiling=yes 3135 else 3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3138as_fn_error $? "cannot run C compiled programs. 3139If you meant to cross compile, use \`--host'. 3140See \`config.log' for more details" "$LINENO" 5; } 3141 fi 3142 fi 3143fi 3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3145$as_echo "$cross_compiling" >&6; } 3146 3147rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3148ac_clean_files=$ac_clean_files_save 3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3150$as_echo_n "checking for suffix of object files... " >&6; } 3151if ${ac_cv_objext+:} false; then : 3152 $as_echo_n "(cached) " >&6 3153else 3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3155/* end confdefs.h. */ 3156 3157int 3158main () 3159{ 3160 3161 ; 3162 return 0; 3163} 3164_ACEOF 3165rm -f conftest.o conftest.obj 3166if { { ac_try="$ac_compile" 3167case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170esac 3171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3172$as_echo "$ac_try_echo"; } >&5 3173 (eval "$ac_compile") 2>&5 3174 ac_status=$? 3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3176 test $ac_status = 0; }; then : 3177 for ac_file in conftest.o conftest.obj conftest.*; do 3178 test -f "$ac_file" || continue; 3179 case $ac_file in 3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3182 break;; 3183 esac 3184done 3185else 3186 $as_echo "$as_me: failed program was:" >&5 3187sed 's/^/| /' conftest.$ac_ext >&5 3188 3189{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3191as_fn_error $? "cannot compute suffix of object files: cannot compile 3192See \`config.log' for more details" "$LINENO" 5; } 3193fi 3194rm -f conftest.$ac_cv_objext conftest.$ac_ext 3195fi 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3197$as_echo "$ac_cv_objext" >&6; } 3198OBJEXT=$ac_cv_objext 3199ac_objext=$OBJEXT 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3201$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3202if ${ac_cv_c_compiler_gnu+:} false; then : 3203 $as_echo_n "(cached) " >&6 3204else 3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3206/* end confdefs.h. */ 3207 3208int 3209main () 3210{ 3211#ifndef __GNUC__ 3212 choke me 3213#endif 3214 3215 ; 3216 return 0; 3217} 3218_ACEOF 3219if ac_fn_c_try_compile "$LINENO"; then : 3220 ac_compiler_gnu=yes 3221else 3222 ac_compiler_gnu=no 3223fi 3224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3225ac_cv_c_compiler_gnu=$ac_compiler_gnu 3226 3227fi 3228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3229$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3230if test $ac_compiler_gnu = yes; then 3231 GCC=yes 3232else 3233 GCC= 3234fi 3235ac_test_CFLAGS=${CFLAGS+set} 3236ac_save_CFLAGS=$CFLAGS 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3238$as_echo_n "checking whether $CC accepts -g... " >&6; } 3239if ${ac_cv_prog_cc_g+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 ac_save_c_werror_flag=$ac_c_werror_flag 3243 ac_c_werror_flag=yes 3244 ac_cv_prog_cc_g=no 3245 CFLAGS="-g" 3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3247/* end confdefs.h. */ 3248 3249int 3250main () 3251{ 3252 3253 ; 3254 return 0; 3255} 3256_ACEOF 3257if ac_fn_c_try_compile "$LINENO"; then : 3258 ac_cv_prog_cc_g=yes 3259else 3260 CFLAGS="" 3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3262/* end confdefs.h. */ 3263 3264int 3265main () 3266{ 3267 3268 ; 3269 return 0; 3270} 3271_ACEOF 3272if ac_fn_c_try_compile "$LINENO"; then : 3273 3274else 3275 ac_c_werror_flag=$ac_save_c_werror_flag 3276 CFLAGS="-g" 3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3278/* end confdefs.h. */ 3279 3280int 3281main () 3282{ 3283 3284 ; 3285 return 0; 3286} 3287_ACEOF 3288if ac_fn_c_try_compile "$LINENO"; then : 3289 ac_cv_prog_cc_g=yes 3290fi 3291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3292fi 3293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3294fi 3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3296 ac_c_werror_flag=$ac_save_c_werror_flag 3297fi 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3299$as_echo "$ac_cv_prog_cc_g" >&6; } 3300if test "$ac_test_CFLAGS" = set; then 3301 CFLAGS=$ac_save_CFLAGS 3302elif test $ac_cv_prog_cc_g = yes; then 3303 if test "$GCC" = yes; then 3304 CFLAGS="-g -O2" 3305 else 3306 CFLAGS="-g" 3307 fi 3308else 3309 if test "$GCC" = yes; then 3310 CFLAGS="-O2" 3311 else 3312 CFLAGS= 3313 fi 3314fi 3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3316$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3317if ${ac_cv_prog_cc_c89+:} false; then : 3318 $as_echo_n "(cached) " >&6 3319else 3320 ac_cv_prog_cc_c89=no 3321ac_save_CC=$CC 3322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3323/* end confdefs.h. */ 3324#include <stdarg.h> 3325#include <stdio.h> 3326struct stat; 3327/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3328struct buf { int x; }; 3329FILE * (*rcsopen) (struct buf *, struct stat *, int); 3330static char *e (p, i) 3331 char **p; 3332 int i; 3333{ 3334 return p[i]; 3335} 3336static char *f (char * (*g) (char **, int), char **p, ...) 3337{ 3338 char *s; 3339 va_list v; 3340 va_start (v,p); 3341 s = g (p, va_arg (v,int)); 3342 va_end (v); 3343 return s; 3344} 3345 3346/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3347 function prototypes and stuff, but not '\xHH' hex character constants. 3348 These don't provoke an error unfortunately, instead are silently treated 3349 as 'x'. The following induces an error, until -std is added to get 3350 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3351 array size at least. It's necessary to write '\x00'==0 to get something 3352 that's true only with -std. */ 3353int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3354 3355/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3356 inside strings and character constants. */ 3357#define FOO(x) 'x' 3358int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3359 3360int test (int i, double x); 3361struct s1 {int (*f) (int a);}; 3362struct s2 {int (*f) (double a);}; 3363int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3364int argc; 3365char **argv; 3366int 3367main () 3368{ 3369return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3370 ; 3371 return 0; 3372} 3373_ACEOF 3374for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3375 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3376do 3377 CC="$ac_save_CC $ac_arg" 3378 if ac_fn_c_try_compile "$LINENO"; then : 3379 ac_cv_prog_cc_c89=$ac_arg 3380fi 3381rm -f core conftest.err conftest.$ac_objext 3382 test "x$ac_cv_prog_cc_c89" != "xno" && break 3383done 3384rm -f conftest.$ac_ext 3385CC=$ac_save_CC 3386 3387fi 3388# AC_CACHE_VAL 3389case "x$ac_cv_prog_cc_c89" in 3390 x) 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3392$as_echo "none needed" >&6; } ;; 3393 xno) 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3395$as_echo "unsupported" >&6; } ;; 3396 *) 3397 CC="$CC $ac_cv_prog_cc_c89" 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3399$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3400esac 3401if test "x$ac_cv_prog_cc_c89" != xno; then : 3402 3403fi 3404 3405ac_ext=c 3406ac_cpp='$CPP $CPPFLAGS' 3407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3409ac_compiler_gnu=$ac_cv_c_compiler_gnu 3410 3411 3412 3413# Extract the first word of "ar", so it can be a program name with args. 3414set dummy ar; ac_word=$2 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3416$as_echo_n "checking for $ac_word... " >&6; } 3417if ${ac_cv_prog_AR+:} false; then : 3418 $as_echo_n "(cached) " >&6 3419else 3420 if test -n "$AR"; then 3421 ac_cv_prog_AR="$AR" # Let the user override the test. 3422else 3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3424for as_dir in $PATH 3425do 3426 IFS=$as_save_IFS 3427 test -z "$as_dir" && as_dir=. 3428 for ac_exec_ext in '' $ac_executable_extensions; do 3429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3430 ac_cv_prog_AR="ar" 3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3432 break 2 3433 fi 3434done 3435 done 3436IFS=$as_save_IFS 3437 3438 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR=";" 3439fi 3440fi 3441AR=$ac_cv_prog_AR 3442if test -n "$AR"; then 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3444$as_echo "$AR" >&6; } 3445else 3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3447$as_echo "no" >&6; } 3448fi 3449 3450 3451if test -n "$ac_tool_prefix"; then 3452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3453set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3455$as_echo_n "checking for $ac_word... " >&6; } 3456if ${ac_cv_prog_RANLIB+:} false; then : 3457 $as_echo_n "(cached) " >&6 3458else 3459 if test -n "$RANLIB"; then 3460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3461else 3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3463for as_dir in $PATH 3464do 3465 IFS=$as_save_IFS 3466 test -z "$as_dir" && as_dir=. 3467 for ac_exec_ext in '' $ac_executable_extensions; do 3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3471 break 2 3472 fi 3473done 3474 done 3475IFS=$as_save_IFS 3476 3477fi 3478fi 3479RANLIB=$ac_cv_prog_RANLIB 3480if test -n "$RANLIB"; then 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 3482$as_echo "$RANLIB" >&6; } 3483else 3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3485$as_echo "no" >&6; } 3486fi 3487 3488 3489fi 3490if test -z "$ac_cv_prog_RANLIB"; then 3491 ac_ct_RANLIB=$RANLIB 3492 # Extract the first word of "ranlib", so it can be a program name with args. 3493set dummy ranlib; ac_word=$2 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3495$as_echo_n "checking for $ac_word... " >&6; } 3496if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 if test -n "$ac_ct_RANLIB"; then 3500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3501else 3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3503for as_dir in $PATH 3504do 3505 IFS=$as_save_IFS 3506 test -z "$as_dir" && as_dir=. 3507 for ac_exec_ext in '' $ac_executable_extensions; do 3508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3509 ac_cv_prog_ac_ct_RANLIB="ranlib" 3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3511 break 2 3512 fi 3513done 3514 done 3515IFS=$as_save_IFS 3516 3517fi 3518fi 3519ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3520if test -n "$ac_ct_RANLIB"; then 3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 3522$as_echo "$ac_ct_RANLIB" >&6; } 3523else 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3525$as_echo "no" >&6; } 3526fi 3527 3528 if test "x$ac_ct_RANLIB" = x; then 3529 RANLIB=":" 3530 else 3531 case $cross_compiling:$ac_tool_warned in 3532yes:) 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3535ac_tool_warned=yes ;; 3536esac 3537 RANLIB=$ac_ct_RANLIB 3538 fi 3539else 3540 RANLIB="$ac_cv_prog_RANLIB" 3541fi 3542 3543 3544ac_ext=c 3545ac_cpp='$CPP $CPPFLAGS' 3546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3548ac_compiler_gnu=$ac_cv_c_compiler_gnu 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3550$as_echo_n "checking how to run the C preprocessor... " >&6; } 3551# On Suns, sometimes $CPP names a directory. 3552if test -n "$CPP" && test -d "$CPP"; then 3553 CPP= 3554fi 3555if test -z "$CPP"; then 3556 if ${ac_cv_prog_CPP+:} false; then : 3557 $as_echo_n "(cached) " >&6 3558else 3559 # Double quotes because CPP needs to be expanded 3560 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3561 do 3562 ac_preproc_ok=false 3563for ac_c_preproc_warn_flag in '' yes 3564do 3565 # Use a header file that comes with gcc, so configuring glibc 3566 # with a fresh cross-compiler works. 3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3568 # <limits.h> exists even on freestanding compilers. 3569 # On the NeXT, cc -E runs the code through the compiler's parser, 3570 # not just through cpp. "Syntax error" is here to catch this case. 3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3572/* end confdefs.h. */ 3573#ifdef __STDC__ 3574# include <limits.h> 3575#else 3576# include <assert.h> 3577#endif 3578 Syntax error 3579_ACEOF 3580if ac_fn_c_try_cpp "$LINENO"; then : 3581 3582else 3583 # Broken: fails on valid input. 3584continue 3585fi 3586rm -f conftest.err conftest.i conftest.$ac_ext 3587 3588 # OK, works on sane cases. Now check whether nonexistent headers 3589 # can be detected and how. 3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3591/* end confdefs.h. */ 3592#include <ac_nonexistent.h> 3593_ACEOF 3594if ac_fn_c_try_cpp "$LINENO"; then : 3595 # Broken: success on invalid input. 3596continue 3597else 3598 # Passes both tests. 3599ac_preproc_ok=: 3600break 3601fi 3602rm -f conftest.err conftest.i conftest.$ac_ext 3603 3604done 3605# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3606rm -f conftest.i conftest.err conftest.$ac_ext 3607if $ac_preproc_ok; then : 3608 break 3609fi 3610 3611 done 3612 ac_cv_prog_CPP=$CPP 3613 3614fi 3615 CPP=$ac_cv_prog_CPP 3616else 3617 ac_cv_prog_CPP=$CPP 3618fi 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3620$as_echo "$CPP" >&6; } 3621ac_preproc_ok=false 3622for ac_c_preproc_warn_flag in '' yes 3623do 3624 # Use a header file that comes with gcc, so configuring glibc 3625 # with a fresh cross-compiler works. 3626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3627 # <limits.h> exists even on freestanding compilers. 3628 # On the NeXT, cc -E runs the code through the compiler's parser, 3629 # not just through cpp. "Syntax error" is here to catch this case. 3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3631/* end confdefs.h. */ 3632#ifdef __STDC__ 3633# include <limits.h> 3634#else 3635# include <assert.h> 3636#endif 3637 Syntax error 3638_ACEOF 3639if ac_fn_c_try_cpp "$LINENO"; then : 3640 3641else 3642 # Broken: fails on valid input. 3643continue 3644fi 3645rm -f conftest.err conftest.i conftest.$ac_ext 3646 3647 # OK, works on sane cases. Now check whether nonexistent headers 3648 # can be detected and how. 3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3650/* end confdefs.h. */ 3651#include <ac_nonexistent.h> 3652_ACEOF 3653if ac_fn_c_try_cpp "$LINENO"; then : 3654 # Broken: success on invalid input. 3655continue 3656else 3657 # Passes both tests. 3658ac_preproc_ok=: 3659break 3660fi 3661rm -f conftest.err conftest.i conftest.$ac_ext 3662 3663done 3664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3665rm -f conftest.i conftest.err conftest.$ac_ext 3666if $ac_preproc_ok; then : 3667 3668else 3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3671as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3672See \`config.log' for more details" "$LINENO" 5; } 3673fi 3674 3675ac_ext=c 3676ac_cpp='$CPP $CPPFLAGS' 3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3679ac_compiler_gnu=$ac_cv_c_compiler_gnu 3680 3681if test "$CPP" = "/lib/cpp" -a ! -x /lib/cpp ; then 3682 as_fn_error $? "configure could not find a working C preprocessor " "$LINENO" 5 3683fi 3684 3685DEBUG_LIBS="" 3686if test "$enable_debugcheck" = "yes" ; then 3687 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5 3689$as_echo_n "checking for malloc in -lefence... " >&6; } 3690if ${ac_cv_lib_efence_malloc+:} false; then : 3691 $as_echo_n "(cached) " >&6 3692else 3693 ac_check_lib_save_LIBS=$LIBS 3694LIBS="-lefence $LIBS" 3695cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3696/* end confdefs.h. */ 3697 3698/* Override any GCC internal prototype to avoid an error. 3699 Use char because int might match the return type of a GCC 3700 builtin and then its argument prototype would still apply. */ 3701#ifdef __cplusplus 3702extern "C" 3703#endif 3704char malloc (); 3705int 3706main () 3707{ 3708return malloc (); 3709 ; 3710 return 0; 3711} 3712_ACEOF 3713if ac_fn_c_try_link "$LINENO"; then : 3714 ac_cv_lib_efence_malloc=yes 3715else 3716 ac_cv_lib_efence_malloc=no 3717fi 3718rm -f core conftest.err conftest.$ac_objext \ 3719 conftest$ac_exeext conftest.$ac_ext 3720LIBS=$ac_check_lib_save_LIBS 3721fi 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5 3723$as_echo "$ac_cv_lib_efence_malloc" >&6; } 3724if test "x$ac_cv_lib_efence_malloc" = xyes; then : 3725 DEBUG_LIBS="-lefence" 3726fi 3727 3728fi 3729 3730 3731 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3733$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3734if ${ac_cv_path_GREP+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 if test -z "$GREP"; then 3738 ac_path_GREP_found=false 3739 # Loop through the user's path and test for each of PROGNAME-LIST 3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3741for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3742do 3743 IFS=$as_save_IFS 3744 test -z "$as_dir" && as_dir=. 3745 for ac_prog in grep ggrep; do 3746 for ac_exec_ext in '' $ac_executable_extensions; do 3747 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3748 as_fn_executable_p "$ac_path_GREP" || continue 3749# Check for GNU ac_path_GREP and select it if it is found. 3750 # Check for GNU $ac_path_GREP 3751case `"$ac_path_GREP" --version 2>&1` in 3752*GNU*) 3753 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3754*) 3755 ac_count=0 3756 $as_echo_n 0123456789 >"conftest.in" 3757 while : 3758 do 3759 cat "conftest.in" "conftest.in" >"conftest.tmp" 3760 mv "conftest.tmp" "conftest.in" 3761 cp "conftest.in" "conftest.nl" 3762 $as_echo 'GREP' >> "conftest.nl" 3763 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3765 as_fn_arith $ac_count + 1 && ac_count=$as_val 3766 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3767 # Best one so far, save it but keep looking for a better one 3768 ac_cv_path_GREP="$ac_path_GREP" 3769 ac_path_GREP_max=$ac_count 3770 fi 3771 # 10*(2^10) chars as input seems more than enough 3772 test $ac_count -gt 10 && break 3773 done 3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3775esac 3776 3777 $ac_path_GREP_found && break 3 3778 done 3779 done 3780 done 3781IFS=$as_save_IFS 3782 if test -z "$ac_cv_path_GREP"; then 3783 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3784 fi 3785else 3786 ac_cv_path_GREP=$GREP 3787fi 3788 3789fi 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3791$as_echo "$ac_cv_path_GREP" >&6; } 3792 GREP="$ac_cv_path_GREP" 3793 3794 3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3796$as_echo_n "checking for egrep... " >&6; } 3797if ${ac_cv_path_EGREP+:} false; then : 3798 $as_echo_n "(cached) " >&6 3799else 3800 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3801 then ac_cv_path_EGREP="$GREP -E" 3802 else 3803 if test -z "$EGREP"; then 3804 ac_path_EGREP_found=false 3805 # Loop through the user's path and test for each of PROGNAME-LIST 3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3807for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3808do 3809 IFS=$as_save_IFS 3810 test -z "$as_dir" && as_dir=. 3811 for ac_prog in egrep; do 3812 for ac_exec_ext in '' $ac_executable_extensions; do 3813 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3814 as_fn_executable_p "$ac_path_EGREP" || continue 3815# Check for GNU ac_path_EGREP and select it if it is found. 3816 # Check for GNU $ac_path_EGREP 3817case `"$ac_path_EGREP" --version 2>&1` in 3818*GNU*) 3819 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3820*) 3821 ac_count=0 3822 $as_echo_n 0123456789 >"conftest.in" 3823 while : 3824 do 3825 cat "conftest.in" "conftest.in" >"conftest.tmp" 3826 mv "conftest.tmp" "conftest.in" 3827 cp "conftest.in" "conftest.nl" 3828 $as_echo 'EGREP' >> "conftest.nl" 3829 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3830 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3831 as_fn_arith $ac_count + 1 && ac_count=$as_val 3832 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3833 # Best one so far, save it but keep looking for a better one 3834 ac_cv_path_EGREP="$ac_path_EGREP" 3835 ac_path_EGREP_max=$ac_count 3836 fi 3837 # 10*(2^10) chars as input seems more than enough 3838 test $ac_count -gt 10 && break 3839 done 3840 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3841esac 3842 3843 $ac_path_EGREP_found && break 3 3844 done 3845 done 3846 done 3847IFS=$as_save_IFS 3848 if test -z "$ac_cv_path_EGREP"; then 3849 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3850 fi 3851else 3852 ac_cv_path_EGREP=$EGREP 3853fi 3854 3855 fi 3856fi 3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3858$as_echo "$ac_cv_path_EGREP" >&6; } 3859 EGREP="$ac_cv_path_EGREP" 3860 3861 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3863$as_echo_n "checking for ANSI C header files... " >&6; } 3864if ${ac_cv_header_stdc+:} false; then : 3865 $as_echo_n "(cached) " >&6 3866else 3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869#include <stdlib.h> 3870#include <stdarg.h> 3871#include <string.h> 3872#include <float.h> 3873 3874int 3875main () 3876{ 3877 3878 ; 3879 return 0; 3880} 3881_ACEOF 3882if ac_fn_c_try_compile "$LINENO"; then : 3883 ac_cv_header_stdc=yes 3884else 3885 ac_cv_header_stdc=no 3886fi 3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3888 3889if test $ac_cv_header_stdc = yes; then 3890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3892/* end confdefs.h. */ 3893#include <string.h> 3894 3895_ACEOF 3896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3897 $EGREP "memchr" >/dev/null 2>&1; then : 3898 3899else 3900 ac_cv_header_stdc=no 3901fi 3902rm -f conftest* 3903 3904fi 3905 3906if test $ac_cv_header_stdc = yes; then 3907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3909/* end confdefs.h. */ 3910#include <stdlib.h> 3911 3912_ACEOF 3913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3914 $EGREP "free" >/dev/null 2>&1; then : 3915 3916else 3917 ac_cv_header_stdc=no 3918fi 3919rm -f conftest* 3920 3921fi 3922 3923if test $ac_cv_header_stdc = yes; then 3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3925 if test "$cross_compiling" = yes; then : 3926 : 3927else 3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3929/* end confdefs.h. */ 3930#include <ctype.h> 3931#include <stdlib.h> 3932#if ((' ' & 0x0FF) == 0x020) 3933# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3934# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3935#else 3936# define ISLOWER(c) \ 3937 (('a' <= (c) && (c) <= 'i') \ 3938 || ('j' <= (c) && (c) <= 'r') \ 3939 || ('s' <= (c) && (c) <= 'z')) 3940# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3941#endif 3942 3943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3944int 3945main () 3946{ 3947 int i; 3948 for (i = 0; i < 256; i++) 3949 if (XOR (islower (i), ISLOWER (i)) 3950 || toupper (i) != TOUPPER (i)) 3951 return 2; 3952 return 0; 3953} 3954_ACEOF 3955if ac_fn_c_try_run "$LINENO"; then : 3956 3957else 3958 ac_cv_header_stdc=no 3959fi 3960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3961 conftest.$ac_objext conftest.beam conftest.$ac_ext 3962fi 3963 3964fi 3965fi 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3967$as_echo "$ac_cv_header_stdc" >&6; } 3968if test $ac_cv_header_stdc = yes; then 3969 3970$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3971 3972fi 3973 3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 3975$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 3976if ${ac_cv_c_const+:} false; then : 3977 $as_echo_n "(cached) " >&6 3978else 3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3980/* end confdefs.h. */ 3981 3982int 3983main () 3984{ 3985 3986#ifndef __cplusplus 3987 /* Ultrix mips cc rejects this sort of thing. */ 3988 typedef int charset[2]; 3989 const charset cs = { 0, 0 }; 3990 /* SunOS 4.1.1 cc rejects this. */ 3991 char const *const *pcpcc; 3992 char **ppc; 3993 /* NEC SVR4.0.2 mips cc rejects this. */ 3994 struct point {int x, y;}; 3995 static struct point const zero = {0,0}; 3996 /* AIX XL C 1.02.0.0 rejects this. 3997 It does not let you subtract one const X* pointer from another in 3998 an arm of an if-expression whose if-part is not a constant 3999 expression */ 4000 const char *g = "string"; 4001 pcpcc = &g + (g ? g-g : 0); 4002 /* HPUX 7.0 cc rejects these. */ 4003 ++pcpcc; 4004 ppc = (char**) pcpcc; 4005 pcpcc = (char const *const *) ppc; 4006 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4007 char tx; 4008 char *t = &tx; 4009 char const *s = 0 ? (char *) 0 : (char const *) 0; 4010 4011 *t++ = 0; 4012 if (s) return 0; 4013 } 4014 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4015 int x[] = {25, 17}; 4016 const int *foo = &x[0]; 4017 ++foo; 4018 } 4019 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4020 typedef const int *iptr; 4021 iptr p = 0; 4022 ++p; 4023 } 4024 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4025 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4026 struct s { int j; const int *ap[3]; } bx; 4027 struct s *b = &bx; b->j = 5; 4028 } 4029 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4030 const int foo = 10; 4031 if (!foo) return 0; 4032 } 4033 return !cs[0] && !zero.x; 4034#endif 4035 4036 ; 4037 return 0; 4038} 4039_ACEOF 4040if ac_fn_c_try_compile "$LINENO"; then : 4041 ac_cv_c_const=yes 4042else 4043 ac_cv_c_const=no 4044fi 4045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4046fi 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4048$as_echo "$ac_cv_c_const" >&6; } 4049if test $ac_cv_c_const = no; then 4050 4051$as_echo "#define const /**/" >>confdefs.h 4052 4053fi 4054 4055 4056# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4057for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4058 inttypes.h stdint.h unistd.h 4059do : 4060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4061ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4062" 4063if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4064 cat >>confdefs.h <<_ACEOF 4065#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4066_ACEOF 4067 4068fi 4069 4070done 4071 4072 4073for ac_header in stdio.h stdlib.h string.h unistd.h 4074do : 4075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4076ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4077if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4078 cat >>confdefs.h <<_ACEOF 4079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4080_ACEOF 4081 4082fi 4083 4084done 4085 4086 4087ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4088if test "x$ac_cv_type_size_t" = xyes; then : 4089 4090else 4091 4092cat >>confdefs.h <<_ACEOF 4093#define size_t unsigned int 4094_ACEOF 4095 4096fi 4097 4098# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4099# for constant arguments. Useless! 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 4101$as_echo_n "checking for working alloca.h... " >&6; } 4102if ${ac_cv_working_alloca_h+:} false; then : 4103 $as_echo_n "(cached) " >&6 4104else 4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4106/* end confdefs.h. */ 4107#include <alloca.h> 4108int 4109main () 4110{ 4111char *p = (char *) alloca (2 * sizeof (int)); 4112 if (p) return 0; 4113 ; 4114 return 0; 4115} 4116_ACEOF 4117if ac_fn_c_try_link "$LINENO"; then : 4118 ac_cv_working_alloca_h=yes 4119else 4120 ac_cv_working_alloca_h=no 4121fi 4122rm -f core conftest.err conftest.$ac_objext \ 4123 conftest$ac_exeext conftest.$ac_ext 4124fi 4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 4126$as_echo "$ac_cv_working_alloca_h" >&6; } 4127if test $ac_cv_working_alloca_h = yes; then 4128 4129$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 4130 4131fi 4132 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 4134$as_echo_n "checking for alloca... " >&6; } 4135if ${ac_cv_func_alloca_works+:} false; then : 4136 $as_echo_n "(cached) " >&6 4137else 4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4139/* end confdefs.h. */ 4140#ifdef __GNUC__ 4141# define alloca __builtin_alloca 4142#else 4143# ifdef _MSC_VER 4144# include <malloc.h> 4145# define alloca _alloca 4146# else 4147# ifdef HAVE_ALLOCA_H 4148# include <alloca.h> 4149# else 4150# ifdef _AIX 4151 #pragma alloca 4152# else 4153# ifndef alloca /* predefined by HP cc +Olibcalls */ 4154void *alloca (size_t); 4155# endif 4156# endif 4157# endif 4158# endif 4159#endif 4160 4161int 4162main () 4163{ 4164char *p = (char *) alloca (1); 4165 if (p) return 0; 4166 ; 4167 return 0; 4168} 4169_ACEOF 4170if ac_fn_c_try_link "$LINENO"; then : 4171 ac_cv_func_alloca_works=yes 4172else 4173 ac_cv_func_alloca_works=no 4174fi 4175rm -f core conftest.err conftest.$ac_objext \ 4176 conftest$ac_exeext conftest.$ac_ext 4177fi 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 4179$as_echo "$ac_cv_func_alloca_works" >&6; } 4180 4181if test $ac_cv_func_alloca_works = yes; then 4182 4183$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 4184 4185else 4186 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4187# that cause trouble. Some versions do not even contain alloca or 4188# contain a buggy version. If you still want to use their alloca, 4189# use ar to extract alloca.o from them instead of compiling alloca.c. 4190 4191ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 4192 4193$as_echo "#define C_ALLOCA 1" >>confdefs.h 4194 4195 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 4197$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 4198if ${ac_cv_os_cray+:} false; then : 4199 $as_echo_n "(cached) " >&6 4200else 4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4202/* end confdefs.h. */ 4203#if defined CRAY && ! defined CRAY2 4204webecray 4205#else 4206wenotbecray 4207#endif 4208 4209_ACEOF 4210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4211 $EGREP "webecray" >/dev/null 2>&1; then : 4212 ac_cv_os_cray=yes 4213else 4214 ac_cv_os_cray=no 4215fi 4216rm -f conftest* 4217 4218fi 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 4220$as_echo "$ac_cv_os_cray" >&6; } 4221if test $ac_cv_os_cray = yes; then 4222 for ac_func in _getb67 GETB67 getb67; do 4223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4224ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4225if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4226 4227cat >>confdefs.h <<_ACEOF 4228#define CRAY_STACKSEG_END $ac_func 4229_ACEOF 4230 4231 break 4232fi 4233 4234 done 4235fi 4236 4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 4238$as_echo_n "checking stack direction for C alloca... " >&6; } 4239if ${ac_cv_c_stack_direction+:} false; then : 4240 $as_echo_n "(cached) " >&6 4241else 4242 if test "$cross_compiling" = yes; then : 4243 ac_cv_c_stack_direction=0 4244else 4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246/* end confdefs.h. */ 4247$ac_includes_default 4248int 4249find_stack_direction (int *addr, int depth) 4250{ 4251 int dir, dummy = 0; 4252 if (! addr) 4253 addr = &dummy; 4254 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 4255 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 4256 return dir + dummy; 4257} 4258 4259int 4260main (int argc, char **argv) 4261{ 4262 return find_stack_direction (0, argc + !argv + 20) < 0; 4263} 4264_ACEOF 4265if ac_fn_c_try_run "$LINENO"; then : 4266 ac_cv_c_stack_direction=1 4267else 4268 ac_cv_c_stack_direction=-1 4269fi 4270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4271 conftest.$ac_objext conftest.beam conftest.$ac_ext 4272fi 4273 4274fi 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 4276$as_echo "$ac_cv_c_stack_direction" >&6; } 4277cat >>confdefs.h <<_ACEOF 4278#define STACK_DIRECTION $ac_cv_c_stack_direction 4279_ACEOF 4280 4281 4282fi 4283 4284 4285if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 4286 if test "$enable_checkMPI" = "yes" ; then 4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Datatype decoding functions " >&5 4288$as_echo_n "checking for MPI_Datatype decoding functions ... " >&6; } 4289 4290 pac_MPI_CC="$MPI_CC" 4291 pac_MPI_CFLAGS="$MPI_CFLAGS" 4292 pac_MPI_LIBS="$MPI_LIBS" 4293 pac_saved_CC="$CC" 4294 pac_saved_CFLAGS="$CFLAGS" 4295 pac_saved_LIBS="$LIBS" 4296 ac_ext=c 4297ac_cpp='$CPP $CPPFLAGS' 4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4300ac_compiler_gnu=$ac_cv_c_compiler_gnu 4301 4302 CC="$pac_MPI_CC" 4303 CFLAGS="$pac_MPI_CFLAGS" 4304 LIBS="$pac_MPI_LIBS" 4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4306/* end confdefs.h. */ 4307 4308 4309/* <stdlib.h> is included to get NULL defined */ 4310#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 4311#include <stdlib.h> 4312#else 4313#if !defined( NULL ) 4314#define NULL 0 4315#endif 4316#endif 4317 4318 4319#include "mpi.h" 4320 4321 4322int 4323main () 4324{ 4325 4326 int argc; char **argv; 4327 4328 int nints, naddrs, ntypes, combiner; 4329 int *ints; 4330 MPI_Aint *addrs; 4331 MPI_Datatype *types; 4332 MPI_Datatype type; 4333 int itmp 4334 ; 4335 MPI_Init(&argc, &argv); 4336 4337 itmp=MPI_Type_get_envelope( type, &nints, &naddrs, &ntypes, &combiner ); 4338 itmp=MPI_Type_get_contents(type, nints, naddrs, ntypes, ints, addrs, types); 4339 combiner=MPI_COMBINER_NAMED; 4340 ; 4341 MPI_Finalize(); 4342 4343 ; 4344 return 0; 4345} 4346 4347_ACEOF 4348if ac_fn_c_try_link "$LINENO"; then : 4349 pac_mpi_working=yes 4350else 4351 pac_mpi_working=no 4352fi 4353rm -f core conftest.err conftest.$ac_objext \ 4354 conftest$ac_exeext conftest.$ac_ext 4355 CC="$pac_saved_CC" 4356 CFLAGS="$pac_saved_CFLAGS" 4357 LIBS="$pac_saved_LIBS" 4358 ac_ext=c 4359ac_cpp='$CPP $CPPFLAGS' 4360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4362ac_compiler_gnu=$ac_cv_c_compiler_gnu 4363 4364 if test "$pac_mpi_working" = "yes" ; then 4365 mpe_link_ok=yes 4366 else 4367 mpe_link_ok=no 4368 fi 4369 4370 if test "$mpe_link_ok" = "yes" ; then 4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4372$as_echo "yes" >&6; } 4373 else 4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4375$as_echo "no" >&6; } 4376 4377if test "$enable_softerror" = "yes" ; then 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing MPI_Datatype decoding functions! " >&5 4379$as_echo "$as_me: WARNING: Missing MPI_Datatype decoding functions! " >&2;} 4380 exit 0 4381else 4382 as_fn_error $? " Missing MPI_Datatype decoding functions! " "$LINENO" 5 4383fi 4384 4385 fi 4386 fi 4387fi 4388 4389if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 4390 if test "$enable_checkMPI" = "yes" ; then 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rare MPI_COMBINER_XXX types " >&5 4392$as_echo_n "checking for rare MPI_COMBINER_XXX types ... " >&6; } 4393 4394 pac_MPI_CC="$MPI_CC" 4395 pac_MPI_CFLAGS="$MPI_CFLAGS" 4396 pac_MPI_LIBS="$MPI_LIBS" 4397 pac_saved_CC="$CC" 4398 pac_saved_CFLAGS="$CFLAGS" 4399 pac_saved_LIBS="$LIBS" 4400 ac_ext=c 4401ac_cpp='$CPP $CPPFLAGS' 4402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4404ac_compiler_gnu=$ac_cv_c_compiler_gnu 4405 4406 CC="$pac_MPI_CC" 4407 CFLAGS="$pac_MPI_CFLAGS" 4408 LIBS="$pac_MPI_LIBS" 4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4410/* end confdefs.h. */ 4411 4412 4413/* <stdlib.h> is included to get NULL defined */ 4414#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 4415#include <stdlib.h> 4416#else 4417#if !defined( NULL ) 4418#define NULL 0 4419#endif 4420#endif 4421 4422 4423#include "mpi.h" 4424 4425 4426int 4427main () 4428{ 4429 4430 int argc; char **argv; 4431 int cbr1, cbr2, cbr3, cbr4, cbr5, cbr6; ; 4432 MPI_Init(&argc, &argv); 4433 4434 cbr1=MPI_COMBINER_DUP; cbr2=MPI_COMBINER_F90_COMPLEX; 4435 cbr3=MPI_COMBINER_INDEXED_BLOCK; cbr4=MPI_COMBINER_HINDEXED_INTEGER; 4436 cbr5=MPI_COMBINER_STRUCT_INTEGER; cbr6=MPI_COMBINER_SUBARRAY; 4437 ; 4438 MPI_Finalize(); 4439 4440 ; 4441 return 0; 4442} 4443 4444_ACEOF 4445if ac_fn_c_try_link "$LINENO"; then : 4446 pac_mpi_working=yes 4447else 4448 pac_mpi_working=no 4449fi 4450rm -f core conftest.err conftest.$ac_objext \ 4451 conftest$ac_exeext conftest.$ac_ext 4452 CC="$pac_saved_CC" 4453 CFLAGS="$pac_saved_CFLAGS" 4454 LIBS="$pac_saved_LIBS" 4455 ac_ext=c 4456ac_cpp='$CPP $CPPFLAGS' 4457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4459ac_compiler_gnu=$ac_cv_c_compiler_gnu 4460 4461 if test "$pac_mpi_working" = "yes" ; then 4462 mpe_link_ok=yes 4463 else 4464 mpe_link_ok=no 4465 fi 4466 4467 if test "$mpe_link_ok" = "yes" ; then 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4469$as_echo "yes" >&6; } 4470 4471$as_echo "#define HAVE_RARE_MPI_COMBINERS 1" >>confdefs.h 4472 4473 else 4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4475$as_echo "no" >&6; } 4476 fi 4477 fi 4478else 4479 if test "$MPI_IMPL" = "MPICH2" ; then 4480 4481$as_echo "#define HAVE_RARE_MPI_COMBINERS 1" >>confdefs.h 4482 4483 fi 4484fi 4485 4486 4487if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 4488 if test "$enable_checkMPI" = "yes" ; then 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI Error functions " >&5 4490$as_echo_n "checking for MPI Error functions ... " >&6; } 4491 4492 pac_MPI_CC="$MPI_CC" 4493 pac_MPI_CFLAGS="$MPI_CFLAGS" 4494 pac_MPI_LIBS="$MPI_LIBS" 4495 pac_saved_CC="$CC" 4496 pac_saved_CFLAGS="$CFLAGS" 4497 pac_saved_LIBS="$LIBS" 4498 ac_ext=c 4499ac_cpp='$CPP $CPPFLAGS' 4500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4502ac_compiler_gnu=$ac_cv_c_compiler_gnu 4503 4504 CC="$pac_MPI_CC" 4505 CFLAGS="$pac_MPI_CFLAGS" 4506 LIBS="$pac_MPI_LIBS" 4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4508/* end confdefs.h. */ 4509 4510 4511/* <stdlib.h> is included to get NULL defined */ 4512#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 4513#include <stdlib.h> 4514#else 4515#if !defined( NULL ) 4516#define NULL 0 4517#endif 4518#endif 4519 4520 4521#include "mpi.h" 4522 4523 4524int 4525main () 4526{ 4527 4528 int argc; char **argv; 4529 4530 int itmp, err_class, err_code; 4531 char err_str="test"; 4532 ; 4533 MPI_Init(&argc, &argv); 4534 4535 itmp=MPI_Add_error_class( &err_class ); 4536 itmp=MPI_Add_error_code( err_class, &err_code ); 4537 itmp=MPI_Add_error_string( err_code, err_str ); 4538 itmp=MPI_Comm_call_errhandler( MPI_COMM_WORLD, err_code ); 4539 ; 4540 MPI_Finalize(); 4541 4542 ; 4543 return 0; 4544} 4545 4546_ACEOF 4547if ac_fn_c_try_link "$LINENO"; then : 4548 pac_mpi_working=yes 4549else 4550 pac_mpi_working=no 4551fi 4552rm -f core conftest.err conftest.$ac_objext \ 4553 conftest$ac_exeext conftest.$ac_ext 4554 CC="$pac_saved_CC" 4555 CFLAGS="$pac_saved_CFLAGS" 4556 LIBS="$pac_saved_LIBS" 4557 ac_ext=c 4558ac_cpp='$CPP $CPPFLAGS' 4559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4561ac_compiler_gnu=$ac_cv_c_compiler_gnu 4562 4563 if test "$pac_mpi_working" = "yes" ; then 4564 mpe_link_ok=yes 4565 else 4566 mpe_link_ok=no 4567 fi 4568 4569 if test "$mpe_link_ok" = "yes" ; then 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4571$as_echo "yes" >&6; } 4572 4573$as_echo "#define HAVE_MPI_ERR_FNS 1" >>confdefs.h 4574 4575 else 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4577$as_echo "no" >&6; } 4578 fi 4579 fi 4580else 4581 if test "$MPI_IMPL" = "MPICH2" ; then 4582 4583$as_echo "#define HAVE_MPI_ERR_FNS 1" >>confdefs.h 4584 4585 fi 4586fi 4587 4588 4589if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 4590 if test "$enable_checkMPI" = "yes" ; then 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_IN_PLACE " >&5 4592$as_echo_n "checking for MPI_IN_PLACE ... " >&6; } 4593 4594 pac_MPI_CC="$MPI_CC" 4595 pac_MPI_CFLAGS="$MPI_CFLAGS" 4596 pac_MPI_LIBS="$MPI_LIBS" 4597 pac_saved_CC="$CC" 4598 pac_saved_CFLAGS="$CFLAGS" 4599 pac_saved_LIBS="$LIBS" 4600 ac_ext=c 4601ac_cpp='$CPP $CPPFLAGS' 4602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4604ac_compiler_gnu=$ac_cv_c_compiler_gnu 4605 4606 CC="$pac_MPI_CC" 4607 CFLAGS="$pac_MPI_CFLAGS" 4608 LIBS="$pac_MPI_LIBS" 4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4610/* end confdefs.h. */ 4611 4612 4613/* <stdlib.h> is included to get NULL defined */ 4614#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 4615#include <stdlib.h> 4616#else 4617#if !defined( NULL ) 4618#define NULL 0 4619#endif 4620#endif 4621 4622 4623#include "mpi.h" 4624 4625 4626int 4627main () 4628{ 4629 4630 int argc; char **argv; 4631 int itmp, iboolean; ; 4632 MPI_Init(&argc, &argv); 4633 4634 itmp=MPI_Allreduce( MPI_IN_PLACE, &iboolean, 1, MPI_INT, 4635 MPI_LAND, MPI_COMM_WORLD ) 4636 ; 4637 MPI_Finalize(); 4638 4639 ; 4640 return 0; 4641} 4642 4643_ACEOF 4644if ac_fn_c_try_link "$LINENO"; then : 4645 pac_mpi_working=yes 4646else 4647 pac_mpi_working=no 4648fi 4649rm -f core conftest.err conftest.$ac_objext \ 4650 conftest$ac_exeext conftest.$ac_ext 4651 CC="$pac_saved_CC" 4652 CFLAGS="$pac_saved_CFLAGS" 4653 LIBS="$pac_saved_LIBS" 4654 ac_ext=c 4655ac_cpp='$CPP $CPPFLAGS' 4656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4658ac_compiler_gnu=$ac_cv_c_compiler_gnu 4659 4660 if test "$pac_mpi_working" = "yes" ; then 4661 mpe_link_ok=yes 4662 else 4663 mpe_link_ok=no 4664 fi 4665 4666 if test "$mpe_link_ok" = "yes" ; then 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4668$as_echo "yes" >&6; } 4669 4670$as_echo "#define HAVE_MPI_IN_PLACE 1" >>confdefs.h 4671 4672 else 4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4674$as_echo "no" >&6; } 4675 fi 4676 fi 4677else 4678 if test "$MPI_IMPL" = "MPICH2" ; then 4679 4680$as_echo "#define HAVE_MPI_IN_PLACE 1" >>confdefs.h 4681 4682 fi 4683fi 4684 4685if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 4686 if test "$enable_checkMPI" = "yes" ; then 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_WCHAR " >&5 4688$as_echo_n "checking for MPI_WCHAR ... " >&6; } 4689 4690 pac_MPI_CC="$MPI_CC" 4691 pac_MPI_CFLAGS="$MPI_CFLAGS" 4692 pac_MPI_LIBS="$MPI_LIBS" 4693 pac_saved_CC="$CC" 4694 pac_saved_CFLAGS="$CFLAGS" 4695 pac_saved_LIBS="$LIBS" 4696 ac_ext=c 4697ac_cpp='$CPP $CPPFLAGS' 4698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4700ac_compiler_gnu=$ac_cv_c_compiler_gnu 4701 4702 CC="$pac_MPI_CC" 4703 CFLAGS="$pac_MPI_CFLAGS" 4704 LIBS="$pac_MPI_LIBS" 4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4706/* end confdefs.h. */ 4707 4708 4709/* <stdlib.h> is included to get NULL defined */ 4710#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 4711#include <stdlib.h> 4712#else 4713#if !defined( NULL ) 4714#define NULL 0 4715#endif 4716#endif 4717 4718 4719#include "mpi.h" 4720 4721 4722int 4723main () 4724{ 4725 4726 int argc; char **argv; 4727 MPI_Datatype type; ; 4728 MPI_Init(&argc, &argv); 4729 type = MPI_WCHAR ; 4730 MPI_Finalize(); 4731 4732 ; 4733 return 0; 4734} 4735 4736_ACEOF 4737if ac_fn_c_try_link "$LINENO"; then : 4738 pac_mpi_working=yes 4739else 4740 pac_mpi_working=no 4741fi 4742rm -f core conftest.err conftest.$ac_objext \ 4743 conftest$ac_exeext conftest.$ac_ext 4744 CC="$pac_saved_CC" 4745 CFLAGS="$pac_saved_CFLAGS" 4746 LIBS="$pac_saved_LIBS" 4747 ac_ext=c 4748ac_cpp='$CPP $CPPFLAGS' 4749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4751ac_compiler_gnu=$ac_cv_c_compiler_gnu 4752 4753 if test "$pac_mpi_working" = "yes" ; then 4754 mpe_link_ok=yes 4755 else 4756 mpe_link_ok=no 4757 fi 4758 4759 if test "$mpe_link_ok" = "yes" ; then 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4761$as_echo "yes" >&6; } 4762 4763$as_echo "#define HAVE_MPI_WCHAR 1" >>confdefs.h 4764 4765 else 4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4767$as_echo "no" >&6; } 4768 fi 4769 fi 4770else 4771 if test "$MPI_IMPL" = "MPICH2" ; then 4772 4773$as_echo "#define HAVE_MPI_WCHAR 1" >>confdefs.h 4774 4775 fi 4776fi 4777 4778if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 4779 if test "$enable_checkMPI" = "yes" ; then 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_SIGNED_CHAR " >&5 4781$as_echo_n "checking for MPI_SIGNED_CHAR ... " >&6; } 4782 4783 pac_MPI_CC="$MPI_CC" 4784 pac_MPI_CFLAGS="$MPI_CFLAGS" 4785 pac_MPI_LIBS="$MPI_LIBS" 4786 pac_saved_CC="$CC" 4787 pac_saved_CFLAGS="$CFLAGS" 4788 pac_saved_LIBS="$LIBS" 4789 ac_ext=c 4790ac_cpp='$CPP $CPPFLAGS' 4791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4793ac_compiler_gnu=$ac_cv_c_compiler_gnu 4794 4795 CC="$pac_MPI_CC" 4796 CFLAGS="$pac_MPI_CFLAGS" 4797 LIBS="$pac_MPI_LIBS" 4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4799/* end confdefs.h. */ 4800 4801 4802/* <stdlib.h> is included to get NULL defined */ 4803#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 4804#include <stdlib.h> 4805#else 4806#if !defined( NULL ) 4807#define NULL 0 4808#endif 4809#endif 4810 4811 4812#include "mpi.h" 4813 4814 4815int 4816main () 4817{ 4818 4819 int argc; char **argv; 4820 MPI_Datatype type; ; 4821 MPI_Init(&argc, &argv); 4822 type = MPI_SIGNED_CHAR ; 4823 MPI_Finalize(); 4824 4825 ; 4826 return 0; 4827} 4828 4829_ACEOF 4830if ac_fn_c_try_link "$LINENO"; then : 4831 pac_mpi_working=yes 4832else 4833 pac_mpi_working=no 4834fi 4835rm -f core conftest.err conftest.$ac_objext \ 4836 conftest$ac_exeext conftest.$ac_ext 4837 CC="$pac_saved_CC" 4838 CFLAGS="$pac_saved_CFLAGS" 4839 LIBS="$pac_saved_LIBS" 4840 ac_ext=c 4841ac_cpp='$CPP $CPPFLAGS' 4842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4844ac_compiler_gnu=$ac_cv_c_compiler_gnu 4845 4846 if test "$pac_mpi_working" = "yes" ; then 4847 mpe_link_ok=yes 4848 else 4849 mpe_link_ok=no 4850 fi 4851 4852 if test "$mpe_link_ok" = "yes" ; then 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4854$as_echo "yes" >&6; } 4855 4856$as_echo "#define HAVE_MPI_SIGNED_CHAR 1" >>confdefs.h 4857 4858 else 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4860$as_echo "no" >&6; } 4861 fi 4862 fi 4863else 4864 if test "$MPI_IMPL" = "MPICH2" ; then 4865 4866$as_echo "#define HAVE_MPI_SIGNED_CHAR 1" >>confdefs.h 4867 4868 fi 4869fi 4870 4871if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 4872 if test "$enable_checkMPI" = "yes" ; then 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_UNSIGNED_LONG_LONG " >&5 4874$as_echo_n "checking for MPI_UNSIGNED_LONG_LONG ... " >&6; } 4875 4876 pac_MPI_CC="$MPI_CC" 4877 pac_MPI_CFLAGS="$MPI_CFLAGS" 4878 pac_MPI_LIBS="$MPI_LIBS" 4879 pac_saved_CC="$CC" 4880 pac_saved_CFLAGS="$CFLAGS" 4881 pac_saved_LIBS="$LIBS" 4882 ac_ext=c 4883ac_cpp='$CPP $CPPFLAGS' 4884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4886ac_compiler_gnu=$ac_cv_c_compiler_gnu 4887 4888 CC="$pac_MPI_CC" 4889 CFLAGS="$pac_MPI_CFLAGS" 4890 LIBS="$pac_MPI_LIBS" 4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4892/* end confdefs.h. */ 4893 4894 4895/* <stdlib.h> is included to get NULL defined */ 4896#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 4897#include <stdlib.h> 4898#else 4899#if !defined( NULL ) 4900#define NULL 0 4901#endif 4902#endif 4903 4904 4905#include "mpi.h" 4906 4907 4908int 4909main () 4910{ 4911 4912 int argc; char **argv; 4913 MPI_Datatype type; ; 4914 MPI_Init(&argc, &argv); 4915 type = MPI_UNSIGNED_LONG_LONG ; 4916 MPI_Finalize(); 4917 4918 ; 4919 return 0; 4920} 4921 4922_ACEOF 4923if ac_fn_c_try_link "$LINENO"; then : 4924 pac_mpi_working=yes 4925else 4926 pac_mpi_working=no 4927fi 4928rm -f core conftest.err conftest.$ac_objext \ 4929 conftest$ac_exeext conftest.$ac_ext 4930 CC="$pac_saved_CC" 4931 CFLAGS="$pac_saved_CFLAGS" 4932 LIBS="$pac_saved_LIBS" 4933 ac_ext=c 4934ac_cpp='$CPP $CPPFLAGS' 4935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4937ac_compiler_gnu=$ac_cv_c_compiler_gnu 4938 4939 if test "$pac_mpi_working" = "yes" ; then 4940 mpe_link_ok=yes 4941 else 4942 mpe_link_ok=no 4943 fi 4944 4945 if test "$mpe_link_ok" = "yes" ; then 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4947$as_echo "yes" >&6; } 4948 4949$as_echo "#define HAVE_MPI_UNSIGNED_LONG_LONG 1" >>confdefs.h 4950 4951 else 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4953$as_echo "no" >&6; } 4954 fi 4955 fi 4956else 4957 if test "$MPI_IMPL" = "MPICH2" ; then 4958 4959$as_echo "#define HAVE_MPI_UNSIGNED_LONG_LONG 1" >>confdefs.h 4960 4961 fi 4962fi 4963 4964if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 4965 if test "$enable_checkMPI" = "yes" ; then 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran MPI_Datatype in C " >&5 4967$as_echo_n "checking for Fortran MPI_Datatype in C ... " >&6; } 4968 4969 pac_MPI_CC="$MPI_CC" 4970 pac_MPI_CFLAGS="$MPI_CFLAGS" 4971 pac_MPI_LIBS="$MPI_LIBS" 4972 pac_saved_CC="$CC" 4973 pac_saved_CFLAGS="$CFLAGS" 4974 pac_saved_LIBS="$LIBS" 4975 ac_ext=c 4976ac_cpp='$CPP $CPPFLAGS' 4977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4979ac_compiler_gnu=$ac_cv_c_compiler_gnu 4980 4981 CC="$pac_MPI_CC" 4982 CFLAGS="$pac_MPI_CFLAGS" 4983 LIBS="$pac_MPI_LIBS" 4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4985/* end confdefs.h. */ 4986 4987 4988/* <stdlib.h> is included to get NULL defined */ 4989#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 4990#include <stdlib.h> 4991#else 4992#if !defined( NULL ) 4993#define NULL 0 4994#endif 4995#endif 4996 4997 4998#include "mpi.h" 4999 5000 5001int 5002main () 5003{ 5004 5005 int argc; char **argv; 5006 MPI_Datatype type ; 5007 MPI_Init(&argc, &argv); 5008 5009 type = MPI_COMPLEX; 5010 ; 5011 MPI_Finalize(); 5012 5013 ; 5014 return 0; 5015} 5016 5017_ACEOF 5018if ac_fn_c_try_link "$LINENO"; then : 5019 pac_mpi_working=yes 5020else 5021 pac_mpi_working=no 5022fi 5023rm -f core conftest.err conftest.$ac_objext \ 5024 conftest$ac_exeext conftest.$ac_ext 5025 CC="$pac_saved_CC" 5026 CFLAGS="$pac_saved_CFLAGS" 5027 LIBS="$pac_saved_LIBS" 5028 ac_ext=c 5029ac_cpp='$CPP $CPPFLAGS' 5030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5032ac_compiler_gnu=$ac_cv_c_compiler_gnu 5033 5034 if test "$pac_mpi_working" = "yes" ; then 5035 mpe_link_ok=yes 5036 else 5037 mpe_link_ok=no 5038 fi 5039 5040 if test "$mpe_link_ok" = "yes" ; then 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5042$as_echo "yes" >&6; } 5043 5044$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_IN_C 1" >>confdefs.h 5045 5046 5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran MPI_Datatype, INTEGER related, in C " >&5 5048$as_echo_n "checking for Fortran MPI_Datatype, INTEGER related, in C ... " >&6; } 5049 5050 pac_MPI_CC="$MPI_CC" 5051 pac_MPI_CFLAGS="$MPI_CFLAGS" 5052 pac_MPI_LIBS="$MPI_LIBS" 5053 pac_saved_CC="$CC" 5054 pac_saved_CFLAGS="$CFLAGS" 5055 pac_saved_LIBS="$LIBS" 5056 ac_ext=c 5057ac_cpp='$CPP $CPPFLAGS' 5058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5060ac_compiler_gnu=$ac_cv_c_compiler_gnu 5061 5062 CC="$pac_MPI_CC" 5063 CFLAGS="$pac_MPI_CFLAGS" 5064 LIBS="$pac_MPI_LIBS" 5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5066/* end confdefs.h. */ 5067 5068 5069/* <stdlib.h> is included to get NULL defined */ 5070#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 5071#include <stdlib.h> 5072#else 5073#if !defined( NULL ) 5074#define NULL 0 5075#endif 5076#endif 5077 5078 5079#include "mpi.h" 5080 5081 5082int 5083main () 5084{ 5085 5086 int argc; char **argv; 5087 MPI_Datatype type1, type2, type3, type4 ; 5088 MPI_Init(&argc, &argv); 5089 5090 type1 = MPI_INTEGER1; 5091 type2 = MPI_INTEGER2; 5092 type3 = MPI_INTEGER4; 5093 type4 = MPI_INTEGER8; 5094 ; 5095 MPI_Finalize(); 5096 5097 ; 5098 return 0; 5099} 5100 5101_ACEOF 5102if ac_fn_c_try_link "$LINENO"; then : 5103 pac_mpi_working=yes 5104else 5105 pac_mpi_working=no 5106fi 5107rm -f core conftest.err conftest.$ac_objext \ 5108 conftest$ac_exeext conftest.$ac_ext 5109 CC="$pac_saved_CC" 5110 CFLAGS="$pac_saved_CFLAGS" 5111 LIBS="$pac_saved_LIBS" 5112 ac_ext=c 5113ac_cpp='$CPP $CPPFLAGS' 5114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5116ac_compiler_gnu=$ac_cv_c_compiler_gnu 5117 5118 if test "$pac_mpi_working" = "yes" ; then 5119 mpe_link_ok=yes 5120 else 5121 mpe_link_ok=no 5122 fi 5123 5124 if test "$mpe_link_ok" = "yes" ; then 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5126$as_echo "yes" >&6; } 5127 5128$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_INTEGERX_IN_C 1" >>confdefs.h 5129 5130 else 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5132$as_echo "no" >&6; } 5133 fi 5134 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran MPI_Datatype, REAL related, in C " >&5 5136$as_echo_n "checking for Fortran MPI_Datatype, REAL related, in C ... " >&6; } 5137 5138 pac_MPI_CC="$MPI_CC" 5139 pac_MPI_CFLAGS="$MPI_CFLAGS" 5140 pac_MPI_LIBS="$MPI_LIBS" 5141 pac_saved_CC="$CC" 5142 pac_saved_CFLAGS="$CFLAGS" 5143 pac_saved_LIBS="$LIBS" 5144 ac_ext=c 5145ac_cpp='$CPP $CPPFLAGS' 5146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5148ac_compiler_gnu=$ac_cv_c_compiler_gnu 5149 5150 CC="$pac_MPI_CC" 5151 CFLAGS="$pac_MPI_CFLAGS" 5152 LIBS="$pac_MPI_LIBS" 5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5154/* end confdefs.h. */ 5155 5156 5157/* <stdlib.h> is included to get NULL defined */ 5158#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 5159#include <stdlib.h> 5160#else 5161#if !defined( NULL ) 5162#define NULL 0 5163#endif 5164#endif 5165 5166 5167#include "mpi.h" 5168 5169 5170int 5171main () 5172{ 5173 5174 int argc; char **argv; 5175 MPI_Datatype type1, type2 ; 5176 MPI_Init(&argc, &argv); 5177 5178 type1 = MPI_REAL4; 5179 type2 = MPI_REAL8; 5180 ; 5181 MPI_Finalize(); 5182 5183 ; 5184 return 0; 5185} 5186 5187_ACEOF 5188if ac_fn_c_try_link "$LINENO"; then : 5189 pac_mpi_working=yes 5190else 5191 pac_mpi_working=no 5192fi 5193rm -f core conftest.err conftest.$ac_objext \ 5194 conftest$ac_exeext conftest.$ac_ext 5195 CC="$pac_saved_CC" 5196 CFLAGS="$pac_saved_CFLAGS" 5197 LIBS="$pac_saved_LIBS" 5198 ac_ext=c 5199ac_cpp='$CPP $CPPFLAGS' 5200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5202ac_compiler_gnu=$ac_cv_c_compiler_gnu 5203 5204 if test "$pac_mpi_working" = "yes" ; then 5205 mpe_link_ok=yes 5206 else 5207 mpe_link_ok=no 5208 fi 5209 5210 if test "$mpe_link_ok" = "yes" ; then 5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5212$as_echo "yes" >&6; } 5213 5214$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_REALX_IN_C 1" >>confdefs.h 5215 5216 else 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5218$as_echo "no" >&6; } 5219 fi 5220 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran MPI_Datatype, COMPLEXn related, in C " >&5 5222$as_echo_n "checking for Fortran MPI_Datatype, COMPLEXn related, in C ... " >&6; } 5223 5224 pac_MPI_CC="$MPI_CC" 5225 pac_MPI_CFLAGS="$MPI_CFLAGS" 5226 pac_MPI_LIBS="$MPI_LIBS" 5227 pac_saved_CC="$CC" 5228 pac_saved_CFLAGS="$CFLAGS" 5229 pac_saved_LIBS="$LIBS" 5230 ac_ext=c 5231ac_cpp='$CPP $CPPFLAGS' 5232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5234ac_compiler_gnu=$ac_cv_c_compiler_gnu 5235 5236 CC="$pac_MPI_CC" 5237 CFLAGS="$pac_MPI_CFLAGS" 5238 LIBS="$pac_MPI_LIBS" 5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5240/* end confdefs.h. */ 5241 5242 5243/* <stdlib.h> is included to get NULL defined */ 5244#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 5245#include <stdlib.h> 5246#else 5247#if !defined( NULL ) 5248#define NULL 0 5249#endif 5250#endif 5251 5252 5253#include "mpi.h" 5254 5255 5256int 5257main () 5258{ 5259 5260 int argc; char **argv; 5261 MPI_Datatype type1, type2 ; 5262 MPI_Init(&argc, &argv); 5263 5264 type1 = MPI_COMPLEX8; 5265 type2 = MPI_COMPLEX16; 5266 ; 5267 MPI_Finalize(); 5268 5269 ; 5270 return 0; 5271} 5272 5273_ACEOF 5274if ac_fn_c_try_link "$LINENO"; then : 5275 pac_mpi_working=yes 5276else 5277 pac_mpi_working=no 5278fi 5279rm -f core conftest.err conftest.$ac_objext \ 5280 conftest$ac_exeext conftest.$ac_ext 5281 CC="$pac_saved_CC" 5282 CFLAGS="$pac_saved_CFLAGS" 5283 LIBS="$pac_saved_LIBS" 5284 ac_ext=c 5285ac_cpp='$CPP $CPPFLAGS' 5286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5288ac_compiler_gnu=$ac_cv_c_compiler_gnu 5289 5290 if test "$pac_mpi_working" = "yes" ; then 5291 mpe_link_ok=yes 5292 else 5293 mpe_link_ok=no 5294 fi 5295 5296 if test "$mpe_link_ok" = "yes" ; then 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5298$as_echo "yes" >&6; } 5299 5300$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_COMPLEXX_IN_C 1" >>confdefs.h 5301 5302 else 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5304$as_echo "no" >&6; } 5305 fi 5306 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran MPI_Datatype, 2COMPLEX related, in C " >&5 5308$as_echo_n "checking for Fortran MPI_Datatype, 2COMPLEX related, in C ... " >&6; } 5309 5310 pac_MPI_CC="$MPI_CC" 5311 pac_MPI_CFLAGS="$MPI_CFLAGS" 5312 pac_MPI_LIBS="$MPI_LIBS" 5313 pac_saved_CC="$CC" 5314 pac_saved_CFLAGS="$CFLAGS" 5315 pac_saved_LIBS="$LIBS" 5316 ac_ext=c 5317ac_cpp='$CPP $CPPFLAGS' 5318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5320ac_compiler_gnu=$ac_cv_c_compiler_gnu 5321 5322 CC="$pac_MPI_CC" 5323 CFLAGS="$pac_MPI_CFLAGS" 5324 LIBS="$pac_MPI_LIBS" 5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326/* end confdefs.h. */ 5327 5328 5329/* <stdlib.h> is included to get NULL defined */ 5330#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 5331#include <stdlib.h> 5332#else 5333#if !defined( NULL ) 5334#define NULL 0 5335#endif 5336#endif 5337 5338 5339#include "mpi.h" 5340 5341 5342int 5343main () 5344{ 5345 5346 int argc; char **argv; 5347 MPI_Datatype type1, type2 ; 5348 MPI_Init(&argc, &argv); 5349 5350 type1 = MPI_2COMPLEX; 5351 type2 = MPI_2DOUBLE_COMPLEX; 5352 ; 5353 MPI_Finalize(); 5354 5355 ; 5356 return 0; 5357} 5358 5359_ACEOF 5360if ac_fn_c_try_link "$LINENO"; then : 5361 pac_mpi_working=yes 5362else 5363 pac_mpi_working=no 5364fi 5365rm -f core conftest.err conftest.$ac_objext \ 5366 conftest$ac_exeext conftest.$ac_ext 5367 CC="$pac_saved_CC" 5368 CFLAGS="$pac_saved_CFLAGS" 5369 LIBS="$pac_saved_LIBS" 5370 ac_ext=c 5371ac_cpp='$CPP $CPPFLAGS' 5372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5374ac_compiler_gnu=$ac_cv_c_compiler_gnu 5375 5376 if test "$pac_mpi_working" = "yes" ; then 5377 mpe_link_ok=yes 5378 else 5379 mpe_link_ok=no 5380 fi 5381 5382 if test "$mpe_link_ok" = "yes" ; then 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5384$as_echo "yes" >&6; } 5385 5386$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_2COMPLEX_IN_C 1" >>confdefs.h 5387 5388 else 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5390$as_echo "no" >&6; } 5391 fi 5392 5393 else 5394 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5396$as_echo "no" >&6; } 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LAM/MPI Fortran MPI_Datatype in C " >&5 5398$as_echo_n "checking for LAM/MPI Fortran MPI_Datatype in C ... " >&6; } 5399 5400 pac_MPI_CC="$MPI_CC" 5401 pac_MPI_CFLAGS="$MPI_CFLAGS" 5402 pac_MPI_LIBS="$MPI_LIBS" 5403 pac_saved_CC="$CC" 5404 pac_saved_CFLAGS="$CFLAGS" 5405 pac_saved_LIBS="$LIBS" 5406 ac_ext=c 5407ac_cpp='$CPP $CPPFLAGS' 5408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5410ac_compiler_gnu=$ac_cv_c_compiler_gnu 5411 5412 CC="$pac_MPI_CC" 5413 CFLAGS="$pac_MPI_CFLAGS" 5414 LIBS="$pac_MPI_LIBS" 5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5416/* end confdefs.h. */ 5417 5418 5419/* <stdlib.h> is included to get NULL defined */ 5420#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 5421#include <stdlib.h> 5422#else 5423#if !defined( NULL ) 5424#define NULL 0 5425#endif 5426#endif 5427 5428 5429#include "mpi.h" 5430 5431 5432int 5433main () 5434{ 5435 5436 int argc; char **argv; 5437 MPI_Datatype type ; 5438 MPI_Init(&argc, &argv); 5439 5440#define MPI_COMPLEX ((MPI_Datatype) &lam_mpi_cplex) 5441 type = MPI_COMPLEX; 5442 ; 5443 MPI_Finalize(); 5444 5445 ; 5446 return 0; 5447} 5448 5449_ACEOF 5450if ac_fn_c_try_link "$LINENO"; then : 5451 pac_mpi_working=yes 5452else 5453 pac_mpi_working=no 5454fi 5455rm -f core conftest.err conftest.$ac_objext \ 5456 conftest$ac_exeext conftest.$ac_ext 5457 CC="$pac_saved_CC" 5458 CFLAGS="$pac_saved_CFLAGS" 5459 LIBS="$pac_saved_LIBS" 5460 ac_ext=c 5461ac_cpp='$CPP $CPPFLAGS' 5462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5464ac_compiler_gnu=$ac_cv_c_compiler_gnu 5465 5466 if test "$pac_mpi_working" = "yes" ; then 5467 mpe_link_ok=yes 5468 else 5469 mpe_link_ok=no 5470 fi 5471 5472 if test "$mpe_link_ok" = "yes" ; then 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5474$as_echo "yes" >&6; } 5475 5476$as_echo "#define HAVE_LAM_FORTRAN_MPI_DATATYPE_IN_C 1" >>confdefs.h 5477 5478 5479$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_IN_C 1" >>confdefs.h 5480 5481 5482$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_INTEGERX_IN_C 1" >>confdefs.h 5483 5484 5485$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_REALX_IN_C 1" >>confdefs.h 5486 5487 else 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5489$as_echo "no" >&6; } 5490 fi 5491 fi 5492 fi 5493else 5494 if test "$MPI_IMPL" = "MPICH2" ; then 5495 5496$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_IN_C 1" >>confdefs.h 5497 5498 5499$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_INTEGERX_IN_C 1" >>confdefs.h 5500 5501 5502$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_REALX_IN_C 1" >>confdefs.h 5503 5504 5505$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_COMPLEXX_IN_C 1" >>confdefs.h 5506 5507 else 5508 5509$as_echo "#define HAVE_FORTRAN_MPI_DATATYPE_IN_C 1" >>confdefs.h 5510 5511 fi 5512fi 5513 5514if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 5515 if test "$enable_checkMPI" = "yes" ; then 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Datatype " >&5 5517$as_echo_n "checking for MPI_Datatype ... " >&6; } 5518 5519 pac_MPI_CC="$MPI_CC" 5520 pac_MPI_CFLAGS="$MPI_CFLAGS" 5521 pac_MPI_LIBS="$MPI_LIBS" 5522 pac_saved_CC="$CC" 5523 pac_saved_CFLAGS="$CFLAGS" 5524 pac_saved_LIBS="$LIBS" 5525 ac_ext=c 5526ac_cpp='$CPP $CPPFLAGS' 5527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5529ac_compiler_gnu=$ac_cv_c_compiler_gnu 5530 5531 CC="$pac_MPI_CC" 5532 CFLAGS="$pac_MPI_CFLAGS" 5533 LIBS="$pac_MPI_LIBS" 5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5535/* end confdefs.h. */ 5536 5537 5538/* <stdlib.h> is included to get NULL defined */ 5539#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 5540#include <stdlib.h> 5541#else 5542#if !defined( NULL ) 5543#define NULL 0 5544#endif 5545#endif 5546 5547 5548#include "mpi.h" 5549 5550 5551int 5552main () 5553{ 5554 5555 int argc; char **argv; 5556 MPI_Datatype type ; 5557 MPI_Init(&argc, &argv); 5558 type = type / 5 ; 5559 MPI_Finalize(); 5560 5561 ; 5562 return 0; 5563} 5564 5565_ACEOF 5566if ac_fn_c_try_link "$LINENO"; then : 5567 pac_mpi_working=yes 5568else 5569 pac_mpi_working=no 5570fi 5571rm -f core conftest.err conftest.$ac_objext \ 5572 conftest$ac_exeext conftest.$ac_ext 5573 CC="$pac_saved_CC" 5574 CFLAGS="$pac_saved_CFLAGS" 5575 LIBS="$pac_saved_LIBS" 5576 ac_ext=c 5577ac_cpp='$CPP $CPPFLAGS' 5578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5580ac_compiler_gnu=$ac_cv_c_compiler_gnu 5581 5582 if test "$pac_mpi_working" = "yes" ; then 5583 mpe_link_ok=yes 5584 else 5585 mpe_link_ok=no 5586 fi 5587 5588 if test "$mpe_link_ok" = "yes" ; then 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5 5590$as_echo "int" >&6; } 5591 5592$as_echo "#define HAVE_INT_MPI_DATATYPE 1" >>confdefs.h 5593 5594 else 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void*" >&5 5596$as_echo "void*" >&6; } 5597 5598$as_echo "#define HAVE_PTR_MPI_DATATYPE 1" >>confdefs.h 5599 5600 fi 5601 fi 5602else 5603 5604$as_echo "#define HAVE_INT_MPI_DATATYPE 1" >>confdefs.h 5605 5606fi 5607 5608 5609if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 5610 if test "$enable_checkMPI" = "yes" ; then 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of MPI_Exscan " >&5 5612$as_echo_n "checking for the C version of MPI_Exscan ... " >&6; } 5613 5614 pac_MPI_CC="$MPI_CC" 5615 pac_MPI_CFLAGS="$MPI_CFLAGS" 5616 pac_MPI_LIBS="$MPI_LIBS" 5617 pac_saved_CC="$CC" 5618 pac_saved_CFLAGS="$CFLAGS" 5619 pac_saved_LIBS="$LIBS" 5620 ac_ext=c 5621ac_cpp='$CPP $CPPFLAGS' 5622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5624ac_compiler_gnu=$ac_cv_c_compiler_gnu 5625 5626 CC="$pac_MPI_CC" 5627 CFLAGS="$pac_MPI_CFLAGS" 5628 LIBS="$pac_MPI_LIBS" 5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5630/* end confdefs.h. */ 5631 5632 5633/* <stdlib.h> is included to get NULL defined */ 5634#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 5635#include <stdlib.h> 5636#else 5637#if !defined( NULL ) 5638#define NULL 0 5639#endif 5640#endif 5641 5642 5643#include "mpi.h" 5644 5645 5646int 5647main () 5648{ 5649 5650 int argc; char **argv; 5651 int itmp, ibuff ; 5652 MPI_Init(&argc, &argv); 5653 5654 itmp=MPI_Exscan( &ibuff, &ibuff, 1, MPI_INT, MPI_SUM, MPI_COMM_WORLD ) 5655 ; 5656 MPI_Finalize(); 5657 5658 ; 5659 return 0; 5660} 5661 5662_ACEOF 5663if ac_fn_c_try_link "$LINENO"; then : 5664 pac_mpi_working=yes 5665else 5666 pac_mpi_working=no 5667fi 5668rm -f core conftest.err conftest.$ac_objext \ 5669 conftest$ac_exeext conftest.$ac_ext 5670 CC="$pac_saved_CC" 5671 CFLAGS="$pac_saved_CFLAGS" 5672 LIBS="$pac_saved_LIBS" 5673 ac_ext=c 5674ac_cpp='$CPP $CPPFLAGS' 5675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5677ac_compiler_gnu=$ac_cv_c_compiler_gnu 5678 5679 if test "$pac_mpi_working" = "yes" ; then 5680 mpe_link_ok=yes 5681 else 5682 mpe_link_ok=no 5683 fi 5684 5685 if test "$mpe_link_ok" = "yes" ; then 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5687$as_echo "yes" >&6; } 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of PMPI_Exscan " >&5 5689$as_echo_n "checking for the C version of PMPI_Exscan ... " >&6; } 5690 5691 pac_MPI_CC="$MPI_CC" 5692 pac_MPI_CFLAGS="$MPI_CFLAGS" 5693 pac_MPI_LIBS="$MPI_LIBS" 5694 pac_saved_CC="$CC" 5695 pac_saved_CFLAGS="$CFLAGS" 5696 pac_saved_LIBS="$LIBS" 5697 ac_ext=c 5698ac_cpp='$CPP $CPPFLAGS' 5699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5701ac_compiler_gnu=$ac_cv_c_compiler_gnu 5702 5703 CC="$pac_MPI_CC" 5704 CFLAGS="$pac_MPI_CFLAGS" 5705 LIBS="$pac_MPI_LIBS" 5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5707/* end confdefs.h. */ 5708 5709 5710/* <stdlib.h> is included to get NULL defined */ 5711#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 5712#include <stdlib.h> 5713#else 5714#if !defined( NULL ) 5715#define NULL 0 5716#endif 5717#endif 5718 5719 5720#include "mpi.h" 5721 5722 5723int 5724main () 5725{ 5726 5727 int argc; char **argv; 5728 int itmp, ibuff ; 5729 MPI_Init(&argc, &argv); 5730 5731 itmp=PMPI_Exscan( &ibuff, &ibuff, 1, MPI_INT, MPI_SUM, MPI_COMM_WORLD ) 5732 ; 5733 MPI_Finalize(); 5734 5735 ; 5736 return 0; 5737} 5738 5739_ACEOF 5740if ac_fn_c_try_link "$LINENO"; then : 5741 pac_mpi_working=yes 5742else 5743 pac_mpi_working=no 5744fi 5745rm -f core conftest.err conftest.$ac_objext \ 5746 conftest$ac_exeext conftest.$ac_ext 5747 CC="$pac_saved_CC" 5748 CFLAGS="$pac_saved_CFLAGS" 5749 LIBS="$pac_saved_LIBS" 5750 ac_ext=c 5751ac_cpp='$CPP $CPPFLAGS' 5752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5754ac_compiler_gnu=$ac_cv_c_compiler_gnu 5755 5756 if test "$pac_mpi_working" = "yes" ; then 5757 mpe_link_ok=yes 5758 else 5759 mpe_link_ok=no 5760 fi 5761 5762 if test "$mpe_link_ok" = "yes" ; then 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5764$as_echo "yes" >&6; } 5765 COLLCHK_BUILD_EXSCAN=yes 5766 else 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5768$as_echo "no" >&6; } 5769 COLLCHK_BUILD_EXSCAN=no 5770 fi 5771 else 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5773$as_echo "no" >&6; } 5774 COLLCHK_BUILD_EXSCAN=no 5775 fi 5776 fi 5777else 5778 if test "$MPI_IMPL" = "MPICH2" ; then 5779 COLLCHK_BUILD_EXSCAN=yes 5780 else 5781 COLLCHK_BUILD_EXSCAN=no 5782 fi 5783fi 5784 5785if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 5786 if test "$enable_checkMPI" = "yes" ; then 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of MPI_Alltoallw " >&5 5788$as_echo_n "checking for the C version of MPI_Alltoallw ... " >&6; } 5789 5790 pac_MPI_CC="$MPI_CC" 5791 pac_MPI_CFLAGS="$MPI_CFLAGS" 5792 pac_MPI_LIBS="$MPI_LIBS" 5793 pac_saved_CC="$CC" 5794 pac_saved_CFLAGS="$CFLAGS" 5795 pac_saved_LIBS="$LIBS" 5796 ac_ext=c 5797ac_cpp='$CPP $CPPFLAGS' 5798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5800ac_compiler_gnu=$ac_cv_c_compiler_gnu 5801 5802 CC="$pac_MPI_CC" 5803 CFLAGS="$pac_MPI_CFLAGS" 5804 LIBS="$pac_MPI_LIBS" 5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5806/* end confdefs.h. */ 5807 5808 5809/* <stdlib.h> is included to get NULL defined */ 5810#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 5811#include <stdlib.h> 5812#else 5813#if !defined( NULL ) 5814#define NULL 0 5815#endif 5816#endif 5817 5818 5819#include "mpi.h" 5820 5821 5822int 5823main () 5824{ 5825 5826 int argc; char **argv; 5827 5828#define MAX 10 5829 int *sbuff, *rbuff; 5830 int scounts[MAX], rcounts[MAX], sdispls[MAX], rdispls[MAX]; 5831 MPI_Datatype stypes[MAX], rtypes[MAX]; 5832 int itmp 5833 ; 5834 MPI_Init(&argc, &argv); 5835 5836 itmp=MPI_Alltoallw( sbuff, scounts, sdispls, stypes, 5837 rbuff, rcounts, rdispls, rtypes, MPI_COMM_WORLD ) 5838 ; 5839 MPI_Finalize(); 5840 5841 ; 5842 return 0; 5843} 5844 5845_ACEOF 5846if ac_fn_c_try_link "$LINENO"; then : 5847 pac_mpi_working=yes 5848else 5849 pac_mpi_working=no 5850fi 5851rm -f core conftest.err conftest.$ac_objext \ 5852 conftest$ac_exeext conftest.$ac_ext 5853 CC="$pac_saved_CC" 5854 CFLAGS="$pac_saved_CFLAGS" 5855 LIBS="$pac_saved_LIBS" 5856 ac_ext=c 5857ac_cpp='$CPP $CPPFLAGS' 5858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5860ac_compiler_gnu=$ac_cv_c_compiler_gnu 5861 5862 if test "$pac_mpi_working" = "yes" ; then 5863 mpe_link_ok=yes 5864 else 5865 mpe_link_ok=no 5866 fi 5867 5868 if test "$mpe_link_ok" = "yes" ; then 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5870$as_echo "yes" >&6; } 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of PMPI_Alltoallw " >&5 5872$as_echo_n "checking for the C version of PMPI_Alltoallw ... " >&6; } 5873 5874 pac_MPI_CC="$MPI_CC" 5875 pac_MPI_CFLAGS="$MPI_CFLAGS" 5876 pac_MPI_LIBS="$MPI_LIBS" 5877 pac_saved_CC="$CC" 5878 pac_saved_CFLAGS="$CFLAGS" 5879 pac_saved_LIBS="$LIBS" 5880 ac_ext=c 5881ac_cpp='$CPP $CPPFLAGS' 5882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5884ac_compiler_gnu=$ac_cv_c_compiler_gnu 5885 5886 CC="$pac_MPI_CC" 5887 CFLAGS="$pac_MPI_CFLAGS" 5888 LIBS="$pac_MPI_LIBS" 5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5890/* end confdefs.h. */ 5891 5892 5893/* <stdlib.h> is included to get NULL defined */ 5894#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 5895#include <stdlib.h> 5896#else 5897#if !defined( NULL ) 5898#define NULL 0 5899#endif 5900#endif 5901 5902 5903#include "mpi.h" 5904 5905 5906int 5907main () 5908{ 5909 5910 int argc; char **argv; 5911 5912#define MAX 10 5913 int *sbuff, *rbuff; 5914 int scounts[MAX], rcounts[MAX], sdispls[MAX], rdispls[MAX]; 5915 MPI_Datatype stypes[MAX], rtypes[MAX]; 5916 int itmp 5917 ; 5918 MPI_Init(&argc, &argv); 5919 5920 itmp=PMPI_Alltoallw( sbuff, scounts, sdispls, stypes, 5921 rbuff, rcounts, rdispls, rtypes, MPI_COMM_WORLD ) 5922 ; 5923 MPI_Finalize(); 5924 5925 ; 5926 return 0; 5927} 5928 5929_ACEOF 5930if ac_fn_c_try_link "$LINENO"; then : 5931 pac_mpi_working=yes 5932else 5933 pac_mpi_working=no 5934fi 5935rm -f core conftest.err conftest.$ac_objext \ 5936 conftest$ac_exeext conftest.$ac_ext 5937 CC="$pac_saved_CC" 5938 CFLAGS="$pac_saved_CFLAGS" 5939 LIBS="$pac_saved_LIBS" 5940 ac_ext=c 5941ac_cpp='$CPP $CPPFLAGS' 5942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5944ac_compiler_gnu=$ac_cv_c_compiler_gnu 5945 5946 if test "$pac_mpi_working" = "yes" ; then 5947 mpe_link_ok=yes 5948 else 5949 mpe_link_ok=no 5950 fi 5951 5952 if test "$mpe_link_ok" = "yes" ; then 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5954$as_echo "yes" >&6; } 5955 COLLCHK_BUILD_ALLW=yes 5956 else 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5958$as_echo "no" >&6; } 5959 COLLCHK_BUILD_ALLW=no 5960 fi 5961 else 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5963$as_echo "no" >&6; } 5964 COLLCHK_BUILD_ALLW=no 5965 fi 5966 fi 5967else 5968 if test "$MPI_IMPL" = "MPICH2" ; then 5969 COLLCHK_BUILD_ALLW=yes 5970 else 5971 COLLCHK_BUILD_ALLW=no 5972 fi 5973fi 5974 5975if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 5976 if test "$enable_checkMPI" = "yes" ; then 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of MPI_Reduce_scatter_block " >&5 5978$as_echo_n "checking for the C version of MPI_Reduce_scatter_block ... " >&6; } 5979 5980 pac_MPI_CC="$MPI_CC" 5981 pac_MPI_CFLAGS="$MPI_CFLAGS" 5982 pac_MPI_LIBS="$MPI_LIBS" 5983 pac_saved_CC="$CC" 5984 pac_saved_CFLAGS="$CFLAGS" 5985 pac_saved_LIBS="$LIBS" 5986 ac_ext=c 5987ac_cpp='$CPP $CPPFLAGS' 5988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5990ac_compiler_gnu=$ac_cv_c_compiler_gnu 5991 5992 CC="$pac_MPI_CC" 5993 CFLAGS="$pac_MPI_CFLAGS" 5994 LIBS="$pac_MPI_LIBS" 5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5996/* end confdefs.h. */ 5997 5998 5999/* <stdlib.h> is included to get NULL defined */ 6000#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 6001#include <stdlib.h> 6002#else 6003#if !defined( NULL ) 6004#define NULL 0 6005#endif 6006#endif 6007 6008 6009#include "mpi.h" 6010 6011 6012int 6013main () 6014{ 6015 6016 int argc; char **argv; 6017 6018 int *sbuff, *rbuff; 6019 int rcount; 6020 MPI_Datatype dtype; 6021 int itmp; 6022 ; 6023 MPI_Init(&argc, &argv); 6024 6025 itmp=MPI_Reduce_scatter_block( sbuff, rbuff, rcount, dtype, MPI_SUM, 6026 MPI_COMM_WORLD ) 6027 ; 6028 MPI_Finalize(); 6029 6030 ; 6031 return 0; 6032} 6033 6034_ACEOF 6035if ac_fn_c_try_link "$LINENO"; then : 6036 pac_mpi_working=yes 6037else 6038 pac_mpi_working=no 6039fi 6040rm -f core conftest.err conftest.$ac_objext \ 6041 conftest$ac_exeext conftest.$ac_ext 6042 CC="$pac_saved_CC" 6043 CFLAGS="$pac_saved_CFLAGS" 6044 LIBS="$pac_saved_LIBS" 6045 ac_ext=c 6046ac_cpp='$CPP $CPPFLAGS' 6047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6049ac_compiler_gnu=$ac_cv_c_compiler_gnu 6050 6051 if test "$pac_mpi_working" = "yes" ; then 6052 mpe_link_ok=yes 6053 else 6054 mpe_link_ok=no 6055 fi 6056 6057 if test "$mpe_link_ok" = "yes" ; then 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6059$as_echo "yes" >&6; } 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of PMPI_Reduce_scatter_block " >&5 6061$as_echo_n "checking for the C version of PMPI_Reduce_scatter_block ... " >&6; } 6062 6063 pac_MPI_CC="$MPI_CC" 6064 pac_MPI_CFLAGS="$MPI_CFLAGS" 6065 pac_MPI_LIBS="$MPI_LIBS" 6066 pac_saved_CC="$CC" 6067 pac_saved_CFLAGS="$CFLAGS" 6068 pac_saved_LIBS="$LIBS" 6069 ac_ext=c 6070ac_cpp='$CPP $CPPFLAGS' 6071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6073ac_compiler_gnu=$ac_cv_c_compiler_gnu 6074 6075 CC="$pac_MPI_CC" 6076 CFLAGS="$pac_MPI_CFLAGS" 6077 LIBS="$pac_MPI_LIBS" 6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6079/* end confdefs.h. */ 6080 6081 6082/* <stdlib.h> is included to get NULL defined */ 6083#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 6084#include <stdlib.h> 6085#else 6086#if !defined( NULL ) 6087#define NULL 0 6088#endif 6089#endif 6090 6091 6092#include "mpi.h" 6093 6094 6095int 6096main () 6097{ 6098 6099 int argc; char **argv; 6100 6101 int *sbuff, *rbuff; 6102 int rcount; 6103 MPI_Datatype dtype; 6104 int itmp; 6105 ; 6106 MPI_Init(&argc, &argv); 6107 6108 itmp=PMPI_Reduce_scatter_block( sbuff, rbuff, rcount, dtype, MPI_SUM, 6109 MPI_COMM_WORLD ) 6110 ; 6111 MPI_Finalize(); 6112 6113 ; 6114 return 0; 6115} 6116 6117_ACEOF 6118if ac_fn_c_try_link "$LINENO"; then : 6119 pac_mpi_working=yes 6120else 6121 pac_mpi_working=no 6122fi 6123rm -f core conftest.err conftest.$ac_objext \ 6124 conftest$ac_exeext conftest.$ac_ext 6125 CC="$pac_saved_CC" 6126 CFLAGS="$pac_saved_CFLAGS" 6127 LIBS="$pac_saved_LIBS" 6128 ac_ext=c 6129ac_cpp='$CPP $CPPFLAGS' 6130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6132ac_compiler_gnu=$ac_cv_c_compiler_gnu 6133 6134 if test "$pac_mpi_working" = "yes" ; then 6135 mpe_link_ok=yes 6136 else 6137 mpe_link_ok=no 6138 fi 6139 6140 if test "$mpe_link_ok" = "yes" ; then 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6142$as_echo "yes" >&6; } 6143 COLLCHK_BUILD_REDSCATBLK=yes 6144 else 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6146$as_echo "no" >&6; } 6147 COLLCHK_BUILD_REDSCATBLK=no 6148 fi 6149 else 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6151$as_echo "no" >&6; } 6152 COLLCHK_BUILD_REDSCATBLK=no 6153 fi 6154 fi 6155else 6156 if test "$MPI_IMPL" = "MPICH2" ; then 6157 COLLCHK_BUILD_REDSCATBLK=yes 6158 else 6159 COLLCHK_BUILD_REDSCATBLK=no 6160 fi 6161fi 6162 6163if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 6164 if test "$enable_checkMPI" = "yes" -a "$enable_checkMPIO" = "yes" ; then 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of MPI_File_open() " >&5 6166$as_echo_n "checking for the C version of MPI_File_open() ... " >&6; } 6167 6168 pac_MPI_CC="$MPI_CC" 6169 pac_MPI_CFLAGS="$MPI_CFLAGS" 6170 pac_MPI_LIBS="$MPI_LIBS" 6171 pac_saved_CC="$CC" 6172 pac_saved_CFLAGS="$CFLAGS" 6173 pac_saved_LIBS="$LIBS" 6174 ac_ext=c 6175ac_cpp='$CPP $CPPFLAGS' 6176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6178ac_compiler_gnu=$ac_cv_c_compiler_gnu 6179 6180 CC="$pac_MPI_CC" 6181 CFLAGS="$pac_MPI_CFLAGS" 6182 LIBS="$pac_MPI_LIBS" 6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6184/* end confdefs.h. */ 6185 6186 6187/* <stdlib.h> is included to get NULL defined */ 6188#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 6189#include <stdlib.h> 6190#else 6191#if !defined( NULL ) 6192#define NULL 0 6193#endif 6194#endif 6195 6196 6197#include "mpi.h" 6198 6199 6200int 6201main () 6202{ 6203 6204 int argc; char **argv; 6205 int itmp; MPI_File fh ; 6206 MPI_Init(&argc, &argv); 6207 itmp=MPI_File_open( MPI_COMM_WORLD, "mpiiotest", MPI_MODE_CREATE | MPI_MODE_RDWR, MPI_INFO_NULL, &fh ) ; 6208 MPI_Finalize(); 6209 6210 ; 6211 return 0; 6212} 6213 6214_ACEOF 6215if ac_fn_c_try_link "$LINENO"; then : 6216 pac_mpi_working=yes 6217else 6218 pac_mpi_working=no 6219fi 6220rm -f core conftest.err conftest.$ac_objext \ 6221 conftest$ac_exeext conftest.$ac_ext 6222 CC="$pac_saved_CC" 6223 CFLAGS="$pac_saved_CFLAGS" 6224 LIBS="$pac_saved_LIBS" 6225 ac_ext=c 6226ac_cpp='$CPP $CPPFLAGS' 6227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6229ac_compiler_gnu=$ac_cv_c_compiler_gnu 6230 6231 if test "$pac_mpi_working" = "yes" ; then 6232 mpe_link_ok=yes 6233 else 6234 mpe_link_ok=no 6235 fi 6236 6237 if test "$mpe_link_ok" = "yes" ; then 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6239$as_echo "yes" >&6; } 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of PMPI_File_open() " >&5 6241$as_echo_n "checking for the C version of PMPI_File_open() ... " >&6; } 6242 6243 pac_MPI_CC="$MPI_CC" 6244 pac_MPI_CFLAGS="$MPI_CFLAGS" 6245 pac_MPI_LIBS="$MPI_LIBS" 6246 pac_saved_CC="$CC" 6247 pac_saved_CFLAGS="$CFLAGS" 6248 pac_saved_LIBS="$LIBS" 6249 ac_ext=c 6250ac_cpp='$CPP $CPPFLAGS' 6251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6253ac_compiler_gnu=$ac_cv_c_compiler_gnu 6254 6255 CC="$pac_MPI_CC" 6256 CFLAGS="$pac_MPI_CFLAGS" 6257 LIBS="$pac_MPI_LIBS" 6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6259/* end confdefs.h. */ 6260 6261 6262/* <stdlib.h> is included to get NULL defined */ 6263#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 6264#include <stdlib.h> 6265#else 6266#if !defined( NULL ) 6267#define NULL 0 6268#endif 6269#endif 6270 6271 6272#include "mpi.h" 6273 6274 6275int 6276main () 6277{ 6278 6279 int argc; char **argv; 6280 int itmp; MPI_File fh ; 6281 MPI_Init(&argc, &argv); 6282 itmp=PMPI_File_open( MPI_COMM_WORLD, "mpiiotest", MPI_MODE_CREATE | MPI_MODE_RDWR, MPI_INFO_NULL, &fh ) ; 6283 MPI_Finalize(); 6284 6285 ; 6286 return 0; 6287} 6288 6289_ACEOF 6290if ac_fn_c_try_link "$LINENO"; then : 6291 pac_mpi_working=yes 6292else 6293 pac_mpi_working=no 6294fi 6295rm -f core conftest.err conftest.$ac_objext \ 6296 conftest$ac_exeext conftest.$ac_ext 6297 CC="$pac_saved_CC" 6298 CFLAGS="$pac_saved_CFLAGS" 6299 LIBS="$pac_saved_LIBS" 6300 ac_ext=c 6301ac_cpp='$CPP $CPPFLAGS' 6302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6304ac_compiler_gnu=$ac_cv_c_compiler_gnu 6305 6306 if test "$pac_mpi_working" = "yes" ; then 6307 mpe_link_ok=yes 6308 else 6309 mpe_link_ok=no 6310 fi 6311 6312 if test "$mpe_link_ok" = "yes" ; then 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6314$as_echo "yes" >&6; } 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ROMIO's MPIO_Request " >&5 6316$as_echo_n "checking for ROMIO's MPIO_Request ... " >&6; } 6317 6318 pac_MPI_CC="$MPI_CC" 6319 pac_MPI_CFLAGS="$MPI_CFLAGS" 6320 pac_MPI_LIBS="$MPI_LIBS" 6321 pac_saved_CC="$CC" 6322 pac_saved_CFLAGS="$CFLAGS" 6323 pac_saved_LIBS="$LIBS" 6324 ac_ext=c 6325ac_cpp='$CPP $CPPFLAGS' 6326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6328ac_compiler_gnu=$ac_cv_c_compiler_gnu 6329 6330 CC="$pac_MPI_CC" 6331 CFLAGS="$pac_MPI_CFLAGS" 6332 LIBS="$pac_MPI_LIBS" 6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334/* end confdefs.h. */ 6335 6336 6337/* <stdlib.h> is included to get NULL defined */ 6338#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 6339#include <stdlib.h> 6340#else 6341#if !defined( NULL ) 6342#define NULL 0 6343#endif 6344#endif 6345 6346 6347#include "mpi.h" 6348 6349 6350int 6351main () 6352{ 6353 6354 int argc; char **argv; 6355 MPIO_Request io_request ; 6356 MPI_Init(&argc, &argv); 6357 ; 6358 MPI_Finalize(); 6359 6360 ; 6361 return 0; 6362} 6363 6364_ACEOF 6365if ac_fn_c_try_link "$LINENO"; then : 6366 pac_mpi_working=yes 6367else 6368 pac_mpi_working=no 6369fi 6370rm -f core conftest.err conftest.$ac_objext \ 6371 conftest$ac_exeext conftest.$ac_ext 6372 CC="$pac_saved_CC" 6373 CFLAGS="$pac_saved_CFLAGS" 6374 LIBS="$pac_saved_LIBS" 6375 ac_ext=c 6376ac_cpp='$CPP $CPPFLAGS' 6377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6379ac_compiler_gnu=$ac_cv_c_compiler_gnu 6380 6381 if test "$pac_mpi_working" = "yes" ; then 6382 mpe_link_ok=yes 6383 else 6384 mpe_link_ok=no 6385 fi 6386 6387 if test "$mpe_link_ok" = "yes" ; then 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6389$as_echo "yes" >&6; } 6390 COLLCHK_BUILD_IO=yes 6391 6392$as_echo "#define HAVE_MPI_IO 1" >>confdefs.h 6393 6394 else 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6396$as_echo "no" >&6; } 6397 COLLCHK_BUILD_IO=no 6398 fi 6399 else 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, assumed No MPI-IO routines" >&5 6401$as_echo "no, assumed No MPI-IO routines" >&6; } 6402 COLLCHK_BUILD_IO=no 6403 fi 6404 else 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, assumed No MPI-IO routines" >&5 6406$as_echo "no, assumed No MPI-IO routines" >&6; } 6407 COLLCHK_BUILD_IO=no 6408 fi 6409 fi 6410else 6411 if test "$with_mpiio" = "yes" ; then 6412 COLLCHK_BUILD_IO=yes 6413 6414$as_echo "#define HAVE_MPI_IO 1" >>confdefs.h 6415 6416 else 6417 COLLCHK_BUILD_IO=no 6418 fi 6419fi 6420 6421if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 6422 if test "$enable_checkMPI" = "yes" ; then 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of MPI_Win_create " >&5 6424$as_echo_n "checking for the C version of MPI_Win_create ... " >&6; } 6425 6426 pac_MPI_CC="$MPI_CC" 6427 pac_MPI_CFLAGS="$MPI_CFLAGS" 6428 pac_MPI_LIBS="$MPI_LIBS" 6429 pac_saved_CC="$CC" 6430 pac_saved_CFLAGS="$CFLAGS" 6431 pac_saved_LIBS="$LIBS" 6432 ac_ext=c 6433ac_cpp='$CPP $CPPFLAGS' 6434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6436ac_compiler_gnu=$ac_cv_c_compiler_gnu 6437 6438 CC="$pac_MPI_CC" 6439 CFLAGS="$pac_MPI_CFLAGS" 6440 LIBS="$pac_MPI_LIBS" 6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6442/* end confdefs.h. */ 6443 6444 6445/* <stdlib.h> is included to get NULL defined */ 6446#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 6447#include <stdlib.h> 6448#else 6449#if !defined( NULL ) 6450#define NULL 0 6451#endif 6452#endif 6453 6454 6455#include "mpi.h" 6456 6457 6458int 6459main () 6460{ 6461 6462 int argc; char **argv; 6463 int itmp; MPI_Win win ; 6464 MPI_Init(&argc, &argv); 6465 6466 itmp=MPI_Win_create( NULL, 0, 1, MPI_INFO_NULL, MPI_COMM_WORLD, &win ) 6467 ; 6468 MPI_Finalize(); 6469 6470 ; 6471 return 0; 6472} 6473 6474_ACEOF 6475if ac_fn_c_try_link "$LINENO"; then : 6476 pac_mpi_working=yes 6477else 6478 pac_mpi_working=no 6479fi 6480rm -f core conftest.err conftest.$ac_objext \ 6481 conftest$ac_exeext conftest.$ac_ext 6482 CC="$pac_saved_CC" 6483 CFLAGS="$pac_saved_CFLAGS" 6484 LIBS="$pac_saved_LIBS" 6485 ac_ext=c 6486ac_cpp='$CPP $CPPFLAGS' 6487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6489ac_compiler_gnu=$ac_cv_c_compiler_gnu 6490 6491 if test "$pac_mpi_working" = "yes" ; then 6492 mpe_link_ok=yes 6493 else 6494 mpe_link_ok=no 6495 fi 6496 6497 if test "$mpe_link_ok" = "yes" ; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6499$as_echo "yes" >&6; } 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of PMPI_Win_create " >&5 6501$as_echo_n "checking for the C version of PMPI_Win_create ... " >&6; } 6502 6503 pac_MPI_CC="$MPI_CC" 6504 pac_MPI_CFLAGS="$MPI_CFLAGS" 6505 pac_MPI_LIBS="$MPI_LIBS" 6506 pac_saved_CC="$CC" 6507 pac_saved_CFLAGS="$CFLAGS" 6508 pac_saved_LIBS="$LIBS" 6509 ac_ext=c 6510ac_cpp='$CPP $CPPFLAGS' 6511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6513ac_compiler_gnu=$ac_cv_c_compiler_gnu 6514 6515 CC="$pac_MPI_CC" 6516 CFLAGS="$pac_MPI_CFLAGS" 6517 LIBS="$pac_MPI_LIBS" 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519/* end confdefs.h. */ 6520 6521 6522/* <stdlib.h> is included to get NULL defined */ 6523#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 6524#include <stdlib.h> 6525#else 6526#if !defined( NULL ) 6527#define NULL 0 6528#endif 6529#endif 6530 6531 6532#include "mpi.h" 6533 6534 6535int 6536main () 6537{ 6538 6539 int argc; char **argv; 6540 int itmp; MPI_Win win ; 6541 MPI_Init(&argc, &argv); 6542 6543 itmp=PMPI_Win_create( NULL, 0, 1, MPI_INFO_NULL, MPI_COMM_WORLD, &win ) 6544 ; 6545 MPI_Finalize(); 6546 6547 ; 6548 return 0; 6549} 6550 6551_ACEOF 6552if ac_fn_c_try_link "$LINENO"; then : 6553 pac_mpi_working=yes 6554else 6555 pac_mpi_working=no 6556fi 6557rm -f core conftest.err conftest.$ac_objext \ 6558 conftest$ac_exeext conftest.$ac_ext 6559 CC="$pac_saved_CC" 6560 CFLAGS="$pac_saved_CFLAGS" 6561 LIBS="$pac_saved_LIBS" 6562 ac_ext=c 6563ac_cpp='$CPP $CPPFLAGS' 6564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6566ac_compiler_gnu=$ac_cv_c_compiler_gnu 6567 6568 if test "$pac_mpi_working" = "yes" ; then 6569 mpe_link_ok=yes 6570 else 6571 mpe_link_ok=no 6572 fi 6573 6574 if test "$mpe_link_ok" = "yes" ; then 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6576$as_echo "yes" >&6; } 6577 COLLCHK_BUILD_RMA=yes 6578 6579$as_echo "#define HAVE_MPI_RMA 1" >>confdefs.h 6580 6581 else 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, assumed No MPI-RMA routines" >&5 6583$as_echo "no, assumed No MPI-RMA routines" >&6; } 6584 COLLCHK_BUILD_RMA=no 6585 fi 6586 else 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, assumed No MPI-RMA routines" >&5 6588$as_echo "no, assumed No MPI-RMA routines" >&6; } 6589 COLLCHK_BUILD_RMA=no 6590 fi 6591 fi 6592else 6593 if test "$MPI_IMPL" = "MPICH2" ; then 6594 COLLCHK_BUILD_RMA=yes 6595 6596$as_echo "#define HAVE_MPI_RMA 1" >>confdefs.h 6597 6598 else 6599 COLLCHK_BUILD_RMA=no 6600 fi 6601fi 6602 6603if test "$MPI_IMPL" != "MPICH" -a "$MPI_IMPL" != "MPICH2" ; then 6604 if test "$enable_checkMPI" = "yes" ; then 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of MPI_Comm_spawn " >&5 6606$as_echo_n "checking for the C version of MPI_Comm_spawn ... " >&6; } 6607 6608 pac_MPI_CC="$MPI_CC" 6609 pac_MPI_CFLAGS="$MPI_CFLAGS" 6610 pac_MPI_LIBS="$MPI_LIBS" 6611 pac_saved_CC="$CC" 6612 pac_saved_CFLAGS="$CFLAGS" 6613 pac_saved_LIBS="$LIBS" 6614 ac_ext=c 6615ac_cpp='$CPP $CPPFLAGS' 6616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6618ac_compiler_gnu=$ac_cv_c_compiler_gnu 6619 6620 CC="$pac_MPI_CC" 6621 CFLAGS="$pac_MPI_CFLAGS" 6622 LIBS="$pac_MPI_LIBS" 6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6624/* end confdefs.h. */ 6625 6626 6627/* <stdlib.h> is included to get NULL defined */ 6628#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 6629#include <stdlib.h> 6630#else 6631#if !defined( NULL ) 6632#define NULL 0 6633#endif 6634#endif 6635 6636 6637#include "mpi.h" 6638 6639 6640int 6641main () 6642{ 6643 6644 int argc; char **argv; 6645 MPI_Comm intercomm; 6646 int itmp, np=1, ierrs; ; 6647 MPI_Init(&argc, &argv); 6648 6649 itmp=MPI_Comm_spawn( "./test", MPI_ARGV_NULL, np, MPI_INFO_NULL, 0, 6650 MPI_COMM_WORLD, &intercomm, &ierrs ) 6651 ; 6652 MPI_Finalize(); 6653 6654 ; 6655 return 0; 6656} 6657 6658_ACEOF 6659if ac_fn_c_try_link "$LINENO"; then : 6660 pac_mpi_working=yes 6661else 6662 pac_mpi_working=no 6663fi 6664rm -f core conftest.err conftest.$ac_objext \ 6665 conftest$ac_exeext conftest.$ac_ext 6666 CC="$pac_saved_CC" 6667 CFLAGS="$pac_saved_CFLAGS" 6668 LIBS="$pac_saved_LIBS" 6669 ac_ext=c 6670ac_cpp='$CPP $CPPFLAGS' 6671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6673ac_compiler_gnu=$ac_cv_c_compiler_gnu 6674 6675 if test "$pac_mpi_working" = "yes" ; then 6676 mpe_link_ok=yes 6677 else 6678 mpe_link_ok=no 6679 fi 6680 6681 if test "$mpe_link_ok" = "yes" ; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6683$as_echo "yes" >&6; } 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the C version of PMPI_Comm_spawn " >&5 6685$as_echo_n "checking for the C version of PMPI_Comm_spawn ... " >&6; } 6686 6687 pac_MPI_CC="$MPI_CC" 6688 pac_MPI_CFLAGS="$MPI_CFLAGS" 6689 pac_MPI_LIBS="$MPI_LIBS" 6690 pac_saved_CC="$CC" 6691 pac_saved_CFLAGS="$CFLAGS" 6692 pac_saved_LIBS="$LIBS" 6693 ac_ext=c 6694ac_cpp='$CPP $CPPFLAGS' 6695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6697ac_compiler_gnu=$ac_cv_c_compiler_gnu 6698 6699 CC="$pac_MPI_CC" 6700 CFLAGS="$pac_MPI_CFLAGS" 6701 LIBS="$pac_MPI_LIBS" 6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703/* end confdefs.h. */ 6704 6705 6706/* <stdlib.h> is included to get NULL defined */ 6707#if defined( STDC_HEADERS ) || defined( HAVE_STDLIB_H ) 6708#include <stdlib.h> 6709#else 6710#if !defined( NULL ) 6711#define NULL 0 6712#endif 6713#endif 6714 6715 6716#include "mpi.h" 6717 6718 6719int 6720main () 6721{ 6722 6723 int argc; char **argv; 6724 MPI_Comm intercomm; 6725 int itmp, np=1, ierrs; ; 6726 MPI_Init(&argc, &argv); 6727 6728 itmp=PMPI_Comm_spawn( "./test", MPI_ARGV_NULL, np, MPI_INFO_NULL, 0, 6729 MPI_COMM_WORLD, &intercomm, &ierrs ) 6730 ; 6731 MPI_Finalize(); 6732 6733 ; 6734 return 0; 6735} 6736 6737_ACEOF 6738if ac_fn_c_try_link "$LINENO"; then : 6739 pac_mpi_working=yes 6740else 6741 pac_mpi_working=no 6742fi 6743rm -f core conftest.err conftest.$ac_objext \ 6744 conftest$ac_exeext conftest.$ac_ext 6745 CC="$pac_saved_CC" 6746 CFLAGS="$pac_saved_CFLAGS" 6747 LIBS="$pac_saved_LIBS" 6748 ac_ext=c 6749ac_cpp='$CPP $CPPFLAGS' 6750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6752ac_compiler_gnu=$ac_cv_c_compiler_gnu 6753 6754 if test "$pac_mpi_working" = "yes" ; then 6755 mpe_link_ok=yes 6756 else 6757 mpe_link_ok=no 6758 fi 6759 6760 if test "$mpe_link_ok" = "yes" ; then 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6762$as_echo "yes" >&6; } 6763 COLLCHK_BUILD_COMMS=yes 6764 6765$as_echo "#define HAVE_MPI_COMMS 1" >>confdefs.h 6766 6767 else 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, assumed No MPI-COMMS routines" >&5 6769$as_echo "no, assumed No MPI-COMMS routines" >&6; } 6770 COLLCHK_BUILD_COMMS=no 6771 fi 6772 else 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, assumed No MPI-COMMS routines" >&5 6774$as_echo "no, assumed No MPI-COMMS routines" >&6; } 6775 COLLCHK_BUILD_COMMS=no 6776 fi 6777 fi 6778else 6779 if test "$MPI_IMPL" = "MPICH2" ; then 6780 COLLCHK_BUILD_COMMS=yes 6781 6782$as_echo "#define HAVE_MPI_COMMS 1" >>confdefs.h 6783 6784 else 6785 COLLCHK_BUILD_COMMS=no 6786 fi 6787fi 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile etc/mpe_mpicheck.conf" 6819 6820 6821 6822test "x$prefix" = xNONE && prefix=$ac_default_prefix 6823# Let make expand exec_prefix. 6824test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6825 6826DEFS=-DHAVE_CONFIG_H 6827 6828ac_libobjs= 6829ac_ltlibobjs= 6830U= 6831for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6832 # 1. Remove the extension, and $U if already installed. 6833 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6834 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 6835 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6836 # will be set to the directory where LIBOBJS objects are built. 6837 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6838 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 6839done 6840LIBOBJS=$ac_libobjs 6841 6842LTLIBOBJS=$ac_ltlibobjs 6843 6844 6845 6846: "${CONFIG_STATUS=./config.status}" 6847ac_write_fail=0 6848ac_clean_files_save=$ac_clean_files 6849ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6850{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 6851$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6852as_write_fail=0 6853cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 6854#! $SHELL 6855# Generated by $as_me. 6856# Run this file to recreate the current configuration. 6857# Compiler output produced by configure, useful for debugging 6858# configure, is in config.log if it exists. 6859 6860debug=false 6861ac_cs_recheck=false 6862ac_cs_silent=false 6863 6864SHELL=\${CONFIG_SHELL-$SHELL} 6865export SHELL 6866_ASEOF 6867cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 6868## -------------------- ## 6869## M4sh Initialization. ## 6870## -------------------- ## 6871 6872# Be more Bourne compatible 6873DUALCASE=1; export DUALCASE # for MKS sh 6874if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 6875 emulate sh 6876 NULLCMD=: 6877 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 6878 # is contrary to our usage. Disable this feature. 6879 alias -g '${1+"$@"}'='"$@"' 6880 setopt NO_GLOB_SUBST 6881else 6882 case `(set -o) 2>/dev/null` in #( 6883 *posix*) : 6884 set -o posix ;; #( 6885 *) : 6886 ;; 6887esac 6888fi 6889 6890 6891as_nl=' 6892' 6893export as_nl 6894# Printing a long string crashes Solaris 7 /usr/bin/printf. 6895as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6896as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6897as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6898# Prefer a ksh shell builtin over an external printf program on Solaris, 6899# but without wasting forks for bash or zsh. 6900if test -z "$BASH_VERSION$ZSH_VERSION" \ 6901 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 6902 as_echo='print -r --' 6903 as_echo_n='print -rn --' 6904elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6905 as_echo='printf %s\n' 6906 as_echo_n='printf %s' 6907else 6908 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6909 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6910 as_echo_n='/usr/ucb/echo -n' 6911 else 6912 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6913 as_echo_n_body='eval 6914 arg=$1; 6915 case $arg in #( 6916 *"$as_nl"*) 6917 expr "X$arg" : "X\\(.*\\)$as_nl"; 6918 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6919 esac; 6920 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6921 ' 6922 export as_echo_n_body 6923 as_echo_n='sh -c $as_echo_n_body as_echo' 6924 fi 6925 export as_echo_body 6926 as_echo='sh -c $as_echo_body as_echo' 6927fi 6928 6929# The user is always right. 6930if test "${PATH_SEPARATOR+set}" != set; then 6931 PATH_SEPARATOR=: 6932 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6933 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6934 PATH_SEPARATOR=';' 6935 } 6936fi 6937 6938 6939# IFS 6940# We need space, tab and new line, in precisely that order. Quoting is 6941# there to prevent editors from complaining about space-tab. 6942# (If _AS_PATH_WALK were called with IFS unset, it would disable word 6943# splitting by setting IFS to empty value.) 6944IFS=" "" $as_nl" 6945 6946# Find who we are. Look in the path if we contain no directory separator. 6947as_myself= 6948case $0 in #(( 6949 *[\\/]* ) as_myself=$0 ;; 6950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6951for as_dir in $PATH 6952do 6953 IFS=$as_save_IFS 6954 test -z "$as_dir" && as_dir=. 6955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6956 done 6957IFS=$as_save_IFS 6958 6959 ;; 6960esac 6961# We did not find ourselves, most probably we were run as `sh COMMAND' 6962# in which case we are not to be found in the path. 6963if test "x$as_myself" = x; then 6964 as_myself=$0 6965fi 6966if test ! -f "$as_myself"; then 6967 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6968 exit 1 6969fi 6970 6971# Unset variables that we do not need and which cause bugs (e.g. in 6972# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 6973# suppresses any "Segmentation fault" message there. '((' could 6974# trigger a bug in pdksh 5.2.14. 6975for as_var in BASH_ENV ENV MAIL MAILPATH 6976do eval test x\${$as_var+set} = xset \ 6977 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 6978done 6979PS1='$ ' 6980PS2='> ' 6981PS4='+ ' 6982 6983# NLS nuisances. 6984LC_ALL=C 6985export LC_ALL 6986LANGUAGE=C 6987export LANGUAGE 6988 6989# CDPATH. 6990(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 6991 6992 6993# as_fn_error STATUS ERROR [LINENO LOG_FD] 6994# ---------------------------------------- 6995# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 6996# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 6997# script with STATUS, using 1 if that was 0. 6998as_fn_error () 6999{ 7000 as_status=$1; test $as_status -eq 0 && as_status=1 7001 if test "$4"; then 7002 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 7003 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 7004 fi 7005 $as_echo "$as_me: error: $2" >&2 7006 as_fn_exit $as_status 7007} # as_fn_error 7008 7009 7010# as_fn_set_status STATUS 7011# ----------------------- 7012# Set $? to STATUS, without forking. 7013as_fn_set_status () 7014{ 7015 return $1 7016} # as_fn_set_status 7017 7018# as_fn_exit STATUS 7019# ----------------- 7020# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 7021as_fn_exit () 7022{ 7023 set +e 7024 as_fn_set_status $1 7025 exit $1 7026} # as_fn_exit 7027 7028# as_fn_unset VAR 7029# --------------- 7030# Portably unset VAR. 7031as_fn_unset () 7032{ 7033 { eval $1=; unset $1;} 7034} 7035as_unset=as_fn_unset 7036# as_fn_append VAR VALUE 7037# ---------------------- 7038# Append the text in VALUE to the end of the definition contained in VAR. Take 7039# advantage of any shell optimizations that allow amortized linear growth over 7040# repeated appends, instead of the typical quadratic growth present in naive 7041# implementations. 7042if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 7043 eval 'as_fn_append () 7044 { 7045 eval $1+=\$2 7046 }' 7047else 7048 as_fn_append () 7049 { 7050 eval $1=\$$1\$2 7051 } 7052fi # as_fn_append 7053 7054# as_fn_arith ARG... 7055# ------------------ 7056# Perform arithmetic evaluation on the ARGs, and store the result in the 7057# global $as_val. Take advantage of shells that can avoid forks. The arguments 7058# must be portable across $(()) and expr. 7059if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 7060 eval 'as_fn_arith () 7061 { 7062 as_val=$(( $* )) 7063 }' 7064else 7065 as_fn_arith () 7066 { 7067 as_val=`expr "$@" || test $? -eq 1` 7068 } 7069fi # as_fn_arith 7070 7071 7072if expr a : '\(a\)' >/dev/null 2>&1 && 7073 test "X`expr 00001 : '.*\(...\)'`" = X001; then 7074 as_expr=expr 7075else 7076 as_expr=false 7077fi 7078 7079if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 7080 as_basename=basename 7081else 7082 as_basename=false 7083fi 7084 7085if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 7086 as_dirname=dirname 7087else 7088 as_dirname=false 7089fi 7090 7091as_me=`$as_basename -- "$0" || 7092$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 7093 X"$0" : 'X\(//\)$' \| \ 7094 X"$0" : 'X\(/\)' \| . 2>/dev/null || 7095$as_echo X/"$0" | 7096 sed '/^.*\/\([^/][^/]*\)\/*$/{ 7097 s//\1/ 7098 q 7099 } 7100 /^X\/\(\/\/\)$/{ 7101 s//\1/ 7102 q 7103 } 7104 /^X\/\(\/\).*/{ 7105 s//\1/ 7106 q 7107 } 7108 s/.*/./; q'` 7109 7110# Avoid depending upon Character Ranges. 7111as_cr_letters='abcdefghijklmnopqrstuvwxyz' 7112as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 7113as_cr_Letters=$as_cr_letters$as_cr_LETTERS 7114as_cr_digits='0123456789' 7115as_cr_alnum=$as_cr_Letters$as_cr_digits 7116 7117ECHO_C= ECHO_N= ECHO_T= 7118case `echo -n x` in #((((( 7119-n*) 7120 case `echo 'xy\c'` in 7121 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 7122 xy) ECHO_C='\c';; 7123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 7124 ECHO_T=' ';; 7125 esac;; 7126*) 7127 ECHO_N='-n';; 7128esac 7129 7130rm -f conf$$ conf$$.exe conf$$.file 7131if test -d conf$$.dir; then 7132 rm -f conf$$.dir/conf$$.file 7133else 7134 rm -f conf$$.dir 7135 mkdir conf$$.dir 2>/dev/null 7136fi 7137if (echo >conf$$.file) 2>/dev/null; then 7138 if ln -s conf$$.file conf$$ 2>/dev/null; then 7139 as_ln_s='ln -s' 7140 # ... but there are two gotchas: 7141 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 7142 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 7143 # In both cases, we have to default to `cp -pR'. 7144 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 7145 as_ln_s='cp -pR' 7146 elif ln conf$$.file conf$$ 2>/dev/null; then 7147 as_ln_s=ln 7148 else 7149 as_ln_s='cp -pR' 7150 fi 7151else 7152 as_ln_s='cp -pR' 7153fi 7154rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 7155rmdir conf$$.dir 2>/dev/null 7156 7157 7158# as_fn_mkdir_p 7159# ------------- 7160# Create "$as_dir" as a directory, including parents if necessary. 7161as_fn_mkdir_p () 7162{ 7163 7164 case $as_dir in #( 7165 -*) as_dir=./$as_dir;; 7166 esac 7167 test -d "$as_dir" || eval $as_mkdir_p || { 7168 as_dirs= 7169 while :; do 7170 case $as_dir in #( 7171 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7172 *) as_qdir=$as_dir;; 7173 esac 7174 as_dirs="'$as_qdir' $as_dirs" 7175 as_dir=`$as_dirname -- "$as_dir" || 7176$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7177 X"$as_dir" : 'X\(//\)[^/]' \| \ 7178 X"$as_dir" : 'X\(//\)$' \| \ 7179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7180$as_echo X"$as_dir" | 7181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7182 s//\1/ 7183 q 7184 } 7185 /^X\(\/\/\)[^/].*/{ 7186 s//\1/ 7187 q 7188 } 7189 /^X\(\/\/\)$/{ 7190 s//\1/ 7191 q 7192 } 7193 /^X\(\/\).*/{ 7194 s//\1/ 7195 q 7196 } 7197 s/.*/./; q'` 7198 test -d "$as_dir" && break 7199 done 7200 test -z "$as_dirs" || eval "mkdir $as_dirs" 7201 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 7202 7203 7204} # as_fn_mkdir_p 7205if mkdir -p . 2>/dev/null; then 7206 as_mkdir_p='mkdir -p "$as_dir"' 7207else 7208 test -d ./-p && rmdir ./-p 7209 as_mkdir_p=false 7210fi 7211 7212 7213# as_fn_executable_p FILE 7214# ----------------------- 7215# Test if FILE is an executable regular file. 7216as_fn_executable_p () 7217{ 7218 test -f "$1" && test -x "$1" 7219} # as_fn_executable_p 7220as_test_x='test -x' 7221as_executable_p=as_fn_executable_p 7222 7223# Sed expression to map a string onto a valid CPP name. 7224as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7225 7226# Sed expression to map a string onto a valid variable name. 7227as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7228 7229 7230exec 6>&1 7231## ----------------------------------- ## 7232## Main body of $CONFIG_STATUS script. ## 7233## ----------------------------------- ## 7234_ASEOF 7235test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 7236 7237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7238# Save the log message, to keep $0 and so on meaningful, and to 7239# report actual input values of CONFIG_FILES etc. instead of their 7240# values after options handling. 7241ac_log=" 7242This file was extended by $as_me, which was 7243generated by GNU Autoconf 2.69. Invocation command line was 7244 7245 CONFIG_FILES = $CONFIG_FILES 7246 CONFIG_HEADERS = $CONFIG_HEADERS 7247 CONFIG_LINKS = $CONFIG_LINKS 7248 CONFIG_COMMANDS = $CONFIG_COMMANDS 7249 $ $0 $@ 7250 7251on `(hostname || uname -n) 2>/dev/null | sed 1q` 7252" 7253 7254_ACEOF 7255 7256case $ac_config_files in *" 7257"*) set x $ac_config_files; shift; ac_config_files=$*;; 7258esac 7259 7260case $ac_config_headers in *" 7261"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 7262esac 7263 7264 7265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7266# Files that config.status was made for. 7267config_files="$ac_config_files" 7268config_headers="$ac_config_headers" 7269 7270_ACEOF 7271 7272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7273ac_cs_usage="\ 7274\`$as_me' instantiates files and other configuration actions 7275from templates according to the current configuration. Unless the files 7276and actions are specified as TAGs, all are instantiated by default. 7277 7278Usage: $0 [OPTION]... [TAG]... 7279 7280 -h, --help print this help, then exit 7281 -V, --version print version number and configuration settings, then exit 7282 --config print configuration, then exit 7283 -q, --quiet, --silent 7284 do not print progress messages 7285 -d, --debug don't remove temporary files 7286 --recheck update $as_me by reconfiguring in the same conditions 7287 --file=FILE[:TEMPLATE] 7288 instantiate the configuration file FILE 7289 --header=FILE[:TEMPLATE] 7290 instantiate the configuration header FILE 7291 7292Configuration files: 7293$config_files 7294 7295Configuration headers: 7296$config_headers 7297 7298Report bugs to the package provider." 7299 7300_ACEOF 7301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7302ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 7303ac_cs_version="\\ 7304config.status 7305configured by $0, generated by GNU Autoconf 2.69, 7306 with options \\"\$ac_cs_config\\" 7307 7308Copyright (C) 2012 Free Software Foundation, Inc. 7309This config.status script is free software; the Free Software Foundation 7310gives unlimited permission to copy, distribute and modify it." 7311 7312ac_pwd='$ac_pwd' 7313srcdir='$srcdir' 7314test -n "\$AWK" || AWK=awk 7315_ACEOF 7316 7317cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7318# The default lists apply if the user does not specify any file. 7319ac_need_defaults=: 7320while test $# != 0 7321do 7322 case $1 in 7323 --*=?*) 7324 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7325 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 7326 ac_shift=: 7327 ;; 7328 --*=) 7329 ac_option=`expr "X$1" : 'X\([^=]*\)='` 7330 ac_optarg= 7331 ac_shift=: 7332 ;; 7333 *) 7334 ac_option=$1 7335 ac_optarg=$2 7336 ac_shift=shift 7337 ;; 7338 esac 7339 7340 case $ac_option in 7341 # Handling of the options. 7342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 7343 ac_cs_recheck=: ;; 7344 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 7345 $as_echo "$ac_cs_version"; exit ;; 7346 --config | --confi | --conf | --con | --co | --c ) 7347 $as_echo "$ac_cs_config"; exit ;; 7348 --debug | --debu | --deb | --de | --d | -d ) 7349 debug=: ;; 7350 --file | --fil | --fi | --f ) 7351 $ac_shift 7352 case $ac_optarg in 7353 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7354 '') as_fn_error $? "missing file argument" ;; 7355 esac 7356 as_fn_append CONFIG_FILES " '$ac_optarg'" 7357 ac_need_defaults=false;; 7358 --header | --heade | --head | --hea ) 7359 $ac_shift 7360 case $ac_optarg in 7361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 7362 esac 7363 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 7364 ac_need_defaults=false;; 7365 --he | --h) 7366 # Conflict between --help and --header 7367 as_fn_error $? "ambiguous option: \`$1' 7368Try \`$0 --help' for more information.";; 7369 --help | --hel | -h ) 7370 $as_echo "$ac_cs_usage"; exit ;; 7371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 7372 | -silent | --silent | --silen | --sile | --sil | --si | --s) 7373 ac_cs_silent=: ;; 7374 7375 # This is an error. 7376 -*) as_fn_error $? "unrecognized option: \`$1' 7377Try \`$0 --help' for more information." ;; 7378 7379 *) as_fn_append ac_config_targets " $1" 7380 ac_need_defaults=false ;; 7381 7382 esac 7383 shift 7384done 7385 7386ac_configure_extra_args= 7387 7388if $ac_cs_silent; then 7389 exec 6>/dev/null 7390 ac_configure_extra_args="$ac_configure_extra_args --silent" 7391fi 7392 7393_ACEOF 7394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7395if \$ac_cs_recheck; then 7396 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 7397 shift 7398 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 7399 CONFIG_SHELL='$SHELL' 7400 export CONFIG_SHELL 7401 exec "\$@" 7402fi 7403 7404_ACEOF 7405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7406exec 5>>config.log 7407{ 7408 echo 7409 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 7410## Running $as_me. ## 7411_ASBOX 7412 $as_echo "$ac_log" 7413} >&5 7414 7415_ACEOF 7416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7417_ACEOF 7418 7419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7420 7421# Handling of arguments. 7422for ac_config_target in $ac_config_targets 7423do 7424 case $ac_config_target in 7425 "mpe_collchk_conf.h") CONFIG_HEADERS="$CONFIG_HEADERS mpe_collchk_conf.h" ;; 7426 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 7427 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 7428 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 7429 "etc/mpe_mpicheck.conf") CONFIG_FILES="$CONFIG_FILES etc/mpe_mpicheck.conf" ;; 7430 7431 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 7432 esac 7433done 7434 7435 7436# If the user did not use the arguments to specify the items to instantiate, 7437# then the envvar interface is used. Set only those that are not. 7438# We use the long form for the default assignment because of an extremely 7439# bizarre bug on SunOS 4.1.3. 7440if $ac_need_defaults; then 7441 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7442 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7443fi 7444 7445# Have a temporary directory for convenience. Make it in the build tree 7446# simply because there is no reason against having it here, and in addition, 7447# creating and moving files from /tmp can sometimes cause problems. 7448# Hook for its removal unless debugging. 7449# Note that there is a small window in which the directory will not be cleaned: 7450# after its creation but before its name has been assigned to `$tmp'. 7451$debug || 7452{ 7453 tmp= ac_tmp= 7454 trap 'exit_status=$? 7455 : "${ac_tmp:=$tmp}" 7456 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 7457' 0 7458 trap 'as_fn_exit 1' 1 2 13 15 7459} 7460# Create a (secure) tmp directory for tmp files. 7461 7462{ 7463 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 7464 test -d "$tmp" 7465} || 7466{ 7467 tmp=./conf$$-$RANDOM 7468 (umask 077 && mkdir "$tmp") 7469} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 7470ac_tmp=$tmp 7471 7472# Set up the scripts for CONFIG_FILES section. 7473# No need to generate them if there are no CONFIG_FILES. 7474# This happens for instance with `./config.status config.h'. 7475if test -n "$CONFIG_FILES"; then 7476 7477 7478ac_cr=`echo X | tr X '\015'` 7479# On cygwin, bash can eat \r inside `` if the user requested igncr. 7480# But we know of no other shell where ac_cr would be empty at this 7481# point, so we can use a bashism as a fallback. 7482if test "x$ac_cr" = x; then 7483 eval ac_cr=\$\'\\r\' 7484fi 7485ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 7486if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 7487 ac_cs_awk_cr='\\r' 7488else 7489 ac_cs_awk_cr=$ac_cr 7490fi 7491 7492echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 7493_ACEOF 7494 7495 7496{ 7497 echo "cat >conf$$subs.awk <<_ACEOF" && 7498 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 7499 echo "_ACEOF" 7500} >conf$$subs.sh || 7501 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7502ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 7503ac_delim='%!_!# ' 7504for ac_last_try in false false false false false :; do 7505 . ./conf$$subs.sh || 7506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7507 7508 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 7509 if test $ac_delim_n = $ac_delim_num; then 7510 break 7511 elif $ac_last_try; then 7512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 7513 else 7514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7515 fi 7516done 7517rm -f conf$$subs.sh 7518 7519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7520cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 7521_ACEOF 7522sed -n ' 7523h 7524s/^/S["/; s/!.*/"]=/ 7525p 7526g 7527s/^[^!]*!// 7528:repl 7529t repl 7530s/'"$ac_delim"'$// 7531t delim 7532:nl 7533h 7534s/\(.\{148\}\)..*/\1/ 7535t more1 7536s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 7537p 7538n 7539b repl 7540:more1 7541s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7542p 7543g 7544s/.\{148\}// 7545t nl 7546:delim 7547h 7548s/\(.\{148\}\)..*/\1/ 7549t more2 7550s/["\\]/\\&/g; s/^/"/; s/$/"/ 7551p 7552b 7553:more2 7554s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 7555p 7556g 7557s/.\{148\}// 7558t delim 7559' <conf$$subs.awk | sed ' 7560/^[^""]/{ 7561 N 7562 s/\n// 7563} 7564' >>$CONFIG_STATUS || ac_write_fail=1 7565rm -f conf$$subs.awk 7566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7567_ACAWK 7568cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 7569 for (key in S) S_is_set[key] = 1 7570 FS = "" 7571 7572} 7573{ 7574 line = $ 0 7575 nfields = split(line, field, "@") 7576 substed = 0 7577 len = length(field[1]) 7578 for (i = 2; i < nfields; i++) { 7579 key = field[i] 7580 keylen = length(key) 7581 if (S_is_set[key]) { 7582 value = S[key] 7583 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 7584 len += length(value) + length(field[++i]) 7585 substed = 1 7586 } else 7587 len += 1 + keylen 7588 } 7589 7590 print line 7591} 7592 7593_ACAWK 7594_ACEOF 7595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7596if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 7597 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 7598else 7599 cat 7600fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 7601 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 7602_ACEOF 7603 7604# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 7605# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 7606# trailing colons and then remove the whole line if VPATH becomes empty 7607# (actually we leave an empty line to preserve line numbers). 7608if test "x$srcdir" = x.; then 7609 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 7610h 7611s/// 7612s/^/:/ 7613s/[ ]*$/:/ 7614s/:\$(srcdir):/:/g 7615s/:\${srcdir}:/:/g 7616s/:@srcdir@:/:/g 7617s/^:*// 7618s/:*$// 7619x 7620s/\(=[ ]*\).*/\1/ 7621G 7622s/\n// 7623s/^[^=]*=[ ]*$// 7624}' 7625fi 7626 7627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7628fi # test -n "$CONFIG_FILES" 7629 7630# Set up the scripts for CONFIG_HEADERS section. 7631# No need to generate them if there are no CONFIG_HEADERS. 7632# This happens for instance with `./config.status Makefile'. 7633if test -n "$CONFIG_HEADERS"; then 7634cat >"$ac_tmp/defines.awk" <<\_ACAWK || 7635BEGIN { 7636_ACEOF 7637 7638# Transform confdefs.h into an awk script `defines.awk', embedded as 7639# here-document in config.status, that substitutes the proper values into 7640# config.h.in to produce config.h. 7641 7642# Create a delimiter string that does not exist in confdefs.h, to ease 7643# handling of long lines. 7644ac_delim='%!_!# ' 7645for ac_last_try in false false :; do 7646 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 7647 if test -z "$ac_tt"; then 7648 break 7649 elif $ac_last_try; then 7650 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 7651 else 7652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7653 fi 7654done 7655 7656# For the awk script, D is an array of macro values keyed by name, 7657# likewise P contains macro parameters if any. Preserve backslash 7658# newline sequences. 7659 7660ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 7661sed -n ' 7662s/.\{148\}/&'"$ac_delim"'/g 7663t rset 7664:rset 7665s/^[ ]*#[ ]*define[ ][ ]*/ / 7666t def 7667d 7668:def 7669s/\\$// 7670t bsnl 7671s/["\\]/\\&/g 7672s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7673D["\1"]=" \3"/p 7674s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 7675d 7676:bsnl 7677s/["\\]/\\&/g 7678s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 7679D["\1"]=" \3\\\\\\n"\\/p 7680t cont 7681s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 7682t cont 7683d 7684:cont 7685n 7686s/.\{148\}/&'"$ac_delim"'/g 7687t clear 7688:clear 7689s/\\$// 7690t bsnlc 7691s/["\\]/\\&/g; s/^/"/; s/$/"/p 7692d 7693:bsnlc 7694s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7695b cont 7696' <confdefs.h | sed ' 7697s/'"$ac_delim"'/"\\\ 7698"/g' >>$CONFIG_STATUS || ac_write_fail=1 7699 7700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7701 for (key in D) D_is_set[key] = 1 7702 FS = "" 7703} 7704/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7705 line = \$ 0 7706 split(line, arg, " ") 7707 if (arg[1] == "#") { 7708 defundef = arg[2] 7709 mac1 = arg[3] 7710 } else { 7711 defundef = substr(arg[1], 2) 7712 mac1 = arg[2] 7713 } 7714 split(mac1, mac2, "(") #) 7715 macro = mac2[1] 7716 prefix = substr(line, 1, index(line, defundef) - 1) 7717 if (D_is_set[macro]) { 7718 # Preserve the white space surrounding the "#". 7719 print prefix "define", macro P[macro] D[macro] 7720 next 7721 } else { 7722 # Replace #undef with comments. This is necessary, for example, 7723 # in the case of _POSIX_SOURCE, which is predefined and required 7724 # on some systems where configure will not decide to define it. 7725 if (defundef == "undef") { 7726 print "/*", prefix defundef, macro, "*/" 7727 next 7728 } 7729 } 7730} 7731{ print } 7732_ACAWK 7733_ACEOF 7734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7735 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 7736fi # test -n "$CONFIG_HEADERS" 7737 7738 7739eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 7740shift 7741for ac_tag 7742do 7743 case $ac_tag in 7744 :[FHLC]) ac_mode=$ac_tag; continue;; 7745 esac 7746 case $ac_mode$ac_tag in 7747 :[FHL]*:*);; 7748 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 7749 :[FH]-) ac_tag=-:-;; 7750 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7751 esac 7752 ac_save_IFS=$IFS 7753 IFS=: 7754 set x $ac_tag 7755 IFS=$ac_save_IFS 7756 shift 7757 ac_file=$1 7758 shift 7759 7760 case $ac_mode in 7761 :L) ac_source=$1;; 7762 :[FH]) 7763 ac_file_inputs= 7764 for ac_f 7765 do 7766 case $ac_f in 7767 -) ac_f="$ac_tmp/stdin";; 7768 *) # Look for the file first in the build tree, then in the source tree 7769 # (if the path is not absolute). The absolute path cannot be DOS-style, 7770 # because $ac_f cannot contain `:'. 7771 test -f "$ac_f" || 7772 case $ac_f in 7773 [\\/$]*) false;; 7774 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7775 esac || 7776 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 7777 esac 7778 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7779 as_fn_append ac_file_inputs " '$ac_f'" 7780 done 7781 7782 # Let's still pretend it is `configure' which instantiates (i.e., don't 7783 # use $as_me), people would be surprised to read: 7784 # /* config.h. Generated by config.status. */ 7785 configure_input='Generated from '` 7786 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7787 `' by configure.' 7788 if test x"$ac_file" != x-; then 7789 configure_input="$ac_file. $configure_input" 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 7791$as_echo "$as_me: creating $ac_file" >&6;} 7792 fi 7793 # Neutralize special characters interpreted by sed in replacement strings. 7794 case $configure_input in #( 7795 *\&* | *\|* | *\\* ) 7796 ac_sed_conf_input=`$as_echo "$configure_input" | 7797 sed 's/[\\\\&|]/\\\\&/g'`;; #( 7798 *) ac_sed_conf_input=$configure_input;; 7799 esac 7800 7801 case $ac_tag in 7802 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 7803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 7804 esac 7805 ;; 7806 esac 7807 7808 ac_dir=`$as_dirname -- "$ac_file" || 7809$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7810 X"$ac_file" : 'X\(//\)[^/]' \| \ 7811 X"$ac_file" : 'X\(//\)$' \| \ 7812 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7813$as_echo X"$ac_file" | 7814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7815 s//\1/ 7816 q 7817 } 7818 /^X\(\/\/\)[^/].*/{ 7819 s//\1/ 7820 q 7821 } 7822 /^X\(\/\/\)$/{ 7823 s//\1/ 7824 q 7825 } 7826 /^X\(\/\).*/{ 7827 s//\1/ 7828 q 7829 } 7830 s/.*/./; q'` 7831 as_dir="$ac_dir"; as_fn_mkdir_p 7832 ac_builddir=. 7833 7834case "$ac_dir" in 7835.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7836*) 7837 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7838 # A ".." for each directory in $ac_dir_suffix. 7839 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 7840 case $ac_top_builddir_sub in 7841 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7842 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7843 esac ;; 7844esac 7845ac_abs_top_builddir=$ac_pwd 7846ac_abs_builddir=$ac_pwd$ac_dir_suffix 7847# for backward compatibility: 7848ac_top_builddir=$ac_top_build_prefix 7849 7850case $srcdir in 7851 .) # We are building in place. 7852 ac_srcdir=. 7853 ac_top_srcdir=$ac_top_builddir_sub 7854 ac_abs_top_srcdir=$ac_pwd ;; 7855 [\\/]* | ?:[\\/]* ) # Absolute name. 7856 ac_srcdir=$srcdir$ac_dir_suffix; 7857 ac_top_srcdir=$srcdir 7858 ac_abs_top_srcdir=$srcdir ;; 7859 *) # Relative name. 7860 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7861 ac_top_srcdir=$ac_top_build_prefix$srcdir 7862 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7863esac 7864ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7865 7866 7867 case $ac_mode in 7868 :F) 7869 # 7870 # CONFIG_FILE 7871 # 7872 7873_ACEOF 7874 7875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7876# If the template does not know about datarootdir, expand it. 7877# FIXME: This hack should be removed a few years after 2.60. 7878ac_datarootdir_hack=; ac_datarootdir_seen= 7879ac_sed_dataroot=' 7880/datarootdir/ { 7881 p 7882 q 7883} 7884/@datadir@/p 7885/@docdir@/p 7886/@infodir@/p 7887/@localedir@/p 7888/@mandir@/p' 7889case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7890*datarootdir*) ac_datarootdir_seen=yes;; 7891*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7893$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7894_ACEOF 7895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7896 ac_datarootdir_hack=' 7897 s&@datadir@&$datadir&g 7898 s&@docdir@&$docdir&g 7899 s&@infodir@&$infodir&g 7900 s&@localedir@&$localedir&g 7901 s&@mandir@&$mandir&g 7902 s&\\\${datarootdir}&$datarootdir&g' ;; 7903esac 7904_ACEOF 7905 7906# Neutralize VPATH when `$srcdir' = `.'. 7907# Shell code in configure.ac might set extrasub. 7908# FIXME: do we really want to maintain this feature? 7909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7910ac_sed_extra="$ac_vpsub 7911$extrasub 7912_ACEOF 7913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7914:t 7915/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7916s|@configure_input@|$ac_sed_conf_input|;t t 7917s&@top_builddir@&$ac_top_builddir_sub&;t t 7918s&@top_build_prefix@&$ac_top_build_prefix&;t t 7919s&@srcdir@&$ac_srcdir&;t t 7920s&@abs_srcdir@&$ac_abs_srcdir&;t t 7921s&@top_srcdir@&$ac_top_srcdir&;t t 7922s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7923s&@builddir@&$ac_builddir&;t t 7924s&@abs_builddir@&$ac_abs_builddir&;t t 7925s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7926$ac_datarootdir_hack 7927" 7928eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 7929 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7930 7931test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7932 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 7933 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 7934 "$ac_tmp/out"`; test -z "$ac_out"; } && 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7936which seems to be undefined. Please make sure it is defined" >&5 7937$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7938which seems to be undefined. Please make sure it is defined" >&2;} 7939 7940 rm -f "$ac_tmp/stdin" 7941 case $ac_file in 7942 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 7943 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 7944 esac \ 7945 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7946 ;; 7947 :H) 7948 # 7949 # CONFIG_HEADER 7950 # 7951 if test x"$ac_file" != x-; then 7952 { 7953 $as_echo "/* $configure_input */" \ 7954 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 7955 } >"$ac_tmp/config.h" \ 7956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7957 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 7958 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 7959$as_echo "$as_me: $ac_file is unchanged" >&6;} 7960 else 7961 rm -f "$ac_file" 7962 mv "$ac_tmp/config.h" "$ac_file" \ 7963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 7964 fi 7965 else 7966 $as_echo "/* $configure_input */" \ 7967 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 7968 || as_fn_error $? "could not create -" "$LINENO" 5 7969 fi 7970 ;; 7971 7972 7973 esac 7974 7975done # for ac_tag 7976 7977 7978as_fn_exit 0 7979_ACEOF 7980ac_clean_files=$ac_clean_files_save 7981 7982test $ac_write_fail = 0 || 7983 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 7984 7985 7986# configure is writing to config.log, and then calls config.status. 7987# config.status does its own redirection, appending to config.log. 7988# Unfortunately, on DOS this fails, as config.log is still kept open 7989# by configure, so config.status won't be able to write to it; its 7990# output is simply discarded. So we exec the FD to /dev/null, 7991# effectively closing config.log, so it can be properly (re)opened and 7992# appended to by config.status. When coming back to configure, we 7993# need to make the FD available again. 7994if test "$no_create" != yes; then 7995 ac_cs_success=: 7996 ac_config_status_args= 7997 test "$silent" = yes && 7998 ac_config_status_args="$ac_config_status_args --quiet" 7999 exec 5>/dev/null 8000 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8001 exec 5>>config.log 8002 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8003 # would make configure fail if this is the last instruction. 8004 $ac_cs_success || as_fn_exit 1 8005fi 8006if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 8008$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 8009fi 8010 8011