#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for Open MPI 1.2.2.
#
# Report bugs to .
#
# Copyright (C) 2003 Free Software Foundation, Inc.
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
## --------------------- ##
## M4sh Initialization. ##
## --------------------- ##
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
set -o posix
fi
DUALCASE=1; export DUALCASE # for MKS sh
# Support unset when possible.
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
as_unset=unset
else
as_unset=false
fi
# Work around bugs in pre-3.0 UWIN ksh.
$as_unset ENV MAIL MAILPATH
PS1='$ '
PS2='> '
PS4='+ '
# NLS nuisances.
for as_var in \
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
LC_TELEPHONE LC_TIME
do
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
eval $as_var=C; export $as_var
else
$as_unset $as_var
fi
done
# Required to use basename.
if expr a : '\(a\)' >/dev/null 2>&1; then
as_expr=expr
else
as_expr=false
fi
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
# Name of the executable.
as_me=`$as_basename "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)$' \| \
. : '\(.\)' 2>/dev/null ||
echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
/^X\/\(\/\/\)$/{ s//\1/; q; }
/^X\/\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
as_cr_digits='0123456789'
as_cr_alnum=$as_cr_Letters$as_cr_digits
# The user is always right.
if test "${PATH_SEPARATOR+set}" != set; then
echo "#! /bin/sh" >conf$$.sh
echo "exit 0" >>conf$$.sh
chmod +x conf$$.sh
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
PATH_SEPARATOR=';'
else
PATH_SEPARATOR=:
fi
rm -f conf$$.sh
fi
as_lineno_1=$LINENO
as_lineno_2=$LINENO
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x$as_lineno_3" = "x$as_lineno_2" || {
# Find who we are. Look in the path if we contain no path at all
# relative or not.
case $0 in
*[\\/]* ) as_myself=$0 ;;
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
done
;;
esac
# We did not find ourselves, most probably we were run as `sh COMMAND'
# in which case we are not to be found in the path.
if test "x$as_myself" = x; then
as_myself=$0
fi
if test ! -f "$as_myself"; then
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
{ (exit 1); exit 1; }; }
fi
case $CONFIG_SHELL in
'')
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for as_base in sh bash ksh sh5; do
case $as_dir in
/*)
if ("$as_dir/$as_base" -c '
as_lineno_1=$LINENO
as_lineno_2=$LINENO
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
test "x$as_lineno_1" != "x$as_lineno_2" &&
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
CONFIG_SHELL=$as_dir/$as_base
export CONFIG_SHELL
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
fi;;
esac
done
done
;;
esac
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
# uniformly replaced by the line number. The first 'sed' inserts a
# line-number line before each line; the second 'sed' does the real
# work. The second script uses 'N' to pair each line-number line
# with the numbered line, and appends trailing '-' during
# substitution so that $LINENO is not a special case at line end.
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
sed '=' <$as_myself |
sed '
N
s,$,-,
: loop
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
t loop
s,-$,,
s,^['$as_cr_digits']*\n,,
' >$as_me.lineno &&
chmod +x $as_me.lineno ||
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
{ (exit 1); exit 1; }; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensible to this).
. ./$as_me.lineno
# Exit status is that of the last command.
exit
}
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
*c*,-n*) ECHO_N= ECHO_C='
' ECHO_T=' ' ;;
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
esac
if expr a : '\(a\)' >/dev/null 2>&1; then
as_expr=expr
else
as_expr=false
fi
rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln -s conf$$.file conf$$ 2>/dev/null; then
# We could just check for DJGPP; but this test a) works b) is more generic
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
if test -f conf$$.exe; then
# Don't use ln at all; we don't have any links
as_ln_s='cp -p'
else
as_ln_s='ln -s'
fi
elif ln conf$$.file conf$$ 2>/dev/null; then
as_ln_s=ln
else
as_ln_s='cp -p'
fi
rm -f conf$$ conf$$.exe conf$$.file
if mkdir -p . 2>/dev/null; then
as_mkdir_p=:
else
test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
as_executable_p="test -f"
# Sed expression to map a string onto a valid CPP name.
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
# Sed expression to map a string onto a valid variable name.
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
# IFS
# We need space, tab and new line, in precisely that order.
as_nl='
'
IFS=" $as_nl"
# CDPATH.
$as_unset CDPATH
lt_ltdl_dir='opal/libltdl'
# Check that we are running under the correct shell.
SHELL=${CONFIG_SHELL-/bin/sh}
case X$lt_ECHO in
X*--fallback-echo)
# Remove one level of quotation (which was required for Make).
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
;;
esac
ECHO=${lt_ECHO-echo}
if test "X$1" = X--no-reexec; then
# Discard the --no-reexec flag, and continue.
shift
elif test "X$1" = X--fallback-echo; then
# Avoid inline document here, it may be left over
:
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
# Yippee, $ECHO works!
:
else
# Restart under the correct shell.
exec $SHELL "$0" --no-reexec ${1+"$@"}
fi
if test "X$1" = X--fallback-echo; then
# used as fallback echo
shift
cat <<_LT_EOF
$*
_LT_EOF
exit 0
fi
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
if test -z "$lt_ECHO"; then
if test "X${echo_test_string+set}" != Xset; then
# find a string as large as possible, as long as the shell can cope with it
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
then
break
fi
done
fi
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
:
else
# The Solaris, AIX, and Digital Unix default echo programs unquote
# backslashes. This makes it impossible to quote backslashes using
# echo "$something" | sed 's/\\/\\\\/g'
#
# So, first we look for a working echo in the user's PATH.
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
for dir in $PATH /usr/ucb; do
IFS="$lt_save_ifs"
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
ECHO="$dir/echo"
break
fi
done
IFS="$lt_save_ifs"
if test "X$ECHO" = Xecho; then
# We didn't find a better echo, so look for alternatives.
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
# This shell has a builtin print -r that does the trick.
ECHO='print -r'
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
test "X$CONFIG_SHELL" != X/bin/ksh; then
# If we have ksh, try running configure again with it.
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
export ORIGINAL_CONFIG_SHELL
CONFIG_SHELL=/bin/ksh
export CONFIG_SHELL
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
else
# Try using printf.
ECHO='printf %s\n'
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
# Cool, printf works
:
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
test "X$echo_testing_string" = 'X\t' &&
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
export CONFIG_SHELL
SHELL="$CONFIG_SHELL"
export SHELL
ECHO="$CONFIG_SHELL $0 --fallback-echo"
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
test "X$echo_testing_string" = 'X\t' &&
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
test "X$echo_testing_string" = "X$echo_test_string"; then
ECHO="$CONFIG_SHELL $0 --fallback-echo"
else
# maybe with a smaller string...
prev=:
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
then
break
fi
prev="$cmd"
done
if test "$prev" != 'sed 50q "$0"'; then
echo_test_string=`eval $prev`
export echo_test_string
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
else
# Oops. We lost completely, so just stick with echo.
ECHO=echo
fi
fi
fi
fi
fi
fi
# Copy echo and quote the copy suitably for passing to libtool from
# the Makefile, instead of quoting the original, which is used later.
lt_ECHO=$ECHO
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
fi
# Name of the host.
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
exec 6>&1
#
# Initializations.
#
ac_default_prefix=/usr/local
ac_config_libobj_dir=.
cross_compiling=no
subdirs=
MFLAGS=
MAKEFLAGS=
SHELL=${CONFIG_SHELL-/bin/sh}
# Maximum number of lines to put in a shell here document.
# This variable seems obsolete. It should probably be removed, and
# only ac_max_sed_lines should be used.
: ${ac_max_here_lines=38}
# Identity of this package.
PACKAGE_NAME='Open MPI'
PACKAGE_TARNAME='openmpi'
PACKAGE_VERSION='1.2.2'
PACKAGE_STRING='Open MPI 1.2.2'
PACKAGE_BUGREPORT='http://www.open-mpi.org/community/help/'
# Factoring default headers for most tests.
ac_includes_default="\
#include
#if HAVE_SYS_TYPES_H
# include
#endif
#if HAVE_SYS_STAT_H
# include
#endif
#if STDC_HEADERS
# include
# include
#else
# if HAVE_STDLIB_H
# include
# endif
#endif
#if HAVE_STRING_H
# if !STDC_HEADERS && HAVE_MEMORY_H
# include
# endif
# include
#endif
#if HAVE_STRINGS_H
# include
#endif
#if HAVE_INTTYPES_H
# include
#else
# if HAVE_STDINT_H
# include
# endif
#endif
#if HAVE_UNISTD_H
# include
#endif"
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CONFIGURE_DEPENDENCIES OMPI_CONFIGURE_USER OMPI_CONFIGURE_HOST OMPI_CONFIGURE_DATE OMPI_MAJOR_VERSION OMPI_MINOR_VERSION OMPI_RELEASE_VERSION OMPI_GREEK_VERSION OMPI_WANT_SVN OMPI_SVN_R OMPI_VERSION ORTE_MAJOR_VERSION ORTE_MINOR_VERSION ORTE_RELEASE_VERSION ORTE_GREEK_VERSION ORTE_WANT_SVN ORTE_SVN_R ORTE_VERSION OPAL_MAJOR_VERSION OPAL_MINOR_VERSION OPAL_RELEASE_VERSION OPAL_GREEK_VERSION OPAL_WANT_SVN OPAL_SVN_R OPAL_VERSION OMPI_TOP_BUILDDIR OMPI_TOP_SRCDIR CLEANFILES build build_cpu build_vendor build_os host host_cpu host_vendor host_os ac_prefix_program top_ompi_srcdir top_ompi_builddir OMPI_WANT_BUILD_F90_TRIVIAL_TRUE OMPI_WANT_BUILD_F90_TRIVIAL_FALSE OMPI_WANT_BUILD_F90_SMALL_TRUE OMPI_WANT_BUILD_F90_SMALL_FALSE OMPI_WANT_BUILD_F90_MEDIUM_TRUE OMPI_WANT_BUILD_F90_MEDIUM_FALSE OMPI_WANT_BUILD_F90_LARGE_TRUE OMPI_WANT_BUILD_F90_LARGE_FALSE OMPI_F90_BUILD_SIZE MPIF_H_PMPI_W_FUNCS WANT_INSTALL_HEADERS_TRUE WANT_INSTALL_HEADERS_FALSE WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE WANT_PERUSE_TRUE WANT_PERUSE_FALSE OMPI_FORTRAN_MAX_ARRAY_RANK OMPI_INSTALL_BINARIES_TRUE OMPI_INSTALL_BINARIES_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE OMPI_CC_ABSOLUTE CPP EGREP OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE WANT_MPI_BINDINGS_LAYER_TRUE WANT_MPI_BINDINGS_LAYER_FALSE WANT_PMPI_BINDINGS_LAYER_TRUE WANT_PMPI_BINDINGS_LAYER_FALSE COMPILE_PROFILING_SEPARATELY_TRUE COMPILE_PROFILING_SEPARATELY_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP OMPI_CXX_ABSOLUTE WANT_MPI_CXX_BINDINGS_TRUE WANT_MPI_CXX_BINDINGS_FALSE CCAS CCASFLAGS OMPI_ASM_TEXT OMPI_AS_GLOBAL OBJDUMP OMPI_AS_LABEL_SUFFIX OMPI_ASM_GSYM DUMPBIN ac_ct_DUMPBIN NM OMPI_ASM_LSYM OMPI_ASM_TYPE OMPI_ASM_SUPPORT_64BIT OMPI_ASSEMBLY_FORMAT OMPI_ASSEMBLY_ARCH FGREP PERL OMPI_HAVE_ASM_FILE_TRUE OMPI_HAVE_ASM_FILE_FALSE OMPI_ASM_FILE F77 FFLAGS ac_ct_F77 OMPI_WANT_F77_BINDINGS_TRUE OMPI_WANT_F77_BINDINGS_FALSE OMPI_F77_ABSOLUTE WANT_MPI_F77_BINDINGS_LAYER_TRUE WANT_MPI_F77_BINDINGS_LAYER_FALSE WANT_PMPI_F77_BINDINGS_LAYER_TRUE WANT_PMPI_F77_BINDINGS_LAYER_FALSE FC FCFLAGS ac_ct_FC OMPI_F90_FORCE_STATIC_TRUE OMPI_F90_FORCE_STATIC_FALSE FCFLAGS_f FCFLAGS_f90 OMPI_WANT_F90_BINDINGS_TRUE OMPI_WANT_F90_BINDINGS_FALSE OMPI_F90_ABSOLUTE OMPI_FC_MODULE_FLAG OMPI_SIZEOF_F90_LOGICAL OMPI_SIZEOF_F90_INTEGER OMPI_SIZEOF_F90_INTEGER1 OMPI_SIZEOF_F90_INTEGER2 OMPI_SIZEOF_F90_INTEGER4 OMPI_SIZEOF_F90_INTEGER8 OMPI_SIZEOF_F90_INTEGER16 OMPI_SIZEOF_F90_REAL OMPI_SIZEOF_F90_REAL4 OMPI_SIZEOF_F90_REAL8 OMPI_SIZEOF_F90_REAL16 OMPI_SIZEOF_F90_DOUBLE_PRECISION OMPI_SIZEOF_F90_COMPLEX OMPI_SIZEOF_F90_COMPLEX8 OMPI_SIZEOF_F90_COMPLEX16 OMPI_SIZEOF_F90_COMPLEX32 OMPI_SIZEOF_F90_DOUBLE_COMPLEX OMPI_F90_IKINDS OMPI_F90_RKINDS OMPI_F90_CKINDS OMPI_MPI_INTEGER_KIND OMPI_MPI_ADDRESS_KIND OMPI_MPI_OFFSET_KIND OMPI_HAVE_POSIX_THREADS_TRUE OMPI_HAVE_POSIX_THREADS_FALSE OMPI_HAVE_SOLARIS_THREADS_TRUE OMPI_HAVE_SOLARIS_THREADS_FALSE LN_S LEX LEXLIB LEX_OUTPUT_ROOT CASE_SENSITIVE_FS_TRUE CASE_SENSITIVE_FS_FALSE backtrace_darwin_CFLAGS OMPI_BUILD_backtrace_darwin_DSO_TRUE OMPI_BUILD_backtrace_darwin_DSO_FALSE OMPI_BUILD_backtrace_execinfo_DSO_TRUE OMPI_BUILD_backtrace_execinfo_DSO_FALSE OMPI_BUILD_backtrace_printstack_DSO_TRUE OMPI_BUILD_backtrace_printstack_DSO_FALSE OMPI_BUILD_backtrace_none_DSO_TRUE OMPI_BUILD_backtrace_none_DSO_FALSE MCA_backtrace_ALL_COMPONENTS MCA_backtrace_STATIC_COMPONENTS MCA_backtrace_DSO_COMPONENTS MCA_backtrace_STATIC_LTLIBS MCA_backtrace_ALL_SUBDIRS MCA_backtrace_STATIC_SUBDIRS MCA_backtrace_DSO_SUBDIRS OMPI_BUILD_installdirs_env_DSO_TRUE OMPI_BUILD_installdirs_env_DSO_FALSE OPAL_PREFIX OPAL_EXEC_PREFIX OPAL_BINDIR OPAL_SBINDIR OPAL_LIBEXECDIR OPAL_DATAROOTDIR OPAL_DATADIR OPAL_SYSCONFDIR OPAL_SHAREDSTATEDIR OPAL_LOCALSTATEDIR OPAL_LIBDIR OPAL_INCLUDEDIR OPAL_INFODIR OPAL_MANDIR OMPI_BUILD_installdirs_config_DSO_TRUE OMPI_BUILD_installdirs_config_DSO_FALSE MCA_installdirs_ALL_COMPONENTS MCA_installdirs_STATIC_COMPONENTS MCA_installdirs_DSO_COMPONENTS MCA_installdirs_STATIC_LTLIBS MCA_installdirs_ALL_SUBDIRS MCA_installdirs_STATIC_SUBDIRS MCA_installdirs_DSO_SUBDIRS OMPI_BUILD_maffinity_first_use_DSO_TRUE OMPI_BUILD_maffinity_first_use_DSO_FALSE maffinity_libnuma_CPPFLAGS maffinity_libnuma_LDFLAGS maffinity_libnuma_LIBS OMPI_BUILD_maffinity_libnuma_DSO_TRUE OMPI_BUILD_maffinity_libnuma_DSO_FALSE MCA_maffinity_ALL_COMPONENTS MCA_maffinity_STATIC_COMPONENTS MCA_maffinity_DSO_COMPONENTS MCA_maffinity_STATIC_LTLIBS MCA_maffinity_ALL_SUBDIRS MCA_maffinity_STATIC_SUBDIRS MCA_maffinity_DSO_SUBDIRS MCA_memcpy_ALL_COMPONENTS MCA_memcpy_STATIC_COMPONENTS MCA_memcpy_DSO_COMPONENTS MCA_memcpy_STATIC_LTLIBS MCA_memcpy_ALL_SUBDIRS MCA_memcpy_STATIC_SUBDIRS MCA_memcpy_DSO_SUBDIRS OMPI_BUILD_memory_darwin_DSO_TRUE OMPI_BUILD_memory_darwin_DSO_FALSE memory_ptmalloc2_LIBS OMPI_BUILD_memory_ptmalloc2_DSO_TRUE OMPI_BUILD_memory_ptmalloc2_DSO_FALSE memory_malloc_hooks_LIBS OMPI_BUILD_memory_malloc_hooks_DSO_TRUE OMPI_BUILD_memory_malloc_hooks_DSO_FALSE MCA_memory_ALL_COMPONENTS MCA_memory_STATIC_COMPONENTS MCA_memory_DSO_COMPONENTS MCA_memory_STATIC_LTLIBS MCA_memory_ALL_SUBDIRS MCA_memory_STATIC_SUBDIRS MCA_memory_DSO_SUBDIRS OMPI_BUILD_paffinity_linux_DSO_TRUE OMPI_BUILD_paffinity_linux_DSO_FALSE OMPI_BUILD_paffinity_solaris_DSO_TRUE OMPI_BUILD_paffinity_solaris_DSO_FALSE OMPI_BUILD_paffinity_windows_DSO_TRUE OMPI_BUILD_paffinity_windows_DSO_FALSE MCA_paffinity_ALL_COMPONENTS MCA_paffinity_STATIC_COMPONENTS MCA_paffinity_DSO_COMPONENTS MCA_paffinity_STATIC_LTLIBS MCA_paffinity_ALL_SUBDIRS MCA_paffinity_STATIC_SUBDIRS MCA_paffinity_DSO_SUBDIRS timer_aix_LIBS OMPI_BUILD_timer_aix_DSO_TRUE OMPI_BUILD_timer_aix_DSO_FALSE OMPI_BUILD_timer_altix_DSO_TRUE OMPI_BUILD_timer_altix_DSO_FALSE OMPI_BUILD_timer_darwin_DSO_TRUE OMPI_BUILD_timer_darwin_DSO_FALSE OMPI_BUILD_timer_solaris_DSO_TRUE OMPI_BUILD_timer_solaris_DSO_FALSE OMPI_BUILD_timer_windows_DSO_TRUE OMPI_BUILD_timer_windows_DSO_FALSE OMPI_BUILD_timer_linux_DSO_TRUE OMPI_BUILD_timer_linux_DSO_FALSE MCA_timer_ALL_COMPONENTS MCA_timer_STATIC_COMPONENTS MCA_timer_DSO_COMPONENTS MCA_timer_STATIC_LTLIBS MCA_timer_ALL_SUBDIRS MCA_timer_STATIC_SUBDIRS MCA_timer_DSO_SUBDIRS MCA_opal_FRAMEWORKS MCA_opal_FRAMEWORKS_SUBDIRS MCA_opal_FRAMEWORK_COMPONENT_ALL_SUBDIRS MCA_opal_FRAMEWORK_COMPONENT_DSO_SUBDIRS MCA_opal_FRAMEWORK_COMPONENT_STATIC_SUBDIRS MCA_opal_FRAMEWORK_LIBS OMPI_BUILD_errmgr_hnp_DSO_TRUE OMPI_BUILD_errmgr_hnp_DSO_FALSE OMPI_BUILD_errmgr_orted_DSO_TRUE OMPI_BUILD_errmgr_orted_DSO_FALSE OMPI_BUILD_errmgr_proxy_DSO_TRUE OMPI_BUILD_errmgr_proxy_DSO_FALSE errmgr_bproc_CPPFLAGS errmgr_bproc_LDFLAGS errmgr_bproc_LIBS OMPI_BUILD_errmgr_bproc_DSO_TRUE OMPI_BUILD_errmgr_bproc_DSO_FALSE MCA_errmgr_ALL_COMPONENTS MCA_errmgr_STATIC_COMPONENTS MCA_errmgr_DSO_COMPONENTS MCA_errmgr_STATIC_LTLIBS MCA_errmgr_ALL_SUBDIRS MCA_errmgr_STATIC_SUBDIRS MCA_errmgr_DSO_SUBDIRS OMPI_BUILD_gpr_null_DSO_TRUE OMPI_BUILD_gpr_null_DSO_FALSE OMPI_BUILD_gpr_proxy_DSO_TRUE OMPI_BUILD_gpr_proxy_DSO_FALSE OMPI_BUILD_gpr_replica_DSO_TRUE OMPI_BUILD_gpr_replica_DSO_FALSE MCA_gpr_ALL_COMPONENTS MCA_gpr_STATIC_COMPONENTS MCA_gpr_DSO_COMPONENTS MCA_gpr_STATIC_LTLIBS MCA_gpr_ALL_SUBDIRS MCA_gpr_STATIC_SUBDIRS MCA_gpr_DSO_SUBDIRS OMPI_BUILD_iof_proxy_DSO_TRUE OMPI_BUILD_iof_proxy_DSO_FALSE OMPI_BUILD_iof_svc_DSO_TRUE OMPI_BUILD_iof_svc_DSO_FALSE MCA_iof_ALL_COMPONENTS MCA_iof_STATIC_COMPONENTS MCA_iof_DSO_COMPONENTS MCA_iof_STATIC_LTLIBS MCA_iof_ALL_SUBDIRS MCA_iof_STATIC_SUBDIRS MCA_iof_DSO_SUBDIRS OMPI_BUILD_ns_proxy_DSO_TRUE OMPI_BUILD_ns_proxy_DSO_FALSE OMPI_BUILD_ns_replica_DSO_TRUE OMPI_BUILD_ns_replica_DSO_FALSE MCA_ns_ALL_COMPONENTS MCA_ns_STATIC_COMPONENTS MCA_ns_DSO_COMPONENTS MCA_ns_STATIC_LTLIBS MCA_ns_ALL_SUBDIRS MCA_ns_STATIC_SUBDIRS MCA_ns_DSO_SUBDIRS odls_bproc_CPPFLAGS odls_bproc_LDFLAGS odls_bproc_LIBS OMPI_BUILD_odls_bproc_DSO_TRUE OMPI_BUILD_odls_bproc_DSO_FALSE OMPI_BUILD_odls_default_DSO_TRUE OMPI_BUILD_odls_default_DSO_FALSE MCA_odls_ALL_COMPONENTS MCA_odls_STATIC_COMPONENTS MCA_odls_DSO_COMPONENTS MCA_odls_STATIC_LTLIBS MCA_odls_ALL_SUBDIRS MCA_odls_STATIC_SUBDIRS MCA_odls_DSO_SUBDIRS OMPI_BUILD_oob_tcp_DSO_TRUE OMPI_BUILD_oob_tcp_DSO_FALSE MCA_oob_ALL_COMPONENTS MCA_oob_STATIC_COMPONENTS MCA_oob_DSO_COMPONENTS MCA_oob_STATIC_LTLIBS MCA_oob_ALL_SUBDIRS MCA_oob_STATIC_SUBDIRS MCA_oob_DSO_SUBDIRS OMPI_BUILD_pls_proxy_DSO_TRUE OMPI_BUILD_pls_proxy_DSO_FALSE pls_bproc_CPPFLAGS pls_bproc_LDFLAGS pls_bproc_LIBS OMPI_BUILD_pls_bproc_DSO_TRUE OMPI_BUILD_pls_bproc_DSO_FALSE OMPI_BUILD_pls_cnos_DSO_TRUE OMPI_BUILD_pls_cnos_DSO_FALSE OMPI_BUILD_pls_gridengine_DSO_TRUE OMPI_BUILD_pls_gridengine_DSO_FALSE OMPI_BUILD_pls_poe_DSO_TRUE OMPI_BUILD_pls_poe_DSO_FALSE OMPI_BUILD_pls_rsh_DSO_TRUE OMPI_BUILD_pls_rsh_DSO_FALSE pls_slurm_CPPFLAGS pls_slurm_LDFLAGS pls_slurm_LIBS OMPI_BUILD_pls_slurm_DSO_TRUE OMPI_BUILD_pls_slurm_DSO_FALSE pls_tm_CPPFLAGS pls_tm_LDFLAGS pls_tm_LIBS OMPI_BUILD_pls_tm_DSO_TRUE OMPI_BUILD_pls_tm_DSO_FALSE OBJC OBJCFLAGS ac_ct_OBJC OBJCDEPMODE am__fastdepOBJC_TRUE am__fastdepOBJC_FALSE pls_xgrid_OBJCFLAGS pls_xgrid_LDFLAGS OMPI_BUILD_pls_xgrid_DSO_TRUE OMPI_BUILD_pls_xgrid_DSO_FALSE MCA_pls_ALL_COMPONENTS MCA_pls_STATIC_COMPONENTS MCA_pls_DSO_COMPONENTS MCA_pls_STATIC_LTLIBS MCA_pls_ALL_SUBDIRS MCA_pls_STATIC_SUBDIRS MCA_pls_DSO_SUBDIRS OMPI_BUILD_ras_dash_host_DSO_TRUE OMPI_BUILD_ras_dash_host_DSO_FALSE OMPI_BUILD_ras_localhost_DSO_TRUE OMPI_BUILD_ras_localhost_DSO_FALSE ras_bjs_CPPFLAGS ras_bjs_LDFLAGS ras_bjs_LIBS OMPI_BUILD_ras_bjs_DSO_TRUE OMPI_BUILD_ras_bjs_DSO_FALSE OMPI_BUILD_ras_gridengine_DSO_TRUE OMPI_BUILD_ras_gridengine_DSO_FALSE ras_loadleveler_CPPFLAGS ras_loadleveler_LDFLAGS ras_loadleveler_LIBS OMPI_BUILD_ras_loadleveler_DSO_TRUE OMPI_BUILD_ras_loadleveler_DSO_FALSE ras_lsf_bproc_CPPFLAGS ras_lsf_bproc_LDFLAGS ras_lsf_bproc_LIBS OMPI_BUILD_ras_lsf_bproc_DSO_TRUE OMPI_BUILD_ras_lsf_bproc_DSO_FALSE ras_slurm_CPPFLAGS ras_slurm_LDFLAGS ras_slurm_LIBS OMPI_BUILD_ras_slurm_DSO_TRUE OMPI_BUILD_ras_slurm_DSO_FALSE ras_tm_CPPFLAGS ras_tm_LDFLAGS ras_tm_LIBS OMPI_BUILD_ras_tm_DSO_TRUE OMPI_BUILD_ras_tm_DSO_FALSE OMPI_BUILD_ras_xgrid_DSO_TRUE OMPI_BUILD_ras_xgrid_DSO_FALSE MCA_ras_ALL_COMPONENTS MCA_ras_STATIC_COMPONENTS MCA_ras_DSO_COMPONENTS MCA_ras_STATIC_LTLIBS MCA_ras_ALL_SUBDIRS MCA_ras_STATIC_SUBDIRS MCA_ras_DSO_SUBDIRS OMPI_BUILD_rds_hostfile_DSO_TRUE OMPI_BUILD_rds_hostfile_DSO_FALSE OMPI_BUILD_rds_proxy_DSO_TRUE OMPI_BUILD_rds_proxy_DSO_FALSE OMPI_BUILD_rds_resfile_DSO_TRUE OMPI_BUILD_rds_resfile_DSO_FALSE MCA_rds_ALL_COMPONENTS MCA_rds_STATIC_COMPONENTS MCA_rds_DSO_COMPONENTS MCA_rds_STATIC_LTLIBS MCA_rds_ALL_SUBDIRS MCA_rds_STATIC_SUBDIRS MCA_rds_DSO_SUBDIRS OMPI_BUILD_rmaps_round_robin_DSO_TRUE OMPI_BUILD_rmaps_round_robin_DSO_FALSE MCA_rmaps_ALL_COMPONENTS MCA_rmaps_STATIC_COMPONENTS MCA_rmaps_DSO_COMPONENTS MCA_rmaps_STATIC_LTLIBS MCA_rmaps_ALL_SUBDIRS MCA_rmaps_STATIC_SUBDIRS MCA_rmaps_DSO_SUBDIRS OMPI_BUILD_rmgr_proxy_DSO_TRUE OMPI_BUILD_rmgr_proxy_DSO_FALSE OMPI_BUILD_rmgr_urm_DSO_TRUE OMPI_BUILD_rmgr_urm_DSO_FALSE OMPI_BUILD_rmgr_cnos_DSO_TRUE OMPI_BUILD_rmgr_cnos_DSO_FALSE MCA_rmgr_ALL_COMPONENTS MCA_rmgr_STATIC_COMPONENTS MCA_rmgr_DSO_COMPONENTS MCA_rmgr_STATIC_LTLIBS MCA_rmgr_ALL_SUBDIRS MCA_rmgr_STATIC_SUBDIRS MCA_rmgr_DSO_SUBDIRS OMPI_BUILD_rml_oob_DSO_TRUE OMPI_BUILD_rml_oob_DSO_FALSE OMPI_BUILD_rml_cnos_DSO_TRUE OMPI_BUILD_rml_cnos_DSO_FALSE MCA_rml_ALL_COMPONENTS MCA_rml_STATIC_COMPONENTS MCA_rml_DSO_COMPONENTS MCA_rml_STATIC_LTLIBS MCA_rml_ALL_SUBDIRS MCA_rml_STATIC_SUBDIRS MCA_rml_DSO_SUBDIRS MCA_schema_ALL_COMPONENTS MCA_schema_STATIC_COMPONENTS MCA_schema_DSO_COMPONENTS MCA_schema_STATIC_LTLIBS MCA_schema_ALL_SUBDIRS MCA_schema_STATIC_SUBDIRS MCA_schema_DSO_SUBDIRS OMPI_BUILD_sds_env_DSO_TRUE OMPI_BUILD_sds_env_DSO_FALSE OMPI_BUILD_sds_seed_DSO_TRUE OMPI_BUILD_sds_seed_DSO_FALSE OMPI_BUILD_sds_singleton_DSO_TRUE OMPI_BUILD_sds_singleton_DSO_FALSE sds_bproc_CPPFLAGS sds_bproc_LDFLAGS sds_bproc_LIBS OMPI_BUILD_sds_bproc_DSO_TRUE OMPI_BUILD_sds_bproc_DSO_FALSE OMPI_BUILD_sds_cnos_DSO_TRUE OMPI_BUILD_sds_cnos_DSO_FALSE OMPI_BUILD_sds_pipe_DSO_TRUE OMPI_BUILD_sds_pipe_DSO_FALSE sds_portals_utcp_CPPFLAGS sds_portals_utcp_LDFLAGS sds_portals_utcp_LIBS OMPI_BUILD_sds_portals_utcp_DSO_TRUE OMPI_BUILD_sds_portals_utcp_DSO_FALSE sds_slurm_CPPFLAGS sds_slurm_LDFLAGS sds_slurm_LIBS OMPI_BUILD_sds_slurm_DSO_TRUE OMPI_BUILD_sds_slurm_DSO_FALSE MCA_sds_ALL_COMPONENTS MCA_sds_STATIC_COMPONENTS MCA_sds_DSO_COMPONENTS MCA_sds_STATIC_LTLIBS MCA_sds_ALL_SUBDIRS MCA_sds_STATIC_SUBDIRS MCA_sds_DSO_SUBDIRS smr_bproc_CPPFLAGS smr_bproc_LDFLAGS smr_bproc_LIBS OMPI_BUILD_smr_bproc_DSO_TRUE OMPI_BUILD_smr_bproc_DSO_FALSE MCA_smr_ALL_COMPONENTS MCA_smr_STATIC_COMPONENTS MCA_smr_DSO_COMPONENTS MCA_smr_STATIC_LTLIBS MCA_smr_ALL_SUBDIRS MCA_smr_STATIC_SUBDIRS MCA_smr_DSO_SUBDIRS MCA_orte_FRAMEWORKS MCA_orte_FRAMEWORKS_SUBDIRS MCA_orte_FRAMEWORK_COMPONENT_ALL_SUBDIRS MCA_orte_FRAMEWORK_COMPONENT_DSO_SUBDIRS MCA_orte_FRAMEWORK_COMPONENT_STATIC_SUBDIRS MCA_orte_FRAMEWORK_LIBS OMPI_BUILD_allocator_basic_DSO_TRUE OMPI_BUILD_allocator_basic_DSO_FALSE OMPI_BUILD_allocator_bucket_DSO_TRUE OMPI_BUILD_allocator_bucket_DSO_FALSE MCA_allocator_ALL_COMPONENTS MCA_allocator_STATIC_COMPONENTS MCA_allocator_DSO_COMPONENTS MCA_allocator_STATIC_LTLIBS MCA_allocator_ALL_SUBDIRS MCA_allocator_STATIC_SUBDIRS MCA_allocator_DSO_SUBDIRS OMPI_BUILD_bml_r2_DSO_TRUE OMPI_BUILD_bml_r2_DSO_FALSE MCA_bml_ALL_COMPONENTS MCA_bml_STATIC_COMPONENTS MCA_bml_DSO_COMPONENTS MCA_bml_STATIC_LTLIBS MCA_bml_ALL_SUBDIRS MCA_bml_STATIC_SUBDIRS MCA_bml_DSO_SUBDIRS OMPI_BUILD_btl_self_DSO_TRUE OMPI_BUILD_btl_self_DSO_FALSE OMPI_BUILD_btl_sm_DSO_TRUE OMPI_BUILD_btl_sm_DSO_FALSE btl_gm_CFLAGS btl_gm_CPPFLAGS btl_gm_LDFLAGS btl_gm_LIBS OMPI_BUILD_btl_gm_DSO_TRUE OMPI_BUILD_btl_gm_DSO_FALSE btl_mvapi_CFLAGS btl_mvapi_CPPFLAGS btl_mvapi_LDFLAGS btl_mvapi_LIBS OMPI_BUILD_btl_mvapi_DSO_TRUE OMPI_BUILD_btl_mvapi_DSO_FALSE btl_mx_CFLAGS btl_mx_CPPFLAGS btl_mx_LDFLAGS btl_mx_LIBS OMPI_BUILD_btl_mx_DSO_TRUE OMPI_BUILD_btl_mx_DSO_FALSE btl_openib_CFLAGS btl_openib_CPPFLAGS btl_openib_LDFLAGS btl_openib_LIBS OMPI_BUILD_btl_openib_DSO_TRUE OMPI_BUILD_btl_openib_DSO_FALSE btl_portals_CPPFLAGS btl_portals_LDFLAGS btl_portals_LIBS OMPI_BUILD_btl_portals_DSO_TRUE OMPI_BUILD_btl_portals_DSO_FALSE OMPI_BUILD_btl_tcp_DSO_TRUE OMPI_BUILD_btl_tcp_DSO_FALSE btl_udapl_CFLAGS btl_udapl_CPPFLAGS btl_udapl_LDFLAGS btl_udapl_LIBS OMPI_BUILD_btl_udapl_DSO_TRUE OMPI_BUILD_btl_udapl_DSO_FALSE MCA_btl_ALL_COMPONENTS MCA_btl_STATIC_COMPONENTS MCA_btl_DSO_COMPONENTS MCA_btl_STATIC_LTLIBS MCA_btl_ALL_SUBDIRS MCA_btl_STATIC_SUBDIRS MCA_btl_DSO_SUBDIRS OMPI_BUILD_coll_basic_DSO_TRUE OMPI_BUILD_coll_basic_DSO_FALSE OMPI_BUILD_coll_self_DSO_TRUE OMPI_BUILD_coll_self_DSO_FALSE OMPI_BUILD_coll_sm_DSO_TRUE OMPI_BUILD_coll_sm_DSO_FALSE OMPI_BUILD_coll_tuned_DSO_TRUE OMPI_BUILD_coll_tuned_DSO_FALSE MCA_coll_ALL_COMPONENTS MCA_coll_STATIC_COMPONENTS MCA_coll_DSO_COMPONENTS MCA_coll_STATIC_LTLIBS MCA_coll_ALL_SUBDIRS MCA_coll_STATIC_SUBDIRS MCA_coll_DSO_SUBDIRS OMPI_BUILD_common_sm_DSO_TRUE OMPI_BUILD_common_sm_DSO_FALSE common_mx_CFLAGS common_mx_CPPFLAGS common_mx_LDFLAGS common_mx_LIBS OMPI_BUILD_common_mx_DSO_TRUE OMPI_BUILD_common_mx_DSO_FALSE common_portals_CPPFLAGS common_portals_LDFLAGS common_portals_LIBS OMPI_BUILD_common_portals_DSO_TRUE OMPI_BUILD_common_portals_DSO_FALSE MCA_common_ALL_COMPONENTS MCA_common_STATIC_COMPONENTS MCA_common_DSO_COMPONENTS MCA_common_STATIC_LTLIBS MCA_common_ALL_SUBDIRS MCA_common_STATIC_SUBDIRS MCA_common_DSO_SUBDIRS MCA_io_romio_SHOULD_BUILD_TRUE MCA_io_romio_SHOULD_BUILD_FALSE OMPI_BUILD_io_romio_DSO_TRUE OMPI_BUILD_io_romio_DSO_FALSE MCA_io_ALL_COMPONENTS MCA_io_STATIC_COMPONENTS MCA_io_DSO_COMPONENTS MCA_io_STATIC_LTLIBS MCA_io_ALL_SUBDIRS MCA_io_STATIC_SUBDIRS MCA_io_DSO_SUBDIRS OMPI_BUILD_mpool_rdma_DSO_TRUE OMPI_BUILD_mpool_rdma_DSO_FALSE OMPI_BUILD_mpool_sm_DSO_TRUE OMPI_BUILD_mpool_sm_DSO_FALSE MCA_mpool_ALL_COMPONENTS MCA_mpool_STATIC_COMPONENTS MCA_mpool_DSO_COMPONENTS MCA_mpool_STATIC_LTLIBS MCA_mpool_ALL_SUBDIRS MCA_mpool_STATIC_SUBDIRS MCA_mpool_DSO_SUBDIRS mtl_mx_CFLAGS mtl_mx_CPPFLAGS mtl_mx_LDFLAGS mtl_mx_LIBS OMPI_BUILD_mtl_mx_DSO_TRUE OMPI_BUILD_mtl_mx_DSO_FALSE mtl_psm_CFLAGS mtl_psm_CPPFLAGS mtl_psm_LDFLAGS mtl_psm_LIBS OMPI_BUILD_mtl_psm_DSO_TRUE OMPI_BUILD_mtl_psm_DSO_FALSE MCA_mtl_ALL_COMPONENTS MCA_mtl_STATIC_COMPONENTS MCA_mtl_DSO_COMPONENTS MCA_mtl_STATIC_LTLIBS MCA_mtl_ALL_SUBDIRS MCA_mtl_STATIC_SUBDIRS MCA_mtl_DSO_SUBDIRS OMPI_BUILD_osc_pt2pt_DSO_TRUE OMPI_BUILD_osc_pt2pt_DSO_FALSE MCA_osc_ALL_COMPONENTS MCA_osc_STATIC_COMPONENTS MCA_osc_DSO_COMPONENTS MCA_osc_STATIC_LTLIBS MCA_osc_ALL_SUBDIRS MCA_osc_STATIC_SUBDIRS MCA_osc_DSO_SUBDIRS OMPI_BUILD_pml_cm_DSO_TRUE OMPI_BUILD_pml_cm_DSO_FALSE OMPI_BUILD_pml_ob1_DSO_TRUE OMPI_BUILD_pml_ob1_DSO_FALSE MCA_pml_ALL_COMPONENTS MCA_pml_STATIC_COMPONENTS MCA_pml_DSO_COMPONENTS MCA_pml_STATIC_LTLIBS MCA_pml_ALL_SUBDIRS MCA_pml_STATIC_SUBDIRS MCA_pml_DSO_SUBDIRS OMPI_BUILD_rcache_vma_DSO_TRUE OMPI_BUILD_rcache_vma_DSO_FALSE MCA_rcache_ALL_COMPONENTS MCA_rcache_STATIC_COMPONENTS MCA_rcache_DSO_COMPONENTS MCA_rcache_STATIC_LTLIBS MCA_rcache_ALL_SUBDIRS MCA_rcache_STATIC_SUBDIRS MCA_rcache_DSO_SUBDIRS OMPI_BUILD_topo_unity_DSO_TRUE OMPI_BUILD_topo_unity_DSO_FALSE MCA_topo_ALL_COMPONENTS MCA_topo_STATIC_COMPONENTS MCA_topo_DSO_COMPONENTS MCA_topo_STATIC_LTLIBS MCA_topo_ALL_SUBDIRS MCA_topo_STATIC_SUBDIRS MCA_topo_DSO_SUBDIRS MCA_ompi_FRAMEWORKS MCA_ompi_FRAMEWORKS_SUBDIRS MCA_ompi_FRAMEWORK_COMPONENT_ALL_SUBDIRS MCA_ompi_FRAMEWORK_COMPONENT_DSO_SUBDIRS MCA_ompi_FRAMEWORK_COMPONENT_STATIC_SUBDIRS MCA_ompi_FRAMEWORK_LIBS MCA_pml_DIRECT_CALL_HEADER MCA_mtl_DIRECT_CALL_HEADER MCA_PROJECT_SUBDIRS OMPI_LIBEVENT_SOURCES LIBLTDL LTDLINCL INCLTDL LIBTOOL SED GREP LD AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO LIBLTDL_SUBDIR LIBLTDL_LTLIB OPAL_LTDL_CPPFLAGS WANT_LIBLTDL_TRUE WANT_LIBLTDL_FALSE CFLAGS_WITHOUT_OPTFLAGS TOTALVIEW_DEBUG_FLAGS CXXCPPFLAGS OPAL_WRAPPER_EXTRA_CPPFLAGS OPAL_WRAPPER_EXTRA_CFLAGS OPAL_WRAPPER_EXTRA_CXXFLAGS OPAL_WRAPPER_EXTRA_LDFLAGS OPAL_WRAPPER_EXTRA_LIBS OPAL_WRAPPER_EXTRA_INCLUDES ORTE_WRAPPER_EXTRA_CPPFLAGS ORTE_WRAPPER_EXTRA_CFLAGS ORTE_WRAPPER_EXTRA_CXXFLAGS ORTE_WRAPPER_EXTRA_LDFLAGS ORTE_WRAPPER_EXTRA_LIBS ORTE_WRAPPER_EXTRA_INCLUDES OMPI_WRAPPER_EXTRA_CPPFLAGS OMPI_WRAPPER_EXTRA_CFLAGS OMPI_WRAPPER_EXTRA_CXXFLAGS OMPI_WRAPPER_EXTRA_FFLAGS OMPI_WRAPPER_EXTRA_FCFLAGS OMPI_WRAPPER_EXTRA_LDFLAGS OMPI_WRAPPER_EXTRA_LIBS OMPI_WRAPPER_EXTRA_INCLUDES OMPI_WRAPPER_CXX_LIB OMPI_WRAPPER_CXX_REQUIRED_FILE OMPI_WRAPPER_F77_REQUIRED_FILE OMPI_WRAPPER_F90_REQUIRED_FILE WRAPPER_EXTRA_CFLAGS WRAPPER_EXTRA_CXXFLAGS WRAPPER_EXTRA_FFLAGS WRAPPER_EXTRA_FCFLAGS WRAPPER_EXTRA_LDFLAGS WRAPPER_EXTRA_LIBS LIBOBJS LTLIBOBJS'
ac_subst_files=''
# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
exec_prefix=NONE
no_create=
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
verbose=
x_includes=NONE
x_libraries=NONE
# Installation directory options.
# These are left unexpanded so users can "make install exec_prefix=/foo"
# and all the variables that are supposed to be based on exec_prefix
# by default will actually change.
# Use braces instead of parens because sh, perl, etc. also accept them.
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'
ac_prev=
for ac_option
do
# If the previous option needs an argument, assign it.
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
ac_prev=
continue
fi
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
# Accept the important Cygnus configure options, so we can diagnose typos.
case $ac_option in
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bindir=$ac_optarg ;;
-build | --build | --buil | --bui | --bu)
ac_prev=build_alias ;;
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
build_alias=$ac_optarg ;;
-cache-file | --cache-file | --cache-fil | --cache-fi \
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
ac_prev=cache_file ;;
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
cache_file=$ac_optarg ;;
--config-cache | -C)
cache_file=config.cache ;;
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
ac_prev=datadir ;;
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
| --da=*)
datadir=$ac_optarg ;;
-disable-* | --disable-*)
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
eval "enable_$ac_feature=no" ;;
-enable-* | --enable-*)
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
{ (exit 1); exit 1; }; }
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
case $ac_option in
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
*) ac_optarg=yes ;;
esac
eval "enable_$ac_feature='$ac_optarg'" ;;
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
| --exec | --exe | --ex)
ac_prev=exec_prefix ;;
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
| --exec=* | --exe=* | --ex=*)
exec_prefix=$ac_optarg ;;
-gas | --gas | --ga | --g)
# Obsolete; use --with-gas.
with_gas=yes ;;
-help | --help | --hel | --he | -h)
ac_init_help=long ;;
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
ac_init_help=recursive ;;
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
ac_init_help=short ;;
-host | --host | --hos | --ho)
ac_prev=host_alias ;;
-host=* | --host=* | --hos=* | --ho=*)
host_alias=$ac_optarg ;;
-includedir | --includedir | --includedi | --included | --include \
| --includ | --inclu | --incl | --inc)
ac_prev=includedir ;;
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
| --includ=* | --inclu=* | --incl=* | --inc=*)
includedir=$ac_optarg ;;
-infodir | --infodir | --infodi | --infod | --info | --inf)
ac_prev=infodir ;;
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
infodir=$ac_optarg ;;
-libdir | --libdir | --libdi | --libd)
ac_prev=libdir ;;
-libdir=* | --libdir=* | --libdi=* | --libd=*)
libdir=$ac_optarg ;;
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
| --libexe | --libex | --libe)
ac_prev=libexecdir ;;
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
| --libexe=* | --libex=* | --libe=*)
libexecdir=$ac_optarg ;;
-localstatedir | --localstatedir | --localstatedi | --localstated \
| --localstate | --localstat | --localsta | --localst \
| --locals | --local | --loca | --loc | --lo)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
localstatedir=$ac_optarg ;;
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
ac_prev=mandir ;;
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
mandir=$ac_optarg ;;
-nfp | --nfp | --nf)
# Obsolete; use --without-fp.
with_fp=no ;;
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
| --no-cr | --no-c | -n)
no_create=yes ;;
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
no_recursion=yes ;;
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
| --oldin | --oldi | --old | --ol | --o)
ac_prev=oldincludedir ;;
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
oldincludedir=$ac_optarg ;;
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
ac_prev=prefix ;;
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
prefix=$ac_optarg ;;
-program-prefix | --program-prefix | --program-prefi | --program-pref \
| --program-pre | --program-pr | --program-p)
ac_prev=program_prefix ;;
-program-prefix=* | --program-prefix=* | --program-prefi=* \
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
program_prefix=$ac_optarg ;;
-program-suffix | --program-suffix | --program-suffi | --program-suff \
| --program-suf | --program-su | --program-s)
ac_prev=program_suffix ;;
-program-suffix=* | --program-suffix=* | --program-suffi=* \
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
program_suffix=$ac_optarg ;;
-program-transform-name | --program-transform-name \
| --program-transform-nam | --program-transform-na \
| --program-transform-n | --program-transform- \
| --program-transform | --program-transfor \
| --program-transfo | --program-transf \
| --program-trans | --program-tran \
| --progr-tra | --program-tr | --program-t)
ac_prev=program_transform_name ;;
-program-transform-name=* | --program-transform-name=* \
| --program-transform-nam=* | --program-transform-na=* \
| --program-transform-n=* | --program-transform-=* \
| --program-transform=* | --program-transfor=* \
| --program-transfo=* | --program-transf=* \
| --program-trans=* | --program-tran=* \
| --progr-tra=* | --program-tr=* | --program-t=*)
program_transform_name=$ac_optarg ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
silent=yes ;;
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
ac_prev=sbindir ;;
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
| --sbi=* | --sb=*)
sbindir=$ac_optarg ;;
-sharedstatedir | --sharedstatedir | --sharedstatedi \
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
| --sharedst | --shareds | --shared | --share | --shar \
| --sha | --sh)
ac_prev=sharedstatedir ;;
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
| --sha=* | --sh=*)
sharedstatedir=$ac_optarg ;;
-site | --site | --sit)
ac_prev=site ;;
-site=* | --site=* | --sit=*)
site=$ac_optarg ;;
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
ac_prev=srcdir ;;
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
srcdir=$ac_optarg ;;
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
| --syscon | --sysco | --sysc | --sys | --sy)
ac_prev=sysconfdir ;;
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
sysconfdir=$ac_optarg ;;
-target | --target | --targe | --targ | --tar | --ta | --t)
ac_prev=target_alias ;;
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
target_alias=$ac_optarg ;;
-v | -verbose | --verbose | --verbos | --verbo | --verb)
verbose=yes ;;
-version | --version | --versio | --versi | --vers | -V)
ac_init_version=: ;;
-with-* | --with-*)
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
ac_package=`echo $ac_package| sed 's/-/_/g'`
case $ac_option in
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
*) ac_optarg=yes ;;
esac
eval "with_$ac_package='$ac_optarg'" ;;
-without-* | --without-*)
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
# Reject names that are not valid shell variable names.
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid package name: $ac_package" >&2
{ (exit 1); exit 1; }; }
ac_package=`echo $ac_package | sed 's/-/_/g'`
eval "with_$ac_package=no" ;;
--x)
# Obsolete; use --with-x.
with_x=yes ;;
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
| --x-incl | --x-inc | --x-in | --x-i)
ac_prev=x_includes ;;
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
x_includes=$ac_optarg ;;
-x-libraries | --x-libraries | --x-librarie | --x-librari \
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
ac_prev=x_libraries ;;
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
x_libraries=$ac_optarg ;;
-*) { echo "$as_me: error: unrecognized option: $ac_option
Try \`$0 --help' for more information." >&2
{ (exit 1); exit 1; }; }
;;
*=*)
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
# Reject names that are not valid shell variable names.
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
{ (exit 1); exit 1; }; }
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
eval "$ac_envvar='$ac_optarg'"
export $ac_envvar ;;
*)
# FIXME: should be removed in autoconf 3.0.
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
;;
esac
done
if test -n "$ac_prev"; then
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
{ echo "$as_me: error: missing argument to $ac_option" >&2
{ (exit 1); exit 1; }; }
fi
# Be sure to have absolute paths.
for ac_var in exec_prefix prefix
do
eval ac_val=$`echo $ac_var`
case $ac_val in
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
{ (exit 1); exit 1; }; };;
esac
done
# Be sure to have absolute paths.
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
localstatedir libdir includedir oldincludedir infodir mandir
do
eval ac_val=$`echo $ac_var`
case $ac_val in
[\\/$]* | ?:[\\/]* ) ;;
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
{ (exit 1); exit 1; }; };;
esac
done
# There might be people who depend on the old broken behavior: `$host'
# used to hold the argument of --host etc.
# FIXME: To remove some day.
build=$build_alias
host=$host_alias
target=$target_alias
# FIXME: To remove some day.
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
cross_compiling=maybe
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used." >&2
elif test "x$build_alias" != "x$host_alias"; then
cross_compiling=yes
fi
fi
ac_tool_prefix=
test -n "$host_alias" && ac_tool_prefix=$host_alias-
test "$silent" = yes && exec 6>/dev/null
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
# Try the directory containing this script, then its parent.
ac_confdir=`(dirname "$0") 2>/dev/null ||
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$0" : 'X\(//\)[^/]' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
echo X"$0" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
srcdir=$ac_confdir
if test ! -r $srcdir/$ac_unique_file; then
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
if test "$ac_srcdir_defaulted" = yes; then
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
{ (exit 1); exit 1; }; }
else
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
{ (exit 1); exit 1; }; }
fi
fi
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
{ (exit 1); exit 1; }; }
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
ac_env_build_alias_set=${build_alias+set}
ac_env_build_alias_value=$build_alias
ac_cv_env_build_alias_set=${build_alias+set}
ac_cv_env_build_alias_value=$build_alias
ac_env_host_alias_set=${host_alias+set}
ac_env_host_alias_value=$host_alias
ac_cv_env_host_alias_set=${host_alias+set}
ac_cv_env_host_alias_value=$host_alias
ac_env_target_alias_set=${target_alias+set}
ac_env_target_alias_value=$target_alias
ac_cv_env_target_alias_set=${target_alias+set}
ac_cv_env_target_alias_value=$target_alias
ac_env_CC_set=${CC+set}
ac_env_CC_value=$CC
ac_cv_env_CC_set=${CC+set}
ac_cv_env_CC_value=$CC
ac_env_CFLAGS_set=${CFLAGS+set}
ac_env_CFLAGS_value=$CFLAGS
ac_cv_env_CFLAGS_set=${CFLAGS+set}
ac_cv_env_CFLAGS_value=$CFLAGS
ac_env_LDFLAGS_set=${LDFLAGS+set}
ac_env_LDFLAGS_value=$LDFLAGS
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
ac_cv_env_LDFLAGS_value=$LDFLAGS
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_env_CPPFLAGS_value=$CPPFLAGS
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
ac_env_CPP_set=${CPP+set}
ac_env_CPP_value=$CPP
ac_cv_env_CPP_set=${CPP+set}
ac_cv_env_CPP_value=$CPP
ac_env_CXX_set=${CXX+set}
ac_env_CXX_value=$CXX
ac_cv_env_CXX_set=${CXX+set}
ac_cv_env_CXX_value=$CXX
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_env_CXXFLAGS_value=$CXXFLAGS
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
ac_env_CXXCPP_set=${CXXCPP+set}
ac_env_CXXCPP_value=$CXXCPP
ac_cv_env_CXXCPP_set=${CXXCPP+set}
ac_cv_env_CXXCPP_value=$CXXCPP
ac_env_CCAS_set=${CCAS+set}
ac_env_CCAS_value=$CCAS
ac_cv_env_CCAS_set=${CCAS+set}
ac_cv_env_CCAS_value=$CCAS
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
ac_env_CCASFLAGS_value=$CCASFLAGS
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
ac_env_F77_set=${F77+set}
ac_env_F77_value=$F77
ac_cv_env_F77_set=${F77+set}
ac_cv_env_F77_value=$F77
ac_env_FFLAGS_set=${FFLAGS+set}
ac_env_FFLAGS_value=$FFLAGS
ac_cv_env_FFLAGS_set=${FFLAGS+set}
ac_cv_env_FFLAGS_value=$FFLAGS
ac_env_FC_set=${FC+set}
ac_env_FC_value=$FC
ac_cv_env_FC_set=${FC+set}
ac_cv_env_FC_value=$FC
ac_env_FCFLAGS_set=${FCFLAGS+set}
ac_env_FCFLAGS_value=$FCFLAGS
ac_cv_env_FCFLAGS_set=${FCFLAGS+set}
ac_cv_env_FCFLAGS_value=$FCFLAGS
ac_env_OBJC_set=${OBJC+set}
ac_env_OBJC_value=$OBJC
ac_cv_env_OBJC_set=${OBJC+set}
ac_cv_env_OBJC_value=$OBJC
ac_env_OBJCFLAGS_set=${OBJCFLAGS+set}
ac_env_OBJCFLAGS_value=$OBJCFLAGS
ac_cv_env_OBJCFLAGS_set=${OBJCFLAGS+set}
ac_cv_env_OBJCFLAGS_value=$OBJCFLAGS
#
# Report the --help message.
#
if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures Open MPI 1.2.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print \`checking...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for \`--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or \`..']
_ACEOF
cat <<_ACEOF
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, \`make install' will install all the files in
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
for instance \`--prefix=\$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--infodir=DIR info documentation [PREFIX/info]
--mandir=DIR man documentation [PREFIX/man]
_ACEOF
cat <<\_ACEOF
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
_ACEOF
fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of Open MPI 1.2.2:";;
esac
cat <<\_ACEOF
Optional Features:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-dist guarantee that that the "dist" make target will be
functional, although may not guarantee that any
other make target will be functional.
--enable-coverage enable code coverage files to be generated
--enable-mem-debug enable memory debugging (debugging only) (default:
disabled)
--enable-mem-profile enable memory profiling (debugging only) (default:
disabled)
--enable-picky enable developer-level compiler pickyness when
building Open MPI (default: disabled)
--enable-debug enable developer-level debugging code (not for
general MPI users!) (default: disabled)
--disable-debug-symbols Disable adding compiler flags to enable debugging
symbols if --enable-debug is specified. For
non-debugging builds, this flag has no effect.
--enable-mpi-f77 enable f77 MPI bindings (default: enabled)
--enable-mpi-f90 enable f90 MPI bindings (default: enabled)
--enable-mpi-profile enable MPI profiling (default: enabled)
--enable-mpi-cxx enable C++ MPI bindings (default: enabled)
--enable-mpi-cxx-seek enable support for MPI::SEEK_SET, MPI::SEEK_END, and
MPI::SEEK_POS in C++ bindings (default: enabled)
--enable-weak-symbols use weak symbols, if available (default: enabled)
--enable-pretty-print-stacktrace
Pretty print stacktrace on process signal
--enable-deprecated-executable-names
make sym links to deprecated OMPI executables (e.g.,
hcc, hcp, hf77, wipe) (default: disabled)
--enable-peruse Support PERUSE interface (default: disabled)
--enable-pty-support Enable/disable PTY support for STDIO forwarding.
default: enabled
--enable-dlopen Whether build should attempt to use dlopen (or
similar) to dynamically load components. Disabling
dlopen implies --disable-mca-dso. (default: enabled)
--enable-heterogeneous Enable features required for heterogeneous platform
support (default: enabled)
--enable-trace Enable internal tracing of OMPI/ORTE/OPAL calls --
used only for developer debugging, not tracing of
MPI applications (default: disabled)
--enable-binaries Build and install binaries required for Open MPI,
such as the wrapper compilers. Useful for multi-lib
installations. (default: enabled)
--disable-ipv6 Disable IPv6 support (default: enabled, but only if
the underlying system supports it)
--enable-orterun-prefix-by-default
Make "orterun ..." behave exactly the same as
"orterun --prefix \$prefix" (where \$prefix is the
value given to --prefix in configure)
--enable-mpirun-prefix-by-default
Synonym for --enable-orterun-prefix-by-default
--enable-shared[=PKGS]
build shared libraries [default=yes]
--enable-static[=PKGS]
build static libraries [default=no]
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--enable-cxx-exceptions enable support for C++ exceptions
--enable-smp-locks enable smp locks in atomic ops. Do not disable if
code will ever run in SMP or multi-threaded
environment. (default: enabled)
--enable-mpi-threads Enable threads for MPI applications (default:
disabled)
--enable-progress-threads
Enable threads asynchronous communication progress
(default: disabled)
--enable-mca-no-build=LIST
Comma-separated list of - pairs
that will not be built. Example:
"--enable-mca-no-build=maffinity-libnuma,btl-portals"
will disable building both the "libnuma" maffinity
and "portals" btl components.
--enable-mca-dso=LIST Comma-separated list of types and/or type-component
pairs that will be built as run-time loadable
components (as opposed to statically linked in), if
supported on this platform. The default is to build
all components as DSOs.
--enable-mca-static=LIST
Comma-separated list of types and/or type-component
pairs that will be built statically linked into the
library. The default (if DSOs are supported) is to
build all components as DSOs. Enabling a component
as static disables it building as a DSO.
--enable-mca-direct=LIST
Comma-separated list of type-component pairs that
will be hard coded as the one component to use for a
given component type, saving the (small) overhead of
the component architecture. LIST must not be empty
and implies given component pairs are build as
static components.
--enable-ptmalloc2-opt-sbrk
Only trigger callbacks when sbrk is used for small
allocations, rather than every call to malloc/free.
(default: enabled)
--disable-io-romio Disable the ROMIO MPI-IO component
--enable-fast-install[=PKGS]
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-platform=FILE Load options for build from FILE. Options on the
command line not in FILE are used. Options on the
command line and in FILE are replaced by what is in
FILE.
--with-mpi-f90-size=SIZE
specify the types of functions in the Fortran 90 MPI
module, where size is one of: trivial (MPI-2
F90-specific functions only), small (trivial + all
MPI functions without choice buffers), medium (small
+ all MPI functions with one choice buffer), large
(medium + all MPI functions with 2 choice buffers,
but only when both buffers are the same type)
--with-mpi-param-check(=VALUE)
behavior of MPI function parameter checking. Valid
values are: always, never, runtime. If
--with-mpi-param-check is specified with no VALUE
argument, it is equivalent to a VALUE of "always";
--without-mpi-param-check is equivalent to "never"
(default: runtime).
--with-devel-headers normal MPI users/applications do not need this
(mpi.h and mpif.h are ALWAYS installed). Developer
headers are only necessary for MCA module authors
(default: disabled).
--with-f90-max-array-dim=
The maximum array dimension supported in the F90 MPI
bindings (default: $OMPI_FORTRAN_MAX_ARRAY_RANK).
--with-cross=FILE Specify configure values that can not be determined
in a cross-compilation environment. See the Open MPI
FAQ.
--with-wrapper-cflags Extra flags to add to CFLAGS when using mpicc
--with-wrapper-cxxflags Extra flags to add to CXXFLAGS when using
mpiCC/mpic++
--with-wrapper-fflags Extra flags to add to FFLAGS when using mpif77
--with-wrapper-fcflags Extra flags to add to FCFLAGS when using mpif90
--with-wrapper-ldflags Extra flags to add to LDFLAGS when using wrapper
compilers
--with-wrapper-libs Extra flags to add to LIBS when using wrapper
compilers
--with-exflags Specify flags necessary to enable C++ exceptions
--with-threads Set thread type (solaris / posix)
--with-cs-fs Destination FS is case sensitive (default: set to
value of the build FS's case sensitivity)
--with-libnuma Directory where the libnuma software is installed
--with-memory-manager=TYPE
Use TYPE for intercepting memory management calls to
control memory pinning.
--with-timer=TYPE Build high resolution timer component TYPE
--with-bproc Directory where the BProc software is installed
--with-slurm Build SLURM scheduler component (default: yes)
--with-tm Directory where the tm software is installed
--with-xgrid Build support for the Apple Xgrid batch system
(default: yes)
--with-loadleveler Directory where the loadleveler software is
installed
--with-portals=DIR Specify the installation directory of PORTALS
--with-portals-libs=LIBS
Libraries to link with for portals
--with-gm(=DIR) Build GM (Myrinet) support, searching for libraries
in DIR
--with-gm-libdir=DIR Search for GM (Myrinet) libraries in DIR
--with-mvapi(=DIR) Build MVAPI (InfiniBand) support, searching for
libraries in DIR
--with-mvapi-libdir=DIR Search for MVAPI (InfiniBand) libraries in DIR
--with-mx(=DIR) Build MX (Myrinet Express) support, searching for
libraries in DIR
--with-mx-libdir=DIR Search for MX (Myrinet Express) libraries in DIR
--with-openib(=DIR) Build OpenFabrics support, searching for libraries
in DIR
--with-openib-libdir=DIR
Search for OpenFabrics libraries in DIR
--with-portals(=DIR) Build Portals support, searching for installation in
DIR
--with-portals-config configuration to use for Portals support. One of
"utcp", "xt3". (default: utcp)
--with-portals-libs=LIBS
Libraries to link with for portals
--with-udapl(=DIR) Build uDAPL support, searching for libraries in DIR
--with-udapl-libdir=DIR Search for uDAPL libraries in DIR
--with-io-romio-flags=FLAGS
Pass FLAGS to the ROMIO distribution configuration
script
--with-psm(=DIR) Build PSM (QLogic InfiniPath PSM) support, searching
for libraries in DIR
--with-psm-libdir=DIR Search for PSM (QLogic InfiniPath PSM) libraries in
DIR
--with-event-rtsig compile with support for real time signals
(experimental)
--with-pic try to use only PIC/non-PIC objects [default=use
both]
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L if you have libraries in a
nonstandard directory
CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have
headers in a nonstandard directory
CPP C preprocessor
CXX C++ compiler command
CXXFLAGS C++ compiler flags
CXXCPP C++ preprocessor
CCAS assembler compiler command (defaults to CC)
CCASFLAGS assembler compiler flags (defaults to CFLAGS)
F77 Fortran 77 compiler command
FFLAGS Fortran 77 compiler flags
FC Fortran compiler command
FCFLAGS Fortran compiler flags
OBJC Objective C compiler command
OBJCFLAGS Objective C compiler flags
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to .
_ACEOF
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
ac_popdir=`pwd`
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
test -d $ac_dir || continue
ac_builddir=.
if test "$ac_dir" != .; then
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
# A "../" for each directory in $ac_dir_suffix.
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
else
ac_dir_suffix= ac_top_builddir=
fi
case $srcdir in
.) # No --srcdir option. We are building in place.
ac_srcdir=.
if test -z "$ac_top_builddir"; then
ac_top_srcdir=.
else
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
fi ;;
[\\/]* | ?:[\\/]* ) # Absolute path.
ac_srcdir=$srcdir$ac_dir_suffix;
ac_top_srcdir=$srcdir ;;
*) # Relative path.
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
ac_top_srcdir=$ac_top_builddir$srcdir ;;
esac
# Do not use `cd foo && pwd` to compute absolute paths, because
# the directories may not exist.
case `pwd` in
.) ac_abs_builddir="$ac_dir";;
*)
case "$ac_dir" in
.) ac_abs_builddir=`pwd`;;
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
*) ac_abs_builddir=`pwd`/"$ac_dir";;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_builddir=${ac_top_builddir}.;;
*)
case ${ac_top_builddir}. in
.) ac_abs_top_builddir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_srcdir=$ac_srcdir;;
*)
case $ac_srcdir in
.) ac_abs_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
esac;;
esac
case $ac_abs_builddir in
.) ac_abs_top_srcdir=$ac_top_srcdir;;
*)
case $ac_top_srcdir in
.) ac_abs_top_srcdir=$ac_abs_builddir;;
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
esac;;
esac
cd $ac_dir
# Check for guested configure; otherwise get Cygnus style configure.
if test -f $ac_srcdir/configure.gnu; then
echo
$SHELL $ac_srcdir/configure.gnu --help=recursive
elif test -f $ac_srcdir/configure; then
echo
$SHELL $ac_srcdir/configure --help=recursive
elif test -f $ac_srcdir/configure.ac ||
test -f $ac_srcdir/configure.in; then
echo
$ac_configure --help
else
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fi
cd $ac_popdir
done
fi
test -n "$ac_init_help" && exit 0
if $ac_init_version; then
cat <<\_ACEOF
Open MPI configure 1.2.2
generated by GNU Autoconf 2.59
Copyright (C) 2003 Free Software Foundation, Inc.
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
_ACEOF
exit 0
fi
exec 5>config.log
cat >&5 <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Open MPI $as_me 1.2.2, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ $0 $@
_ACEOF
{
cat <<_ASUNAME
## --------- ##
## Platform. ##
## --------- ##
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
_ASUNAME
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
echo "PATH: $as_dir"
done
} >&5
cat >&5 <<_ACEOF
## ----------- ##
## Core tests. ##
## ----------- ##
_ACEOF
# Keep a trace of the command line.
# Strip out --no-create and --no-recursion so they do not pile up.
# Strip out --silent because we don't want to record it for future runs.
# Also quote any args containing shell meta-characters.
# Make two passes to allow for proper duplicate-argument suppression.
ac_configure_args=
ac_configure_args0=
ac_configure_args1=
ac_sep=
ac_must_keep_next=false
for ac_pass in 1 2
do
for ac_arg
do
case $ac_arg in
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
| -silent | --silent | --silen | --sile | --sil)
continue ;;
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
esac
case $ac_pass in
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2)
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
if test $ac_must_keep_next = true; then
ac_must_keep_next=false # Got value, back to normal.
else
case $ac_arg in
*=* | --config-cache | -C | -disable-* | --disable-* \
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
| -with-* | --with-* | -without-* | --without-* | --x)
case "$ac_configure_args0 " in
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
esac
;;
-* ) ac_must_keep_next=true ;;
esac
fi
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
# Get rid of the leading space.
ac_sep=" "
;;
esac
done
done
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
# When interrupted or exit'd, cleanup temporary files, and complete
# config.log. We remove comments because anyway the quotes in there
# would cause problems or look ugly.
# WARNING: Be sure not to use single quotes in there, as some shells,
# such as our DU 5.0 friend, will then `close' the trap.
trap 'exit_status=$?
# Save into config.log some information that might help in debugging.
{
echo
cat <<\_ASBOX
## ---------------- ##
## Cache variables. ##
## ---------------- ##
_ASBOX
echo
# The following way of writing the cache mishandles newlines in values,
{
(set) 2>&1 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
*ac_space=\ *)
sed -n \
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
;;
*)
sed -n \
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
;;
esac;
}
echo
cat <<\_ASBOX
## ----------------- ##
## Output variables. ##
## ----------------- ##
_ASBOX
echo
for ac_var in $ac_subst_vars
do
eval ac_val=$`echo $ac_var`
echo "$ac_var='"'"'$ac_val'"'"'"
done | sort
echo
if test -n "$ac_subst_files"; then
cat <<\_ASBOX
## ------------- ##
## Output files. ##
## ------------- ##
_ASBOX
echo
for ac_var in $ac_subst_files
do
eval ac_val=$`echo $ac_var`
echo "$ac_var='"'"'$ac_val'"'"'"
done | sort
echo
fi
if test -s confdefs.h; then
cat <<\_ASBOX
## ----------- ##
## confdefs.h. ##
## ----------- ##
_ASBOX
echo
sed "/^$/d" confdefs.h | sort
echo
fi
test "$ac_signal" != 0 &&
echo "$as_me: caught signal $ac_signal"
echo "$as_me: exit $exit_status"
} >&5
rm -f core *.core &&
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
exit $exit_status
' 0
for ac_signal in 1 2 13 15; do
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
done
ac_signal=0
# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo >confdefs.h
# Predefined preprocessor variables.
cat >>confdefs.h <<_ACEOF
#define PACKAGE_NAME "$PACKAGE_NAME"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_VERSION "$PACKAGE_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_STRING "$PACKAGE_STRING"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
_ACEOF
# Let the site file select an alternate cache file if it wants to.
# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
if test "x$prefix" != xNONE; then
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
else
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
fi
fi
for ac_site_file in $CONFIG_SITE; do
if test -r "$ac_site_file"; then
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
echo "$as_me: loading site script $ac_site_file" >&6;}
sed 's/^/| /' "$ac_site_file" >&5
. "$ac_site_file"
fi
done
if test -r "$cache_file"; then
# Some versions of bash will fail to source /dev/null (special
# files actually), so we avoid doing that.
if test -f "$cache_file"; then
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
echo "$as_me: loading cache $cache_file" >&6;}
case $cache_file in
[\\/]* | ?:[\\/]* ) . $cache_file;;
*) . ./$cache_file;;
esac
fi
else
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
echo "$as_me: creating cache $cache_file" >&6;}
>$cache_file
fi
# Check that the precious variables saved in the cache have kept the same
# value.
ac_cache_corrupted=false
for ac_var in `(set) 2>&1 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
eval ac_old_set=\$ac_cv_env_${ac_var}_set
eval ac_new_set=\$ac_env_${ac_var}_set
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
eval ac_new_val="\$ac_env_${ac_var}_value"
case $ac_old_set,$ac_new_set in
set,)
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ac_cache_corrupted=: ;;
,set)
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ac_cache_corrupted=: ;;
,);;
*)
if test "x$ac_old_val" != "x$ac_new_val"; then
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
echo "$as_me: former value: $ac_old_val" >&2;}
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
echo "$as_me: current value: $ac_new_val" >&2;}
ac_cache_corrupted=:
fi;;
esac
# Pass precious variables to config.status.
if test "$ac_new_set" = set; then
case $ac_new_val in
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
*) ac_arg=$ac_var=$ac_new_val ;;
esac
case " $ac_configure_args " in
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
esac
fi
done
if $ac_cache_corrupted; then
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
{ (exit 1); exit 1; }; }
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac_aux_dir=
for ac_dir in config $srcdir/config; do
if test -f $ac_dir/install-sh; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install-sh -c"
break
elif test -f $ac_dir/install.sh; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/install.sh -c"
break
elif test -f $ac_dir/shtool; then
ac_aux_dir=$ac_dir
ac_install_sh="$ac_aux_dir/shtool install -c"
break
fi
done
if test -z "$ac_aux_dir"; then
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
{ (exit 1); exit 1; }; }
fi
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
case config in
[\\/]* | ?:[\\/]* ) ac_macro_dir=config ;;
*) ac_macro_dir=$srcdir/config ;;
esac
if test -d "$ac_macro_dir"; then :
else
{ { echo "$as_me:$LINENO: error: cannot find macro directory \`config'" >&5
echo "$as_me: error: cannot find macro directory \`config'" >&2;}
{ (exit 1); exit 1; }; }
fi
# Get our platform support file. This has to be done very, very early
# because it twiddles random bits of autoconf
# Check whether --with-platform or --without-platform was given.
if test "${with_platform+set}" = set; then
withval="$with_platform"
fi;
if test "$with_platform" = "yes" ; then
{ { echo "$as_me:$LINENO: error: --with-platform argument must include FILE option" >&5
echo "$as_me: error: --with-platform argument must include FILE option" >&2;}
{ (exit 1); exit 1; }; }
elif test "$with_platform" = "no" ; then
{ { echo "$as_me:$LINENO: error: --without-platform is not a valid argument" >&5
echo "$as_me: error: --without-platform is not a valid argument" >&2;}
{ (exit 1); exit 1; }; }
elif test "$with_platform" != "" ; then
# if no path part, check in contrib/platform
if test "`basename $with_platform`" = "$with_platform" ; then
if test -r "${srcdir}/contrib/platform/$with_platform" ; then
with_platform="${srcdir}/contrib/platform/$with_platform"
fi
fi
# make sure file exists
if test ! -r "$with_platform" ; then
{ { echo "$as_me:$LINENO: error: platform file $with_platform not found" >&5
echo "$as_me: error: platform file $with_platform not found" >&2;}
{ (exit 1); exit 1; }; }
fi
# eval into environment
# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
echo "configure:1785: Loading environment file $with_platform, with contents below" >&5
else
echo Loading environment file $with_platform, with contents below >&5
fi
# 1 is the filename
if test -n "$with_platform" -a -f "$with_platform"; then
cat $with_platform >&5
fi
. "$with_platform"
# see if they left us a name
if test "$OMPI_PLATFORM_LOADED" != "" ; then
platform_loaded="$OMPI_PLATFORM_LOADED"
else
platform_loaded="$with_platform"
fi
echo "Loaded platform arguments for $platform_loaded"
# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
echo "configure:1807: Loaded platform arguments for $platform_loaded" >&5
else
echo Loaded platform arguments for $platform_loaded >&5
fi
fi
#
# Init automake - if we are using AC.260 or higher, require AM 1.10 or higher
#
# XXX - FIX ME - when we drop support for 2.58 and 2.59,
# remove this test and require 1.10 or higher all the time.
am__api_version="1.9"
# Find a good install program. We prefer a C program (faster),
# so one script is as good as another. But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
# Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
./ | .// | /cC/* | \
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
/usr/ucb/* ) ;;
*)
# OSF1 and SCO ODT 3.0 have their own names for install.
# Don't use installbsd from OSF since it installs stuff as root
# by default.
for ac_prog in ginstall scoinst install; do
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
if test $ac_prog = install &&
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# AIX install. It has an incompatible calling convention.
:
elif test $ac_prog = install &&
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
# program-specific install script used by HP pwplus--don't use.
:
else
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
break 3
fi
fi
done
done
;;
esac
done
fi
if test "${ac_cv_path_install+set}" = set; then
INSTALL=$ac_cv_path_install
else
# As a last resort, use the slow shell script. We don't cache a
# path for INSTALL within a source directory, because that will
# break other packages using the cache if that directory is
# removed, or if the path is relative.
INSTALL=$ac_install_sh
fi
fi
echo "$as_me:$LINENO: result: $INSTALL" >&5
echo "${ECHO_T}$INSTALL" >&6
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
# Just in case
sleep 1
echo timestamp > conftest.file
# Do `set' in a subshell so we don't clobber the current shell's
# arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
if test "$*" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftest.file`
fi
rm -f conftest.file
if test "$*" != "X $srcdir/configure conftest.file" \
&& test "$*" != "X conftest.file $srcdir/configure"; then
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
alias in your environment" >&5
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
alias in your environment" >&2;}
{ (exit 1); exit 1; }; }
fi
test "$2" = conftest.file
)
then
# Ok.
:
else
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Check your system clock" >&5
echo "$as_me: error: newly created file is older than distributed files!
Check your system clock" >&2;}
{ (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
test "$program_prefix" != NONE &&
program_transform_name="s,^,$program_prefix,;$program_transform_name"
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
# Double any \ or $. echo might interpret backslashes.
# By default was `s,x,x', remove it if useless.
cat <<\_ACEOF >conftest.sed
s/[\\$]/&&/g;s/;s,x,x,$//
_ACEOF
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
rm conftest.sed
# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
am_missing_run="$MISSING --run "
else
am_missing_run=
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
# We used to keeping the `.' as first argument, in order to
# allow $(mkdir_p) to be used without argument. As in
# $(mkdir_p) $(somedir)
# where $(somedir) is conditionally defined. However this is wrong
# for two reasons:
# 1. if the package is installed by a user who cannot write `.'
# make install will fail,
# 2. the above comment should most certainly read
# $(mkdir_p) $(DESTDIR)$(somedir)
# so it does not work when $(somedir) is undefined and
# $(DESTDIR) is not.
# To support the latter case, we have to write
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
# so the `.' trick is pointless.
mkdir_p='mkdir -p --'
else
# On NextStep and OpenStep, the `mkdir' command does not
# recognize any option. It will interpret all options as
# directories to create, and then abort because `.' already
# exists.
for d in ./-p ./--version;
do
test -d $d && rmdir $d
done
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
if test -f "$ac_aux_dir/mkinstalldirs"; then
mkdir_p='$(mkinstalldirs)'
else
mkdir_p='$(install_sh) -d'
fi
fi
for ac_prog in gawk mawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_AWK+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$AWK"; then
ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_AWK="$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
echo "$as_me:$LINENO: result: $AWK" >&5
echo "${ECHO_T}$AWK" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$AWK" && break
done
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.make <<\_ACEOF
all:
@echo 'ac_maketemp="$(MAKE)"'
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
eval ac_cv_prog_make_${ac_make}_set=yes
else
eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftest.make
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
SET_MAKE=
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
SET_MAKE="MAKE=${MAKE-make}"
fi
rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
am__leading_dot=.
else
am__leading_dot=_
fi
rmdir .tst 2>/dev/null
# test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" &&
test -f $srcdir/config.status; then
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
{ (exit 1); exit 1; }; }
fi
# test whether we have cygpath
if test -z "$CYGPATH_W"; then
if (cygpath --version) >/dev/null 2>/dev/null; then
CYGPATH_W='cygpath -w'
else
CYGPATH_W=echo
fi
fi
# Define the identity of the package.
PACKAGE='openmpi'
VERSION='1.2.2'
# Some tools Automake needs.
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
install_sh=${install_sh-"$am_aux_dir/install-sh"}
# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'. However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_STRIP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$STRIP"; then
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
echo "$as_me:$LINENO: result: $STRIP" >&5
echo "${ECHO_T}$STRIP" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
if test -z "$ac_cv_prog_STRIP"; then
ac_ct_STRIP=$STRIP
# Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_STRIP"; then
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_STRIP="strip"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
echo "${ECHO_T}$ac_ct_STRIP" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
STRIP=$ac_ct_STRIP
else
STRIP="$ac_cv_prog_STRIP"
fi
fi
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
# We need awk for the "check" target. The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.
AMTAR=${AMTAR-"${am_missing_run}tar"}
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
# Make configure depend on the VERSION file, since it's used in AC_INIT
CONFIGURE_DEPENDENCIES='$(top_srcdir)/VERSION'
#
# Start it up
#
# Some helper script functions. Unfortunately, we cannot use kinds
# of arugments here because of the m4 substitution. So we have to set
# special variable names before invoking the function. :-\
ompi_show_title() {
cat <&5
echo $ECHO_N "checking for SVN version... $ECHO_C" >&6
if test -d "$srcdir/.svn" ; then
OMPI_SVN_R=r`svnversion "$srcdir"`
# make sure svnversion worked
if test $? -ne 0 ; then
OMPI_SVN_R=svn`date '+%m%d%Y'`
fi
svnversion_result="$OMPI_SVN_R"
else
OMPI_SVN_R=svn`date '+%m%d%Y'`
fi
echo "$as_me:$LINENO: result: done" >&5
echo "${ECHO_T}done" >&6
fi
OMPI_VERSION="${OMPI_VERSION}${OMPI_SVN_R}"
fi
fi
echo "$as_me:$LINENO: checking Open MPI version" >&5
echo $ECHO_N "checking Open MPI version... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $OMPI_VERSION" >&5
echo "${ECHO_T}$OMPI_VERSION" >&6
echo "$as_me:$LINENO: checking Open MPI Subversion repository version" >&5
echo $ECHO_N "checking Open MPI Subversion repository version... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $OMPI_SVN_R" >&5
echo "${ECHO_T}$OMPI_SVN_R" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_MAJOR_VERSION $OMPI_MAJOR_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_MINOR_VERSION $OMPI_MINOR_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_RELEASE_VERSION $OMPI_RELEASE_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_GREEK_VERSION "$OMPI_GREEK_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_VERSION "$OMPI_RELEASE_VERSION"
_ACEOF
ac_config_files="$ac_config_files ompi/include/ompi/version.h"
: ${ompi_ver_need_svn=1}
: ${srcdir=.}
: ${svnversion_result=-1}
if test -f "$srcdir/VERSION"; then
eval "`sed -n \"\
t clear
: clear
s/^major/ORTE_MAJOR_VERSION/
s/^minor/ORTE_MINOR_VERSION/
s/^release/ORTE_RELEASE_VERSION/
s/^greek/ORTE_GREEK_VERSION/
s/^want_svn/ORTE_WANT_SVN/
s/^svn_r/ORTE_SVN_R/
t print
b
: print
p\" < \"\$srcdir/VERSION\"`"
# Only print release version if it isn't 0
if test $ORTE_RELEASE_VERSION -ne 0 ; then
ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION.$ORTE_RELEASE_VERSION"
else
ORTE_VERSION="$ORTE_MAJOR_VERSION.$ORTE_MINOR_VERSION"
fi
ORTE_VERSION="${ORTE_VERSION}${ORTE_GREEK_VERSION}"
ORTE_BASE_VERSION=$ORTE_VERSION
if test $ORTE_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then
if test "$svnversion_result" != "-1" ; then
ORTE_SVN_R=$svnversion_result
fi
if test "$ORTE_SVN_R" = "-1" ; then
echo "$as_me:$LINENO: checking for SVN version" >&5
echo $ECHO_N "checking for SVN version... $ECHO_C" >&6
if test -d "$srcdir/.svn" ; then
ORTE_SVN_R=r`svnversion "$srcdir"`
# make sure svnversion worked
if test $? -ne 0 ; then
ORTE_SVN_R=svn`date '+%m%d%Y'`
fi
svnversion_result="$ORTE_SVN_R"
else
ORTE_SVN_R=svn`date '+%m%d%Y'`
fi
echo "$as_me:$LINENO: result: done" >&5
echo "${ECHO_T}done" >&6
fi
ORTE_VERSION="${ORTE_VERSION}${ORTE_SVN_R}"
fi
fi
echo "$as_me:$LINENO: checking Open Run-Time Environment version" >&5
echo $ECHO_N "checking Open Run-Time Environment version... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $ORTE_VERSION" >&5
echo "${ECHO_T}$ORTE_VERSION" >&6
echo "$as_me:$LINENO: checking Open Run-Time Environment Subversion repository version" >&5
echo $ECHO_N "checking Open Run-Time Environment Subversion repository version... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $ORTE_SVN_R" >&5
echo "${ECHO_T}$ORTE_SVN_R" >&6
cat >>confdefs.h <<_ACEOF
#define ORTE_MAJOR_VERSION $ORTE_MAJOR_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define ORTE_MINOR_VERSION $ORTE_MINOR_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define ORTE_RELEASE_VERSION $ORTE_RELEASE_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define ORTE_GREEK_VERSION "$ORTE_GREEK_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define ORTE_VERSION "$ORTE_RELEASE_VERSION"
_ACEOF
ac_config_files="$ac_config_files orte/include/orte/version.h"
: ${ompi_ver_need_svn=1}
: ${srcdir=.}
: ${svnversion_result=-1}
if test -f "$srcdir/VERSION"; then
eval "`sed -n \"\
t clear
: clear
s/^major/OPAL_MAJOR_VERSION/
s/^minor/OPAL_MINOR_VERSION/
s/^release/OPAL_RELEASE_VERSION/
s/^greek/OPAL_GREEK_VERSION/
s/^want_svn/OPAL_WANT_SVN/
s/^svn_r/OPAL_SVN_R/
t print
b
: print
p\" < \"\$srcdir/VERSION\"`"
# Only print release version if it isn't 0
if test $OPAL_RELEASE_VERSION -ne 0 ; then
OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION.$OPAL_RELEASE_VERSION"
else
OPAL_VERSION="$OPAL_MAJOR_VERSION.$OPAL_MINOR_VERSION"
fi
OPAL_VERSION="${OPAL_VERSION}${OPAL_GREEK_VERSION}"
OPAL_BASE_VERSION=$OPAL_VERSION
if test $OPAL_WANT_SVN -eq 1 && test $ompi_ver_need_svn -eq 1 ; then
if test "$svnversion_result" != "-1" ; then
OPAL_SVN_R=$svnversion_result
fi
if test "$OPAL_SVN_R" = "-1" ; then
echo "$as_me:$LINENO: checking for SVN version" >&5
echo $ECHO_N "checking for SVN version... $ECHO_C" >&6
if test -d "$srcdir/.svn" ; then
OPAL_SVN_R=r`svnversion "$srcdir"`
# make sure svnversion worked
if test $? -ne 0 ; then
OPAL_SVN_R=svn`date '+%m%d%Y'`
fi
svnversion_result="$OPAL_SVN_R"
else
OPAL_SVN_R=svn`date '+%m%d%Y'`
fi
echo "$as_me:$LINENO: result: done" >&5
echo "${ECHO_T}done" >&6
fi
OPAL_VERSION="${OPAL_VERSION}${OPAL_SVN_R}"
fi
fi
echo "$as_me:$LINENO: checking Open Portable Access Layer version" >&5
echo $ECHO_N "checking Open Portable Access Layer version... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $OPAL_VERSION" >&5
echo "${ECHO_T}$OPAL_VERSION" >&6
echo "$as_me:$LINENO: checking Open Portable Access Layer Subversion repository version" >&5
echo $ECHO_N "checking Open Portable Access Layer Subversion repository version... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $OPAL_SVN_R" >&5
echo "${ECHO_T}$OPAL_SVN_R" >&6
cat >>confdefs.h <<_ACEOF
#define OPAL_MAJOR_VERSION $OPAL_MAJOR_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_MINOR_VERSION $OPAL_MINOR_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_RELEASE_VERSION $OPAL_RELEASE_VERSION
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_GREEK_VERSION "$OPAL_GREEK_VERSION"
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OPAL_VERSION "$OPAL_RELEASE_VERSION"
_ACEOF
ac_config_files="$ac_config_files opal/include/opal/version.h"
# override/fixup the version numbers set by AC_INIT, since on
# developer builds, there's no good way to know what the version is
# before running configure :(. We only use the base version number
# (ie, no svn r numbers) for the version set in AC_INIT. This will
# always match reality because we add the VERSION file (the only way
# to change the major.minor.release{greek}) into the configure
# dependencies. PACKAGE_VERSION the AC_DEFINE doesn't change once set
# the first time -- AC_INIT's input (so it doesn't have an r number in
# it). PACKAGE_VERSION the AC_SUBST can be rewritten along the way,
# and we'd like it to have the r number in it so that it shows up in
# the tarball name, so it is set to the full version here.
PACKAGE_VERSION="$OPAL_VERSION"
PACKAGE_STRING="${PACKAGE_NAME} ${PACKAGE_VERSION}"
VERSION="${PACKAGE_VERSION}"
ompi_show_subtitle "Initialization, setup"
OMPI_TOP_BUILDDIR="`pwd`"
cd "$srcdir"
OMPI_TOP_SRCDIR="`pwd`"
cd "$OMPI_TOP_BUILDDIR"
{ echo "$as_me:$LINENO: builddir: $OMPI_TOP_BUILDDIR" >&5
echo "$as_me: builddir: $OMPI_TOP_BUILDDIR" >&6;}
{ echo "$as_me:$LINENO: srcdir: $OMPI_TOP_SRCDIR" >&5
echo "$as_me: srcdir: $OMPI_TOP_SRCDIR" >&6;}
if test "$OMPI_TOP_BUILDDIR" != "$OMPI_TOP_SRCDIR"; then
{ echo "$as_me:$LINENO: Detected VPATH build" >&5
echo "$as_me: Detected VPATH build" >&6;}
fi
# Setup the top of the opal/include/opal_config.h file
# Other basic setup stuff (shared with components)
# Make sure we can run config.sub.
$ac_config_sub sun4 >/dev/null 2>&1 ||
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
{ (exit 1); exit 1; }; }
echo "$as_me:$LINENO: checking build system type" >&5
echo $ECHO_N "checking build system type... $ECHO_C" >&6
if test "${ac_cv_build+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_build_alias=$build_alias
test -z "$ac_cv_build_alias" &&
ac_cv_build_alias=`$ac_config_guess`
test -z "$ac_cv_build_alias" &&
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
{ (exit 1); exit 1; }; }
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
{ (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
echo "${ECHO_T}$ac_cv_build" >&6
build=$ac_cv_build
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
#
# Save some stats about this build
#
OMPI_CONFIGURE_USER="`whoami`"
OMPI_CONFIGURE_HOST="`hostname | head -n 1`"
OMPI_CONFIGURE_DATE="`date`"
#
# Make automake clean emacs ~ files for "make clean"
#
CLEANFILES="*~ .\#*"
#
# This is useful later (ompi_info, and therefore mpiexec)
#
echo "$as_me:$LINENO: checking host system type" >&5
echo $ECHO_N "checking host system type... $ECHO_C" >&6
if test "${ac_cv_host+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_host_alias=$host_alias
test -z "$ac_cv_host_alias" &&
ac_cv_host_alias=$ac_cv_build_alias
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
{ (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
echo "${ECHO_T}$ac_cv_host" >&6
host=$ac_cv_host
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
cat >>confdefs.h <<_ACEOF
#define OMPI_ARCH "$host"
_ACEOF
#
# See if we can find an old installation of OMPI to overwrite
#
# Stupid autoconf 2.54 has a bug in AC_PREFIX_PROGRAM -- if ompi_clean
# is not found in the path and the user did not specify --prefix,
# we'll get a $prefix of "."
ompi_prefix_save="$prefix"
if test "x$prefix" = xNONE; then
echo $ECHO_N "checking for prefix by $ECHO_C" >&6
# Extract the first word of "ompi_clean", so it can be a program name with args.
set dummy ompi_clean; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_ac_prefix_program+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $ac_prefix_program in
[\\/]* | ?:[\\/]*)
ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
;;
esac
fi
ac_prefix_program=$ac_cv_path_ac_prefix_program
if test -n "$ac_prefix_program"; then
echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
echo "${ECHO_T}$ac_prefix_program" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
if test -n "$ac_prefix_program"; then
prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
X"$ac_prefix_program" : 'X\(//\)$' \| \
X"$ac_prefix_program" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
echo X"$ac_prefix_program" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
prefix=`(dirname "$prefix") 2>/dev/null ||
$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$prefix" : 'X\(//\)[^/]' \| \
X"$prefix" : 'X\(//\)$' \| \
X"$prefix" : 'X\(/\)' \| \
. : '\(.\)' 2>/dev/null ||
echo X"$prefix" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
/^X\(\/\/\)$/{ s//\1/; q; }
/^X\(\/\).*/{ s//\1/; q; }
s/.*/./; q'`
fi
fi
if test "$prefix" = "."; then
prefix="$ompi_prefix_save"
fi
unset ompi_prefix_save
#
# Basic sanity checking; we can't install to a relative path
#
case "$prefix" in
/*/bin)
prefix="`dirname $prefix`"
echo installing to directory \"$prefix\"
;;
/*)
echo installing to directory \"$prefix\"
;;
NONE)
echo installing to directory \"$ac_default_prefix\"
;;
[a-zA-Z]:*)
echo installing to directory \"$prefix\"
;;
*)
{ { echo "$as_me:$LINENO: error: prefix \"$prefix\" must be an absolute directory path" >&5
echo "$as_me: error: prefix \"$prefix\" must be an absolute directory path" >&2;}
{ (exit 1); exit 1; }; }
;;
esac
# Allow the --enable-dist flag to be passed in
# Check whether --enable-dist or --disable-dist was given.
if test "${enable_dist+set}" = set; then
enableval="$enable_dist"
OMPI_WANT_DIST=yes
else
OMPI_WANT_DIST=no
fi;
if test "$OMPI_WANT_DIST" = "yes"; then
{ echo "$as_me:$LINENO: WARNING: Configuring in 'make dist' mode" >&5
echo "$as_me: WARNING: Configuring in 'make dist' mode" >&2;}
{ echo "$as_me:$LINENO: WARNING: Most make targets may be non-functional!" >&5
echo "$as_me: WARNING: Most make targets may be non-functional!" >&2;}
fi
top_ompi_srcdir="$OMPI_TOP_SRCDIR"
top_ompi_builddir="$OMPI_TOP_BUILDDIR"
############################################################################
# Configuration options
############################################################################
ompi_show_subtitle "Configuration options"
#
# Code coverage options
#
echo "$as_me:$LINENO: checking Whether to run code coverage" >&5
echo $ECHO_N "checking Whether to run code coverage... $ECHO_C" >&6
# Check whether --enable-coverage or --disable-coverage was given.
if test "${enable_coverage+set}" = set; then
enableval="$enable_coverage"
fi;
if test "$enable_coverage" = "yes"; then
if test "$enable_shared" = "yes"; then
{ echo "$as_me:$LINENO: WARNING: Code coverage can run only with static libraries. Please
run configure with --enable-static --disable-shared if
you want code coverage. Also ensure that you execute
make clean too ensure removal of all leftover shared
mpi libraries" >&5
echo "$as_me: WARNING: Code coverage can run only with static libraries. Please
run configure with --enable-static --disable-shared if
you want code coverage. Also ensure that you execute
make clean too ensure removal of all leftover shared
mpi libraries" >&2;}
{ { echo "$as_me:$LINENO: error: Cannot continue processing" >&5
echo "$as_me: error: Cannot continue processing" >&2;}
{ (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_COVERAGE=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_COVERAGE=0
fi
#
# Memory debugging
#
echo "$as_me:$LINENO: checking whether to debug memory usage" >&5
echo $ECHO_N "checking whether to debug memory usage... $ECHO_C" >&6
# Check whether --enable-mem-debug or --disable-mem-debug was given.
if test "${enable_mem_debug+set}" = set; then
enableval="$enable_mem_debug"
fi;
if test "$enable_mem_debug" = "yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_MEM_DEBUG=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_MEM_DEBUG=0
fi
#################### Early development override ####################
if test "$WANT_MEM_DEBUG" = "0" -a -z "$enable_mem_debug" -a -d .svn; then
WANT_MEM_DEBUG=1
echo "--> developer override: enable mem profiling by default"
fi
#################### Early development override ####################
cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_MEM_DEBUG $WANT_MEM_DEBUG
_ACEOF
#
# Memory profiling
#
echo "$as_me:$LINENO: checking whether to profile memory usage" >&5
echo $ECHO_N "checking whether to profile memory usage... $ECHO_C" >&6
# Check whether --enable-mem-profile or --disable-mem-profile was given.
if test "${enable_mem_profile+set}" = set; then
enableval="$enable_mem_profile"
fi;
if test "$enable_mem_profile" = "yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_MEM_PROFILE=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_MEM_PROFILE=0
fi
#################### Early development override ####################
if test "$WANT_MEM_PROFILE" = "0" -a -z "$enable_mem_profile" -a -d .svn; then
WANT_MEM_PROFILE=1
echo "--> developer override: enable mem profiling by default"
fi
#################### Early development override ####################
cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_MEM_PROFILE $WANT_MEM_PROFILE
_ACEOF
#
# Developer picky compiler options
#
echo "$as_me:$LINENO: checking if want developer-level compiler pickyness" >&5
echo $ECHO_N "checking if want developer-level compiler pickyness... $ECHO_C" >&6
# Check whether --enable-picky or --disable-picky was given.
if test "${enable_picky+set}" = set; then
enableval="$enable_picky"
fi;
if test "$enable_picky" = "yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_PICKY_COMPILER=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_PICKY_COMPILER=0
fi
#################### Early development override ####################
if test "$WANT_PICKY_COMPILER" = "0" -a -z "$enable_picky" -a -d .svn; then
WANT_PICKY_COMPILER=1
echo "--> developer override: enable picky compiler by default"
fi
#################### Early development override ####################
#
# Developer debugging
#
echo "$as_me:$LINENO: checking if want developer-level debugging code" >&5
echo $ECHO_N "checking if want developer-level debugging code... $ECHO_C" >&6
# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
enableval="$enable_debug"
fi;
if test "$enable_debug" = "yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_DEBUG=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_DEBUG=0
fi
#################### Early development override ####################
if test "$WANT_DEBUG" = "0" -a -z "$enable_debug" -a -d .svn; then
WANT_DEBUG=1
echo "--> developer override: enable debugging code by default"
fi
#################### Early development override ####################
if test "$WANT_DEBUG" = "0"; then
CFLAGS="-DNDEBUG $CFLAGS"
CXXFLAGS="-DNDEBUG $CXXFLAGS"
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_DEBUG $WANT_DEBUG
_ACEOF
# Check whether --enable-debug-symbols or --disable-debug-symbols was given.
if test "${enable_debug_symbols+set}" = set; then
enableval="$enable_debug_symbols"
fi;
#
# Fortran 77
#
echo "$as_me:$LINENO: checking if want Fortran 77 bindings" >&5
echo $ECHO_N "checking if want Fortran 77 bindings... $ECHO_C" >&6
# Check whether --enable-mpi-f77 or --disable-mpi-f77 was given.
if test "${enable_mpi_f77+set}" = set; then
enableval="$enable_mpi_f77"
fi;
if test "$enable_mpi_f77" != "no"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
OMPI_WANT_F77_BINDINGS=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
OMPI_WANT_F77_BINDINGS=0
fi
#
# Fortran 90
#
echo "$as_me:$LINENO: checking if want Fortran 90 bindings" >&5
echo $ECHO_N "checking if want Fortran 90 bindings... $ECHO_C" >&6
# Check whether --enable-mpi-f90 or --disable-mpi-f90 was given.
if test "${enable_mpi_f90+set}" = set; then
enableval="$enable_mpi_f90"
fi;
if test "$enable_mpi_f90" != "no"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
OMPI_WANT_F90_BINDINGS=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
OMPI_WANT_F90_BINDINGS=0
fi
echo "$as_me:$LINENO: checking desired Fortran 90 bindings \"size\"" >&5
echo $ECHO_N "checking desired Fortran 90 bindings \"size\"... $ECHO_C" >&6
# Check whether --with-mpi-f90-size or --without-mpi-f90-size was given.
if test "${with_mpi_f90_size+set}" = set; then
withval="$with_mpi_f90_size"
fi;
if test "$OMPI_WANT_F90_BINDINGS" = "0"; then
echo "$as_me:$LINENO: result: disabled (Fortran 90 bindings disabled)" >&5
echo "${ECHO_T}disabled (Fortran 90 bindings disabled)" >&6
elif test "$with_mpi_f90_size" = "no"; then
OMPI_WANT_F90_BINDINGS=0
echo "$as_me:$LINENO: result: disabling F90 MPI module (used specified)" >&5
echo "${ECHO_T}disabling F90 MPI module (used specified)" >&6
else
# Default value
if test "$with_mpi_f90_size" = ""; then
with_mpi_f90_size=small
fi
# Check for each of the sizes
if test "$with_mpi_f90_size" = "trivial"; then
OMPI_F90_BUILD_SIZE=trivial
elif test "$with_mpi_f90_size" = "small"; then
OMPI_F90_BUILD_SIZE=small
elif test "$with_mpi_f90_size" = "medium"; then
OMPI_F90_BUILD_SIZE=medium
elif test "$with_mpi_f90_size" = "large"; then
OMPI_F90_BUILD_SIZE=large
else
echo "$as_me:$LINENO: result: Unrecognized size: $with_mpi_f90_size" >&5
echo "${ECHO_T}Unrecognized size: $with_mpi_f90_size" >&6
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$OMPI_F90_BUILD_SIZE" = "trivial"; then
OMPI_WANT_BUILD_F90_TRIVIAL_TRUE=
OMPI_WANT_BUILD_F90_TRIVIAL_FALSE='#'
else
OMPI_WANT_BUILD_F90_TRIVIAL_TRUE='#'
OMPI_WANT_BUILD_F90_TRIVIAL_FALSE=
fi
if test "$OMPI_F90_BUILD_SIZE" = "small"; then
OMPI_WANT_BUILD_F90_SMALL_TRUE=
OMPI_WANT_BUILD_F90_SMALL_FALSE='#'
else
OMPI_WANT_BUILD_F90_SMALL_TRUE='#'
OMPI_WANT_BUILD_F90_SMALL_FALSE=
fi
if test "$OMPI_F90_BUILD_SIZE" = "medium"; then
OMPI_WANT_BUILD_F90_MEDIUM_TRUE=
OMPI_WANT_BUILD_F90_MEDIUM_FALSE='#'
else
OMPI_WANT_BUILD_F90_MEDIUM_TRUE='#'
OMPI_WANT_BUILD_F90_MEDIUM_FALSE=
fi
if test "$OMPI_F90_BUILD_SIZE" = "large"; then
OMPI_WANT_BUILD_F90_LARGE_TRUE=
OMPI_WANT_BUILD_F90_LARGE_FALSE='#'
else
OMPI_WANT_BUILD_F90_LARGE_TRUE='#'
OMPI_WANT_BUILD_F90_LARGE_FALSE=
fi
echo "$as_me:$LINENO: result: $OMPI_F90_BUILD_SIZE" >&5
echo "${ECHO_T}$OMPI_F90_BUILD_SIZE" >&6
#
# MPI profiling
#
echo "$as_me:$LINENO: checking whether to enable PMPI" >&5
echo $ECHO_N "checking whether to enable PMPI... $ECHO_C" >&6
# Check whether --enable-mpi-profile or --disable-mpi-profile was given.
if test "${enable_mpi_profile+set}" = set; then
enableval="$enable_mpi_profile"
fi;
if test "$enable_mpi_profile" != "no"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_MPI_PROFILING=1
MPIF_H_PMPI_W_FUNCS=", PMPI_WTICK, PMPI_WTIME"
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_MPI_PROFILING=0
MPIF_H_PMPI_W_FUNCS=
fi
#
# C++
#
echo "$as_me:$LINENO: checking if want C++ bindings" >&5
echo $ECHO_N "checking if want C++ bindings... $ECHO_C" >&6
# Check whether --enable-mpi-cxx or --disable-mpi-cxx was given.
if test "${enable_mpi_cxx+set}" = set; then
enableval="$enable_mpi_cxx"
fi;
if test "$enable_mpi_cxx" != "no"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_MPI_CXX_SUPPORT=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_MPI_CXX_SUPPORT=0
fi
echo "$as_me:$LINENO: checking if want MPI::SEEK_SET support" >&5
echo $ECHO_N "checking if want MPI::SEEK_SET support... $ECHO_C" >&6
# Check whether --enable-mpi-cxx-seek or --disable-mpi-cxx-seek was given.
if test "${enable_mpi_cxx_seek+set}" = set; then
enableval="$enable_mpi_cxx_seek"
fi;
if test "$enable_mpi_cxx_seek" != "no" ; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
OMPI_WANT_MPI_CXX_SEEK=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
OMPI_WANT_MPI_CXX_SEEK=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_MPI_CXX_SEEK $OMPI_WANT_MPI_CXX_SEEK
_ACEOF
#
# Do we want to disable weak symbols for some reason?
#
echo "$as_me:$LINENO: checking if want to enable weak symbol support" >&5
echo $ECHO_N "checking if want to enable weak symbol support... $ECHO_C" >&6
# Check whether --enable-weak-symbols or --disable-weak-symbols was given.
if test "${enable_weak_symbols+set}" = set; then
enableval="$enable_weak_symbols"
fi;
if test "$enable_weak_symbols" != "no"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_WEAK_SYMBOLS=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_WEAK_SYMBOLS=0
fi
#
# Do we want to disable MPI parameter checking at run-time?
#
echo "$as_me:$LINENO: checking if want run-time MPI parameter checking" >&5
echo $ECHO_N "checking if want run-time MPI parameter checking... $ECHO_C" >&6
# Check whether --with-mpi-param-check or --without-mpi-param-check was given.
if test "${with_mpi_param_check+set}" = set; then
withval="$with_mpi_param_check"
fi;
mpi_param_check=ompi_mpi_param_check
if test "$with_mpi_param_check" = "no" -o \
"$with_mpi_param_check" = "never"; then
mpi_param_check=0
echo "$as_me:$LINENO: result: never" >&5
echo "${ECHO_T}never" >&6
elif test "$with_mpi_param_check" = "yes" -o \
"$with_mpi_param_check" = "always"; then
mpi_param_check=1
echo "$as_me:$LINENO: result: always" >&5
echo "${ECHO_T}always" >&6
elif test "$with_mpi_param_check" = "runtime" -o \
-z "$with_mpi_params_check"; then
echo "$as_me:$LINENO: result: runtime" >&5
echo "${ECHO_T}runtime" >&6
else
echo "$as_me:$LINENO: result: unknown" >&5
echo "${ECHO_T}unknown" >&6
{ echo "$as_me:$LINENO: WARNING: *** Unrecognized --with-mpi-param-check value" >&5
echo "$as_me: WARNING: *** Unrecognized --with-mpi-param-check value" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See \"configure --help\" output" >&5
echo "$as_me: WARNING: *** See \"configure --help\" output" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Defaulting to \"runtime\"" >&5
echo "$as_me: WARNING: *** Defaulting to \"runtime\"" >&2;}
fi
cat >>confdefs.h <<_ACEOF
#define MPI_PARAM_CHECK $mpi_param_check
_ACEOF
#
# Do we want to install all of OMPI's header files?
#
echo "$as_me:$LINENO: checking if want to install OMPI header files" >&5
echo $ECHO_N "checking if want to install OMPI header files... $ECHO_C" >&6
# Check whether --with-devel-headers or --without-devel-headers was given.
if test "${with_devel_headers+set}" = set; then
withval="$with_devel_headers"
fi;
if test "$with_devel_headers" = "yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_INSTALL_HEADERS=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_INSTALL_HEADERS=0
fi
if test "$WANT_INSTALL_HEADERS" = 1; then
WANT_INSTALL_HEADERS_TRUE=
WANT_INSTALL_HEADERS_FALSE='#'
else
WANT_INSTALL_HEADERS_TRUE='#'
WANT_INSTALL_HEADERS_FALSE=
fi
#
# Do we want the pretty-print stack trace feature?
#
echo "$as_me:$LINENO: checking if want pretty-print stacktrace" >&5
echo $ECHO_N "checking if want pretty-print stacktrace... $ECHO_C" >&6
# Check whether --enable-pretty-print-stacktrace or --disable-pretty-print-stacktrace was given.
if test "${enable_pretty_print_stacktrace+set}" = set; then
enableval="$enable_pretty_print_stacktrace"
fi;
if test "$enable_pretty_print_stacktrace" = "no" ; then
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_PRETTY_PRINT_STACKTRACE=0
else
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_PRETTY_PRINT_STACKTRACE=1
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_PRETTY_PRINT_STACKTRACE $WANT_PRETTY_PRINT_STACKTRACE
_ACEOF
#
# Do we want deprecated executable names ?
#
echo "$as_me:$LINENO: checking if want deprecated executable names" >&5
echo $ECHO_N "checking if want deprecated executable names... $ECHO_C" >&6
# Check whether --enable-deprecated-executable-names or --disable-deprecated-executable-names was given.
if test "${enable_deprecated_executable_names+set}" = set; then
enableval="$enable_deprecated_executable_names"
fi;
if test "$enable_deprecated_executable_names" = "yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_DEN=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_DEN=0
fi
if test "$WANT_DEN" = "1"; then
WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE=
WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE='#'
else
WANT_DEPRECATED_EXECUTABLE_NAMES_TRUE='#'
WANT_DEPRECATED_EXECUTABLE_NAMES_FALSE=
fi
#
# Do we want to enable peruse interface?
#
echo "$as_me:$LINENO: checking if peruse support is required" >&5
echo $ECHO_N "checking if peruse support is required... $ECHO_C" >&6
# Check whether --enable-peruse or --disable-peruse was given.
if test "${enable_peruse+set}" = set; then
enableval="$enable_peruse"
fi;
if test "$enable_peruse" = "yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
WANT_PERUSE=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
WANT_PERUSE=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_PERUSE $WANT_PERUSE
_ACEOF
if test "$WANT_PERUSE" = "1"; then
WANT_PERUSE_TRUE=
WANT_PERUSE_FALSE='#'
else
WANT_PERUSE_TRUE='#'
WANT_PERUSE_FALSE=
fi
#
# What is the max array rank that we want to support in the f90 bindings?
#
OMPI_FORTRAN_MAX_ARRAY_RANK=4
echo "$as_me:$LINENO: checking max supported array dimension in F90 MPI bindings" >&5
echo $ECHO_N "checking max supported array dimension in F90 MPI bindings... $ECHO_C" >&6
# Check whether --with-f90-max-array-dim or --without-f90-max-array-dim was given.
if test "${with_f90_max_array_dim+set}" = set; then
withval="$with_f90_max_array_dim"
fi;
if test ! -z "$with_f90_max_array_dim" -a "$with_f90_max_array_dim" != "no"; then
# Ensure it's a number; hopefully a integer...
expr $with_f90_max_array_dim + 1 > /dev/null 2> /dev/null
if test "$?" = "0"; then
OMPI_FORTRAN_MAX_ARRAY_RANK="$with_f90_max_array_dim"
fi
fi
echo "$as_me:$LINENO: result: $OMPI_FORTRAN_MAX_ARRAY_RANK" >&5
echo "${ECHO_T}$OMPI_FORTRAN_MAX_ARRAY_RANK" >&6
# do we want PTY support?
echo "$as_me:$LINENO: checking if pty support should be enabled" >&5
echo $ECHO_N "checking if pty support should be enabled... $ECHO_C" >&6
# Check whether --enable-pty-support or --disable-pty-support was given.
if test "${enable_pty_support+set}" = set; then
enableval="$enable_pty_support"
fi;
if test "$enable_pty_support" = "no" ; then
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
OMPI_ENABLE_PTY_SUPPORT=0
else
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
OMPI_ENABLE_PTY_SUPPORT=1
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_PTY_SUPPORT $OMPI_ENABLE_PTY_SUPPORT
_ACEOF
#
# Do we want to allow DLOPEN?
#
echo "$as_me:$LINENO: checking if user wants dlopen support" >&5
echo $ECHO_N "checking if user wants dlopen support... $ECHO_C" >&6
# Check whether --enable-dlopen or --disable-dlopen was given.
if test "${enable_dlopen+set}" = set; then
enableval="$enable_dlopen"
fi;
if test "$enable_dlopen" = "no" ; then
enable_mca_dso="no"
enable_mca_static="yes"
OMPI_ENABLE_DLOPEN_SUPPORT=0
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
else
OMPI_ENABLE_DLOPEN_SUPPORT=1
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
fi
#
# Heterogeneous support
#
echo "$as_me:$LINENO: checking if heterogeneous support should be enabled" >&5
echo $ECHO_N "checking if heterogeneous support should be enabled... $ECHO_C" >&6
# Check whether --enable-heterogeneous or --disable-heterogeneous was given.
if test "${enable_heterogeneous+set}" = set; then
enableval="$enable_heterogeneous"
fi;
if test "$enable_heterogeneous" = "no" ; then
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
ompi_want_heterogeneous=0
else
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
ompi_want_heterogeneous=1
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_HETEROGENEOUS_SUPPORT $ompi_want_heterogeneous
_ACEOF
#
# Internal trace file logging (debugging)
#
echo "$as_me:$LINENO: checking if want trace file debugging" >&5
echo $ECHO_N "checking if want trace file debugging... $ECHO_C" >&6
# Check whether --enable-trace or --disable-trace was given.
if test "${enable_trace+set}" = set; then
enableval="$enable_trace"
fi;
if test "$enable_trace" = "yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
opal_want_trace=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
opal_want_trace=0
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_TRACE $opal_want_trace
_ACEOF
#
# Cross-compile data
#
# Check whether --with-cross or --without-cross was given.
if test "${with_cross+set}" = set; then
withval="$with_cross"
fi;
if test "$with_cross" = "yes" ; then
{ { echo "$as_me:$LINENO: error: --with-cross argument must include FILE option" >&5
echo "$as_me: error: --with-cross argument must include FILE option" >&2;}
{ (exit 1); exit 1; }; }
elif test "$with_cross" = "no" ; then
{ { echo "$as_me:$LINENO: error: --without-cross is not a valid argument" >&5
echo "$as_me: error: --without-cross is not a valid argument" >&2;}
{ (exit 1); exit 1; }; }
elif test "$with_cross" != "" ; then
if test ! -r $with_cross ; then
{ { echo "$as_me:$LINENO: error: could not find cross-compile data file $with_cross" >&5
echo "$as_me: error: could not find cross-compile data file $with_cross" >&2;}
{ (exit 1); exit 1; }; }
fi
# eval into environment
# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
echo "configure:3559: Loading cross-compile file $with_cross, with contents below" >&5
else
echo Loading cross-compile file $with_cross, with contents below >&5
fi
# 1 is the filename
if test -n "$with_cross" -a -f "$with_cross"; then
cat $with_cross >&5
fi
. "$with_cross"
fi
#
# Do we want to install binaries?
#
# Check whether --enable-binaries or --disable-binaries was given.
if test "${enable_binaries+set}" = set; then
enableval="$enable_binaries"
fi;
if test "$enable_binaries" != "no"; then
OMPI_INSTALL_BINARIES_TRUE=
OMPI_INSTALL_BINARIES_FALSE='#'
else
OMPI_INSTALL_BINARIES_TRUE='#'
OMPI_INSTALL_BINARIES_FALSE=
fi
#
# Do we want to disable IPv6 support?
#
echo "$as_me:$LINENO: checking if want IPv6 support" >&5
echo $ECHO_N "checking if want IPv6 support... $ECHO_C" >&6
# Check whether --enable-ipv6 or --disable-ipv6 was given.
if test "${enable_ipv6+set}" = set; then
enableval="$enable_ipv6"
fi;
if test "$enable_ipv6" = "no"; then
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
opal_want_ipv6=0
else
echo "$as_me:$LINENO: result: yes (if underlying system supports it)" >&5
echo "${ECHO_T}yes (if underlying system supports it)" >&6
opal_want_ipv6=1
fi
cat >>confdefs.h <<_ACEOF
#define OPAL_ENABLE_IPV6 $opal_want_ipv6
_ACEOF
#
# Do we want orterun's --prefix behavior to be enabled by default?
#
echo "$as_me:$LINENO: checking if want orterun \"--prefix\" behavior to be enabled by default" >&5
echo $ECHO_N "checking if want orterun \"--prefix\" behavior to be enabled by default... $ECHO_C" >&6
# Check whether --enable-orterun-prefix-by-default or --disable-orterun-prefix-by-default was given.
if test "${enable_orterun_prefix_by_default+set}" = set; then
enableval="$enable_orterun_prefix_by_default"
fi;
# Check whether --enable-mpirun-prefix-by-default or --disable-mpirun-prefix-by-default was given.
if test "${enable_mpirun_prefix_by_default+set}" = set; then
enableval="$enable_mpirun_prefix_by_default"
fi;
if test "$enable_orterun_prefix_by_default" = ""; then
enable_orterun_prefix_by_default=$enable_mpirun_prefix_by_default
fi
if test "$enable_orterun_prefix_by_default" = "yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
orte_want_orterun_prefix_by_default=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
orte_want_orterun_prefix_by_default=0
fi
cat >>confdefs.h <<_ACEOF
#define ORTE_WANT_ORTERUN_PREFIX_BY_DEFAULT $orte_want_orterun_prefix_by_default
_ACEOF
############################################################################
# Libtool: part one
# (before C compiler setup)
############################################################################
#
# Part one of libtool magic. Enable static so that we have the --with
# tests done up here and can check for OS. Save the values of
# $enable_static and $enable_shared before setting the defaults,
# because if the user specified --[en|dis]able-[static|shared] on the
# command line, they'll already be set. In this way, we can tell if
# the user requested something or if the default was set here.
#
ompi_enable_shared="$enable_shared"
ompi_enable_static="$enable_static"
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
enableval="$enable_shared"
p=${PACKAGE-default}
case $enableval in
yes) enable_shared=yes ;;
no) enable_shared=no ;;
*)
enable_shared=no
# Look at the argument we got. We use all the common list separators.
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
for pkg in $enableval; do
IFS="$lt_save_ifs"
if test "X$pkg" = "X$p"; then
enable_shared=yes
fi
done
IFS="$lt_save_ifs"
;;
esac
else
enable_shared=yes
fi;
# Check whether --enable-static or --disable-static was given.
if test "${enable_static+set}" = set; then
enableval="$enable_static"
p=${PACKAGE-default}
case $enableval in
yes) enable_static=yes ;;
no) enable_static=no ;;
*)
enable_static=no
# Look at the argument we got. We use all the common list separators.
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
for pkg in $enableval; do
IFS="$lt_save_ifs"
if test "X$pkg" = "X$p"; then
enable_static=yes
fi
done
IFS="$lt_save_ifs"
;;
esac
else
enable_static=no
fi;
WRAPPER_EXTRA_CPPFLAGS=
WRAPPER_EXTRA_CFLAGS=
WRAPPER_EXTRA_CXXFLAGS=
WRAPPER_EXTRA_FFLAGS=
WRAPPER_EXTRA_FCFLAGS=
WRAPPER_EXTRA_LDFLAGS=
WRAPPER_EXTRA_LIBS=
USER_WRAPPER_EXTRA_CFLAGS=
USER_WRAPPER_EXTRA_CXXFLAGS=
USER_WRAPPER_EXTRA_FFLAGS=
USER_WRAPPER_EXTRA_FCFLAGS=
USER_WRAPPER_EXTRA_LDFLAGS=
USER_WRAPPER_EXTRA_LIBS=
# Check whether --with-wrapper-cflags or --without-wrapper-cflags was given.
if test "${with_wrapper_cflags+set}" = set; then
withval="$with_wrapper_cflags"
fi;
if test "$with_wrapper_cflags" = "yes" -o "$with_wrapper_cflags" = "no"; then
{ { echo "$as_me:$LINENO: error: --with-wrapper-cflags must have an argument. Aborting" >&5
echo "$as_me: error: --with-wrapper-cflags must have an argument. Aborting" >&2;}
{ (exit 1); exit 1; }; }
elif test ! -z "$with_wrapper_cflags" ; then
USER_WRAPPER_EXTRA_CFLAGS="$with_wrapper_cflags"
fi
# Check whether --with-wrapper-cxxflags or --without-wrapper-cxxflags was given.
if test "${with_wrapper_cxxflags+set}" = set; then
withval="$with_wrapper_cxxflags"
fi;
if test "$with_wrapper_cxxflags" = "yes" -o "$with_wrapper_cxxflags" = "no"; then
{ { echo "$as_me:$LINENO: error: --with-wrapper-cxxflags must have an argument. Aborting" >&5
echo "$as_me: error: --with-wrapper-cxxflags must have an argument. Aborting" >&2;}
{ (exit 1); exit 1; }; }
elif test ! -z "$with_wrapper_cxxflags" ; then
USER_WRAPPER_EXTRA_CXXFLAGS="$with_wrapper_cxxflags"
fi
# Check whether --with-wrapper-fflags or --without-wrapper-fflags was given.
if test "${with_wrapper_fflags+set}" = set; then
withval="$with_wrapper_fflags"
fi;
if test "$with_wrapper_fflags" = "yes" -o "$with_wrapper_fflags" = "no"; then
{ { echo "$as_me:$LINENO: error: --with-wrapper-fflags must have an argument. Aborting" >&5
echo "$as_me: error: --with-wrapper-fflags must have an argument. Aborting" >&2;}
{ (exit 1); exit 1; }; }
elif test ! -z "$with_wrapper_fflags" ; then
USER_WRAPPER_EXTRA_FFLAGS="$with_wrapper_fflags"
fi
# Check whether --with-wrapper-fcflags or --without-wrapper-fcflags was given.
if test "${with_wrapper_fcflags+set}" = set; then
withval="$with_wrapper_fcflags"
fi;
if test "$with_wrapper_fcflags" = "yes" -o "$with_wrapper_fcflags" = "no"; then
{ { echo "$as_me:$LINENO: error: --with-wrapper-fcflags must have an argument. Aborting" >&5
echo "$as_me: error: --with-wrapper-fcflags must have an argument. Aborting" >&2;}
{ (exit 1); exit 1; }; }
elif test ! -z "$with_wrapper_fcflags" ; then
USER_WRAPPER_EXTRA_FCFLAGS="$with_wrapper_fcflags"
fi
# Check whether --with-wrapper-ldflags or --without-wrapper-ldflags was given.
if test "${with_wrapper_ldflags+set}" = set; then
withval="$with_wrapper_ldflags"
fi;
if test "$with_wrapper_ldflags" = "yes" -o "$with_wrapper_ldflags" = "no"; then
{ { echo "$as_me:$LINENO: error: --with-wrapper-ldflags must have an argument. Aborting" >&5
echo "$as_me: error: --with-wrapper-ldflags must have an argument. Aborting" >&2;}
{ (exit 1); exit 1; }; }
elif test ! -z "$with_wrapper_ldflags" ; then
USER_WRAPPER_EXTRA_LDFLAGS="$with_wrapper_ldflags"
fi
# Check whether --with-wrapper-libs or --without-wrapper-libs was given.
if test "${with_wrapper_libs+set}" = set; then
withval="$with_wrapper_libs"
fi;
if test "$with_wrapper_libs" = "yes" -o "$with_wrapper_libs" = "no"; then
{ { echo "$as_me:$LINENO: error: --with-wrapper-libs must have an argument. Aborting" >&5
echo "$as_me: error: --with-wrapper-libs must have an argument. Aborting" >&2;}
{ (exit 1); exit 1; }; }
elif test ! -z "$with_wrapper_libs" ; then
USER_WRAPPER_EXTRA_LIBS="$with_wrapper_libs"
fi
############################################################################
# Check for compilers and preprocessors
############################################################################
ompi_show_title "Compiler and preprocessor tests"
##################################
# C compiler characteristics
##################################
ompi_show_subtitle "C compiler and preprocessor"
# $%@#!@#% AIX!! This has to be called before anything invokes the C
# compiler.
DEPDIR="${am__leading_dot}deps"
ac_config_commands="$ac_config_commands depfiles"
am_make=${MAKE-make}
cat > confinc << 'END'
am__doit:
@echo done
.PHONY: am__doit
END
# If we don't find an include directive, just comment out the code.
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
am__include="#"
am__quote=
_am_result=none
# First try GNU make style include.
echo "include confinc" > confmf
# We grep out `Entering directory' and `Leaving directory'
# messages which can occur if `w' ends up in MAKEFLAGS.
# In particular we don't look at `^make:' because GNU make might
# be invoked under some other name (usually "gmake"), in which
# case it prints its new name instead of `make'.
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
am__include=include
am__quote=
_am_result=GNU
fi
# Now try BSD make style include.
if test "$am__include" = "#"; then
echo '.include "confinc"' > confmf
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
am__include=.include
am__quote="\""
_am_result=BSD
fi
fi
echo "$as_me:$LINENO: result: $_am_result" >&5
echo "${ECHO_T}$_am_result" >&6
rm -f confinc confmf
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
if test "${enable_dependency_tracking+set}" = set; then
enableval="$enable_dependency_tracking"
fi;
if test "x$enable_dependency_tracking" != xno; then
am_depcomp="$ac_aux_dir/depcomp"
AMDEPBACKSLASH='\'
fi
if test "x$enable_dependency_tracking" != xno; then
AMDEP_TRUE=
AMDEP_FALSE='#'
else
AMDEP_TRUE='#'
AMDEP_FALSE=
fi
#
# Check for the compiler
#
ompi_cflags_save="$CFLAGS"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
set dummy ${ac_tool_prefix}gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_CC="${ac_tool_prefix}gcc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
if test -z "$ac_cv_prog_CC"; then
ac_ct_CC=$CC
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_CC="gcc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
CC=$ac_ct_CC
else
CC="$ac_cv_prog_CC"
fi
if test -z "$CC"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
set dummy ${ac_tool_prefix}cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_CC="${ac_tool_prefix}cc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
if test -z "$ac_cv_prog_CC"; then
ac_ct_CC=$CC
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_CC="cc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
CC=$ac_ct_CC
else
CC="$ac_cv_prog_CC"
fi
fi
if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
ac_prog_rejected=no
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
ac_prog_rejected=yes
continue
fi
ac_cv_prog_CC="cc"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
if test $ac_prog_rejected = yes; then
# We found a bogon in the path, so make sure we never use it.
set dummy $ac_cv_prog_CC
shift
if test $# != 0; then
# We chose a different compiler from the bogus one.
# However, it has the same basename, so the bogon will be chosen
# first if we set CC to just the basename; use the full file name.
shift
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
fi
fi
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
if test -z "$CC"; then
if test -n "$ac_tool_prefix"; then
for ac_prog in cl
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CC"; then
ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
echo "$as_me:$LINENO: result: $CC" >&5
echo "${ECHO_T}$CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$CC" && break
done
fi
if test -z "$CC"; then
ac_ct_CC=$CC
for ac_prog in cl
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CC"; then
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_CC="$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
echo "${ECHO_T}$ac_ct_CC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$ac_ct_CC" && break
done
CC=$ac_ct_CC
fi
fi
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&5
echo "$as_me: error: no acceptable C compiler found in \$PATH
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
"checking for C compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
(eval $ac_compiler --version &5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
(eval $ac_compiler -v &5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
(eval $ac_compiler -V &5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
ac_clean_files="$ac_clean_files a.out a.exe b.out"
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
(eval $ac_link_default) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# Find the output, starting from the most likely. This scheme is
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
# resort.
# Be careful to initialize this variable, since it used to be cached.
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
ac_cv_exeext=
# b.out is created by i960 compilers.
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
do
test -f "$ac_file" || continue
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
;;
conftest.$ac_ext )
# This is the source file.
;;
[ab].out )
# We found the default executable, but exeext='' is most
# certainly right.
break;;
*.* )
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
# FIXME: I believe we export ac_cv_exeext for Libtool,
# but it would be cool to find out if it's true. Does anybody
# maintain Libtool? --akim.
export ac_cv_exeext
break;;
* )
break;;
esac
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
See \`config.log' for more details." >&5
echo "$as_me: error: C compiler cannot create executables
See \`config.log' for more details." >&2;}
{ (exit 77); exit 77; }; }
fi
ac_exeext=$ac_cv_exeext
echo "$as_me:$LINENO: result: $ac_file" >&5
echo "${ECHO_T}$ac_file" >&6
# Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
if { ac_try='./$ac_file'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
cross_compiling=no
else
if test "$cross_compiling" = maybe; then
cross_compiling=yes
else
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run C compiled programs.
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
fi
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
rm -f a.out a.exe conftest$ac_cv_exeext b.out
ac_clean_files=$ac_clean_files_save
# Check the compiler produces executables we can run. If not, either
# the compiler is broken, or we cross compile.
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $cross_compiling" >&5
echo "${ECHO_T}$cross_compiling" >&6
echo "$as_me:$LINENO: checking for suffix of executables" >&5
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
test -f "$ac_file" || continue
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
export ac_cv_exeext
break;;
* ) break;;
esac
done
else
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f conftest$ac_cv_exeext
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
echo "${ECHO_T}$ac_cv_exeext" >&6
rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
echo "$as_me:$LINENO: checking for suffix of object files" >&5
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
if test "${ac_cv_objext+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.o conftest.obj
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
case $ac_file in
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
break;;
esac
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute suffix of object files: cannot compile
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f conftest.$ac_cv_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
echo "${ECHO_T}$ac_cv_objext" >&6
OBJEXT=$ac_cv_objext
ac_objext=$OBJEXT
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
if test "${ac_cv_c_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
#ifndef __GNUC__
choke me
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_compiler_gnu=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_c_compiler_gnu=$ac_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
GCC=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CFLAGS=${CFLAGS+set}
ac_save_CFLAGS=$CFLAGS
CFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cc_g+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_prog_cc_g=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_prog_cc_g=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
if test "$ac_test_CFLAGS" = set; then
CFLAGS=$ac_save_CFLAGS
elif test $ac_cv_prog_cc_g = yes; then
if test "$GCC" = yes; then
CFLAGS="-g -O2"
else
CFLAGS="-g"
fi
else
if test "$GCC" = yes; then
CFLAGS="-O2"
else
CFLAGS=
fi
fi
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
if test "${ac_cv_prog_cc_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_prog_cc_stdc=no
ac_save_CC=$CC
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
#include
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
struct buf { int x; };
FILE * (*rcsopen) (struct buf *, struct stat *, int);
static char *e (p, i)
char **p;
int i;
{
return p[i];
}
static char *f (char * (*g) (char **, int), char **p, ...)
{
char *s;
va_list v;
va_start (v,p);
s = g (p, va_arg (v,int));
va_end (v);
return s;
}
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
function prototypes and stuff, but not '\xHH' hex character constants.
These don't provoke an error unfortunately, instead are silently treated
as 'x'. The following induces an error, until -std1 is added to get
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
array size at least. It's necessary to write '\x00'==0 to get something
that's true only with -std1. */
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
int test (int i, double x);
struct s1 {int (*f) (int a);};
struct s2 {int (*f) (double a);};
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
int argc;
char **argv;
int
main ()
{
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
;
return 0;
}
_ACEOF
# Don't try gcc -ansi; that turns off useful extensions and
# breaks some systems' header files.
# AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1
# HP-UX 10.20 and later -Ae
# HP-UX older versions -Aa -D_HPUX_SOURCE
# SVR4 -Xc -D__EXTENSIONS__
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
do
CC="$ac_save_CC $ac_arg"
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_prog_cc_stdc=$ac_arg
break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext
done
rm -f conftest.$ac_ext conftest.$ac_objext
CC=$ac_save_CC
fi
case "x$ac_cv_prog_cc_stdc" in
x|xno)
echo "$as_me:$LINENO: result: none needed" >&5
echo "${ECHO_T}none needed" >&6 ;;
*)
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
CC="$CC $ac_cv_prog_cc_stdc" ;;
esac
# Some people use a C++ compiler to compile C. Since we use `exit',
# in C++ we need to declare it. In case someone uses the same compiler
# for both compiling C and C++ we need to have the C++ compiler decide
# the declaration of exit, since it's the most demanding environment.
cat >conftest.$ac_ext <<_ACEOF
#ifndef __cplusplus
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
for ac_declaration in \
'' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \
'void exit (int);'
do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_declaration
#include
int
main ()
{
exit (42);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
:
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
continue
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_declaration
int
main ()
{
exit (42);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
echo '#ifdef __cplusplus' >>confdefs.h
echo $ac_declaration >>confdefs.h
echo '#endif' >>confdefs.h
fi
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
depcc="$CC" am_compiler_list=
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
# We make a subdir and do the tests there. Otherwise we can end up
# making bogus files that we don't know about and never remove. For
# instance it was reported that on HP-UX the gcc test will end up
# making a dummy file named `D' -- because `-MD' means `put the output
# in D'.
mkdir conftest.dir
# Copy depcomp to subdir because otherwise we won't find it if we're
# using a relative directory.
cp "$am_depcomp" conftest.dir
cd conftest.dir
# We will build objects and dependencies in a subdirectory because
# it helps to detect inapplicable dependency modes. For instance
# both Tru64's cc and ICC support -MD to output dependencies as a
# side effect of compilation, but ICC will put the dependencies in
# the current directory while Tru64 will put them in the object
# directory.
mkdir sub
am_cv_CC_dependencies_compiler_type=none
if test "$am_compiler_list" = ""; then
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
fi
for depmode in $am_compiler_list; do
# Setup a source with many dependencies, because some compilers
# like to wrap large dependency lists on column 80 (with \), and
# we should not choose a depcomp mode which is confused by this.
#
# We need to recreate these files for each test, as the compiler may
# overwrite some of them when testing with obscure command lines.
# This happens at least with the AIX C compiler.
: > sub/conftest.c
for i in 1 2 3 4 5 6; do
echo '#include "conftst'$i'.h"' >> sub/conftest.c
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
# Solaris 8's {/usr,}/bin/sh.
touch sub/conftst$i.h
done
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
case $depmode in
nosideeffect)
# after this tag, mechanisms are not by side-effect, so they'll
# only be used when explicitly requested
if test "x$enable_dependency_tracking" = xyes; then
continue
else
break
fi
;;
none) break ;;
esac
# We check with `-c' and `-o' for the sake of the "dashmstdout"
# mode. It turns out that the SunPro C++ compiler does not properly
# handle `-M -o', and we need to detect this.
if depmode=$depmode \
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
>/dev/null 2>conftest.err &&
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
# icc doesn't choke on unknown options, it will just issue warnings
# or remarks (even with -Werror). So we grep stderr for any message
# that says an option was ignored or not supported.
# When given -MP, icc 7.0 and 7.1 complain thusly:
# icc: Command line warning: ignoring option '-M'; no argument required
# The diagnosis changed in icc 8.0:
# icc: Command line remark: option '-MP' not supported
if (grep 'ignoring option' conftest.err ||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
am_cv_CC_dependencies_compiler_type=$depmode
break
fi
fi
done
cd ..
rm -rf conftest.dir
else
am_cv_CC_dependencies_compiler_type=none
fi
fi
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
if
test "x$enable_dependency_tracking" != xno \
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
am__fastdepCC_TRUE=
am__fastdepCC_FALSE='#'
else
am__fastdepCC_TRUE='#'
am__fastdepCC_FALSE=
fi
BASECC="`basename $CC`"
CFLAGS="$ompi_cflags_save"
cat >>confdefs.h <<_ACEOF
#define OMPI_CC "$CC"
_ACEOF
OMPI_CC_ABSOLUTE="`which $CC`"
if test "x$CC" != xcc; then
echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
else
echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
fi
set dummy $CC; ac_cc=`echo $2 |
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
# Make sure it works both with $CC and with simple cc.
# We do the test twice because some compilers refuse to overwrite an
# existing .o file with -o, though they will create one.
ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); };
then
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
if test "x$CC" != xcc; then
# Test first that cc exists at all.
if { ac_try='cc -c conftest.$ac_ext >&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); };
then
# cc works too.
:
else
# cc exists but doesn't like -o.
eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
fi
fi
else
eval ac_cv_prog_cc_${ac_cc}_c_o=no
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
cat >>confdefs.h <<\_ACEOF
#define NO_MINUS_C_MINUS_O 1
_ACEOF
fi
# FIXME: we rely on the cache variable name because
# there is no other way.
set dummy $CC
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
# Losing compiler, so override with the script.
# FIXME: It is wrong to rewrite CC.
# But if we don't then we get into trouble of one sort or another.
# A longer-term fix would be to have automake use am__CC in this case,
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
CC="$am_aux_dir/compile $CC"
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
fi
if test -z "$CPP"; then
if test "${ac_cv_prog_CPP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Double quotes because CPP needs to be expanded
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
do
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer to if __STDC__ is defined, since
# exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include
#else
# include
#endif
Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
:
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
# Broken: success on invalid input.
continue
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
break
fi
done
ac_cv_prog_CPP=$CPP
fi
CPP=$ac_cv_prog_CPP
else
ac_cv_prog_CPP=$CPP
fi
echo "$as_me:$LINENO: result: $CPP" >&5
echo "${ECHO_T}$CPP" >&6
ac_preproc_ok=false
for ac_c_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer to if __STDC__ is defined, since
# exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include
#else
# include
#endif
Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
:
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_c_preproc_warn_flag
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
# Broken: success on invalid input.
continue
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
:
else
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
then ac_cv_prog_egrep='grep -E'
else ac_cv_prog_egrep='egrep'
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
EGREP=$ac_cv_prog_egrep
# AM_PROG_CC_C_O AC_REQUIREs AC_PROG_CC, so we have to be a little
# careful about ordering here, and AC_REQUIRE these things so that
# they get stamped out in the right order.
echo "$as_me:$LINENO: checking for the C compiler vendor" >&5
echo $ECHO_N "checking for the C compiler vendor... $ECHO_C" >&6
if test "${ompi_cv_c_compiler_vendor+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
ompi_check_compiler_vendor_result="unknown"
# GNU is probably the most common, so check that one as soon as
# possible. Intel pretends to be GNU, so need to check Intel
# before checking for GNU.
# Intel
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__INTEL_COMPILER) || defined(__ICC) )
#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="intel"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# GNU
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __GNUC__
#error "symbol __GNUC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="gnu"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Borland Turbo C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __TURBOC__
#error "symbol __TURBOC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="borland"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Borland C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __BORLANDC__
#error "symbol __BORLANDC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="borland"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Comeau C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __COMO__
#error "symbol __COMO__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="comeau"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Compaq C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="compaq"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__osf__) && defined(__LANGUAGE_C__) )
#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="compaq"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#ifndef __DECCXX
#error "symbol __DECCXX not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="compaq"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Cray C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef _CRAYC
#error "symbol _CRAYC not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="cray"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Diab C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __DCC__
#error "symbol __DCC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="diab"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Digital Mars
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="digital mars"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# HP ANSI C / aC++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__HP_cc) || defined(__HP_aCC) )
#error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="hp"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# IBM XL C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) )
#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="ibm"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(_AIX) && !defined(__GNUC__) )
#error "condition defined(_AIX) && !defined(__GNUC__) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="ibm"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# KAI C++ (rest in peace)
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __KCC
#error "symbol __KCC not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="kai"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# LCC
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __LCC__
#error "symbol __LCC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="lcc"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MetaWare High C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __HIGHC__
#error "symbol __HIGHC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="metaware high"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Metrowerks Codewarrior
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __MWERKS__
#error "symbol __MWERKS__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="metrowerks"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MIPSpro (SGI)
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(sgi) || defined(__sgi) )
#error "condition defined(sgi) || defined(__sgi) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="sgi"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MPW C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="mpw"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Microsoft
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
# Always use C compiler when checking for Microsoft, as
# Visual C++ doesn't recognize .cc as a C++ file.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(_MSC_VER) || defined(__MSC_VER) )
#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="microsoft"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
# Norcroft C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __CC_NORCROFT
#error "symbol __CC_NORCROFT not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="norcroft"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Pelles C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __POCC__
#error "symbol __POCC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="pelles"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Portland Group
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __PGI
#error "symbol __PGI not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="portland group"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# SAS/C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="sas"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Sun Workshop C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="sun"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# TenDRA C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __TenDRA__
#error "symbol __TenDRA__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="tendra"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Tiny C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __TINYC__
#error "symbol __TINYC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="tiny"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# USL C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __USLC__
#error "symbol __USLC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="usl"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Watcom C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __WATCOMC__
#error "symbol __WATCOMC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="watcom"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ompi_cv_c_compiler_vendor="$ompi_check_compiler_vendor_result"
unset ompi_check_compiler_vendor_result
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_compiler_vendor" >&5
echo "${ECHO_T}$ompi_cv_c_compiler_vendor" >&6
ompi_c_vendor="$ompi_cv_c_compiler_vendor"
# Check for standard headers, needed here because needed before
# the types checks.
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
if test "${ac_cv_header_stdc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
#include
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_header_stdc=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_header_stdc=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "memchr" >/dev/null 2>&1; then
:
else
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "free" >/dev/null 2>&1; then
:
else
ac_cv_header_stdc=no
fi
rm -f conftest*
fi
if test $ac_cv_header_stdc = yes; then
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
:
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#if ((' ' & 0x0FF) == 0x020)
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#else
# define ISLOWER(c) \
(('a' <= (c) && (c) <= 'i') \
|| ('j' <= (c) && (c) <= 'r') \
|| ('s' <= (c) && (c) <= 'z'))
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
#endif
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main ()
{
int i;
for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i))
|| toupper (i) != TOUPPER (i))
exit(2);
exit (0);
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
:
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ac_cv_header_stdc=no
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
echo "${ECHO_T}$ac_cv_header_stdc" >&6
if test $ac_cv_header_stdc = yes; then
cat >>confdefs.h <<\_ACEOF
#define STDC_HEADERS 1
_ACEOF
fi
# GNU C and autotools are inconsistent about whether this is
# defined so let's make it true everywhere for now... However, IBM
# XL compilers on PPC Linux behave really badly when compiled with
# _GNU_SOURCE defined, so don't define it in that situation.
#
# Don't use AC_GNU_SOURCE because it requires that no compiler
# tests are done before setting it, and we need to at least do
# enough tests to figure out if we're using XL or not.
if test "$ompi_cv_c_compiler_vendor" != "ibm"; then
cat >>confdefs.h <<\_ACEOF
#define _GNU_SOURCE 1
_ACEOF
fi
# Do we want code coverage
if test "$WANT_COVERAGE" = "1"; then
if test "$ompi_c_vendor" = "gnu" ; then
# For compilers > gcc-4.x, use --coverage for
# compiling and linking to circumvent trouble with
# libgcov.
CFLAGS_orig="$CFLAGS"
LDFLAGS_orig="$LDFLAGS"
CFLAGS="$CFLAGS_orig --coverage"
LDFLAGS="$LDFLAGS_orig --coverage"
OMPI_COVERAGE_FLAGS=
echo "$as_me:$LINENO: checking if $CC supports --coverage" >&5
echo $ECHO_N "checking if $CC supports --coverage... $ECHO_C" >&6
if test "${ompi_cv_cc_coverage+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cc_coverage="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cc_coverage="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cc_coverage" >&5
echo "${ECHO_T}$ompi_cv_cc_coverage" >&6
if test "$ompi_cv_cc_coverage" = "yes" ; then
OMPI_COVERAGE_FLAGS="--coverage"
CLEANFILES="*.gcda *.gcno *.gcov ${CLEANFILES}"
else
OMPI_COVERAGE_FLAGS="-ftest-coverage -fprofile-arcs"
CLEANFILES="*.bb *.bbg *.da *.*.gcov ${CLEANFILES}"
fi
CFLAGS="$CFLAGS_orig $OMPI_COVERAGE_FLAGS"
LDFLAGS="$LDFLAGS_orig $OMPI_COVERAGE_FLAGS"
WRAPPER_EXTRA_CFLAGS="${WRAPPER_EXTRA_CFLAGS} $OMPI_COVERAGE_FLAGS"
WRAPPER_EXTRA_LDFLAGS="${WRAPPER_EXTRA_LDFLAGS} $OMPI_COVERAGE_FLAGS"
# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${CFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
# 1 is the variable name to be uniq-ized
ompi_name=LDFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${LDFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_CFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${WRAPPER_EXTRA_CFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
# 1 is the variable name to be uniq-ized
ompi_name=WRAPPER_EXTRA_LDFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${WRAPPER_EXTRA_LDFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
{ echo "$as_me:$LINENO: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5
echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;}
WANT_DEBUG=1
else
{ echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC" >&5
echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC" >&2;}
{ { echo "$as_me:$LINENO: error: Configure: Cannot continue" >&5
echo "$as_me: error: Configure: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
# Do we want debugging?
if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then
if test "$ompi_c_vendor" = "gnu"; then
CFLAGS="$CFLAGS -g" # keep the -g3 for when it will become a standard option.
else
CFLAGS="$CFLAGS -g"
fi
# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${CFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
{ echo "$as_me:$LINENO: WARNING: -g has been added to CFLAGS (--enable-debug)" >&5
echo "$as_me: WARNING: -g has been added to CFLAGS (--enable-debug)" >&2;}
fi
# These flags are generally gcc-specific; even the
# gcc-impersonating compilers won't accept them.
OMPI_CFLAGS_BEFORE_PICKY="$CFLAGS"
if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_c_vendor" = "gnu" ; then
add="-Wall -Wundef -Wno-long-long -Wsign-compare"
add="$add -Wmissing-prototypes -Wstrict-prototypes"
add="$add -Wcomment -pedantic"
# see if -Wno-long-double works...
CFLAGS_orig="$CFLAGS"
CFLAGS="$CFLAGS -Wno-long-double"
echo "$as_me:$LINENO: checking if $CC supports -Wno-long-double" >&5
echo $ECHO_N "checking if $CC supports -Wno-long-double... $ECHO_C" >&6
if test "${ompi_cv_cc_wno_long_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cc_wno_long_double="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cc_wno_long_double="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cc_wno_long_double" >&5
echo "${ECHO_T}$ompi_cv_cc_wno_long_double" >&6
CFLAGS="$CFLAGS_orig"
if test "$ompi_cv_cc_wno_long_double" = "yes" ; then
add="$add -Wno-long-double"
fi
add="$add -Werror-implicit-function-declaration "
CFLAGS="$CFLAGS $add"
# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${CFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
{ echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS (--enable-picky)" >&5
echo "$as_me: WARNING: $add has been added to CFLAGS (--enable-picky)" >&2;}
unset add
fi
# See if this version of gcc allows -finline-functions and/or
# -fno-strict-aliasing. Even check the gcc-impersonating compilers.
if test "$GCC" = "yes"; then
CFLAGS_orig="$CFLAGS"
CFLAGS="$CFLAGS_orig -finline-functions"
add=
echo "$as_me:$LINENO: checking if $CC supports -finline-functions" >&5
echo $ECHO_N "checking if $CC supports -finline-functions... $ECHO_C" >&6
if test "${ompi_cv_cc_finline_functions+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cc_finline_functions="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cc_finline_functions="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cc_finline_functions" >&5
echo "${ECHO_T}$ompi_cv_cc_finline_functions" >&6
if test "$ompi_cv_cc_finline_functions" = "yes" ; then
add=" -finline-functions"
fi
CFLAGS="$CFLAGS_orig$add"
CFLAGS_orig="$CFLAGS"
CFLAGS="$CFLAGS_orig -fno-strict-aliasing"
add=
echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
if test "${ompi_cv_cc_fno_strict_aliasing+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cc_fno_strict_aliasing="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cc_fno_strict_aliasing="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cc_fno_strict_aliasing" >&5
echo "${ECHO_T}$ompi_cv_cc_fno_strict_aliasing" >&6
if test "$ompi_cv_cc_fno_strict_aliasing" = "yes" ; then
add=" -fno-strict-aliasing"
fi
CFLAGS="$CFLAGS_orig$add"
# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${CFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
{ echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5
echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
unset add
fi
# Try to enable restrict keyword
RESTRICT_CFLAGS=
case "$ompi_c_vendor" in
intel)
RESTRICT_CFLAGS="-restrict"
;;
sgi)
RESTRICT_CFLAGS="-LANG:restrict=ON"
;;
esac
if test ! -z "$RESTRICT_CFLAGS" ; then
CFLAGS_orig="$CFLAGS"
CFLAGS="$CFLAGS_orig $RESTRICT_CFLAGS"
add=
echo "$as_me:$LINENO: checking if $CC supports $RESTRICT_CFLAGS" >&5
echo $ECHO_N "checking if $CC supports $RESTRICT_CFLAGS... $ECHO_C" >&6
if test "${ompi_cv_cc_restrict_cflags+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cc_restrict_cflags="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cc_restrict_cflags="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cc_restrict_cflags" >&5
echo "${ECHO_T}$ompi_cv_cc_restrict_cflags" >&6
if test "$ompi_cv_cc_restrict_cflags" = "yes" ; then
add=" $RESTRICT_CFLAGS"
fi
CFLAGS="${CFLAGS_orig}${add}"
# 1 is the variable name to be uniq-ized
ompi_name=CFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${CFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
if test "$add" != "" ; then
{ echo "$as_me:$LINENO: WARNING: $add has been added to CFLAGS" >&5
echo "$as_me: WARNING: $add has been added to CFLAGS" >&2;}
fi
unset add
fi
# see if the C compiler supports __builtin_expect
echo "$as_me:$LINENO: checking if $CC supports __builtin_expect" >&5
echo $ECHO_N "checking if $CC supports __builtin_expect... $ECHO_C" >&6
if test "${ompi_cv_cc_supports___builtin_expect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
void *ptr = (void*) 0;
if (__builtin_expect (ptr != (void*) 0, 1)) return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cc_supports___builtin_expect="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cc_supports___builtin_expect="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cc_supports___builtin_expect" >&5
echo "${ECHO_T}$ompi_cv_cc_supports___builtin_expect" >&6
if test "$ompi_cv_cc_supports___builtin_expect" = "yes" ; then
have_builtin_expect=1
else
have_builtin_expect=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_C_HAVE_BUILTIN_EXPECT $have_builtin_expect
_ACEOF
# see if the C compiler supports __builtin_prefetch
echo "$as_me:$LINENO: checking if $CC supports __builtin_prefetch" >&5
echo $ECHO_N "checking if $CC supports __builtin_prefetch... $ECHO_C" >&6
if test "${ompi_cv_cc_supports___builtin_prefetch+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
int ptr;
__builtin_prefetch(&ptr,0,0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cc_supports___builtin_prefetch="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cc_supports___builtin_prefetch="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cc_supports___builtin_prefetch" >&5
echo "${ECHO_T}$ompi_cv_cc_supports___builtin_prefetch" >&6
if test "$ompi_cv_cc_supports___builtin_prefetch" = "yes" ; then
have_builtin_prefetch=1
else
have_builtin_prefetch=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_C_HAVE_BUILTIN_PREFETCH $have_builtin_prefetch
_ACEOF
# Preload the optflags for the case where the user didn't specify
# any. If we're using GNU compilers, use -O3 (since it GNU
# doesn't require all compilation units to be compiled with the
# same level of optimization -- selecting a high level of
# optimization is not prohibitive). If we're using anything else,
# be conservative and just use -O.
#
# Note: gcc-impersonating compilers accept -O3
if test "$WANT_DEBUG" = "1"; then
OPTFLAGS=
else
if test "$GCC" = yes; then
OPTFLAGS="-O3"
else
OPTFLAGS="-O"
fi
fi
# Modularize this setup so that sub-configure.in scripts can use this
# same setup code.
##################################
# Optimization flags
##################################
# If the user did not specify optimization flags, add some (the value
# from $OPTFLAGS)
co_arg=""$OMPI_CFLAGS_BEFORE_PICKY""
co_found=0
for co_word in $co_arg; do
case $co_word in
-g) co_found=1 ;;
-g1) co_found=1 ;;
-g2) co_found=1 ;;
-g3) co_found=1 ;;
+K0) co_found=1 ;;
+K1) co_found=1 ;;
+K2) co_found=1 ;;
+K3) co_found=1 ;;
+K4) co_found=1 ;;
+K5) co_found=1 ;;
-O) co_found=1 ;;
-O0) co_found=1 ;;
-O1) co_found=1 ;;
-O2) co_found=1 ;;
-O3) co_found=1 ;;
-O4) co_found=1 ;;
-O5) co_found=1 ;;
-O6) co_found=1 ;;
-O7) co_found=1 ;;
-O8) co_found=1 ;;
-O9) co_found=1 ;;
-xO) co_found=1 ;;
-xO0) co_found=1 ;;
-xO1) co_found=1 ;;
-xO2) co_found=1 ;;
-xO3) co_found=1 ;;
-xO4) co_found=1 ;;
-xO5) co_found=1 ;;
-xO6) co_found=1 ;;
-xO7) co_found=1 ;;
-xO8) co_found=1 ;;
-xO9) co_found=1 ;;
-fast) co_found=1 ;;
esac
done
if test "$co_found" = "0"; then
co_result="$OPTFLAGS $co_arg"
else
co_result="$co_arg"
fi
# Clean up
unset co_found co_word co_arg
OMPI_CFLAGS_BEFORE_PICKY="$co_result"
echo "$as_me:$LINENO: checking for C optimization flags" >&5
echo $ECHO_N "checking for C optimization flags... $ECHO_C" >&6
# Modularize this setup so that sub-configure.in scripts can use this
# same setup code.
##################################
# Optimization flags
##################################
# If the user did not specify optimization flags, add some (the value
# from $OPTFLAGS)
co_arg=""$CFLAGS""
co_found=0
for co_word in $co_arg; do
case $co_word in
-g) co_found=1 ;;
-g1) co_found=1 ;;
-g2) co_found=1 ;;
-g3) co_found=1 ;;
+K0) co_found=1 ;;
+K1) co_found=1 ;;
+K2) co_found=1 ;;
+K3) co_found=1 ;;
+K4) co_found=1 ;;
+K5) co_found=1 ;;
-O) co_found=1 ;;
-O0) co_found=1 ;;
-O1) co_found=1 ;;
-O2) co_found=1 ;;
-O3) co_found=1 ;;
-O4) co_found=1 ;;
-O5) co_found=1 ;;
-O6) co_found=1 ;;
-O7) co_found=1 ;;
-O8) co_found=1 ;;
-O9) co_found=1 ;;
-xO) co_found=1 ;;
-xO0) co_found=1 ;;
-xO1) co_found=1 ;;
-xO2) co_found=1 ;;
-xO3) co_found=1 ;;
-xO4) co_found=1 ;;
-xO5) co_found=1 ;;
-xO6) co_found=1 ;;
-xO7) co_found=1 ;;
-xO8) co_found=1 ;;
-xO9) co_found=1 ;;
-fast) co_found=1 ;;
esac
done
if test "$co_found" = "0"; then
co_result="$OPTFLAGS $co_arg"
else
co_result="$co_arg"
fi
# Clean up
unset co_found co_word co_arg
echo "$as_me:$LINENO: result: $co_result" >&5
echo "${ECHO_T}$co_result" >&6
CFLAGS="$co_result"
# If we build on a windows environment with the windows compiler and linker
# then we need some translation functions from the opal/win32 directory.
if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE=
OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE='#'
else
OMPI_NEED_WINDOWS_REPLACEMENTS_TRUE='#'
OMPI_NEED_WINDOWS_REPLACEMENTS_FALSE=
fi
#
# Check for some types
#
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
inttypes.h stdint.h unistd.h
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me:$LINENO: checking for $ac_header" >&5
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
if eval "test \"\${$as_ac_Header+set}\" = set"; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include <$ac_header>
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
eval "$as_ac_Header=yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
eval "$as_ac_Header=no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
if test `eval echo '${'$as_ac_Header'}'` = yes; then
cat >>confdefs.h <<_ACEOF
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((long long *) 0)
return 0;
if (sizeof (long long))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_long_long=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_long_long=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
if test $ac_cv_type_long_long = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_LONG 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for long double" >&5
echo $ECHO_N "checking for long double... $ECHO_C" >&6
if test "${ac_cv_type_long_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((long double *) 0)
return 0;
if (sizeof (long double))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_long_double=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_long_double=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
echo "${ECHO_T}$ac_cv_type_long_double" >&6
if test $ac_cv_type_long_double = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_LONG_DOUBLE 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for int8_t" >&5
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
if test "${ac_cv_type_int8_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((int8_t *) 0)
return 0;
if (sizeof (int8_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_int8_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_int8_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
echo "${ECHO_T}$ac_cv_type_int8_t" >&6
if test $ac_cv_type_int8_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_INT8_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for uint8_t" >&5
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
if test "${ac_cv_type_uint8_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((uint8_t *) 0)
return 0;
if (sizeof (uint8_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_uint8_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_uint8_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
if test $ac_cv_type_uint8_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_UINT8_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for int16_t" >&5
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
if test "${ac_cv_type_int16_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((int16_t *) 0)
return 0;
if (sizeof (int16_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_int16_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_int16_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
echo "${ECHO_T}$ac_cv_type_int16_t" >&6
if test $ac_cv_type_int16_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_INT16_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for uint16_t" >&5
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
if test "${ac_cv_type_uint16_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((uint16_t *) 0)
return 0;
if (sizeof (uint16_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_uint16_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_uint16_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
if test $ac_cv_type_uint16_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_UINT16_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for int32_t" >&5
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
if test "${ac_cv_type_int32_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((int32_t *) 0)
return 0;
if (sizeof (int32_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_int32_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_int32_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
echo "${ECHO_T}$ac_cv_type_int32_t" >&6
if test $ac_cv_type_int32_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_INT32_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for uint32_t" >&5
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
if test "${ac_cv_type_uint32_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((uint32_t *) 0)
return 0;
if (sizeof (uint32_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_uint32_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_uint32_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
if test $ac_cv_type_uint32_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_UINT32_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for int64_t" >&5
echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
if test "${ac_cv_type_int64_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((int64_t *) 0)
return 0;
if (sizeof (int64_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_int64_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_int64_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
echo "${ECHO_T}$ac_cv_type_int64_t" >&6
if test $ac_cv_type_int64_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_INT64_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for uint64_t" >&5
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
if test "${ac_cv_type_uint64_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((uint64_t *) 0)
return 0;
if (sizeof (uint64_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_uint64_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_uint64_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
if test $ac_cv_type_uint64_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_UINT64_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for intptr_t" >&5
echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
if test "${ac_cv_type_intptr_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((intptr_t *) 0)
return 0;
if (sizeof (intptr_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_intptr_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_intptr_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
if test $ac_cv_type_intptr_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_INTPTR_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for uintptr_t" >&5
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
if test "${ac_cv_type_uintptr_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((uintptr_t *) 0)
return 0;
if (sizeof (uintptr_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_uintptr_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_uintptr_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
if test $ac_cv_type_uintptr_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_UINTPTR_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for mode_t" >&5
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
if test "${ac_cv_type_mode_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((mode_t *) 0)
return 0;
if (sizeof (mode_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_mode_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_mode_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
if test $ac_cv_type_mode_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_MODE_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((ssize_t *) 0)
return 0;
if (sizeof (ssize_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_ssize_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_ssize_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
if test $ac_cv_type_ssize_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_SSIZE_T 1
_ACEOF
fi
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((ptrdiff_t *) 0)
return 0;
if (sizeof (ptrdiff_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_ptrdiff_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_ptrdiff_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
if test $ac_cv_type_ptrdiff_t = yes; then
cat >>confdefs.h <<_ACEOF
#define HAVE_PTRDIFF_T 1
_ACEOF
fi
#
# Check for type sizes
#
echo "$as_me:$LINENO: checking for char" >&5
echo $ECHO_N "checking for char... $ECHO_C" >&6
if test "${ac_cv_type_char+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((char *) 0)
return 0;
if (sizeof (char))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_char=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_char=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
echo "${ECHO_T}$ac_cv_type_char" >&6
echo "$as_me:$LINENO: checking size of char" >&5
echo $ECHO_N "checking size of char... $ECHO_C" >&6
if test "${ac_cv_sizeof_char+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_char" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_char=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (char)); }
unsigned long ulongval () { return (long) (sizeof (char)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (char))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (char))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (char))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_char=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (char), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_char=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_CHAR $ac_cv_sizeof_char
_ACEOF
echo "$as_me:$LINENO: checking for short" >&5
echo $ECHO_N "checking for short... $ECHO_C" >&6
if test "${ac_cv_type_short+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((short *) 0)
return 0;
if (sizeof (short))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_short=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_short=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
echo "${ECHO_T}$ac_cv_type_short" >&6
echo "$as_me:$LINENO: checking size of short" >&5
echo $ECHO_N "checking size of short... $ECHO_C" >&6
if test "${ac_cv_sizeof_short+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_short" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_short=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (short)); }
unsigned long ulongval () { return (long) (sizeof (short)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (short))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (short))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (short))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_short=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (short), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_short=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SHORT $ac_cv_sizeof_short
_ACEOF
echo "$as_me:$LINENO: checking for int" >&5
echo $ECHO_N "checking for int... $ECHO_C" >&6
if test "${ac_cv_type_int+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((int *) 0)
return 0;
if (sizeof (int))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_int=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_int=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
echo "${ECHO_T}$ac_cv_type_int" >&6
echo "$as_me:$LINENO: checking size of int" >&5
echo $ECHO_N "checking size of int... $ECHO_C" >&6
if test "${ac_cv_sizeof_int+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_int" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_int=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (int)); }
unsigned long ulongval () { return (long) (sizeof (int)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (int))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (int))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (int))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_int=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (int), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_int=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_INT $ac_cv_sizeof_int
_ACEOF
echo "$as_me:$LINENO: checking for long" >&5
echo $ECHO_N "checking for long... $ECHO_C" >&6
if test "${ac_cv_type_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((long *) 0)
return 0;
if (sizeof (long))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_long=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_long=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
echo "${ECHO_T}$ac_cv_type_long" >&6
echo "$as_me:$LINENO: checking size of long" >&5
echo $ECHO_N "checking size of long... $ECHO_C" >&6
if test "${ac_cv_sizeof_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_long" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (long)); }
unsigned long ulongval () { return (long) (sizeof (long)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (long))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (long))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (long))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_long=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_long=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG $ac_cv_sizeof_long
_ACEOF
if test $ac_cv_type_long_long = yes; then
echo "$as_me:$LINENO: checking for long long" >&5
echo $ECHO_N "checking for long long... $ECHO_C" >&6
if test "${ac_cv_type_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((long long *) 0)
return 0;
if (sizeof (long long))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_long_long=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_long_long=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
echo "${ECHO_T}$ac_cv_type_long_long" >&6
echo "$as_me:$LINENO: checking size of long long" >&5
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
if test "${ac_cv_sizeof_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_long_long" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long_long=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (long long)); }
unsigned long ulongval () { return (long) (sizeof (long long)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (long long))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (long long))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (long long))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_long_long=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long long), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_long_long=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
_ACEOF
fi
if test $ac_cv_type_long_double = yes; then
echo "$as_me:$LINENO: checking for long double" >&5
echo $ECHO_N "checking for long double... $ECHO_C" >&6
if test "${ac_cv_type_long_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((long double *) 0)
return 0;
if (sizeof (long double))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_long_double=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_long_double=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
echo "${ECHO_T}$ac_cv_type_long_double" >&6
echo "$as_me:$LINENO: checking size of long double" >&5
echo $ECHO_N "checking size of long double... $ECHO_C" >&6
if test "${ac_cv_sizeof_long_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_long_double" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_long_double=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long double), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (long double)); }
unsigned long ulongval () { return (long) (sizeof (long double)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (long double))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (long double))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (long double))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_long_double=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (long double), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_long_double=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
_ACEOF
fi
echo "$as_me:$LINENO: checking for float" >&5
echo $ECHO_N "checking for float... $ECHO_C" >&6
if test "${ac_cv_type_float+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((float *) 0)
return 0;
if (sizeof (float))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_float=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_float=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
echo "${ECHO_T}$ac_cv_type_float" >&6
echo "$as_me:$LINENO: checking size of float" >&5
echo $ECHO_N "checking size of float... $ECHO_C" >&6
if test "${ac_cv_sizeof_float+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_float" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_float=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (float), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (float)); }
unsigned long ulongval () { return (long) (sizeof (float)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (float))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (float))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (float))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_float=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (float), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_float=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
echo "${ECHO_T}$ac_cv_sizeof_float" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_FLOAT $ac_cv_sizeof_float
_ACEOF
echo "$as_me:$LINENO: checking for double" >&5
echo $ECHO_N "checking for double... $ECHO_C" >&6
if test "${ac_cv_type_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((double *) 0)
return 0;
if (sizeof (double))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_double=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_double=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
echo "${ECHO_T}$ac_cv_type_double" >&6
echo "$as_me:$LINENO: checking size of double" >&5
echo $ECHO_N "checking size of double... $ECHO_C" >&6
if test "${ac_cv_sizeof_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_double" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_double=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (double), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (double)); }
unsigned long ulongval () { return (long) (sizeof (double)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (double))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (double))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (double))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_double=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (double), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_double=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
echo "${ECHO_T}$ac_cv_sizeof_double" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_DOUBLE $ac_cv_sizeof_double
_ACEOF
echo "$as_me:$LINENO: checking for void *" >&5
echo $ECHO_N "checking for void *... $ECHO_C" >&6
if test "${ac_cv_type_void_p+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((void * *) 0)
return 0;
if (sizeof (void *))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_void_p=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_void_p=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
echo "${ECHO_T}$ac_cv_type_void_p" >&6
echo "$as_me:$LINENO: checking size of void *" >&5
echo $ECHO_N "checking size of void *... $ECHO_C" >&6
if test "${ac_cv_sizeof_void_p+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_void_p" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_void_p=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (void *)); }
unsigned long ulongval () { return (long) (sizeof (void *)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (void *))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (void *))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (void *))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_void_p=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (void *), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_void_p=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
_ACEOF
echo "$as_me:$LINENO: checking for size_t" >&5
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
if test "${ac_cv_type_size_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((size_t *) 0)
return 0;
if (sizeof (size_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_size_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_size_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
echo "${ECHO_T}$ac_cv_type_size_t" >&6
echo "$as_me:$LINENO: checking size of size_t" >&5
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
if test "${ac_cv_sizeof_size_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_size_t" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_size_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (size_t)); }
unsigned long ulongval () { return (long) (sizeof (size_t)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (size_t))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (size_t))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (size_t))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_size_t=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (size_t), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_size_t=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF
if test $ac_cv_type_ssize_t = yes ; then
echo "$as_me:$LINENO: checking for ssize_t" >&5
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
if test "${ac_cv_type_ssize_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((ssize_t *) 0)
return 0;
if (sizeof (ssize_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_ssize_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_ssize_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
echo "$as_me:$LINENO: checking size of ssize_t" >&5
echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
if test "${ac_cv_sizeof_ssize_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_ssize_t" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_ssize_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (ssize_t), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (ssize_t)); }
unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (ssize_t))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (ssize_t))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (ssize_t))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_ssize_t=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (ssize_t), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_ssize_t=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
_ACEOF
fi
if test $ac_cv_type_ptrdiff_t = yes; then
echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((ptrdiff_t *) 0)
return 0;
if (sizeof (ptrdiff_t))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_ptrdiff_t=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_ptrdiff_t=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_ptrdiff_t" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (ptrdiff_t)); }
unsigned long ulongval () { return (long) (sizeof (ptrdiff_t)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (ptrdiff_t))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (ptrdiff_t))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (ptrdiff_t))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_ptrdiff_t=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
_ACEOF
fi
#
# Check for type alignments
#
echo "$as_me:$LINENO: checking alignment of char" >&5
echo $ECHO_N "checking alignment of char... $ECHO_C" >&6
if test "${ompi_cv_c_align_char+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; char y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; char y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; char y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; char y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; char y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_char=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; char y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_char=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; char x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_char=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_char" >&5
echo "${ECHO_T}$ompi_cv_c_align_char" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_CHAR $ompi_cv_c_align_char
_ACEOF
eval "OMPI_ALIGNMENT_CHAR=$ompi_cv_c_align_char"
/bin/rm -f conftest*
echo "$as_me:$LINENO: checking alignment of short" >&5
echo $ECHO_N "checking alignment of short... $ECHO_C" >&6
if test "${ompi_cv_c_align_short+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_short=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; short y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_short=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; short x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_short=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_short" >&5
echo "${ECHO_T}$ompi_cv_c_align_short" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_SHORT $ompi_cv_c_align_short
_ACEOF
eval "OMPI_ALIGNMENT_SHORT=$ompi_cv_c_align_short"
/bin/rm -f conftest*
echo "$as_me:$LINENO: checking alignment of wchar_t" >&5
echo $ECHO_N "checking alignment of wchar_t... $ECHO_C" >&6
if test "${ompi_cv_c_align_wchar_t+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; wchar_t y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; wchar_t y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; wchar_t y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; wchar_t y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; wchar_t y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_wchar_t=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; wchar_t y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_wchar_t=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; wchar_t x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_wchar_t=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_wchar_t" >&5
echo "${ECHO_T}$ompi_cv_c_align_wchar_t" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_WCHAR $ompi_cv_c_align_wchar_t
_ACEOF
eval "OMPI_ALIGNMENT_WCHAR=$ompi_cv_c_align_wchar_t"
/bin/rm -f conftest*
echo "$as_me:$LINENO: checking alignment of int" >&5
echo $ECHO_N "checking alignment of int... $ECHO_C" >&6
if test "${ompi_cv_c_align_int+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_int=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; int y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_int=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; int x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_int=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_int" >&5
echo "${ECHO_T}$ompi_cv_c_align_int" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_INT $ompi_cv_c_align_int
_ACEOF
eval "OMPI_ALIGNMENT_INT=$ompi_cv_c_align_int"
/bin/rm -f conftest*
echo "$as_me:$LINENO: checking alignment of long" >&5
echo $ECHO_N "checking alignment of long... $ECHO_C" >&6
if test "${ompi_cv_c_align_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_long=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_long=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; long x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_long=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_long" >&5
echo "${ECHO_T}$ompi_cv_c_align_long" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_LONG $ompi_cv_c_align_long
_ACEOF
eval "OMPI_ALIGNMENT_LONG=$ompi_cv_c_align_long"
/bin/rm -f conftest*
if test $ac_cv_type_long_long = yes; then
echo "$as_me:$LINENO: checking alignment of long long" >&5
echo $ECHO_N "checking alignment of long long... $ECHO_C" >&6
if test "${ompi_cv_c_align_long_long+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long long y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long long y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long long y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long long y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long long y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_long_long=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long long y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_long_long=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; long long x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_long_long=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_long_long" >&5
echo "${ECHO_T}$ompi_cv_c_align_long_long" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_LONG_LONG $ompi_cv_c_align_long_long
_ACEOF
eval "OMPI_ALIGNMENT_LONG_LONG=$ompi_cv_c_align_long_long"
/bin/rm -f conftest*
fi
echo "$as_me:$LINENO: checking alignment of float" >&5
echo $ECHO_N "checking alignment of float... $ECHO_C" >&6
if test "${ompi_cv_c_align_float+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_float=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; float y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_float=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; float x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_float=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_float" >&5
echo "${ECHO_T}$ompi_cv_c_align_float" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FLOAT $ompi_cv_c_align_float
_ACEOF
eval "OMPI_ALIGNMENT_FLOAT=$ompi_cv_c_align_float"
/bin/rm -f conftest*
echo "$as_me:$LINENO: checking alignment of double" >&5
echo $ECHO_N "checking alignment of double... $ECHO_C" >&6
if test "${ompi_cv_c_align_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_double=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; double y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_double=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; double x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_double=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_double" >&5
echo "${ECHO_T}$ompi_cv_c_align_double" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_DOUBLE $ompi_cv_c_align_double
_ACEOF
eval "OMPI_ALIGNMENT_DOUBLE=$ompi_cv_c_align_double"
/bin/rm -f conftest*
if test $ac_cv_type_long_double = yes; then
echo "$as_me:$LINENO: checking alignment of long double" >&5
echo $ECHO_N "checking alignment of long double... $ECHO_C" >&6
if test "${ompi_cv_c_align_long_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long double y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long double y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long double y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long double y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long double y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_long_double=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; long double y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_long_double=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; long double x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_long_double=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_long_double" >&5
echo "${ECHO_T}$ompi_cv_c_align_long_double" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_LONG_DOUBLE $ompi_cv_c_align_long_double
_ACEOF
eval "OMPI_ALIGNMENT_LONG_DOUBLE=$ompi_cv_c_align_long_double"
/bin/rm -f conftest*
fi
echo "$as_me:$LINENO: checking alignment of void *" >&5
echo $ECHO_N "checking alignment of void *... $ECHO_C" >&6
if test "${ompi_cv_c_align_void_p+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; void * y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; void * y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; void * y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; void * y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; void * y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_void_p=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; void * y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_void_p=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; void * x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_void_p=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_void_p" >&5
echo "${ECHO_T}$ompi_cv_c_align_void_p" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_VOID_P $ompi_cv_c_align_void_p
_ACEOF
eval "OMPI_ALIGNMENT_VOID_P=$ompi_cv_c_align_void_p"
/bin/rm -f conftest*
#
# Does the C compiler native support "bool"? (i.e., without
# or any other help)
#
echo "$as_me:$LINENO: checking for C bool type" >&5
echo $ECHO_N "checking for C bool type... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
bool bar, foo = true; bar = foo;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
OMPI_NEED_C_BOOL=0 MSG=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
OMPI_NEED_C_BOOL=1 MSG=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cat >>confdefs.h <<_ACEOF
#define OMPI_NEED_C_BOOL $OMPI_NEED_C_BOOL
_ACEOF
echo "$as_me:$LINENO: result: $MSG" >&5
echo "${ECHO_T}$MSG" >&6
#
# Check for other compiler characteristics
#
if test "$GCC" = "yes"; then
# gcc 2.96 will emit oodles of warnings if you use "inline" with
# -pedantic (which we do in developer builds). However,
# "__inline__" is ok. So we have to force gcc to select the
# right one. If you use -pedantic, the AC_C_INLINE test will fail
# (because it names a function foo() -- without the (void)). So
# we turn off all the picky flags, turn on -ansi mode (which is
# implied by -pedantic), and set warnings to be errors. Hence,
# this does the following (for 2.96):
#
# - causes the check for "inline" to emit a warning, which then
# fails
# - checks for __inline__, which then emits no error, and works
#
# This also works nicely for gcc 3.x because "inline" will work on
# the first check, and all is fine. :-)
CFLAGS_save="$CFLAGS"
CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY -Werror -ansi"
fi
echo "$as_me:$LINENO: checking for inline" >&5
echo $ECHO_N "checking for inline... $ECHO_C" >&6
if test "${ac_cv_c_inline+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifndef __cplusplus
typedef int foo_t;
static $ac_kw foo_t static_foo () {return 0; }
$ac_kw foo_t foo () {return 0; }
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_c_inline=$ac_kw; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
fi
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
echo "${ECHO_T}$ac_cv_c_inline" >&6
case $ac_cv_c_inline in
inline | yes) ;;
*)
case $ac_cv_c_inline in
no) ac_val=;;
*) ac_val=$ac_cv_c_inline;;
esac
cat >>confdefs.h <<_ACEOF
#ifndef __cplusplus
#define inline $ac_val
#endif
_ACEOF
;;
esac
# Microsoft compilers support 2 versions of restrict. One for functions, and
# one for variables. The problem is that they don't have an equivalent
# syntax, and the autoconf restrict detection is unable to detect them
# correctly. It detect the restrict keyword as __restrict which break the
# rules for function syntax which is declspec(restrict).
if test "x$ompi_cv_c_compiler_vendor" != "xmicrosoft"; then
echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
if test "${ac_cv_c_restrict+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_cv_c_restrict=no
# Try the official restrict keyword, then gcc's __restrict, and
# the less common variants.
for ac_kw in restrict __restrict __restrict__ _Restrict; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
float * $ac_kw x;
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_c_restrict=$ac_kw; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
fi
echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
echo "${ECHO_T}$ac_cv_c_restrict" >&6
case $ac_cv_c_restrict in
restrict) ;;
no)
cat >>confdefs.h <<\_ACEOF
#define restrict
_ACEOF
;;
*) cat >>confdefs.h <<_ACEOF
#define restrict $ac_cv_c_restrict
_ACEOF
;;
esac
fi
echo "$as_me:$LINENO: checking for weak symbol support" >&5
echo $ECHO_N "checking for weak symbol support... $ECHO_C" >&6
if test "${ompi_cv_c_weak_symbols+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# need two files because icc will incorrectly not create the
# symbols if they are not used in the object file in which they
# are defined. Blah!
cat > conftest_weak.c < conftest.c <&5
$CC $CFLAGS -c conftest_weak.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:18759: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:18769: $CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS" >&5
$CC $CFLAGS conftest.c conftest_weak.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:18776: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_c_weak_symbols_happy=1
else
unset ompi_status
ompi_c_weak_symbols_happy=0
fi
else
unset ompi_status
ompi_c_weak_symbols_happy=0
fi
if test "$ompi_c_weak_symbols_happy" = "1"; then
ompi_cv_c_weak_symbols="yes"
else
ompi_cv_c_weak_symbols="no"
fi
unset ompi_c_weak_symbols_happy
/bin/rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_weak_symbols" >&5
echo "${ECHO_T}$ompi_cv_c_weak_symbols" >&6
if test "$ompi_cv_c_weak_symbols" = "yes"; then
OMPI_C_HAVE_WEAK_SYMBOLS=1
else
OMPI_C_HAVE_WEAK_SYMBOLS=0
fi
if test "$GCC" = "yes"; then
CFLAGS="$CFLAGS_save"
fi
if test "x$CC" = "xicc"; then
echo "$as_me:$LINENO: checking whether icc-8.1 for EM64T works with variable arguments" >&5
echo $ECHO_N "checking whether icc-8.1 for EM64T works with variable arguments... $ECHO_C" >&6
if test "$cross_compiling" = yes; then
ompi_ac_icc_varargs=1
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
void func (int c, char * f, ...)
{
va_list arglist;
va_start (arglist, f);
/* vprintf (f, arglist); */
va_end (arglist);
}
int main ()
{
FILE *f;
func (4711, "Help %d [%s]\n", 10, "ten");
f=fopen ("conftestval", "w");
if (!f) exit (1);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_ac_icc_varargs=`test -f conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ompi_ac_icc_varargs=1
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
if test "$ompi_ac_icc_varargs" = "1"; then
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&5
echo "$as_me: WARNING: *** Your icc-8.1 compiler seems to miscompile va_start!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&5
echo "$as_me: WARNING: *** Please upgrade compiler to at least version 8.1.027" >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
/bin/rm -f conftest*
fi
# If we want the profiling layer:
# - If the C compiler has weak symbols, use those.
# - If not, then set to compile the code again with #define's in a
# separate directory.
if test "$WANT_WEAK_SYMBOLS" = "0"; then
OMPI_C_HAVE_WEAK_SYMBOLS=0
fi
if test "$WANT_MPI_PROFILING" = "1"; then
if test "$OMPI_C_HAVE_WEAK_SYMBOLS" = "1"; then
OMPI_PROFILING_COMPILE_SEPARATELY=0
else
OMPI_PROFILING_COMPILE_SEPARATELY=1
fi
else
OMPI_PROFILING_COMPILE_SEPARATELY=0
fi
#
# There are 2 layers to the MPI Language binidings One layer generates
# MPI_* bindings. The other layer generates PMPI_* bindings. The
# following conditions determine whether each (or both) these layers
# are built.
# 1. MPI_* bindings are needed if:
# - Profiling is not required
# - Profiling is required but weak symbols are not
# supported
# 2. PMPI_* bindings are needed if profiling is required. Hence we
# define 2 conditionals which tell us whether each of these layers
# need to be built or NOT
#
if test "$WANT_MPI_PROFILING" = 0 -o "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then
WANT_MPI_BINDINGS_LAYER_TRUE=
WANT_MPI_BINDINGS_LAYER_FALSE='#'
else
WANT_MPI_BINDINGS_LAYER_TRUE='#'
WANT_MPI_BINDINGS_LAYER_FALSE=
fi
if test "$WANT_MPI_PROFILING" = 1; then
WANT_PMPI_BINDINGS_LAYER_TRUE=
WANT_PMPI_BINDINGS_LAYER_FALSE='#'
else
WANT_PMPI_BINDINGS_LAYER_TRUE='#'
WANT_PMPI_BINDINGS_LAYER_FALSE=
fi
if test "$OMPI_PROFILING_COMPILE_SEPARATELY" = 1; then
COMPILE_PROFILING_SEPARATELY_TRUE=
COMPILE_PROFILING_SEPARATELY_FALSE='#'
else
COMPILE_PROFILING_SEPARATELY_TRUE='#'
COMPILE_PROFILING_SEPARATELY_FALSE=
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_ENABLE_MPI_PROFILING $WANT_MPI_PROFILING
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_WEAK_SYMBOLS $OMPI_C_HAVE_WEAK_SYMBOLS
_ACEOF
##################################
# C++ compiler characteristics
##################################
ompi_show_subtitle "C++ compiler and preprocessor"
ompi_cxxflags_save="$CXXFLAGS"
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test -n "$ac_tool_prefix"; then
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_CXX+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$CXX"; then
ac_cv_prog_CXX="$CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
CXX=$ac_cv_prog_CXX
if test -n "$CXX"; then
echo "$as_me:$LINENO: result: $CXX" >&5
echo "${ECHO_T}$CXX" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$CXX" && break
done
fi
if test -z "$CXX"; then
ac_ct_CXX=$CXX
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_CXX"; then
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_CXX="$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
if test -n "$ac_ct_CXX"; then
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
echo "${ECHO_T}$ac_ct_CXX" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$ac_ct_CXX" && break
done
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
CXX=$ac_ct_CXX
fi
# Provide some information about the compiler.
echo "$as_me:$LINENO:" \
"checking for C++ compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
(eval $ac_compiler --version &5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
(eval $ac_compiler -v &5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
(eval $ac_compiler -V &5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
#ifndef __GNUC__
choke me
#endif
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_compiler_gnu=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
GXX=`test $ac_compiler_gnu = yes && echo yes`
ac_test_CXXFLAGS=${CXXFLAGS+set}
ac_save_CXXFLAGS=$CXXFLAGS
CXXFLAGS="-g"
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_cxx_g+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_prog_cxx_g=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_prog_cxx_g=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS=$ac_save_CXXFLAGS
elif test $ac_cv_prog_cxx_g = yes; then
if test "$GXX" = yes; then
CXXFLAGS="-g -O2"
else
CXXFLAGS="-g"
fi
else
if test "$GXX" = yes; then
CXXFLAGS="-O2"
else
CXXFLAGS=
fi
fi
for ac_declaration in \
'' \
'extern "C" void std::exit (int) throw (); using std::exit;' \
'extern "C" void std::exit (int); using std::exit;' \
'extern "C" void exit (int) throw ();' \
'extern "C" void exit (int);' \
'void exit (int);'
do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_declaration
#include
int
main ()
{
exit (42);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
:
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
continue
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_declaration
int
main ()
{
exit (42);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
rm -f conftest*
if test -n "$ac_declaration"; then
echo '#ifdef __cplusplus' >>confdefs.h
echo $ac_declaration >>confdefs.h
echo '#endif' >>confdefs.h
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
depcc="$CXX" am_compiler_list=
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
# We make a subdir and do the tests there. Otherwise we can end up
# making bogus files that we don't know about and never remove. For
# instance it was reported that on HP-UX the gcc test will end up
# making a dummy file named `D' -- because `-MD' means `put the output
# in D'.
mkdir conftest.dir
# Copy depcomp to subdir because otherwise we won't find it if we're
# using a relative directory.
cp "$am_depcomp" conftest.dir
cd conftest.dir
# We will build objects and dependencies in a subdirectory because
# it helps to detect inapplicable dependency modes. For instance
# both Tru64's cc and ICC support -MD to output dependencies as a
# side effect of compilation, but ICC will put the dependencies in
# the current directory while Tru64 will put them in the object
# directory.
mkdir sub
am_cv_CXX_dependencies_compiler_type=none
if test "$am_compiler_list" = ""; then
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
fi
for depmode in $am_compiler_list; do
# Setup a source with many dependencies, because some compilers
# like to wrap large dependency lists on column 80 (with \), and
# we should not choose a depcomp mode which is confused by this.
#
# We need to recreate these files for each test, as the compiler may
# overwrite some of them when testing with obscure command lines.
# This happens at least with the AIX C compiler.
: > sub/conftest.c
for i in 1 2 3 4 5 6; do
echo '#include "conftst'$i'.h"' >> sub/conftest.c
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
# Solaris 8's {/usr,}/bin/sh.
touch sub/conftst$i.h
done
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
case $depmode in
nosideeffect)
# after this tag, mechanisms are not by side-effect, so they'll
# only be used when explicitly requested
if test "x$enable_dependency_tracking" = xyes; then
continue
else
break
fi
;;
none) break ;;
esac
# We check with `-c' and `-o' for the sake of the "dashmstdout"
# mode. It turns out that the SunPro C++ compiler does not properly
# handle `-M -o', and we need to detect this.
if depmode=$depmode \
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
>/dev/null 2>conftest.err &&
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
# icc doesn't choke on unknown options, it will just issue warnings
# or remarks (even with -Werror). So we grep stderr for any message
# that says an option was ignored or not supported.
# When given -MP, icc 7.0 and 7.1 complain thusly:
# icc: Command line warning: ignoring option '-M'; no argument required
# The diagnosis changed in icc 8.0:
# icc: Command line remark: option '-MP' not supported
if (grep 'ignoring option' conftest.err ||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
am_cv_CXX_dependencies_compiler_type=$depmode
break
fi
fi
done
cd ..
rm -rf conftest.dir
else
am_cv_CXX_dependencies_compiler_type=none
fi
fi
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
if
test "x$enable_dependency_tracking" != xno \
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
am__fastdepCXX_TRUE=
am__fastdepCXX_FALSE='#'
else
am__fastdepCXX_TRUE='#'
am__fastdepCXX_FALSE=
fi
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
if test -z "$CXXCPP"; then
if test "${ac_cv_prog_CXXCPP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Double quotes because CXXCPP needs to be expanded
for CXXCPP in "$CXX -E" "/lib/cpp"
do
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer to if __STDC__ is defined, since
# exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include
#else
# include
#endif
Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_cxx_preproc_warn_flag
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
:
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_cxx_preproc_warn_flag
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
# Broken: success on invalid input.
continue
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
break
fi
done
ac_cv_prog_CXXCPP=$CXXCPP
fi
CXXCPP=$ac_cv_prog_CXXCPP
else
ac_cv_prog_CXXCPP=$CXXCPP
fi
echo "$as_me:$LINENO: result: $CXXCPP" >&5
echo "${ECHO_T}$CXXCPP" >&6
ac_preproc_ok=false
for ac_cxx_preproc_warn_flag in '' yes
do
# Use a header file that comes with gcc, so configuring glibc
# with a fresh cross-compiler works.
# Prefer to if __STDC__ is defined, since
# exists even on freestanding compilers.
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp. "Syntax error" is here to catch this case.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#ifdef __STDC__
# include
#else
# include
#endif
Syntax error
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_cxx_preproc_warn_flag
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
:
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Broken: fails on valid input.
continue
fi
rm -f conftest.err conftest.$ac_ext
# OK, works on sane cases. Now check whether non-existent headers
# can be detected and how.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
_ACEOF
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } >/dev/null; then
if test -s conftest.err; then
ac_cpp_err=$ac_cxx_preproc_warn_flag
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
else
ac_cpp_err=
fi
else
ac_cpp_err=yes
fi
if test -z "$ac_cpp_err"; then
# Broken: success on invalid input.
continue
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
# Passes both tests.
ac_preproc_ok=:
break
fi
rm -f conftest.err conftest.$ac_ext
done
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
rm -f conftest.err conftest.$ac_ext
if $ac_preproc_ok; then
:
else
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&5
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
BASECXX="`basename $CXX`"
CXXFLAGS="$ompi_cxxflags_save"
cat >>confdefs.h <<_ACEOF
#define OMPI_CXX "$CXX"
_ACEOF
OMPI_CXX_ABSOLUTE="`which $CXX`"
echo "$as_me:$LINENO: checking for the C++ compiler vendor" >&5
echo $ECHO_N "checking for the C++ compiler vendor... $ECHO_C" >&6
if test "${ompi_cv_cxx_compiler_vendor+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ompi_check_compiler_vendor_result="unknown"
# GNU is probably the most common, so check that one as soon as
# possible. Intel pretends to be GNU, so need to check Intel
# before checking for GNU.
# Intel
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__INTEL_COMPILER) || defined(__ICC) )
#error "condition defined(__INTEL_COMPILER) || defined(__ICC) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="intel"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# GNU
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __GNUC__
#error "symbol __GNUC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="gnu"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Borland Turbo C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __TURBOC__
#error "symbol __TURBOC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="borland"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Borland C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __BORLANDC__
#error "symbol __BORLANDC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="borland"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Comeau C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __COMO__
#error "symbol __COMO__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="comeau"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Compaq C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__DECC) || defined(VAXC) || defined(__VAXC) )
#error "condition defined(__DECC) || defined(VAXC) || defined(__VAXC) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="compaq"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__osf__) && defined(__LANGUAGE_C__) )
#error "condition defined(__osf__) && defined(__LANGUAGE_C__) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="compaq"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#ifndef __DECCXX
#error "symbol __DECCXX not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="compaq"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Cray C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef _CRAYC
#error "symbol _CRAYC not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="cray"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Diab C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __DCC__
#error "symbol __DCC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="diab"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Digital Mars
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__DMC__) || defined(__SC__) || defined(__ZTC__) )
#error "condition defined(__DMC__) || defined(__SC__) || defined(__ZTC__) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="digital mars"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# HP ANSI C / aC++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__HP_cc) || defined(__HP_aCC) )
#error "condition defined(__HP_cc) || defined(__HP_aCC) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="hp"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# IBM XL C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) )
#error "condition defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="ibm"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(_AIX) && !defined(__GNUC__) )
#error "condition defined(_AIX) && !defined(__GNUC__) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="ibm"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# KAI C++ (rest in peace)
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __KCC
#error "symbol __KCC not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="kai"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# LCC
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __LCC__
#error "symbol __LCC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="lcc"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MetaWare High C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __HIGHC__
#error "symbol __HIGHC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="metaware high"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Metrowerks Codewarrior
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __MWERKS__
#error "symbol __MWERKS__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="metrowerks"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MIPSpro (SGI)
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(sgi) || defined(__sgi) )
#error "condition defined(sgi) || defined(__sgi) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="sgi"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# MPW C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) )
#error "condition defined(__MRC__) || defined(MPW_C) || defined(MPW_CPLUS) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="mpw"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Microsoft
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
# Always use C compiler when checking for Microsoft, as
# Visual C++ doesn't recognize .cc as a C++ file.
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(_MSC_VER) || defined(__MSC_VER) )
#error "condition defined(_MSC_VER) || defined(__MSC_VER) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="microsoft"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
fi
# Norcroft C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __CC_NORCROFT
#error "symbol __CC_NORCROFT not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="norcroft"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Pelles C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __POCC__
#error "symbol __POCC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="pelles"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Portland Group
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __PGI
#error "symbol __PGI not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="portland group"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# SAS/C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(SASC) || defined(__SASC) || defined(__SASC__) )
#error "condition defined(SASC) || defined(__SASC) || defined(__SASC__) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="sas"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Sun Workshop C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#if !( defined(__SUNPRO_C) || defined(__SUNPRO_CC) )
#error "condition defined(__SUNPRO_C) || defined(__SUNPRO_CC) not met"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="sun"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# TenDRA C/C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __TenDRA__
#error "symbol __TenDRA__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="tendra"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Tiny C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __TINYC__
#error "symbol __TINYC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="tiny"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# USL C
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __USLC__
#error "symbol __USLC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="usl"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
# Watcom C++
if test "$ompi_check_compiler_vendor_result" = "unknown"; then
cat >conftest.$ac_ext <<_ACEOF
#ifndef __WATCOMC__
#error "symbol __WATCOMC__ not defined"
choke me
#endif
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_check_compiler_vendor_result="watcom"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
ompi_cv_cxx_compiler_vendor="$ompi_check_compiler_vendor_result"
unset ompi_check_compiler_vendor_result
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_cxx_compiler_vendor" >&5
echo "${ECHO_T}$ompi_cv_cxx_compiler_vendor" >&6
ompi_cxx_vendor="$ompi_cv_c_compiler_vendor"
# Make sure that the C++ compiler both works and is actually a C++
# compiler (if not cross-compiling). Don't just use the AC macro
# so that we can have a pretty message. Do something here that
# should force the linking of C++-specific things (e.g., STL
# strings) so that we can force a hard check of compiling,
# linking, and running a C++ application Note that some C
# compilers, such as at least some versions of the GNU and Intel
# compilers, will detect that the file extension is ".cc" and
# therefore switch into a pseudo-C++ personality which works for
# *compiling*, but does not work for *linking*. So in this test,
# we want to cover the entire spectrum (compiling, linking,
# running).
if test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ; then
echo "$as_me:$LINENO: checking if C++ compiler works" >&5
echo $ECHO_N "checking if C++ compiler works... $ECHO_C" >&6
if test "${ompi_cv_Cpp_works+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
if test "$cross_compiling" = yes; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
int
main ()
{
std::string foo = "Hello, world"
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_Cpp_works="links (cross compiling)"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_Cpp_works="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
int
main ()
{
std::string foo = "Hello, world"
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_Cpp_works="yes"
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ompi_cv_Cpp_works="no"
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_Cpp_works" >&5
echo "${ECHO_T}$ompi_cv_Cpp_works" >&6
if test "$ompi_cv_Cpp_works" = "no"; then
cat <&2
**********************************************************************
* It appears that your C++ compiler is unable to produce working
* executables. A simple test application failed to properly
* execute. Note that this is likely not a problem with Open MPI,
* but a problem with the local compiler installation. More
* information (including exactly what command was given to the
* compiler and what error resulted when the command was executed) is
* available in the config.log file in this directory.
**********************************************************************
EOF
{ { echo "$as_me:$LINENO: error: Could not run a simple C++ program. Aborting." >&5
echo "$as_me: error: Could not run a simple C++ program. Aborting." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
# Do we want code coverage
if test "$WANT_COVERAGE" = "1"; then
if test "$ompi_cxx_vendor" = "gnu" ; then
{ echo "$as_me:$LINENO: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&5
echo "$as_me: WARNING: $OMPI_COVERAGE_FLAGS has been added to CFLAGS (--enable-coverage)" >&2;}
WANT_DEBUG=1
CXXFLAGS="${CXXFLAGS} $OMPI_COVERAGE_FLAGS"
WRAPPER_EXTRA_CXXFLAGS="${WRAPPER_EXTRA_CXXFLAGS} $OMPI_COVERAGE_FLAGS"
else
{ echo "$as_me:$LINENO: WARNING: Code coverage functionality is currently available only with GCC suite" >&5
echo "$as_me: WARNING: Code coverage functionality is currently available only with GCC suite" >&2;}
{ { echo "$as_me:$LINENO: error: Configure: cannot continue" >&5
echo "$as_me: error: Configure: cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
# Do we want debugging?
if test "$WANT_DEBUG" = "1" -a "$enable_debug_symbols" != "no" ; then
CXXFLAGS="$CXXFLAGS -g"
# 1 is the variable name to be uniq-ized
ompi_name=CXXFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${CXXFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
{ echo "$as_me:$LINENO: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&5
echo "$as_me: WARNING: -g has been added to CXXFLAGS (--enable-debug)" >&2;}
fi
# These flags are generally g++-specific; even the g++-impersonating
# compilers won't accept them.
OMPI_CXXFLAGS_BEFORE_PICKY="$CXXFLAGS"
if test "$WANT_PICKY_COMPILER" = 1 -a "$ompi_cxx_vendor" = "gnu"; then
add="-Wall -Wundef -Wno-long-long"
# see if -Wno-long-double works...
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
CXXFLAGS_orig="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -Wno-long-double"
echo "$as_me:$LINENO: checking if $CXX supports -Wno-long-double" >&5
echo $ECHO_N "checking if $CXX supports -Wno-long-double... $ECHO_C" >&6
if test "${ompi_cv_cxx_wno_long_double+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cxx_wno_long_double="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cxx_wno_long_double="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cxx_wno_long_double" >&5
echo "${ECHO_T}$ompi_cv_cxx_wno_long_double" >&6
CXXFLAGS="$CXXFLAGS_orig"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test "$ompi_cv_cxx_wno_long_double" = "yes" ; then
add="$add -Wno-long-double"
fi
CXXFLAGS="$CXXFLAGS $add"
# 1 is the variable name to be uniq-ized
ompi_name=CXXFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${CXXFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
if test "$add" != "" ; then
{ echo "$as_me:$LINENO: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&5
echo "$as_me: WARNING: $add has been added to CXXFLAGS (--enable-picky)" >&2;}
fi
unset add
fi
# See if this version of g++ allows -finline-functions
if test "$GXX" = "yes"; then
CXXFLAGS_orig="$CXXFLAGS"
CXXFLAGS="$CXXFLAGS -finline-functions"
add=
echo "$as_me:$LINENO: checking if $CXX supports -finline-functions" >&5
echo $ECHO_N "checking if $CXX supports -finline-functions... $ECHO_C" >&6
if test "${ompi_cv_cxx_finline_functions+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cxx_finline_functions="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cxx_finline_functions="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cxx_finline_functions" >&5
echo "${ECHO_T}$ompi_cv_cxx_finline_functions" >&6
if test "$ompi_cv_cxx_finline_functions" = "yes" ; then
add=" -finline-functions"
fi
CXXFLAGS="$CXXFLAGS_orig$add"
# 1 is the variable name to be uniq-ized
ompi_name=CXXFLAGS
# Go through each item in the variable and only keep the unique ones
ompi_count=0
for val in ${CXXFLAGS}; do
ompi_done=0
ompi_i=1
ompi_found=0
# Loop over every token we've seen so far
ompi_done="`expr $ompi_i \> $ompi_count`"
while test "$ompi_found" = "0" -a "$ompi_done" = "0"; do
# Have we seen this token already? Prefix the comparison with
# "x" so that "-Lfoo" values won't be cause an error.
ompi_eval="expr x$val = x\$ompi_array_$ompi_i"
ompi_found=`eval $ompi_eval`
# Check the ending condition
ompi_done="`expr $ompi_i \>= $ompi_count`"
# Increment the counter
ompi_i="`expr $ompi_i + 1`"
done
# If we didn't find the token, add it to the "array"
if test "$ompi_found" = "0"; then
ompi_eval="ompi_array_$ompi_i=$val"
eval $ompi_eval
ompi_count="`expr $ompi_count + 1`"
else
ompi_i="`expr $ompi_i - 1`"
fi
done
# Take all the items in the "array" and assemble them back into a
# single variable
ompi_i=1
ompi_done="`expr $ompi_i \> $ompi_count`"
ompi_newval=
while test "$ompi_done" = "0"; do
ompi_eval="ompi_newval=\"$ompi_newval \$ompi_array_$ompi_i\""
eval $ompi_eval
ompi_eval="unset ompi_array_$ompi_i"
eval $ompi_eval
ompi_done="`expr $ompi_i \>= $ompi_count`"
ompi_i="`expr $ompi_i + 1`"
done
# Done; do the assignment
ompi_newval="`echo $ompi_newval`"
ompi_eval="$ompi_name=\"$ompi_newval\""
eval $ompi_eval
# Clean up
unset ompi_name ompi_i ompi_done ompi_newval ompi_eval ompi_count
if test "$add" != "" ; then
{ echo "$as_me:$LINENO: WARNING: $add has been added to CXXFLAGS" >&5
echo "$as_me: WARNING: $add has been added to CXXFLAGS" >&2;}
fi
unset add
fi
# Check for special things due to C++ exceptions
ENABLE_CXX_EXCEPTIONS=no
HAVE_CXX_EXCEPTIONS=0
# Check whether --enable-cxx-exceptions or --disable-cxx-exceptions was given.
if test "${enable_cxx_exceptions+set}" = set; then
enableval="$enable_cxx_exceptions"
ENABLE_CXX_EXCEPTIONS="$enableval"
fi;
echo "$as_me:$LINENO: checking if want C++ exception handling" >&5
echo $ECHO_N "checking if want C++ exception handling... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $ENABLE_CXX_EXCEPTIONS" >&5
echo "${ECHO_T}$ENABLE_CXX_EXCEPTIONS" >&6
if test "$ENABLE_CXX_EXCEPTIONS" = "yes"; then
# config/cxx_have_exceptions.m4
#
# Arguments: None
#
# Depdencies: None
#
# Check to see if the C++ compiler can handle exceptions
#
# Sets OMPI_CXX_EXCEPTIONS to 1 if compiler has exceptions, 0 if not
#
echo "$as_me:$LINENO: checking for throw/catch" >&5
echo $ECHO_N "checking for throw/catch... $ECHO_C" >&6
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
int i=1; throw(i);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
OMPI_CXX_EXCEPTIONS=1
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
OMPI_CXX_EXCPTIONS=0
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
if test "$OMPI_CXX_EXCEPTIONS" = "1"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
# Clean up
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
# config/cxx_find_exception_flags.m4
#
# Arguments: none
#
# Dependencies: none
#
# Get the exception handling flags for the C++ compiler. Leaves
# CXXFLAGS undisturbed.
# Provides --with-exflags command line argument for configure as well.
#
# Sets OMPI_CXX_EXCEPTION_CXXFLAGS and OMPI_CXX_EXCEPTION_LDFLAGS as
# appropriate.
# Must call AC_SUBST manually
#
# Command line flags
# Check whether --with-exflags or --without-exflags was given.
if test "${with_exflags+set}" = set; then
withval="$with_exflags"
ompi_force_exflags="$withval"
fi;
ompi_CXXFLAGS_SAVE="$CXXFLAGS"
echo "$as_me:$LINENO: checking for compiler exception flags" >&5
echo $ECHO_N "checking for compiler exception flags... $ECHO_C" >&6
# See which flags to use
if test "$ompi_force_exflags" != ""; then
# If the user supplied flags, use those
ompi_exflags="$ompi_force_exflags"
elif test "$GXX" = "yes"; then
# g++ has changed their flags a few times. Sigh.
CXXFLAGS="$CXXFLAGS -fexceptions"
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
try { int i = 0; } catch(...) { int j = 2; }
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_happy=1
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_happy=0
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
if test "$ompi_happy" = "1"; then
ompi_exflags="-fexceptions";
else
CXXFLAGS="$CXXFLAGS_SAVE -fhandle-exceptions"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
try { int i = 0; } catch(...) { int j = 2; }
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_happy=1
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_happy=0
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
if test "$ompi_happy" = "1"; then
ompi_exflags="-fhandle-exceptions";
fi
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
elif test "`basename $CXX`" = "KCC"; then
# KCC flags
ompi_exflags="--exceptions"
fi
CXXFLAGS="$ompi_CXXFLAGS_SAVE"
# Save the result
OMPI_CXX_EXCEPTIONS_CXXFLAGS="$ompi_exflags"
OMPI_CXX_EXCEPTIONS_LDFLAGS="$ompi_exflags"
if test "$ompi_exflags" = ""; then
echo "$as_me:$LINENO: result: none necessary" >&5
echo "${ECHO_T}none necessary" >&6
else
echo "$as_me:$LINENO: result: $ompi_exflags" >&5
echo "${ECHO_T}$ompi_exflags" >&6
fi
# Clean up
unset ompi_force_exflags ompi_CXXFLAGS_SAVE ompi_exflags ompi_happy
if test "$OMPI_CXX_EXCEPTIONS" = "1"; then
HAVE_CXX_EXCEPTIONS=1
CFLAGS="$CFLAGS $OMPI_CXX_EXCEPTIONS_CFLAGS"
FFLAGS="$FFLAGS $OMPI_CXX_EXCEPTIONS_FFLAGS"
CXXFLAGS="$CXXFLAGS $OMPI_CXX_EXCEPTIONS_CXXFLAGS"
LDFLAGS="$LDFLAGS $OMPI_CXX_EXCEPTIONS_LDFLAGS"
WRAPPER_EXTRA_CFLAGS="$OMPI_CXX_EXCEPTIONS_CFLAGS ${WRAPPER_EXTRA_CFLAGS}"
WRAPPER_EXTRA_FFLAGS="$OMPI_CXX_EXCEPTIONS_FFLAGS ${WRAPPER_EXTRA_FFLAGS}"
WRAPPER_EXTRA_CXXFLAGS="$OMPI_CXX_EXCEPTIONS_CXXFLAGS ${WRAPPER_EXTRA_CXXFLAGS}"
fi
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_CXX_EXCEPTION_SUPPORT $HAVE_CXX_EXCEPTIONS
_ACEOF
# Make sure we can link with the C compiler
if test "$ompi_cv_cxx_compiler_vendor" != "microsoft" ; then
echo "$as_me:$LINENO: checking if C and C++ are link compatible" >&5
echo $ECHO_N "checking if C and C++ are link compatible... $ECHO_C" >&6
if test "${ompi_cv_c_link_Cpp+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
testfunc_name="testfunc"
# Write out C part
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
rm -f conftest_c.$ac_ext
cat > conftest_c.$ac_ext << EOF
int $testfunc_name(int a);
int $testfunc_name(int a) { return a; }
EOF
# Now compile both parts
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:21807: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:21814: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ompi_lang_link_with_c_libs="$LIBS"
LIBS="conftest_c.o $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#if defined(c_plusplus) || defined(__cplusplus)
extern "C" int testfunc(int);
#else
extern int testfunc(int);
#endif
int
main ()
{
return testfunc(0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_link_Cpp="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_c_link_Cpp="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS="$ompi_lang_link_with_c_libs"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
else
unset ompi_status
ompi_cv_c_link_Cpp="no"
fi
rm -f conftest_c.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_link_Cpp" >&5
echo "${ECHO_T}$ompi_cv_c_link_Cpp" >&6
if test "$ompi_cv_c_link_Cpp" = "yes"; then
:
else
cat <&2
**********************************************************************
* It appears that your C++ compiler is unable to link against object
* files created by your C compiler. This generally indicates either
* a conflict between the options specified in CFLAGS and CXXFLAGS
* or a problem with the local compiler installation. More
* information (including exactly what command was given to the
* compilers and what error resulted when the commands were executed) is
* available in the config.log file in this directory.
**********************************************************************
EOF
{ { echo "$as_me:$LINENO: error: C and C++ compilers are not link compatible. Can not continue." >&5
echo "$as_me: error: C and C++ compilers are not link compatible. Can not continue." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
# Find some more characteristics of the C++ compiler
# config/cxx_find_template_repository.m4
#
# Arguments: None
#
# Dependencies: None
#
# See if the compiler makes template repository directories
# Warning: this is a really screwy example! -JMS
#
# Sets OMPI_CXX_TEMPLATE_REPOSITORY to the template repository, or blank.
# Must call AC_SUBST manually
#
echo "$as_me:$LINENO: checking for C++ template_repository_directory" >&5
echo $ECHO_N "checking for C++ template_repository_directory... $ECHO_C" >&6
if test "${ompi_cv_cxx_template_repository+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Find the repository
mkdir conf_tmp_$$
cd conf_tmp_$$
cat > conftest.h <
class foo {
public:
foo(T yow) : data(yow) { yow.member(3); };
void member(int i);
private:
T data;
};
class bar {
public:
bar(int i) { data = i; };
void member(int j) { data = data * j; };
private:
int data;
};
EOF
cat > conftest2.C < var1(6);
foo< foo > var2(var1);
}
EOF
cat > conftest1.C <
void
foo::member(int i)
{
i += 2;
}
int
main()
{
foo var1(6);
foo< foo > var2(var1);
some_other_function();
return 0;
}
EOF
ompi_template_failed=
echo configure:22003: $CXX $CXXFLAGS -c conftest1.C >&5
$CXX $CXXFLAGS -c conftest1.C >&5 2>&5
if test ! -f conftest1.o ; then
ompi_cv_cxx_template_repository="templates not supported"
echo configure:22007: here is the program that failed: >&5
cat conftest1.C >&5
echo configure:22009: here is conftest.h: >&5
cat conftest.h >&5
ompi_template_failed=1
else
echo configure:22013: $CXX $CXXFLAGS -c conftest2.C >&5
$CXX $CXXFLAGS -c conftest2.C >&5 2>&5
if test ! -f conftest2.o ; then
ompi_cv_cxx_template_repository=
echo configure:22017: here is the program that failed: >&5
cat conftest2.C >&5
echo configure:22019: here is conftest.h: >&5
cat conftest.h >&5
else
rm -rf conftest*
for ompi_file in `ls`
do
if test "$ompi_file" != "." -a "$ompi_file" != ".."; then
# Is it a directory?
if test -d "$ompi_file"; then
ompi_template_dir="$ompi_file $ompi_template_dir"
# Or is it a file?
else
name="`echo $ompi_file | cut -d. -f1`"
temp_mask=
if test "$name" = "main" -o "$name" = "other"; then
temp_mask="`echo $ompi_file | cut -d. -f2`"
if test "$ompi_template_filemask" = ""; then
ompi_template_filemask="$temp_mask";
elif test "`echo $ompi_template_filemask | grep $temp_mask`" = ""; then
ompi_template_filemask="$ompi_template_filemask $temp_mask"
fi
fi
fi
fi
done
if test "$ompi_template_filemask" != ""; then
temp_mask=
for mask in $ompi_template_filemask
do
temp_mask="*.$mask $temp_mask"
done
ompi_template_filemask=$temp_mask
fi
fi
fi
ompi_cv_cxx_template_repository="$ompi_template_dir $ompi_template_filemask"
if test "`echo $ompi_cv_cxx_template_repository`" = ""; then
ompi_cv_cxx_template_repository="not used"
fi
cd ..
rm -rf conf_tmp_$$
# Clean up
unset ompi_file ompi_template_failed ompi_template_dir
fi
echo "$as_me:$LINENO: result: $ompi_cv_cxx_template_repository" >&5
echo "${ECHO_T}$ompi_cv_cxx_template_repository" >&6
if test "$ompi_cv_cxx_template_repository" = "not used" ; then
OMPI_CXX_TEMPLATE_REPOSITORY=
elif test "$ompi_cv_cxx_template_repository" = "templates not supported" ; then
OMPI_CXX_TEMPLATE_REPOSITORY=
else
OMPI_CXX_TEMPLATE_REPOSITORY="$ompi_cv_cxx_template_repository"
fi
# config/cxx_find_template_parameters.m4
#
# Arguments: none
#
# Dependencies: None
#
# Get the C++ compiler template parameters.
#
# Adds to CXXFLAGS
echo "$as_me:$LINENO: checking for C++ compiler template parameters" >&5
echo $ECHO_N "checking for C++ compiler template parameters... $ECHO_C" >&6
if test "$BASECXX" = "KCC"; then
new_flags="--one_instantiation_per_object"
CXXFLAGS="$CXXFLAGS $new_flags"
else
new_flags="none needed"
fi
echo "$as_me:$LINENO: result: $new_flags" >&5
echo "${ECHO_T}$new_flags" >&6
#
# Clean up
#
unset new_flags
# see if the C++ compiler supports __builtin_expect
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking if $CXX supports __builtin_expect" >&5
echo $ECHO_N "checking if $CXX supports __builtin_expect... $ECHO_C" >&6
if test "${ompi_cv_cxx_supports___builtin_expect+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
void *ptr = (void*) 0;
if (__builtin_expect (ptr != (void*) 0, 1)) return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cxx_supports___builtin_expect="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cxx_supports___builtin_expect="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports___builtin_expect" >&5
echo "${ECHO_T}$ompi_cv_cxx_supports___builtin_expect" >&6
if test "$ompi_cv_cxx_supports___builtin_expect" = "yes" ; then
have_builtin_expect=1
else
have_builtin_expect=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_HAVE_BUILTIN_EXPECT $have_builtin_expect
_ACEOF
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
# see if the C compiler supports __builtin_prefetch
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking if $CXX supports __builtin_prefetch" >&5
echo $ECHO_N "checking if $CXX supports __builtin_prefetch... $ECHO_C" >&6
if test "${ompi_cv_cxx_supports___builtin_prefetch+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int
main ()
{
int ptr;
__builtin_prefetch(&ptr,0,0);
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cxx_supports___builtin_prefetch="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cxx_supports___builtin_prefetch="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports___builtin_prefetch" >&5
echo "${ECHO_T}$ompi_cv_cxx_supports___builtin_prefetch" >&6
if test "$ompi_cv_cxx_supports___builtin_prefetch" = "yes" ; then
have_builtin_prefetch=1
else
have_builtin_prefetch=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_HAVE_BUILTIN_PREFETCH $have_builtin_prefetch
_ACEOF
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
# If we are on HP-UX, ensure that we're using aCC
case "$host" in
*hpux*)
if test "$BASECXX" = "CC"; then
{ echo "$as_me:$LINENO: WARNING: *** You will probably have problems compiling the MPI 2" >&5
echo "$as_me: WARNING: *** You will probably have problems compiling the MPI 2" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** C++ bindings with the HP-UX CC compiler. You should" >&5
echo "$as_me: WARNING: *** C++ bindings with the HP-UX CC compiler. You should" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** probably be using the aCC compiler. Re-run configure" >&5
echo "$as_me: WARNING: *** probably be using the aCC compiler. Re-run configure" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** with the environment variable \"CXX=aCC\"." >&5
echo "$as_me: WARNING: *** with the environment variable \"CXX=aCC\"." >&2;}
fi
;;
esac
# see if the compiler supports const_cast of 2-dimensional arrays
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking if $CXX supports const_cast<> properly" >&5
echo $ECHO_N "checking if $CXX supports const_cast<> properly... $ECHO_C" >&6
if test "${ompi_cv_cxx_supports_2d_const_cast+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
int non_const_func(int ranges[][3]);
int cast_test(const int ranges[][3]) {
return non_const_func(const_cast(ranges));
}
int
main ()
{
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_cxx_supports_2d_const_cast="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_cxx_supports_2d_const_cast="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ompi_cv_cxx_supports_2d_const_cast" >&5
echo "${ECHO_T}$ompi_cv_cxx_supports_2d_const_cast" >&6
if test "$ompi_cv_cxx_supports_2d_const_cast" = "yes" ; then
use_2d_const_cast=1
else
use_2d_const_cast=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_SUPPORTS_2D_CONST_CAST $use_2d_const_cast
_ACEOF
unset use_2d_const_cast
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
# Note: gcc-imperonating compilers accept -O3
if test "$WANT_DEBUG" = "1"; then
OPTFLAGS=
else
if test "$GXX" = yes; then
OPTFLAGS="-O3"
else
OPTFLAGS="-O"
fi
fi
# config/ompi_check_optflags.m4
# Modularize this setup so that sub-configure.in scripts can use this
# same setup code.
##################################
# Optimization flags
##################################
# If the user did not specify optimization flags, add some (the value
# from $OPTFLAGS)
co_arg=""$CXXFLAGS""
co_found=0
for co_word in $co_arg; do
case $co_word in
-g) co_found=1 ;;
-g1) co_found=1 ;;
-g2) co_found=1 ;;
-g3) co_found=1 ;;
+K0) co_found=1 ;;
+K1) co_found=1 ;;
+K2) co_found=1 ;;
+K3) co_found=1 ;;
+K4) co_found=1 ;;
+K5) co_found=1 ;;
-O) co_found=1 ;;
-O0) co_found=1 ;;
-O1) co_found=1 ;;
-O2) co_found=1 ;;
-O3) co_found=1 ;;
-O4) co_found=1 ;;
-O5) co_found=1 ;;
-O6) co_found=1 ;;
-O7) co_found=1 ;;
-O8) co_found=1 ;;
-O9) co_found=1 ;;
-xO) co_found=1 ;;
-xO0) co_found=1 ;;
-xO1) co_found=1 ;;
-xO2) co_found=1 ;;
-xO3) co_found=1 ;;
-xO4) co_found=1 ;;
-xO5) co_found=1 ;;
-xO6) co_found=1 ;;
-xO7) co_found=1 ;;
-xO8) co_found=1 ;;
-xO9) co_found=1 ;;
-fast) co_found=1 ;;
esac
done
if test "$co_found" = "0"; then
co_result="$OPTFLAGS $co_arg"
else
co_result="$co_arg"
fi
# Clean up
unset co_found co_word co_arg
echo "$as_me:$LINENO: checking for C++ optimization flags" >&5
echo $ECHO_N "checking for C++ optimization flags... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $co_result" >&5
echo "${ECHO_T}$co_result" >&6
CXXFLAGS="$co_result"
# check for type sizes
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking for bool" >&5
echo $ECHO_N "checking for bool... $ECHO_C" >&6
if test "${ac_cv_type_bool+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
if ((bool *) 0)
return 0;
if (sizeof (bool))
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_type_bool=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_type_bool=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_type_bool" >&5
echo "${ECHO_T}$ac_cv_type_bool" >&6
echo "$as_me:$LINENO: checking size of bool" >&5
echo $ECHO_N "checking size of bool... $ECHO_C" >&6
if test "${ac_cv_sizeof_bool+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ac_cv_type_bool" = yes; then
# The cast to unsigned long works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (bool))) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (bool))) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(((long) (sizeof (bool))) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ac_cv_sizeof_bool=$ac_lo;;
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (bool), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
long longval () { return (long) (sizeof (bool)); }
unsigned long ulongval () { return (long) (sizeof (bool)); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long) (sizeof (bool))) < 0)
{
long i = longval ();
if (i != ((long) (sizeof (bool))))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long) (sizeof (bool))))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_sizeof_bool=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (bool), 77
See \`config.log' for more details." >&5
echo "$as_me: error: cannot compute sizeof (bool), 77
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
ac_cv_sizeof_bool=0
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_sizeof_bool" >&5
echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
cat >>confdefs.h <<_ACEOF
#define SIZEOF_BOOL $ac_cv_sizeof_bool
_ACEOF
# check for type alignments
echo "$as_me:$LINENO: checking alignment of bool" >&5
echo $ECHO_N "checking alignment of bool... $ECHO_C" >&6
if test "${ompi_cv_c_align_bool+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$cross_compiling" = yes; then
# cross compile - do a non-executable test. Trick
# taken from the Autoconf 2.59c. Switch to using
# AC_CHECK_ALIGNOF when we can require Autoconf 2.60.
if test "$cross_compiling" = yes; then
# Depending upon the size, compute the lo and hi bounds.
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=0 ac_mid=0
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr $ac_mid + 1`
if test $ac_lo -le $ac_mid; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) < 0)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=-1 ac_mid=-1
while :; do
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) >= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_lo=$ac_mid; break
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_hi=`expr '(' $ac_mid ')' - 1`
if test $ac_mid -le $ac_hi; then
ac_lo= ac_hi=
break
fi
ac_mid=`expr 2 '*' $ac_mid`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo= ac_hi=
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
# Binary search between lo and hi bounds.
while test "x$ac_lo" != "x$ac_hi"; do
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } ompi__type_alignof_;
int
main ()
{
static int test_array [1 - 2 * !(((long int) offsetof (ompi__type_alignof_, y)) <= $ac_mid)];
test_array [0] = 0
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_hi=$ac_mid
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_lo=`expr '(' $ac_mid ')' + 1`
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
done
case $ac_lo in
?*) ompi_cv_c_align_bool=$ac_lo;;
'') { echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; } ;;
esac
else
if test "$cross_compiling" = yes; then
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
See \`config.log' for more details." >&5
echo "$as_me: error: cannot run test program while cross compiling
See \`config.log' for more details." >&2;}
{ (exit 1); exit 1; }; }
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#ifndef offsetof
# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
#endif
typedef struct { char x; bool y; } ompi__type_alignof_;
long longval () { return (long int) offsetof (ompi__type_alignof_, y); }
unsigned long ulongval () { return (long int) offsetof (ompi__type_alignof_, y); }
#include
#include
int
main ()
{
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
if (((long int) offsetof (ompi__type_alignof_, y)) < 0)
{
long i = longval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%ld\n", i);
}
else
{
unsigned long i = ulongval ();
if (i != ((long int) offsetof (ompi__type_alignof_, y)))
exit (1);
fprintf (f, "%lu\n", i);
}
exit (ferror (f) || fclose (f) != 0);
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_bool=`cat conftest.val`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
rm -f conftest.val
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include
#include
#include
struct foo { char c; bool x; };
int main()
{
struct foo *p = (struct foo *) malloc(sizeof(struct foo));
int diff;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
diff = ((char *)&p->x) - ((char *)&p->c);
fprintf(f, "%d\n", (diff >= 0) ? diff : -diff);
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_align_bool=`cat conftestval`
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
{ echo "$as_me:$LINENO: WARNING: *** Problem running configure test!" >&5
echo "$as_me: WARNING: *** Problem running configure test!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** See config.log for details." >&5
echo "$as_me: WARNING: *** See config.log for details." >&2;}
{ { echo "$as_me:$LINENO: error: *** Cannot continue." >&5
echo "$as_me: error: *** Cannot continue." >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_align_bool" >&5
echo "${ECHO_T}$ompi_cv_c_align_bool" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_CXX_BOOL $ompi_cv_c_align_bool
_ACEOF
eval "OMPI_ALIGNMENT_CXX_BOOL=$ompi_cv_c_align_bool"
/bin/rm -f conftest*
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
# check if we want C++ support
if test "$WANT_MPI_CXX_SUPPORT" = 1; then
WANT_MPI_CXX_BINDINGS_TRUE=
WANT_MPI_CXX_BINDINGS_FALSE='#'
else
WANT_MPI_CXX_BINDINGS_TRUE='#'
WANT_MPI_CXX_BINDINGS_FALSE=
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_CXX_BINDINGS $WANT_MPI_CXX_SUPPORT
_ACEOF
##################################
# Assembler Configuration
##################################
ompi_show_subtitle "Assembler"
# By default we simply use the C compiler to build assembly code.
test "${CCAS+set}" = set || CCAS=$CC
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
if test "${lt_cv_path_NM+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$NM"; then
# Let the user override the test.
lt_cv_path_NM="$NM"
else
lt_nm_to_check="${ac_tool_prefix}nm"
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
lt_nm_to_check="$lt_nm_to_check nm"
fi
for lt_tmp_nm in $lt_nm_to_check; do
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
IFS="$lt_save_ifs"
test -z "$ac_dir" && ac_dir=.
tmp_nm="$ac_dir/$lt_tmp_nm"
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
# Check to see if the nm accepts a BSD-compat flag.
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
# nm: unknown option "B" ignored
# Tru64's nm complains that /dev/null is an invalid object file
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
*/dev/null* | *'Invalid file or object type'*)
lt_cv_path_NM="$tmp_nm -B"
break
;;
*)
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
*/dev/null*)
lt_cv_path_NM="$tmp_nm -p"
break
;;
*)
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
continue # so that we can try to find one that supports BSD flags
;;
esac
;;
esac
fi
done
IFS="$lt_save_ifs"
done
: ${lt_cv_path_NM=no}
fi
fi
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
echo "${ECHO_T}$lt_cv_path_NM" >&6
if test "$lt_cv_path_NM" != "no"; then
NM="$lt_cv_path_NM"
else
# Didn't find any BSD compatible name lister, look for dumpbin.
if test -n "$ac_tool_prefix"; then
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$DUMPBIN"; then
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
DUMPBIN=$ac_cv_prog_DUMPBIN
if test -n "$DUMPBIN"; then
echo "$as_me:$LINENO: result: $DUMPBIN" >&5
echo "${ECHO_T}$DUMPBIN" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$DUMPBIN" && break
done
fi
if test -z "$DUMPBIN"; then
ac_ct_DUMPBIN=$DUMPBIN
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_DUMPBIN"; then
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
if test -n "$ac_ct_DUMPBIN"; then
echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$ac_ct_DUMPBIN" && break
done
test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
DUMPBIN=$ac_ct_DUMPBIN
fi
if test "$DUMPBIN" != ":"; then
NM="$DUMPBIN"
fi
fi
test -z "$NM" && NM=nm
echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
if test "${lt_cv_nm_interface+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
(eval echo "\"\$as_me:23512: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
(eval echo "\"\$as_me:23515: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
(eval echo "\"\$as_me:23518: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
fi
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
echo "${ECHO_T}$lt_cv_nm_interface" >&6
echo "$as_me:$LINENO: checking for fgrep" >&5
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
if test "${ac_cv_prog_fgrep+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
then ac_cv_prog_fgrep='grep -F'
else ac_cv_prog_fgrep='fgrep'
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
FGREP=$ac_cv_prog_fgrep
echo "$as_me:$LINENO: checking whether to enable smp locks" >&5
echo $ECHO_N "checking whether to enable smp locks... $ECHO_C" >&6
# Check whether --enable-smp-locks or --disable-smp-locks was given.
if test "${enable_smp_locks+set}" = set; then
enableval="$enable_smp_locks"
fi;
if test "$enable_smp_locks" != "no"; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
want_smp_locks=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
want_smp_locks=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_SMP_LOCKS $want_smp_locks
_ACEOF
if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
ompi_cv_asm_arch="WINDOWS"
else
echo "$as_me:$LINENO: checking if .proc/endp is needed" >&5
echo $ECHO_N "checking if .proc/endp is needed... $ECHO_C" >&6
if test "${ompi_cv_asm_need_proc+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ompi_cv_asm_need_proc="no"
cat >conftest.s <&5
(eval $ompi_assemble) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# save the warnings
cat conftest.out >&5
ompi_cv_asm_need_proc="yes"
else
# save compiler output and failed program
cat conftest.out >&5
echo "configure: failed program was:" >&5
cat conftest.s >&5
:
fi
rm -f conftest*
unset ompi_assemble
rm -f conftest.out
fi
echo "$as_me:$LINENO: result: $ompi_cv_asm_need_proc" >&5
echo "${ECHO_T}$ompi_cv_asm_need_proc" >&6
if test "$ompi_cv_asm_need_proc" = "yes" ; then
ompi_cv_asm_proc=".proc"
ompi_cv_asm_endproc=".endp"
else
ompi_cv_asm_proc="#"
ompi_cv_asm_endproc="#"
fi
echo "$as_me:$LINENO: checking directive for setting text section" >&5
echo $ECHO_N "checking directive for setting text section... $ECHO_C" >&6
ompi_cv_asm_text=""
if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
# text section will be brought in with the rest of
# header for MS - leave blank for now
ompi_cv_asm_text=""
else
case $host in
*-aix*)
ompi_cv_asm_text=".csect .text[PR]"
;;
*)
ompi_cv_asm_text=".text"
;;
esac
fi
echo "$as_me:$LINENO: result: $ompi_cv_asm_text" >&5
echo "${ECHO_T}$ompi_cv_asm_text" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_TEXT "$ompi_cv_asm_text"
_ACEOF
OMPI_ASM_TEXT="$ompi_cv_asm_text"
echo "$as_me:$LINENO: checking directive for exporting symbols" >&5
echo $ECHO_N "checking directive for exporting symbols... $ECHO_C" >&6
ompi_cv_asm_global=""
if test "$ompi_cv_c_compiler_vendor" = "microsoft" ; then
ompi_cv_asm_global="PUBLIC"
else
case $host in
*)
ompi_cv_asm_global=".globl"
;;
esac
fi
echo "$as_me:$LINENO: result: $ompi_cv_asm_global" >&5
echo "${ECHO_T}$ompi_cv_asm_global" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_GLOBAL "$ompi_cv_asm_global"
_ACEOF
OMPI_ASM_GLOBAL="$ompi_cv_asm_global"
# Extract the first word of "objdump", so it can be a program name with args.
set dummy objdump; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$OBJDUMP"; then
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_OBJDUMP="objdump"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
OBJDUMP=$ac_cv_prog_OBJDUMP
if test -n "$OBJDUMP"; then
echo "$as_me:$LINENO: result: $OBJDUMP" >&5
echo "${ECHO_T}$OBJDUMP" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
echo "$as_me:$LINENO: checking if .note.GNU-stack is needed" >&5
echo $ECHO_N "checking if .note.GNU-stack is needed... $ECHO_C" >&6
if test "${ompi_cv_asm_gnu_stack_result+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$OBJDUMP" != ""; then
# first, see if a simple C program has it set
cat >conftest.c <&5
$CC $CFLAGS -c conftest.c -o conftest.$OBJEXT 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:23731: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
$OBJDUMP -x conftest.$OBJEXT | grep '\.note\.GNU-stack' > /dev/null && ompi_cv_asm_gnu_stack_result=yes
else
unset ompi_status
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:23744: the failed program was:" >&5
else
echo the failed program was: >&5
fi
# 1 is the filename
if test -n "conftest.c" -a -f "conftest.c"; then
cat conftest.c >&5
fi
ompi_cv_asm_gnu_stack_result=no
fi
if test "$ompi_cv_asm_gnu_stack_result" != "yes" ; then
ompi_cv_asm_gnu_stack_result="no"
fi
rm -f conftest.*
else
ompi_cv_asm_gnu_stack_result="no"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_asm_gnu_stack_result" >&5
echo "${ECHO_T}$ompi_cv_asm_gnu_stack_result" >&6
if test "$ompi_cv_asm_gnu_stack_result" = "yes" ; then
ompi_cv_asm_gnu_stack=1
else
ompi_cv_asm_gnu_stack=0
fi
echo "$as_me:$LINENO: checking suffix for labels" >&5
echo $ECHO_N "checking suffix for labels... $ECHO_C" >&6
ompi_cv_asm_label_suffix=""
case $host in
*)
ompi_cv_asm_label_suffix=":"
;;
esac
echo "$as_me:$LINENO: result: $ompi_cv_asm_label_suffix" >&5
echo "${ECHO_T}$ompi_cv_asm_label_suffix" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_LABEL_SUFFIX "$ompi_cv_asm_label_suffix"
_ACEOF
OMPI_ASM_LABEL_SUFFIX="$ompi_cv_asm_label_suffix"
echo "$as_me:$LINENO: checking prefix for global symbol labels" >&5
echo $ECHO_N "checking prefix for global symbol labels... $ECHO_C" >&6
if test "${ompi_cv_asm_gsym+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ompi_cv_asm_gsym="none"
for sym in "_" "" "." ; do
asm_result=0
echo "configure: trying $sym" >&5
cat > conftest_c.c <conftest.s <&5
(eval $ompi_assemble) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# save the warnings
cat conftest.out >&5
ompi_compile="$CC $CFLAGS -I. conftest_c.c -c > conftest.cmpl 2>&1"
if { (eval echo "$as_me:$LINENO: \"$ompi_compile\"") >&5
(eval $ompi_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } ; then
# save the warnings
cat conftest.cmpl >&5
ompi_link="$CC $CFLAGS conftest_c.$OBJEXT conftest.$OBJEXT -o conftest > conftest.link 2>&1"
if { (eval echo "$as_me:$LINENO: \"$ompi_link\"") >&5
(eval $ompi_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } ; then
# save the warnings
cat conftest.link >&5
asm_result=1
else
cat conftest.link >&5
echo "configure: failed C program was: " >&5
cat conftest_c.c >&5
echo "configure: failed ASM program was: " >&5
cat conftest.s >&5
asm_result=0
fi
else
# save output and failed program
cat conftest.cmpl >&5
echo "configure: failed C program was: " >&5
cat conftest.c >&5
asm_result=0
fi
else
# save compiler output and failed program
cat conftest.out >&5
echo "configure: failed program was:" >&5
cat conftest.s >&5
asm_result=0
fi
rm -f conftest*
unset ompi_assemble
if test "$asm_result" = "1" ; then
ompi_cv_asm_gsym="$sym"
break
fi
done
rm -f conftest.*
fi
echo "$as_me:$LINENO: result: $ompi_cv_asm_gsym" >&5
echo "${ECHO_T}$ompi_cv_asm_gsym" >&6
if test "$ompi_cv_asm_gsym" = "none" ; then
{ { echo "$as_me:$LINENO: error: Could not determine global symbol label prefix" >&5
echo "$as_me: error: Could not determine global symbol label prefix" >&2;}
{ (exit 1); exit 1; }; }
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_GSYM "$ompi_cv_asm_gsym"
_ACEOF
OMPI_ASM_GSYM="$ompi_cv_asm_gsym"
echo "$as_me:$LINENO: checking prefix for lsym labels" >&5
echo $ECHO_N "checking prefix for lsym labels... $ECHO_C" >&6
if test "${ompi_cv_asm_lsym+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ompi_cv_asm_lsym="L"
for sym in L .L $ L$ ; do
asm_result=0
echo "configure: trying $sym" >&5
cat >conftest.s <&5
(eval $ompi_assemble) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# save the warnings
cat conftest.out >&5
# ok, we succeeded at assembling. see if we can nm,
# throwing the results in a file
if $NM conftest.$OBJEXT > conftest.out 2>&5 ; then
if test "`grep mytestlabel conftest.out`" = "" ; then
# there was no symbol... looks promising to me
ompi_cv_asm_lsym="$sym"
asm_result=1
elif test "`grep ' [Nt] .*mytestlabel' conftest.out`" = "" ; then
# see if we have a non-global-ish symbol
# but we should see if we can do better.
ompi_cv_asm_lsym="$sym"
fi
else
# not so much on the NM goodness :/
echo "$NM failed. Output from NM was:" >&5
cat conftest.out >&5
{ echo "$as_me:$LINENO: WARNING: $NM could not read object file" >&5
echo "$as_me: WARNING: $NM could not read object file" >&2;}
fi
else
# save compiler output and failed program
cat conftest.out >&5
echo "configure: failed program was:" >&5
cat conftest.s >&5
:
fi
rm -f conftest*
unset ompi_assemble
if test "$asm_result" = "1" ; then
break
fi
done
rm -f conftest.out
unset asm_result sym
fi
echo "$as_me:$LINENO: result: $ompi_cv_asm_lsym" >&5
echo "${ECHO_T}$ompi_cv_asm_lsym" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_LSYM "$ompi_cv_asm_lsym"
_ACEOF
OMPI_ASM_LSYM="$ompi_cv_asm_lsym"
echo "$as_me:$LINENO: checking prefix for function in .type" >&5
echo $ECHO_N "checking prefix for function in .type... $ECHO_C" >&6
if test "${ompi_cv_asm_type+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ompi_cv_asm_type=""
case "${host}" in
*-sun-solaris*)
# GCC on solaris seems to accept just about anything, not
# that what it defines actually works... So just hardwire
# to the right answer
ompi_cv_asm_type="#"
;;
*)
for type in @ \# % ; do
asm_result=0
echo "configure: trying $type" >&5
cat >conftest.s <&5
(eval $ompi_assemble) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# save the warnings
cat conftest.out >&5
ompi_cv_asm_type="${type}"
asm_result=1
else
# save compiler output and failed program
cat conftest.out >&5
echo "configure: failed program was:" >&5
cat conftest.s >&5
:
fi
rm -f conftest*
unset ompi_assemble
if test "$asm_result" = "1" ; then
break
fi
done
;;
esac
rm -f conftest.out
unset asm_result type
fi
echo "$as_me:$LINENO: result: $ompi_cv_asm_type" >&5
echo "${ECHO_T}$ompi_cv_asm_type" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_TYPE "$ompi_cv_asm_type"
_ACEOF
OMPI_ASM_TYPE="$ompi_cv_asm_type"
echo "$as_me:$LINENO: checking if .size is needed" >&5
echo $ECHO_N "checking if .size is needed... $ECHO_C" >&6
if test "${ompi_cv_asm_need_size+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ompi_cv_asm_need_size="no"
cat >conftest.s <&5
(eval $ompi_assemble) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# save the warnings
cat conftest.out >&5
ompi_cv_asm_need_size="yes"
else
# save compiler output and failed program
cat conftest.out >&5
echo "configure: failed program was:" >&5
cat conftest.s >&5
:
fi
rm -f conftest*
unset ompi_assemble
rm -f conftest.out
fi
echo "$as_me:$LINENO: result: $ompi_cv_asm_need_size" >&5
echo "${ECHO_T}$ompi_cv_asm_need_size" >&6
if test "$ompi_cv_asm_need_size" = "yes" ; then
ompi_asm_size=1
else
ompi_asm_size=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_SIZE "$ompi_asm_size"
_ACEOF
OMPI_ASM_SIZE="$ompi_asm_size"
unset asm_result
echo "$as_me:$LINENO: checking if .align directive takes logarithmic value" >&5
echo $ECHO_N "checking if .align directive takes logarithmic value... $ECHO_C" >&6
if test "${ompi_cv_asm_align_log+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.s <&5
(eval $ompi_assemble) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# save the warnings
cat conftest.out >&5
ompi_asm_addr=`$NM conftest.$OBJEXT | grep foo | sed -e 's/.*\([0-9a-fA-F][0-9a-fA-F]\).*foo.*/\1/'`
else
# save compiler output and failed program
cat conftest.out >&5
echo "configure: failed program was:" >&5
cat conftest.s >&5
ompi_asm_addr=""
fi
rm -f conftest*
unset ompi_assemble
# test for both 16 and 10 (decimal and hex notations)
echo "configure: .align test address offset is $ompi_asm_addr" >&5
if test "$ompi_asm_addr" = "16" -o "$ompi_asm_addr" = "10" ; then
ompi_cv_asm_align_log="yes"
else
ompi_cv_asm_align_log="no"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_asm_align_log" >&5
echo "${ECHO_T}$ompi_cv_asm_align_log" >&6
if test "$ompi_cv_asm_align_log" = "yes" -o "$ompi_cv_asm_align_log" = "1" ; then
ompi_asm_align_log_result=1
else
ompi_asm_align_log_result=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_ALIGN_LOG $asm_align_log_result
_ACEOF
unset omp_asm_addr asm_result
# find our architecture for purposes of assembly stuff
ompi_cv_asm_arch="UNSUPPORTED"
OMPI_GCC_INLINE_ASSIGN=""
OMPI_ASM_SUPPORT_64BIT=0
case "${host}" in
i?86-*|x86_64*)
if test "$ac_cv_sizeof_long" = "4" ; then
ompi_cv_asm_arch="IA32"
else
ompi_cv_asm_arch="AMD64"
fi
OMPI_ASM_SUPPORT_64BIT=1
OMPI_GCC_INLINE_ASSIGN='"movl $0, %0" : "=&r"(ret)'
;;
ia64-*)
ompi_cv_asm_arch="IA64"
OMPI_ASM_SUPPORT_64BIT=1
OMPI_GCC_INLINE_ASSIGN='"mov %0=r0\n;;\n" : "=&r"(ret)'
;;
alpha-*|alphaev[4-8]-*|alphaev56-*|alphaev6[78]-*)
ompi_cv_asm_arch="ALPHA"
OMPI_ASM_SUPPORT_64BIT=1
OMPI_GCC_INLINE_ASSIGN='"bis $31,$31,%0" : "=&r"(ret)'
;;
mips-*|mips64-*)
# Should really find some way to make sure that we are on
# a MIPS III machine (r4000 and later)
ompi_cv_asm_arch="MIPS"
OMPI_ASM_SUPPORT_64BIT=1
OMPI_GCC_INLINE_ASSIGN='"or %0,$0,$0" : "=&r"(ret)'
;;
powerpc-*|powerpc64-*)
echo "$as_me:$LINENO: checking if PowerPC registers have r prefix" >&5
echo $ECHO_N "checking if PowerPC registers have r prefix... $ECHO_C" >&6
cat >conftest.s <&5
(eval $ompi_assemble) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# save the warnings
cat conftest.out >&5
ompi_cv_asm_powerpc_r_reg=0
else
# save compiler output and failed program
cat conftest.out >&5
echo "configure: failed program was:" >&5
cat conftest.s >&5
cat >conftest.s <&5
(eval $ompi_assemble) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# save the warnings
cat conftest.out >&5
ompi_cv_asm_powerpc_r_reg=1
else
# save compiler output and failed program
cat conftest.out >&5
echo "configure: failed program was:" >&5
cat conftest.s >&5
{ { echo "$as_me:$LINENO: error: Can not determine how to use PPC registers" >&5
echo "$as_me: error: Can not determine how to use PPC registers" >&2;}
{ (exit 1); exit 1; }; }
fi
rm -f conftest*
unset ompi_assemble
fi
rm -f conftest*
unset ompi_assemble
if test "$ompi_cv_asm_powerpc_r_reg" = "1" ; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_POWERPC_R_REGISTERS $ompi_cv_asm_powerpc_r_reg
_ACEOF
if test "$ac_cv_sizeof_long" = "4" ; then
ompi_cv_asm_arch="POWERPC32"
# Note that on some platforms (Apple G5), even if we are
# compiling in 32 bit mode (and therefore should assume
# sizeof(long) == 4), we can use the 64 bit test and set
# operations.
if test "$ac_cv_sizeof_long" != "4" ; then
# this function should only be called in the 32 bit case
{ { echo "$as_me:$LINENO: error: CHECK_POWERPC_64BIT called on 64 bit platform. Internal error." >&5
echo "$as_me: error: CHECK_POWERPC_64BIT called on 64 bit platform. Internal error." >&2;}
{ (exit 1); exit 1; }; }
fi
echo "$as_me:$LINENO: checking for 64-bit PowerPC assembly support" >&5
echo $ECHO_N "checking for 64-bit PowerPC assembly support... $ECHO_C" >&6
case $host in
*-darwin*)
ppc64_result=0
if test "$ompi_cv_asm_powerpc_r_reg" = "1" ; then
ldarx_asm=" ldarx r1,r1,r1";
else
ldarx_asm=" ldarx 1,1,1";
fi
cat >conftest.s <&5
(eval $ompi_assemble) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# save the warnings
cat conftest.out >&5
ppc64_result=1
else
# save compiler output and failed program
cat conftest.out >&5
echo "configure: failed program was:" >&5
cat conftest.s >&5
ppc64_result=0
fi
rm -f conftest*
unset ompi_assemble
;;
*)
ppc64_result=0
;;
esac
if test "$ppc64_result" = "1" ; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
OMPI_ASM_SUPPORT_64BIT=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
:
fi
unset ppc64_result ldarx_asm
elif test "$ac_cv_sizeof_long" = "8" ; then
OMPI_ASM_SUPPORT_64BIT=1
ompi_cv_asm_arch="POWERPC64"
else
{ { echo "$as_me:$LINENO: error: Could not determine PowerPC word size: $ac_cv_sizeof_long" >&5
echo "$as_me: error: Could not determine PowerPC word size: $ac_cv_sizeof_long" >&2;}
{ (exit 1); exit 1; }; }
fi
OMPI_GCC_INLINE_ASSIGN='"1: li %0,0" : "=&r"(ret)'
;;
sparc*-*)
# SPARC v9 (and above) are the only ones with 64bit support
# if compiling 32 bit, see if we are v9 (aka v8plus) or
# earlier (casa is v8+/v9).
if test "$ac_cv_sizeof_long" = "4" ; then
have_v8plus=0
echo "$as_me:$LINENO: checking if have Sparc v8+/v9 support" >&5
echo $ECHO_N "checking if have Sparc v8+/v9 support... $ECHO_C" >&6
sparc_result=0
cat >conftest.s <&5
(eval $ompi_assemble) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; then
# save the warnings
cat conftest.out >&5
sparc_result=1
else
# save compiler output and failed program
cat conftest.out >&5
echo "configure: failed program was:" >&5
cat conftest.s >&5
sparc_result=0
fi
rm -f conftest*
unset ompi_assemble
if test "$sparc_result" = "1" ; then
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
have_v8plus=1
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
:
fi
unset sparc_result
if test "$have_v8plus" = "0" ; then
OMPI_ASM_SUPPORT_64BIT=0
ompi_cv_asm_arch="SPARC"
{ echo "$as_me:$LINENO: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&5
echo "$as_me: WARNING: Sparc v8 target is not supported in this release of Open MPI." >&2;}
{ echo "$as_me:$LINENO: WARNING: You must specify the target architecture v8plus" >&5
echo "$as_me: WARNING: You must specify the target architecture v8plus" >&2;}
{ echo "$as_me:$LINENO: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CCXXFLAGS," >&5
echo "$as_me: WARNING: (cc: -xarch=v8plus, gcc: -mcpu=v9) for CFLAGS, CCXXFLAGS," >&2;}
{ echo "$as_me:$LINENO: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&5
echo "$as_me: WARNING: FFLAGS, and FCFLAGS to compile Open MPI in 32 bit mode on" >&2;}
{ echo "$as_me:$LINENO: WARNING: Sparc processors" >&5
echo "$as_me: WARNING: Sparc processors" >&2;}
{ { echo "$as_me:$LINENO: error: Can not continue." >&5
echo "$as_me: error: Can not continue." >&2;}
{ (exit 1); exit 1; }; }
else
OMPI_ASM_SUPPORT_64BIT=1
ompi_cv_asm_arch="SPARCV9_32"
fi
elif test "$ac_cv_sizeof_long" = "8" ; then
OMPI_ASM_SUPPORT_64BIT=1
ompi_cv_asm_arch="SPARCV9_64"
else
{ { echo "$as_me:$LINENO: error: Could not determine Sparc word size: $ac_cv_sizeof_long" >&5
echo "$as_me: error: Could not determine Sparc word size: $ac_cv_sizeof_long" >&2;}
{ (exit 1); exit 1; }; }
fi
OMPI_GCC_INLINE_ASSIGN='"mov 0,%0" : "=&r"(ret)'
;;
*)
{ { echo "$as_me:$LINENO: error: No atomic primitives available for $host" >&5
echo "$as_me: error: No atomic primitives available for $host" >&2;}
{ (exit 1); exit 1; }; }
;;
esac
cat >>confdefs.h <<_ACEOF
#define OMPI_ASM_SUPPORT_64BIT $OMPI_ASM_SUPPORT_64BIT
_ACEOF
#
# figure out if we need any special function start / stop code
#
case $host_os in
aix*)
ompi_asm_arch_config="aix"
;;
*)
ompi_asm_arch_config="default"
;;
esac
# now that we know our architecture, try to inline assemble
assembly="$OMPI_GCC_INLINE_ASSIGN"
asm_result="unknown"
echo "$as_me:$LINENO: checking if $CC supports GCC inline assembly" >&5
echo $ECHO_N "checking if $CC supports GCC inline assembly... $ECHO_C" >&6
if test "$ompi_cv_c_compiler_vendor" = "portland group" ; then
# PGI seems to have some issues with our inline assembly.
# Disable for now.
asm_result="no (Portland Group)"
else
case $host in
*-aix*)
# the AIX compilers and linkers really don't do gcc
# inline assembly right - disable for now.
asm_result="no (AIX)"
;;
*)
if test ! "$assembly" = "" ; then
if test "$cross_compiling" = yes; then
asm_result="unknown"
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
int ret = 1;
__asm__ __volatile__ ($assembly);
return ret;
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
asm_result="yes"
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
asm_result="no"
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
else
assembly="test skipped - assuming no"
fi
;;
esac
# if we're cross compiling, just try to compile and figure good enough
if test "$asm_result" = "unknown" ; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
int ret = 1;
__asm__ __volatile__ ($assembly);
return ret;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
asm_result="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
asm_result="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi
fi
echo "$as_me:$LINENO: result: $asm_result" >&5
echo "${ECHO_T}$asm_result" >&6
if test "$asm_result" = "yes" ; then
OMPI_C_GCC_INLINE_ASSEMBLY=1
else
OMPI_C_GCC_INLINE_ASSEMBLY=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_C_GCC_INLINE_ASSEMBLY $OMPI_C_GCC_INLINE_ASSEMBLY
_ACEOF
unset OMPI_C_GCC_INLINE_ASSEMBLY assembly asm_result
echo "$as_me:$LINENO: checking if $CC supports DEC inline assembly" >&5
echo $ECHO_N "checking if $CC supports DEC inline assembly... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include
int
main ()
{
asm("");
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_c_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
asm_result="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
asm_result="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
echo "$as_me:$LINENO: result: $asm_result" >&5
echo "${ECHO_T}$asm_result" >&6
if test "$asm_result" = "yes" ; then
OMPI_C_DEC_INLINE_ASSEMBLY=1
else
OMPI_C_DEC_INLINE_ASSEMBLY=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_C_DEC_INLINE_ASSEMBLY $OMPI_C_DEC_INLINE_ASSEMBLY
_ACEOF
unset OMPI_C_DEC_INLINE_ASSEMBLY asm_result
echo "$as_me:$LINENO: checking if $CC supports XLC inline assembly" >&5
echo $ECHO_N "checking if $CC supports XLC inline assembly... $ECHO_C" >&6
OMPI_C_XLC_INLINE_ASSEMBLY=0
asm_result="no"
if test "$CC" = "xlc" ; then
OMPI_XLC_INLINE_ASSEMBLY=1
asm_result="yes"
fi
echo "$as_me:$LINENO: result: $asm_result" >&5
echo "${ECHO_T}$asm_result" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_C_XLC_INLINE_ASSEMBLY $OMPI_C_XLC_INLINE_ASSEMBLY
_ACEOF
unset OMPI_C_XLC_INLINE_ASSEMBLY
assembly="$OMPI_GCC_INLINE_ASSIGN"
asm_result="unknown"
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking if $CXX supports GCC inline assembly" >&5
echo $ECHO_N "checking if $CXX supports GCC inline assembly... $ECHO_C" >&6
case $host in
*-aix*)
# the AIX compilers and linkers really don't do gcc
# inline assembly right - disable for now.
asm_result="no (AIX)"
;;
*)
if test ! "$assembly" = "" ; then
if test "$cross_compiling" = yes; then
asm_result="unknown"
else
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
int ret = 1;
__asm__ __volatile__ ($assembly);
return ret;
;
return 0;
}
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
asm_result="yes"
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
asm_result="no"
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
else
assembly="test skipped - assuming no"
fi
;;
esac
# if we're cross compiling, just try to compile and figure good enough
if test "$asm_result" = "unknown" ; then
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
int ret = 1;
__asm__ __volatile__ ($assembly);
return ret;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
asm_result="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
asm_result="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $asm_result" >&5
echo "${ECHO_T}$asm_result" >&6
if test "$asm_result" = "yes" ; then
OMPI_CXX_GCC_INLINE_ASSEMBLY=1
else
OMPI_CXX_GCC_INLINE_ASSEMBLY=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_GCC_INLINE_ASSEMBLY $OMPI_CXX_GCC_INLINE_ASSEMBLY
_ACEOF
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
unset OMPI_CXX_GCC_INLINE_ASSEMBLY assembly asm_result
ac_ext=cc
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
echo "$as_me:$LINENO: checking if $CXX supports DEC inline assembly" >&5
echo $ECHO_N "checking if $CXX supports DEC inline assembly... $ECHO_C" >&6
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
$ac_includes_default
#include
int
main ()
{
asm("");
return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_cxx_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
asm_result="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
asm_result="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
echo "$as_me:$LINENO: result: $asm_result" >&5
echo "${ECHO_T}$asm_result" >&6
if test "$asm_result" = "yes" ; then
OMPI_CXX_DEC_INLINE_ASSEMBLY=1
else
OMPI_CXX_DEC_INLINE_ASSEMBLY=0
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_DEC_INLINE_ASSEMBLY $OMPI_CXX_DEC_INLINE_ASSEMBLY
_ACEOF
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
unset OMPI_CXX_DEC_INLINE_ASSEMBLY asm_result
echo "$as_me:$LINENO: checking if $CXX supports XLC inline assembly" >&5
echo $ECHO_N "checking if $CXX supports XLC inline assembly... $ECHO_C" >&6
OMPI_CXX_XLC_INLINE_ASSEMBLY=0
asm_result="no"
if test "$CXX" = "xlC" -o "$CXX" = "xlc++" ; then
OMPI_CXX_XLC_INLINE_ASSEMBLY=1
asm_result="yes"
fi
echo "$as_me:$LINENO: result: $asm_result" >&5
echo "${ECHO_T}$asm_result" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_CXX_XLC_INLINE_ASSEMBLY $OMPI_CXX_XLC_INLINE_ASSEMBLY
_ACEOF
unset OMPI_CXX_XLC_INLINE_ASSEMBLY
# format:
# config_file-text-global-label_suffix-gsym-lsym-type-size-align_log-ppc_r_reg-64_bit-gnu_stack
asm_format="${ompi_asm_arch_config}"
asm_format="${asm_format}-${ompi_cv_asm_text}-${ompi_cv_asm_global}"
asm_format="${asm_format}-${ompi_cv_asm_label_suffix}-${ompi_cv_asm_gsym}"
asm_format="${asm_format}-${ompi_cv_asm_lsym}"
asm_format="${asm_format}-${ompi_cv_asm_type}-${ompi_asm_size}"
asm_format="${asm_format}-${ompi_asm_align_log_result}"
if test "$ompi_cv_asm_arch" = "POWERPC32" -o "$ompi_cv_asm_arch" = "POWERPC64" ; then
asm_format="${asm_format}-${ompi_cv_asm_powerpc_r_reg}"
else
asm_format="${asm_format}-1"
fi
asm_format="${asm_format}-${OMPI_ASM_SUPPORT_64BIT}"
ompi_cv_asm_format="${asm_format}-${ompi_cv_asm_gnu_stack}"
# For the Makefile, need to escape the $ as $$. Don't display
# this version, but make sure the Makefile gives the right thing
# when regenerating the files because the base has been touched.
OMPI_ASSEMBLY_FORMAT=`echo "$ompi_cv_asm_format" | sed -e 's/\\\$/\\\$\\\$/'`
echo "$as_me:$LINENO: checking for assembly format" >&5
echo $ECHO_N "checking for assembly format... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $ompi_cv_asm_format" >&5
echo "${ECHO_T}$ompi_cv_asm_format" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ASSEMBLY_FORMAT "$OMPI_ASSEMBLY_FORMAT"
_ACEOF
fi # if cv_c_compiler_vendor = microsoft
result="OMPI_$ompi_cv_asm_arch"
OMPI_ASSEMBLY_ARCH="$ompi_cv_asm_arch"
echo "$as_me:$LINENO: checking for asssembly architecture" >&5
echo $ECHO_N "checking for asssembly architecture... $ECHO_C" >&6
echo "$as_me:$LINENO: result: $ompi_cv_asm_arch" >&5
echo "${ECHO_T}$ompi_cv_asm_arch" >&6
cat >>confdefs.h <<_ACEOF
#define OMPI_ASSEMBLY_ARCH $result
_ACEOF
if test "$ompi_cv_asm_arch" != "WINDOWS" ; then
# Extract the first word of "perl", so it can be a program name with args.
set dummy perl; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_PERL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$PERL"; then
ac_cv_prog_PERL="$PERL" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_PERL="perl"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
PERL=$ac_cv_prog_PERL
if test -n "$PERL"; then
echo "$as_me:$LINENO: result: $PERL" >&5
echo "${ECHO_T}$PERL" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
# see if we have a pre-built one already
echo "$as_me:$LINENO: checking for pre-built assembly file" >&5
echo $ECHO_N "checking for pre-built assembly file... $ECHO_C" >&6
ompi_cv_asm_file=""
if grep "$ompi_cv_asm_arch" "${top_ompi_srcdir}/opal/asm/asm-data.txt" | $FGREP "$ompi_cv_asm_format" >conftest.out 2>&1 ; then
ompi_cv_asm_file="`cut -f3 conftest.out`"
if test ! "$ompi_cv_asm_file" = "" ; then
ompi_cv_asm_file="atomic-${ompi_cv_asm_file}.s"
if test -f "${top_ompi_srcdir}/opal/asm/generated/${ompi_cv_asm_file}" ; then
echo "$as_me:$LINENO: result: yes ($ompi_cv_asm_file)" >&5
echo "${ECHO_T}yes ($ompi_cv_asm_file)" >&6
else
echo "$as_me:$LINENO: result: no ($ompi_cv_asm_file not found)" >&5
echo "${ECHO_T}no ($ompi_cv_asm_file not found)" >&6
ompi_cv_asm_file=""
fi
fi
else
echo "$as_me:$LINENO: result: no (not in asm-data)" >&5
echo "${ECHO_T}no (not in asm-data)" >&6
fi
rm -f conftest.*
if test "$ompi_cv_asm_file" = "" ; then
if test ! "$PERL" = "" ; then
# we have perl... Can we generate a file?
echo "$as_me:$LINENO: checking whether possible to generate assembly file" >&5
echo $ECHO_N "checking whether possible to generate assembly file... $ECHO_C" >&6
mkdir -p opal/asm/generated
ompi_cv_asm_file="atomic-local.s"
ompi_try='$PERL $top_ompi_srcdir/opal/asm/generate-asm.pl $ompi_cv_asm_arch $ompi_cv_asm_format $top_ompi_srcdir/opal/asm/base $top_ompi_builddir/opal/asm/generated/$ompi_cv_asm_file >conftest.out 2>&1'
if { (eval echo "$as_me:$LINENO: \"$ompi_try\"") >&5
(eval $ompi_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } ; then
# save the warnings
cat conftest.out >&5
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
else
# save output
cat conftest.out >&5
ompi_cv_asm_file=""
echo "$as_me:$LINENO: result: failed" >&5
echo "${ECHO_T}failed" >&6
{ echo "$as_me:$LINENO: WARNING: Could not build atomic operations assembly file." >&5
echo "$as_me: WARNING: Could not build atomic operations assembly file." >&2;}
{ echo "$as_me:$LINENO: WARNING: There will be no atomic operations for this build." >&5
echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;}
fi
else
{ echo "$as_me:$LINENO: WARNING: Could not find prebuilt atomic operations file and could not" >&5
echo "$as_me: WARNING: Could not find prebuilt atomic operations file and could not" >&2;}
{ echo "$as_me:$LINENO: WARNING: find perl to attempt to generate a custom assembly file." >&5
echo "$as_me: WARNING: find perl to attempt to generate a custom assembly file." >&2;}
{ echo "$as_me:$LINENO: WARNING: There will be no atomic operations for this build." >&5
echo "$as_me: WARNING: There will be no atomic operations for this build." >&2;}
fi
fi
rm -f conftest.*
else
# On windows with VC++, atomics are done with compiler primitives
ompi_cv_asm_file=""
fi
echo "$as_me:$LINENO: checking for atomic assembly filename" >&5
echo $ECHO_N "checking for atomic assembly filename... $ECHO_C" >&6
if test "$ompi_cv_asm_file" = "" ; then
echo "$as_me:$LINENO: result: none" >&5
echo "${ECHO_T}none" >&6
result=0
else
echo "$as_me:$LINENO: result: $ompi_cv_asm_file" >&5
echo "${ECHO_T}$ompi_cv_asm_file" >&6
result=1
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_ASM_FILE $result
_ACEOF
if test "$result" = "1"; then
OMPI_HAVE_ASM_FILE_TRUE=
OMPI_HAVE_ASM_FILE_FALSE='#'
else
OMPI_HAVE_ASM_FILE_TRUE='#'
OMPI_HAVE_ASM_FILE_FALSE=
fi
OMPI_ASM_FILE=$ompi_cv_asm_file
unset result asm_format
##################################
# Fortran
##################################
#-----------
# Fortran 77
#-----------
# Modularize this setup so that sub-configure.in scripts can use this
# same setup code.
ompi_show_subtitle "Fortran 77 compiler"
#
# Check for the compiler
#
# Note that we don't actually *use* the fortran compiler to build
# anything in OMPI; it's only used here in configure to find out
# symbol conventions, type sizes, etc. We also pass it down to
# the wrapper compiler mpif77.
#
# Always run this test, even if fortran isn't wanted so that F77 has
# value for the Fint tests
#
ompi_fflags_save="$FFLAGS"
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
if test -n "$ac_tool_prefix"; then
for ac_prog in gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77
do
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_F77+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$F77"; then
ac_cv_prog_F77="$F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
F77=$ac_cv_prog_F77
if test -n "$F77"; then
echo "$as_me:$LINENO: result: $F77" >&5
echo "${ECHO_T}$F77" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$F77" && break
done
fi
if test -z "$F77"; then
ac_ct_F77=$F77
for ac_prog in gfortran g77 f77 xlf frt ifort pgf77 fort77 fl32 af77
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$ac_ct_F77"; then
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_ac_ct_F77="$ac_prog"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
ac_ct_F77=$ac_cv_prog_ac_ct_F77
if test -n "$ac_ct_F77"; then
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
echo "${ECHO_T}$ac_ct_F77" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
test -n "$ac_ct_F77" && break
done
F77=$ac_ct_F77
fi
# Provide some information about the compiler.
echo "$as_me:25263:" \
"checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
(eval $ac_compiler --version &5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
(eval $ac_compiler -v &5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
(eval $ac_compiler -V &5) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }
rm -f a.out
# If we don't use `.F' as extension, the preprocessor is not run on the
# input file. (Note that this only needs to work for GNU compilers.)
ac_save_ext=$ac_ext
ac_ext=F
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
program main
#ifndef __GNUC__
choke me
#endif
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_compiler_gnu=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_compiler_gnu=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
ac_ext=$ac_save_ext
ac_test_FFLAGS=${FFLAGS+set}
ac_save_FFLAGS=$FFLAGS
FFLAGS=
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
if test "${ac_cv_prog_f77_g+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
FFLAGS=-g
cat >conftest.$ac_ext <<_ACEOF
program main
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ac_cv_prog_f77_g=yes
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ac_cv_prog_f77_g=no
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
if test "$ac_test_FFLAGS" = set; then
FFLAGS=$ac_save_FFLAGS
elif test $ac_cv_prog_f77_g = yes; then
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
FFLAGS="-g -O2"
else
FFLAGS="-g"
fi
else
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
FFLAGS="-O2"
else
FFLAGS=
fi
fi
G77=`test $ac_compiler_gnu = yes && echo yes`
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
FFLAGS="$ompi_fflags_save"
if test -z "$F77"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&5
echo "$as_me: WARNING: *** Fortran 77 bindings disabled (could not find compiler)" >&2;}
OMPI_WANT_F77_BINDINGS=0
OMPI_F77="none"
BASEF77="none"
OMPI_F77_ABSOLUTE="none"
else
OMPI_F77="$F77"
set dummy $OMPI_F77
OMPI_F77_ARGV0=$2
BASEF77="`basename $OMPI_F77_ARGV0`"
OMPI_F77_ABSOLUTE="`which $OMPI_F77_ARGV0`"
if test "$OMPI_WANT_F77_BINDINGS" = "0" ; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 bindings disabled by user" >&5
echo "$as_me: WARNING: *** Fortran 77 bindings disabled by user" >&2;}
OMPI_WANT_F77_BINDINGS=0
else
OMPI_WANT_F77_BINDINGS=1
fi
fi
# make sure the compiler actually works, if not cross-compiling
# Don't just use the AC macro so that we can have a pretty
# message.
if test $OMPI_WANT_F77_BINDINGS -eq 1; then
echo "$as_me:$LINENO: checking if Fortran 77 compiler works" >&5
echo $ECHO_N "checking if Fortran 77 compiler works... $ECHO_C" >&6
if test "${ompi_cv_Fortran_77_works+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
if test "$cross_compiling" = yes; then
cat >conftest.$ac_ext <<_ACEOF
program main
end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_Fortran_77_works="links (cross compiling)"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_Fortran_77_works="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
else
cat >conftest.$ac_ext <<_ACEOF
program main
end
_ACEOF
rm -f conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_Fortran_77_works="yes"
else
echo "$as_me: program exited with status $ac_status" >&5
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
( exit $ac_status )
ompi_cv_Fortran_77_works="no"
fi
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
fi
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_Fortran_77_works" >&5
echo "${ECHO_T}$ompi_cv_Fortran_77_works" >&6
if test "$ompi_cv_Fortran_77_works" = "no"; then
cat <&2
**********************************************************************
* It appears that your Fortran 77 compiler is unable to produce working
* executables. A simple test application failed to properly
* execute. Note that this is likely not a problem with Open MPI,
* but a problem with the local compiler installation. More
* information (including exactly what command was given to the
* compiler and what error resulted when the command was executed) is
* available in the config.log file in this directory.
**********************************************************************
EOF
{ { echo "$as_me:$LINENO: error: Could not run a simple Fortran 77 program. Aborting." >&5
echo "$as_me: error: Could not run a simple Fortran 77 program. Aborting." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
# now make sure we know our linking convention...
# invalidate cache if result came from a run where F77 was disabled
if test "$ompi_cv_f77_external_symbol" = "skipped" ; then
unset ompi_cv_f77_external_symbol
fi
echo "$as_me:$LINENO: checking $F77 external symbol convention" >&5
echo $ECHO_N "checking $F77 external symbol convention... $ECHO_C" >&6
if test "${ompi_cv_f77_external_symbol+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$F77" = "none" -o "$OMPI_WANT_F77_BINDINGS" = "0"; then
ompi_cv_f77_external_symbol="skipped"
else
cat >conftest.f <&5
$F77 $FFLAGS -c conftest.f $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:25578: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if $NM conftest.o | grep foo_bar__ >/dev/null 2>&1 ; then
ompi_cv_f77_external_symbol="double underscore"
elif $NM conftest.o | grep foo_bar_ >/dev/null 2>&1 ; then
ompi_cv_f77_external_symbol="single underscore"
elif $NM conftest.o | grep FOO_bar >/dev/null 2>&1 ; then
ompi_cv_f77_external_symbol="mixed case"
elif $NM conftest.o | grep foo_bar >/dev/null 2>&1 ; then
ompi_cv_f77_external_symbol="no underscore"
elif $NM conftest.o | grep FOO_BAR >/dev/null 2>&1 ; then
ompi_cv_f77_external_symbol="upper case"
else
$NM conftest.o >conftest.out 2>&1
# 1 is the message
# 2 is whether to put a prefix or not
if test -n ""; then
echo "configure:25600: output from $NM:" >&5
else
echo output from $NM: >&5
fi
# 1 is the filename
if test -n "conftest.out" -a -f "conftest.out"; then
cat conftest.out >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine Fortran naming convention." >&5
echo "$as_me: error: Could not determine Fortran naming convention." >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Fortran compiler did not produce object file" >&5
echo "$as_me: error: Fortran compiler did not produce object file" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_external_symbol" >&5
echo "${ECHO_T}$ompi_cv_f77_external_symbol" >&6
ompi_fortran_double_underscore=0
ompi_fortran_single_underscore=0
ompi_fortran_caps=0
ompi_fortran_plain=0
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
ompi_fortran_double_underscore=1
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_fortran_single_underscore=1
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_fortran_caps=1
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_fortran_plain=1
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_fortran_caps=1
elif test "$ompi_cv_f77_external_symbol" != "skipped" ; then
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_F77_DOUBLE_UNDERSCORE $ompi_fortran_double_underscore
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_F77_SINGLE_UNDERSCORE $ompi_fortran_single_underscore
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_F77_CAPS $ompi_fortran_caps
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_F77_PLAIN $ompi_fortran_plain
_ACEOF
rm -f conftest.*
# Make sure we can link with C code...
if test $OMPI_WANT_F77_BINDINGS -eq 1; then
echo "$as_me:$LINENO: checking if C and Fortran 77 are link compatible" >&5
echo $ECHO_N "checking if C and Fortran 77 are link compatible... $ECHO_C" >&6
if test "${ompi_cv_c_link_Fortran_77+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo testfunc | grep _ >/dev/null 2>&1 ; then
testfunc_name=testfunc__
else
testfunc_name=testfunc_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
testfunc_name=testfunc_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
testfunc_name=testfunc
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
testfunc_name=testfunc
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
testfunc_name=TESTFUNC
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Write out C part
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
rm -f conftest_c.$ac_ext
cat > conftest_c.$ac_ext << EOF
int $testfunc_name(int a);
int $testfunc_name(int a) { return a; }
EOF
# Now compile both parts
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:25724: $CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext" >&5
$CC -c $CFLAGS $CPPFLAGS conftest_c.$ac_ext 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:25731: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
ompi_lang_link_with_c_libs="$LIBS"
LIBS="conftest_c.o $LIBS"
cat >conftest.$ac_ext <<_ACEOF
program main
external testfunc
call testfunc(1)
end
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
(eval $ac_link) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest$ac_exeext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_c_link_Fortran_77="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_c_link_Fortran_77="no"
fi
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
LIBS="$ompi_lang_link_with_c_libs"
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
else
unset ompi_status
ompi_cv_c_link_Fortran_77="no"
fi
rm -f conftest_c.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_c_link_Fortran_77" >&5
echo "${ECHO_T}$ompi_cv_c_link_Fortran_77" >&6
if test "$ompi_cv_c_link_Fortran_77" = "yes"; then
:
else
cat <&5
echo "$as_me: error: C and Fortran 77 compilers are not link compatible. Can not continue." >&2;}
{ (exit 1); exit 1; }; }
fi
fi
cat >>confdefs.h <<_ACEOF
#define OMPI_WANT_F77_BINDINGS $OMPI_WANT_F77_BINDINGS
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_F77 "$OMPI_F77"
_ACEOF
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
OMPI_WANT_F77_BINDINGS_TRUE=
OMPI_WANT_F77_BINDINGS_FALSE='#'
else
OMPI_WANT_F77_BINDINGS_TRUE='#'
OMPI_WANT_F77_BINDINGS_FALSE=
fi
# This allows us to mark bogus types, but still have them be a valid
# [sentinel] value
cat >>confdefs.h <<\_ACEOF
#define ompi_fortran_bogus_type_t int
_ACEOF
# We want to set the #define's for all of these, so invoke the macros
# regardless of whether we have F77 support or not.
ofc_expected_size=-1
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL... $ECHO_C" >&6
if test "${ompi_cv_f77_have_LOGICAL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
LOGICAL bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_LOGICAL="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_LOGICAL="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_LOGICAL" >&5
echo "${ECHO_T}$ompi_cv_f77_have_LOGICAL" >&6
if test "$ompi_cv_f77_have_LOGICAL" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports LOGICAL" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports LOGICAL... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 LOGICAL" >&5
echo $ECHO_N "checking size of Fortran 77 LOGICAL... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_LOGICAL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26037: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26044: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26054: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26061: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
echo "$as_me: error: Could not determine size of LOGICAL" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of LOGICAL when cross-compiling" >&5
echo "$as_me: error: Can not determine size of LOGICAL when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26092: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26099: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_LOGICAL=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26112: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
echo "$as_me: error: Could not determine size of LOGICAL" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of LOGICAL" >&5
echo "$as_me: error: Could not determine size of LOGICAL" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_LOGICAL" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_LOGICAL" >&6
ofc_type_size=$ompi_cv_f77_sizeof_LOGICAL
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 LOGICAL does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 LOGICAL" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="yes"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to LOGICAL" >&5
echo $ECHO_N "checking for C type corresponding to LOGICAL... $ECHO_C" >&6
if test "${ompi_cv_find_type_LOGICAL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then
oft_real_type="char"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
oft_real_type="int32_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
oft_real_type="int"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
oft_real_type="int64_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
oft_real_type="long long"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
oft_real_type="long"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_LOGICAL="not found"
else
ompi_cv_find_type_LOGICAL="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_LOGICAL" >&5
echo "${ECHO_T}$ompi_cv_find_type_LOGICAL" >&6
if test "$ompi_cv_find_type_LOGICAL" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_LOGICAL" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_LOGICAL
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran LOGICAL" >&5
echo $ECHO_N "checking alignment of Fortran LOGICAL... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_LOGICAL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26317: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26324: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26334: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26341: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL" >&5
echo "$as_me: error: Could not determine alignment of LOGICAL" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of LOGICAL when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of LOGICAL when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26372: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26379: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_LOGICAL=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of LOGICAL" >&5
echo "$as_me: error: Could not determine alignment of LOGICAL" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_LOGICAL" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_LOGICAL" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_LOGICAL
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_LOGICAL $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_LOGICAL $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_LOGICAL $ofc_type_alignment
_ACEOF
if test "char, int32_t, int, int64_t, long long, long" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_logical_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_LOGICAL_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_LOGICAL=$ofc_have_type
OMPI_SIZEOF_FORTRAN_LOGICAL=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_LOGICAL=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=-1
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER... $ECHO_C" >&6
if test "${ompi_cv_f77_have_INTEGER+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
INTEGER bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_INTEGER="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_INTEGER="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGER" >&5
echo "${ECHO_T}$ompi_cv_f77_have_INTEGER" >&6
if test "$ompi_cv_f77_have_INTEGER" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER" >&5
echo $ECHO_N "checking size of Fortran 77 INTEGER... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_INTEGER+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26617: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26624: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26634: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26641: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
echo "$as_me: error: Could not determine size of INTEGER" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of INTEGER when cross-compiling" >&5
echo "$as_me: error: Can not determine size of INTEGER when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26672: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26679: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_INTEGER=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26692: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
echo "$as_me: error: Could not determine size of INTEGER" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER" >&5
echo "$as_me: error: Could not determine size of INTEGER" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGER" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGER" >&6
ofc_type_size=$ompi_cv_f77_sizeof_INTEGER
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 INTEGER does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="yes"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to INTEGER" >&5
echo $ECHO_N "checking for C type corresponding to INTEGER... $ECHO_C" >&6
if test "${ompi_cv_find_type_INTEGER+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
oft_real_type="int32_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
oft_real_type="int"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
oft_real_type="int64_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
oft_real_type="long long"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
oft_real_type="long"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_INTEGER="not found"
else
ompi_cv_find_type_INTEGER="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGER" >&5
echo "${ECHO_T}$ompi_cv_find_type_INTEGER" >&6
if test "$ompi_cv_find_type_INTEGER" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_INTEGER" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_INTEGER
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran INTEGER" >&5
echo $ECHO_N "checking alignment of Fortran INTEGER... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_INTEGER+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26892: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26899: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26909: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26916: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER" >&5
echo "$as_me: error: Could not determine alignment of INTEGER" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of INTEGER when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:26947: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:26954: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_INTEGER=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER" >&5
echo "$as_me: error: Could not determine alignment of INTEGER" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGER" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGER" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_INTEGER
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER $ofc_type_alignment
_ACEOF
if test "int32_t, int, int64_t, long long, long" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_INTEGER_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_INTEGER=$ofc_have_type
OMPI_SIZEOF_FORTRAN_INTEGER=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_INTEGER=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=1
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*1... $ECHO_C" >&6
if test "${ompi_cv_f77_have_INTEGERp1+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
INTEGER*1 bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_INTEGERp1="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_INTEGERp1="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp1" >&5
echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp1" >&6
if test "$ompi_cv_f77_have_INTEGERp1" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*1" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*1... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*1" >&5
echo $ECHO_N "checking size of Fortran 77 INTEGER*1... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_INTEGERp1+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:27192: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27199: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:27209: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27216: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
echo "$as_me: error: Could not determine size of INTEGER*1" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*1 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of INTEGER*1 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:27247: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27254: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_INTEGERp1=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27267: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
echo "$as_me: error: Could not determine size of INTEGER*1" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*1" >&5
echo "$as_me: error: Could not determine size of INTEGER*1" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp1" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp1" >&6
ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp1
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 INTEGER*1 does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*1" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="no"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*1" >&5
echo $ECHO_N "checking for C type corresponding to INTEGER*1... $ECHO_C" >&6
if test "${ompi_cv_find_type_INTEGERp1+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_char" = "$oft_target_size" ; then
oft_real_type="char"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int8_t" = "$oft_target_size" ; then
oft_real_type="int8_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then
oft_real_type="short"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
oft_real_type="int"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
oft_real_type="int64_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
oft_real_type="long long"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
oft_real_type="long"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_INTEGERp1="not found"
else
ompi_cv_find_type_INTEGERp1="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp1" >&5
echo "${ECHO_T}$ompi_cv_find_type_INTEGERp1" >&6
if test "$ompi_cv_find_type_INTEGERp1" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_INTEGERp1" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_INTEGERp1
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*1" >&5
echo $ECHO_N "checking alignment of Fortran INTEGER*1... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_INTEGERp1+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:27477: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27484: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:27494: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27501: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*1" >&5
echo "$as_me: error: Could not determine alignment of INTEGER*1" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*1 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of INTEGER*1 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:27532: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27539: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_INTEGERp1=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*1" >&5
echo "$as_me: error: Could not determine alignment of INTEGER*1" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp1" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp1" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp1
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER1 $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER1 $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER1 $ofc_type_alignment
_ACEOF
if test "char, int8_t, short, int, int64_t, long long, long" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer1_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_INTEGER1_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_INTEGER1=$ofc_have_type
OMPI_SIZEOF_FORTRAN_INTEGER1=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_INTEGER1=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=2
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*2" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*2... $ECHO_C" >&6
if test "${ompi_cv_f77_have_INTEGERp2+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
INTEGER*2 bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_INTEGERp2="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_INTEGERp2="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp2" >&5
echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp2" >&6
if test "$ompi_cv_f77_have_INTEGERp2" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*2" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*2... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*2" >&5
echo $ECHO_N "checking size of Fortran 77 INTEGER*2... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_INTEGERp2+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:27777: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27784: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:27794: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27801: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
echo "$as_me: error: Could not determine size of INTEGER*2" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*2 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of INTEGER*2 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:27832: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27839: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_INTEGERp2=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:27852: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
echo "$as_me: error: Could not determine size of INTEGER*2" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*2" >&5
echo "$as_me: error: Could not determine size of INTEGER*2" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp2" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp2" >&6
ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp2
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 INTEGER*2 does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*2" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="no"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*2" >&5
echo $ECHO_N "checking for C type corresponding to INTEGER*2... $ECHO_C" >&6
if test "${ompi_cv_find_type_INTEGERp2+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_short" = "$oft_target_size" ; then
oft_real_type="short"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int16_t" = "$oft_target_size" ; then
oft_real_type="int16_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
oft_real_type="int32_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
oft_real_type="int"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
oft_real_type="int64_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
oft_real_type="long long"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
oft_real_type="long"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_INTEGERp2="not found"
else
ompi_cv_find_type_INTEGERp2="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp2" >&5
echo "${ECHO_T}$ompi_cv_find_type_INTEGERp2" >&6
if test "$ompi_cv_find_type_INTEGERp2" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_INTEGERp2" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_INTEGERp2
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*2" >&5
echo $ECHO_N "checking alignment of Fortran INTEGER*2... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_INTEGERp2+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28062: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28069: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28079: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28086: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*2" >&5
echo "$as_me: error: Could not determine alignment of INTEGER*2" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*2 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of INTEGER*2 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28117: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28124: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_INTEGERp2=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*2" >&5
echo "$as_me: error: Could not determine alignment of INTEGER*2" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp2" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp2" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp2
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER2 $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER2 $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER2 $ofc_type_alignment
_ACEOF
if test "short, int16_t, int32_t, int, int64_t, long long, long" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer2_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_INTEGER2_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_INTEGER2=$ofc_have_type
OMPI_SIZEOF_FORTRAN_INTEGER2=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_INTEGER2=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=4
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*4" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*4... $ECHO_C" >&6
if test "${ompi_cv_f77_have_INTEGERp4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
INTEGER*4 bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_INTEGERp4="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_INTEGERp4="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp4" >&5
echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp4" >&6
if test "$ompi_cv_f77_have_INTEGERp4" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*4" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*4... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*4" >&5
echo $ECHO_N "checking size of Fortran 77 INTEGER*4... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_INTEGERp4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28362: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28369: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28379: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28386: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
echo "$as_me: error: Could not determine size of INTEGER*4" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*4 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of INTEGER*4 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28417: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28424: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_INTEGERp4=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28437: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
echo "$as_me: error: Could not determine size of INTEGER*4" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*4" >&5
echo "$as_me: error: Could not determine size of INTEGER*4" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp4" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp4" >&6
ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp4
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 INTEGER*4 does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*4" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="no"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*4" >&5
echo $ECHO_N "checking for C type corresponding to INTEGER*4... $ECHO_C" >&6
if test "${ompi_cv_find_type_INTEGERp4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int32_t" = "$oft_target_size" ; then
oft_real_type="int32_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
oft_real_type="int"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
oft_real_type="int64_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
oft_real_type="long long"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
oft_real_type="long"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_INTEGERp4="not found"
else
ompi_cv_find_type_INTEGERp4="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp4" >&5
echo "${ECHO_T}$ompi_cv_find_type_INTEGERp4" >&6
if test "$ompi_cv_find_type_INTEGERp4" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_INTEGERp4" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_INTEGERp4
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*4" >&5
echo $ECHO_N "checking alignment of Fortran INTEGER*4... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_INTEGERp4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28637: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28644: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28654: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28661: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*4" >&5
echo "$as_me: error: Could not determine alignment of INTEGER*4" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*4 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of INTEGER*4 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28692: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28699: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_INTEGERp4=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*4" >&5
echo "$as_me: error: Could not determine alignment of INTEGER*4" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp4" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp4" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp4
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER4 $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER4 $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER4 $ofc_type_alignment
_ACEOF
if test "int32_t, int, int64_t, long long, long" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer4_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_INTEGER4_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_INTEGER4=$ofc_have_type
OMPI_SIZEOF_FORTRAN_INTEGER4=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_INTEGER4=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=8
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*8" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*8... $ECHO_C" >&6
if test "${ompi_cv_f77_have_INTEGERp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
INTEGER*8 bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_INTEGERp8="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_INTEGERp8="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp8" >&5
echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp8" >&6
if test "$ompi_cv_f77_have_INTEGERp8" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*8" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*8... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*8" >&5
echo $ECHO_N "checking size of Fortran 77 INTEGER*8... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_INTEGERp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28937: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28944: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28954: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28961: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
echo "$as_me: error: Could not determine size of INTEGER*8" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*8 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of INTEGER*8 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:28992: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:28999: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_INTEGERp8=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29012: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
echo "$as_me: error: Could not determine size of INTEGER*8" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*8" >&5
echo "$as_me: error: Could not determine size of INTEGER*8" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp8" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp8" >&6
ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp8
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 INTEGER*8 does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*8" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="no"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*8" >&5
echo $ECHO_N "checking for C type corresponding to INTEGER*8... $ECHO_C" >&6
if test "${ompi_cv_find_type_INTEGERp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
oft_real_type="int"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
oft_real_type="int64_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
oft_real_type="long long"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
oft_real_type="long"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_INTEGERp8="not found"
else
ompi_cv_find_type_INTEGERp8="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp8" >&5
echo "${ECHO_T}$ompi_cv_find_type_INTEGERp8" >&6
if test "$ompi_cv_find_type_INTEGERp8" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_INTEGERp8" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_INTEGERp8
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*8" >&5
echo $ECHO_N "checking alignment of Fortran INTEGER*8... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_INTEGERp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29207: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29214: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29224: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29231: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*8" >&5
echo "$as_me: error: Could not determine alignment of INTEGER*8" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*8 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of INTEGER*8 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29262: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29269: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_INTEGERp8=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*8" >&5
echo "$as_me: error: Could not determine alignment of INTEGER*8" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp8" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp8" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp8
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER8 $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER8 $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER8 $ofc_type_alignment
_ACEOF
if test "int, int64_t, long long, long" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer8_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_INTEGER8_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_INTEGER8=$ofc_have_type
OMPI_SIZEOF_FORTRAN_INTEGER8=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_INTEGER8=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=16
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*16" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*16... $ECHO_C" >&6
if test "${ompi_cv_f77_have_INTEGERp16+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
INTEGER*16 bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_INTEGERp16="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_INTEGERp16="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_INTEGERp16" >&5
echo "${ECHO_T}$ompi_cv_f77_have_INTEGERp16" >&6
if test "$ompi_cv_f77_have_INTEGERp16" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports INTEGER*16" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports INTEGER*16... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 INTEGER*16" >&5
echo $ECHO_N "checking size of Fortran 77 INTEGER*16... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_INTEGERp16+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29507: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29514: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29524: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29531: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
echo "$as_me: error: Could not determine size of INTEGER*16" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of INTEGER*16 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of INTEGER*16 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29562: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29569: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_INTEGERp16=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29582: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
echo "$as_me: error: Could not determine size of INTEGER*16" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of INTEGER*16" >&5
echo "$as_me: error: Could not determine size of INTEGER*16" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_INTEGERp16" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_INTEGERp16" >&6
ofc_type_size=$ompi_cv_f77_sizeof_INTEGERp16
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 INTEGER*16 does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 INTEGER*16" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="no"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to INTEGER*16" >&5
echo $ECHO_N "checking for C type corresponding to INTEGER*16... $ECHO_C" >&6
if test "${ompi_cv_find_type_INTEGERp16+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int" = "$oft_target_size" ; then
oft_real_type="int"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_int64_t" = "$oft_target_size" ; then
oft_real_type="int64_t"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_long" = "$oft_target_size" ; then
oft_real_type="long long"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long" = "$oft_target_size" ; then
oft_real_type="long"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_INTEGERp16="not found"
else
ompi_cv_find_type_INTEGERp16="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_INTEGERp16" >&5
echo "${ECHO_T}$ompi_cv_find_type_INTEGERp16" >&6
if test "$ompi_cv_find_type_INTEGERp16" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_INTEGERp16" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_INTEGERp16
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran INTEGER*16" >&5
echo $ECHO_N "checking alignment of Fortran INTEGER*16... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_INTEGERp16+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29777: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29784: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29794: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29801: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*16" >&5
echo "$as_me: error: Could not determine alignment of INTEGER*16" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of INTEGER*16 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of INTEGER*16 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:29832: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:29839: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_INTEGERp16=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of INTEGER*16" >&5
echo "$as_me: error: Could not determine alignment of INTEGER*16" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_INTEGERp16" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_INTEGERp16" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_INTEGERp16
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_INTEGER16 $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_INTEGER16 $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_INTEGER16 $ofc_type_alignment
_ACEOF
if test "int, int64_t, long long, long" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_integer16_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_INTEGER16_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_INTEGER16=$ofc_have_type
OMPI_SIZEOF_FORTRAN_INTEGER16=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_INTEGER16=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=-1
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports REAL... $ECHO_C" >&6
if test "${ompi_cv_f77_have_REAL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
REAL bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_REAL="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_REAL="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REAL" >&5
echo "${ECHO_T}$ompi_cv_f77_have_REAL" >&6
if test "$ompi_cv_f77_have_REAL" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports REAL... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 REAL" >&5
echo $ECHO_N "checking size of Fortran 77 REAL... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_REAL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30078: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30085: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30095: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30102: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
echo "$as_me: error: Could not determine size of REAL" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of REAL when cross-compiling" >&5
echo "$as_me: error: Can not determine size of REAL when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30133: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30140: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_REAL=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30153: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
echo "$as_me: error: Could not determine size of REAL" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL" >&5
echo "$as_me: error: Could not determine size of REAL" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REAL" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_REAL" >&6
ofc_type_size=$ompi_cv_f77_sizeof_REAL
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 REAL does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="yes"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to REAL" >&5
echo $ECHO_N "checking for C type corresponding to REAL... $ECHO_C" >&6
if test "${ompi_cv_find_type_REAL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
oft_real_type="float"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
oft_real_type="double"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
oft_real_type="long double"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_REAL="not found"
else
ompi_cv_find_type_REAL="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_REAL" >&5
echo "${ECHO_T}$ompi_cv_find_type_REAL" >&6
if test "$ompi_cv_find_type_REAL" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_REAL" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_REAL
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran REAL" >&5
echo $ECHO_N "checking alignment of Fortran REAL... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_REAL+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30343: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30350: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30360: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30367: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of REAL" >&5
echo "$as_me: error: Could not determine alignment of REAL" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of REAL when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of REAL when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30398: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30405: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_REAL=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of REAL" >&5
echo "$as_me: error: Could not determine alignment of REAL" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REAL" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_REAL" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_REAL
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_REAL $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_REAL $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_REAL $ofc_type_alignment
_ACEOF
if test "float, double, long double" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_real_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_REAL_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_REAL=$ofc_have_type
OMPI_SIZEOF_FORTRAN_REAL=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_REAL=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=4
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*4" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports REAL*4... $ECHO_C" >&6
if test "${ompi_cv_f77_have_REALp4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
REAL*4 bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_REALp4="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_REALp4="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp4" >&5
echo "${ECHO_T}$ompi_cv_f77_have_REALp4" >&6
if test "$ompi_cv_f77_have_REALp4" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*4" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports REAL*4... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 REAL*4" >&5
echo $ECHO_N "checking size of Fortran 77 REAL*4... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_REALp4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30643: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30650: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30660: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30667: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
echo "$as_me: error: Could not determine size of REAL*4" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of REAL*4 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of REAL*4 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30698: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30705: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_REALp4=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30718: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
echo "$as_me: error: Could not determine size of REAL*4" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL*4" >&5
echo "$as_me: error: Could not determine size of REAL*4" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp4" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp4" >&6
ofc_type_size=$ompi_cv_f77_sizeof_REALp4
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 REAL*4 does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*4" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="no"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to REAL*4" >&5
echo $ECHO_N "checking for C type corresponding to REAL*4... $ECHO_C" >&6
if test "${ompi_cv_find_type_REALp4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
oft_real_type="float"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
oft_real_type="double"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
oft_real_type="long double"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_REALp4="not found"
else
ompi_cv_find_type_REALp4="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp4" >&5
echo "${ECHO_T}$ompi_cv_find_type_REALp4" >&6
if test "$ompi_cv_find_type_REALp4" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_REALp4" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_REALp4
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran REAL*4" >&5
echo $ECHO_N "checking alignment of Fortran REAL*4... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_REALp4+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30908: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30915: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30925: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30932: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*4" >&5
echo "$as_me: error: Could not determine alignment of REAL*4" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*4 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of REAL*4 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:30963: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:30970: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_REALp4=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*4" >&5
echo "$as_me: error: Could not determine alignment of REAL*4" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp4" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_REALp4" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_REALp4
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_REAL4 $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_REAL4 $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_REAL4 $ofc_type_alignment
_ACEOF
if test "float, double, long double" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_real4_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_REAL4_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_REAL4=$ofc_have_type
OMPI_SIZEOF_FORTRAN_REAL4=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_REAL4=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=8
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*8" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports REAL*8... $ECHO_C" >&6
if test "${ompi_cv_f77_have_REALp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
REAL*8 bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_REALp8="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_REALp8="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp8" >&5
echo "${ECHO_T}$ompi_cv_f77_have_REALp8" >&6
if test "$ompi_cv_f77_have_REALp8" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*8" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports REAL*8... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 REAL*8" >&5
echo $ECHO_N "checking size of Fortran 77 REAL*8... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_REALp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31208: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31215: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31225: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31232: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
echo "$as_me: error: Could not determine size of REAL*8" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of REAL*8 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of REAL*8 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31263: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31270: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_REALp8=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31283: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
echo "$as_me: error: Could not determine size of REAL*8" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL*8" >&5
echo "$as_me: error: Could not determine size of REAL*8" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp8" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp8" >&6
ofc_type_size=$ompi_cv_f77_sizeof_REALp8
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 REAL*8 does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*8" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="no"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to REAL*8" >&5
echo $ECHO_N "checking for C type corresponding to REAL*8... $ECHO_C" >&6
if test "${ompi_cv_find_type_REALp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
oft_real_type="float"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
oft_real_type="double"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
oft_real_type="long double"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_REALp8="not found"
else
ompi_cv_find_type_REALp8="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp8" >&5
echo "${ECHO_T}$ompi_cv_find_type_REALp8" >&6
if test "$ompi_cv_find_type_REALp8" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_REALp8" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_REALp8
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran REAL*8" >&5
echo $ECHO_N "checking alignment of Fortran REAL*8... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_REALp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31473: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31480: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31490: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31497: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*8" >&5
echo "$as_me: error: Could not determine alignment of REAL*8" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*8 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of REAL*8 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31528: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31535: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_REALp8=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*8" >&5
echo "$as_me: error: Could not determine alignment of REAL*8" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp8" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_REALp8" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_REALp8
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_REAL8 $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_REAL8 $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_REAL8 $ofc_type_alignment
_ACEOF
if test "float, double, long double" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_real8_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_REAL8_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_REAL8=$ofc_have_type
OMPI_SIZEOF_FORTRAN_REAL8=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_REAL8=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=16
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*16" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports REAL*16... $ECHO_C" >&6
if test "${ompi_cv_f77_have_REALp16+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
REAL*16 bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_REALp16="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_REALp16="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_REALp16" >&5
echo "${ECHO_T}$ompi_cv_f77_have_REALp16" >&6
if test "$ompi_cv_f77_have_REALp16" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports REAL*16" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports REAL*16... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 REAL*16" >&5
echo $ECHO_N "checking size of Fortran 77 REAL*16... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_REALp16+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31773: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31780: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31790: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31797: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
echo "$as_me: error: Could not determine size of REAL*16" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of REAL*16 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of REAL*16 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:31828: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31835: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_REALp16=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:31848: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
echo "$as_me: error: Could not determine size of REAL*16" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of REAL*16" >&5
echo "$as_me: error: Could not determine size of REAL*16" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_REALp16" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_REALp16" >&6
ofc_type_size=$ompi_cv_f77_sizeof_REALp16
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 REAL*16 does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 REAL*16" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="no"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to REAL*16" >&5
echo $ECHO_N "checking for C type corresponding to REAL*16... $ECHO_C" >&6
if test "${ompi_cv_find_type_REALp16+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
oft_real_type="float"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
oft_real_type="double"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
oft_real_type="long double"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_REALp16="not found"
else
ompi_cv_find_type_REALp16="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_REALp16" >&5
echo "${ECHO_T}$ompi_cv_find_type_REALp16" >&6
if test "$ompi_cv_find_type_REALp16" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_REALp16" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_REALp16
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran REAL*16" >&5
echo $ECHO_N "checking alignment of Fortran REAL*16... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_REALp16+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32038: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32045: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32055: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32062: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*16" >&5
echo "$as_me: error: Could not determine alignment of REAL*16" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of REAL*16 when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of REAL*16 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32093: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32100: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_REALp16=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of REAL*16" >&5
echo "$as_me: error: Could not determine alignment of REAL*16" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_REALp16" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_REALp16" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_REALp16
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_REAL16 $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_REAL16 $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_REAL16 $ofc_type_alignment
_ACEOF
if test "float, double, long double" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_real16_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_REAL16_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_REAL16=$ofc_have_type
OMPI_SIZEOF_FORTRAN_REAL16=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_REAL16=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=-1
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports DOUBLE PRECISION... $ECHO_C" >&6
if test "${ompi_cv_f77_have_DOUBLE_PRECISION+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
DOUBLE PRECISION bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_DOUBLE_PRECISION="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_DOUBLE_PRECISION="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_DOUBLE_PRECISION" >&5
echo "${ECHO_T}$ompi_cv_f77_have_DOUBLE_PRECISION" >&6
if test "$ompi_cv_f77_have_DOUBLE_PRECISION" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports DOUBLE PRECISION" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports DOUBLE PRECISION... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 DOUBLE PRECISION" >&5
echo $ECHO_N "checking size of Fortran 77 DOUBLE PRECISION... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_DOUBLE_PRECISION+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32338: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32345: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32355: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32362: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&5
echo "$as_me: error: Can not determine size of DOUBLE PRECISION when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32393: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32400: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_DOUBLE_PRECISION=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32413: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of DOUBLE PRECISION" >&5
echo "$as_me: error: Could not determine size of DOUBLE PRECISION" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_DOUBLE_PRECISION" >&6
ofc_type_size=$ompi_cv_f77_sizeof_DOUBLE_PRECISION
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 DOUBLE PRECISION does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 DOUBLE PRECISION" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
oft_abort_on_fail="yes"
oft_target_size="$ofc_type_size"
echo "$as_me:$LINENO: checking for C type corresponding to DOUBLE PRECISION" >&5
echo $ECHO_N "checking for C type corresponding to DOUBLE PRECISION... $ECHO_C" >&6
if test "${ompi_cv_find_type_DOUBLE_PRECISION+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
# Loop over all the types handed to us
oft_real_type=
if test "$oft_target_size" != ""; then
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_float" = "$oft_target_size" ; then
oft_real_type="float"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_double" = "$oft_target_size" ; then
oft_real_type="double"
fi
fi
if test -z "$oft_real_type"; then
if test "$ac_cv_sizeof_long_double" = "$oft_target_size" ; then
oft_real_type="long double"
fi
fi
fi
if test -z "$oft_real_type"; then
ompi_cv_find_type_DOUBLE_PRECISION="not found"
else
ompi_cv_find_type_DOUBLE_PRECISION="$oft_real_type"
fi
fi
echo "$as_me:$LINENO: result: $ompi_cv_find_type_DOUBLE_PRECISION" >&5
echo "${ECHO_T}$ompi_cv_find_type_DOUBLE_PRECISION" >&6
if test "$ompi_cv_find_type_DOUBLE_PRECISION" = "not found"; then
{ echo "$as_me:$LINENO: WARNING: *** Did not find corresponding C type" >&5
echo "$as_me: WARNING: *** Did not find corresponding C type" >&2;}
if test "$oft_abort_on_fail" != "no"; then
{ { echo "$as_me:$LINENO: error: Cannot continue" >&5
echo "$as_me: error: Cannot continue" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
if test "$ompi_cv_find_type_DOUBLE_PRECISION" = "not found" ; then
ofc_c_type=
else
ofc_c_type=$ompi_cv_find_type_DOUBLE_PRECISION
fi
unset oft_real_type oft_target_size
if test -z "$ofc_c_type" ; then
ofc_have_type=0
fi
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran DOUBLE PRECISION" >&5
echo $ECHO_N "checking alignment of Fortran DOUBLE PRECISION... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_DOUBLE_PRECISION+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32603: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32610: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32620: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32627: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of DOUBLE PRECISION" >&5
echo "$as_me: error: Could not determine alignment of DOUBLE PRECISION" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of DOUBLE PRECISION when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of DOUBLE PRECISION when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32658: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32665: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_DOUBLE_PRECISION=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of DOUBLE PRECISION" >&5
echo "$as_me: error: Could not determine alignment of DOUBLE PRECISION" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_DOUBLE_PRECISION" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_DOUBLE_PRECISION" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_DOUBLE_PRECISION
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_DOUBLE_PRECISION $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION $ofc_type_alignment
_ACEOF
if test "float, double, long double" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_double_precision_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_DOUBLE_PRECISION_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_DOUBLE_PRECISION=$ofc_have_type
OMPI_SIZEOF_FORTRAN_DOUBLE_PRECISION=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_DOUBLE_PRECISION=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
ofc_expected_size=-1
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX... $ECHO_C" >&6
if test "${ompi_cv_f77_have_COMPLEX+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
COMPLEX bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_COMPLEX="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_COMPLEX="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEX" >&5
echo "${ECHO_T}$ompi_cv_f77_have_COMPLEX" >&6
if test "$ompi_cv_f77_have_COMPLEX" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX" >&5
echo $ECHO_N "checking size of Fortran 77 COMPLEX... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_COMPLEX+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32904: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32911: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32921: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32928: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
echo "$as_me: error: Could not determine size of COMPLEX" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX when cross-compiling" >&5
echo "$as_me: error: Can not determine size of COMPLEX when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:32959: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32966: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_COMPLEX=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:32979: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
echo "$as_me: error: Could not determine size of COMPLEX" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX" >&5
echo "$as_me: error: Could not determine size of COMPLEX" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEX" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEX" >&6
ofc_type_size=$ompi_cv_f77_sizeof_COMPLEX
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 COMPLEX does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX" >&5
echo $ECHO_N "checking alignment of Fortran COMPLEX... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_COMPLEX+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$conftest
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_align_fn(char *w, char *x, char *y, char *z)
{ unsigned long aw, ax, ay, az;
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
aw = (unsigned long) w;
ax = (unsigned long) x;
ay = (unsigned long) y;
az = (unsigned long) z;
if (! ((aw%16)||(ax%16)||(ay%16)||(az%16))) fprintf(f, "%d\n", 16);
else if (! ((aw%12)||(ax%12)||(ay%12)||(az%12))) fprintf(f, "%d\n", 12);
else if (! ((aw%8)||(ax%8)||(ay%8)||(az%8))) fprintf(f, "%d\n", 8);
else if (! ((aw%4)||(ax%4)||(ay%4)||(az%4))) fprintf(f, "%d\n", 4);
else if (! ((aw%2)||(ax%2)||(ay%2)||(az%2))) fprintf(f, "%d\n", 2);
else fprintf(f, "%d\n", 1);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33104: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:33111: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33121: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:33128: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX" >&5
echo "$as_me: error: Could not determine alignment of COMPLEX" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine alignment of COMPLEX when cross-compiling" >&5
echo "$as_me: error: Can not determine alignment of COMPLEX when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33159: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:33166: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
ompi_cv_f77_alignment_COMPLEX=`cat conftestval`
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine alignment of COMPLEX" >&5
echo "$as_me: error: Could not determine alignment of COMPLEX" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conf
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_alignment_COMPLEX" >&5
echo "${ECHO_T}$ompi_cv_f77_alignment_COMPLEX" >&6
ofc_type_alignment=$ompi_cv_f77_alignment_COMPLEX
fi
fi
fi
# We always need these defines -- even if we don't have a given type,
# there are some places in the code where we have to have *something*.
cat >>confdefs.h <<_ACEOF
#define OMPI_HAVE_FORTRAN_COMPLEX $ofc_have_type
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_SIZEOF_FORTRAN_COMPLEX $ofc_type_size
_ACEOF
cat >>confdefs.h <<_ACEOF
#define OMPI_ALIGNMENT_FORTRAN_COMPLEX $ofc_type_alignment
_ACEOF
if test "" != ""; then
cat >>confdefs.h <<_ACEOF
#define ompi_fortran_complex_t $ofc_c_type
_ACEOF
fi
# Save some in shell variables for later use (e.g., need
# OMPI_SIZEOF_FORTRAN_INTEGER in OMPI_F77_GET_FORTRAN_HANDLE_MAX)
OMPI_FORTRAN_COMPLEX_C_TYPE=$ofc_c_type
OMPI_HAVE_FORTRAN_COMPLEX=$ofc_have_type
OMPI_SIZEOF_FORTRAN_COMPLEX=$ofc_type_size
OMPI_ALIGNMENT_FORTRAN_COMPLEX=$ofc_type_alignment
# Clean up
unset ofc_have_type ofc_type_size ofc_type_alignment ofc_c_type
unset ofc_expected_size
# The complex*N tests are a bit different (note: the complex tests are
# the same as all the rest, because complex is a composite of two
# reals, which we *have* to have. It's only the complex*N tests that
# are different). The fortran complex types are composites of the
# real*(N/2) types. So for us to support complex*N, two conditions
# must be true:
#
# a) we must support real*(N/2) (i.e., compiler supports it and we
# have a back-end C type for it)
# b) compiler supports complex*N
ofc_expected_size=8
ofc_have_type=0
ofc_type_size=$ac_cv_sizeof_int
ofc_type_alignment=$ac_cv_sizeof_int
ofc_c_type=ompi_fortran_bogus_type_t
# Only check if we actually want the F77 bindings / have a F77
# compiler. This allows us to call this macro, even if there is
# no F77 compiler. If we have no f77 compiler, then just set a
# bunch of defaults.
if test "$OMPI_WANT_F77_BINDINGS" = "1"; then
# Determine FORTRAN datatype size.
# First arg is type, 2nd arg is config var to define
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*8" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*8... $ECHO_C" >&6
if test "${ompi_cv_f77_have_COMPLEXp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_ext=f
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
cat >conftest.$ac_ext <<_ACEOF
C
program main
COMPLEX*8 bogus_variable
end
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>conftest.er1
ac_status=$?
grep -v '^ *+' conftest.er1 >conftest.err
rm -f conftest.er1
cat conftest.err >&5
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -z "$ac_f77_werror_flag"
|| test ! -s conftest.err'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
ompi_cv_f77_have_COMPLEXp8="yes"
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
ompi_cv_f77_have_COMPLEXp8="no"
fi
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_have_COMPLEXp8" >&5
echo "${ECHO_T}$ompi_cv_f77_have_COMPLEXp8" >&6
if test "$ompi_cv_f77_have_COMPLEXp8" = "yes"; then
ofc_have_type=1
else
ofc_have_type=0
fi
else
echo "$as_me:$LINENO: checking if Fortran 77 compiler supports COMPLEX*8" >&5
echo $ECHO_N "checking if Fortran 77 compiler supports COMPLEX*8... $ECHO_C" >&6
echo "$as_me:$LINENO: result: skipped" >&5
echo "${ECHO_T}skipped" >&6
fi
if test "$ofc_have_type" = "1"; then
# What is the size of this type?
# NOTE: Some Fortran compilers actually will return that a
# type exists even if it doesn't support it -- the compiler
# will automatically convert the unsupported type to a type
# that it *does* support. For example, if you try to use
# INTEGER*16 and the compiler doesn't support it, it may well
# automatically convert it to INTEGER*8 for you (!). So we
# have to check the actual size of the type once we determine
# that the compiler doesn't error if we try to use it
# (i.e,. the compiler *might* support that type). If the size
# doesn't match the expected size, then the compiler doesn't
# really support it.
echo "$as_me:$LINENO: checking size of Fortran 77 COMPLEX*8" >&5
echo $ECHO_N "checking size of Fortran 77 COMPLEX*8... $ECHO_C" >&6
if test "${ompi_cv_f77_sizeof_COMPLEXp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo size | grep _ >/dev/null 2>&1 ; then
ompi_ac_size_fn=size__
else
ompi_ac_size_fn=size_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_size_fn=size_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_size_fn=size
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_size_fn=SIZE
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f < conftest.c <
#include
$ompi_conftest_h
#ifdef __cplusplus
extern "C" {
#endif
void $ompi_ac_size_fn(char *a, char *b)
{
int diff = (int) (b - a);
FILE *f=fopen("conftestval", "w");
if (!f) exit(1);
fprintf(f, "%d\n", diff);
fclose(f);
}
#ifdef __cplusplus
}
#endif
EOF
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33416: $CC $CFLAGS -I. -c conftest.c" >&5
$CC $CFLAGS -I. -c conftest.c 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:33423: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33433: $F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS" >&5
$F77 $FFLAGS conftestf.f conftest.o -o conftest $LDFLAGS $LIBS 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:33440: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
happy="yes"
else
unset ompi_status
happy="no"
fi
else
unset ompi_status
happy="no"
fi
if test "$happy" = "no" ; then
{ { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;}
{ (exit 1); exit 1; }; }
fi
if test "$cross_compiling" = "yes"; then
{ { echo "$as_me:$LINENO: error: Can not determine size of COMPLEX*8 when cross-compiling" >&5
echo "$as_me: error: Can not determine size of COMPLEX*8 when cross-compiling" >&2;}
{ (exit 1); exit 1; }; }
else
# 1 is the command
# 2 is actions to do if success
# 3 is actions to do if fail
echo "configure:33471: ./conftest" >&5
./conftest 1>&5 2>&1
ompi_status=$?
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:33478: \$? = $ompi_status" >&5
else
echo \$? = $ompi_status >&5
fi
if test "$ompi_status" = "0"; then
unset ompi_status
if test -f conftestval; then
ompi_cv_f77_sizeof_COMPLEXp8=`cat conftestval`
else
# 1 is the message
# 2 is whether to put a prefix or not
if test -n "1"; then
echo "configure:33491: conftestval not found." >&5
else
echo conftestval not found. >&5
fi
{ { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;}
{ (exit 1); exit 1; }; }
fi
else
unset ompi_status
{ { echo "$as_me:$LINENO: error: Could not determine size of COMPLEX*8" >&5
echo "$as_me: error: Could not determine size of COMPLEX*8" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
unset happy ompi_conftest_h
rm -f conftest*
fi
echo "$as_me:$LINENO: result: $ompi_cv_f77_sizeof_COMPLEXp8" >&5
echo "${ECHO_T}$ompi_cv_f77_sizeof_COMPLEXp8" >&6
ofc_type_size=$ompi_cv_f77_sizeof_COMPLEXp8
if test "$ofc_expected_size" != "-1" -a "$ofc_type_size" != "$ofc_expected_size"; then
{ echo "$as_me:$LINENO: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&5
echo "$as_me: WARNING: *** Fortran 77 COMPLEX*8 does not have expected size!" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&5
echo "$as_me: WARNING: *** Expected $ofc_expected_size, got $ofc_type_size" >&2;}
{ echo "$as_me:$LINENO: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&5
echo "$as_me: WARNING: *** Disabling MPI support for Fortran 77 COMPLEX*8" >&2;}
ofc_have_type=0
else
# Look for a corresponding C type (will abort by itself if the
# type isn't found and we need it)
ofc_c_type=
# Get the alignment of the type
if test "$ofc_have_type" = "1"; then
echo "$as_me:$LINENO: checking alignment of Fortran COMPLEX*8" >&5
echo $ECHO_N "checking alignment of Fortran COMPLEX*8... $ECHO_C" >&6
if test "${ompi_cv_f77_alignment_COMPLEXp8+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test "$ompi_cv_f77_external_symbol" = "double underscore" ; then
# so the general rule is that if there is an _ in the function
# name, then there are two trailing underscores. Otherwise,
# there is only one trailing underscore. Any idea how to do
# that with m4_translit?
if echo align | grep _ >/dev/null 2>&1 ; then
ompi_ac_align_fn=align__
else
ompi_ac_align_fn=align_
fi
elif test "$ompi_cv_f77_external_symbol" = "single underscore" ; then
ompi_ac_align_fn=align_
elif test "$ompi_cv_f77_external_symbol" = "mixed case" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "no underscore" ; then
ompi_ac_align_fn=align
elif test "$ompi_cv_f77_external_symbol" = "upper case" ; then
ompi_ac_align_fn=ALIGN
else
{ { echo "$as_me:$LINENO: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&5
echo "$as_me: error: unknown naming convention: $ompi_cv_f77_external_symbol" >&2;}
{ (exit 1); exit 1; }; }
fi
# Fortran module
cat > conftestf.f <